#time apt-get -y --allow-unauthenticated dist-upgrade
1. Clean Ubuntu 16.04 v30 (Desktop) template
real 11m29.359s
user 4m35.988s
sys 0m34.053s
2. Clean Ubuntu 16.04 v30 (Desktop) template
+ apt-mark hold numix-gtk-theme numix-icon-theme numix-icon-theme-circle
real 8m37.455s
user 4m33.967s
sys 0m28.401s
----------
cat categorized-apps.list.auto | sort | awk -F/ '{print $1" / "$2" / "$3}'> q
----------
root@rapidseedbox:~# cat readme.arctica
wget -qO - http://packages.arctica-project.org/archive.key | sudo apt-key add
-
echo "deb http://packages.arctica-project.org/ubuntu xenial main" >>
/etc/apt/sources.list.d/arctica.list
apt-get update
apt-get dist-upgrade -d -y && apt-get upgrade -y && apt-get dist-upgrade -y
# new version
apt-get install devscripts
git clone https://github.com/ArcticaProject/nx-libs
cd nx-libs/
dpkg-checkbuilddeps
apt-get install equivs
mk-build-deps
dpkg -i nx-libs-build-deps_3.5.99.8-0.1_all.deb
apt-get install -f
debuild -i -us -uc -b
cd ..
dpkg -i *3.5.99*.deb
spt-get install -f
===================================================================================
apt-get -y purge x2goserver x2goserver-xsession nxagent
apt-get -y autoremove
add-apt-repository -y -r ppa:x2go/ppa
add-apt-repository -y -r ppa:x2go/stable
add-apt-repository -y ppa:x2go/ppa
echo 'deb http://packages.arctica-project.org/ubuntu xenial main' > /etc/apt/sources.list.d/nx-libs-beta.list
wget -qO - http://packages.arctica-project.org/archive.key | sudo apt-key add -
apt-get update
apt-get -y install x2goserver x2goserver-xsession
===========================================================
SUBSONIC
=====================================
```
add-apt-repository ppa:webupd8team/java
apt-get update
echo debconf shared/accepted-oracle-license-v1-1 select true |
debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true |
debconf-set-selections
apt-get install oracle-java8-installer
```
```
#apt-get install openjdk-9-jre
dpkg -i subsonic-6.1.3.deb
```
```
sed -i 's#^SUBSONIC_ARGS="\(.*\)"#SUBSONIC_ARGS="\1 --host=127.0.0.1 --context-path=/subsonic"#g' /etc/default/subsonic
systemctl restart subsonic
# Does not work
#sed 's|\(s*\)-Dsubsonic.home=\([^\ ]*\)|\1-Dsubsonic.home=\2 -Djava.net.preferIPv4Stack=true|' /usr/share/subsonic/subsonic.sh
```
# /etc/apache2/userconf-enabled/subsonic.conf
RewriteEngine on
RewriteRule ^/subsonic$ /subsonic/ [R=permanent]
ProxyRequests off
#ProxyPreserveHost Off
ProxyPreserveHost Off
RequestHeader unset Accept-Encoding
ProxyPass http://127.0.0.1:4040/subsonic/
ProxyPassReverse http://127.0.0.1:4040/subsonic/
Order Allow,Deny
Allow from All
AuthType Digest
AuthName "apache2"
AuthDigestProvider file
AuthUserFile "/etc/apache2/users.password"
Require valid-user
CHERRYMUSIC (from Git)
==============================
git clone -b master https://github.com/devsnd/cherrymusic.git /opt/cherrymusic
apt-get install python3
apt-get install mpg123 faad vorbis-tools flac imagemagick lame python3-unidecode
yes | /opt/cherrymusic/cherrymusic
rm -rf /root/.config/cherrymusic
rm -rf /root/.local/share/cherrymusic
# Initialize config files
su user -c '/opt/cherrymusic/cherrymusic'
/home/user/.config/cherrymusic/cherrymusic.conf
----------------------------------------------------
s#^basedir\s*=.*$#basedir = /home/user/Downloads#g
s#^port\s*=.*$#port = 7070#g
s#^localhost_only\s*=.*$#localhost_only = True#g
s#rootpath\s*=.*$#rootpath = /cherrymusic#g
# Initialize DB
su user -c '/opt/cherrymusic/cherrymusic --update'
/etc/systemd/system/cherrymusic@.service
-------------------------------------------------
[Unit]
Description=CherryMusic server
Requires=network.target
After=network.target
[Service]
User=%I
Type=simple
ExecStart=/opt/cherrymusic/cherrymusic
StandardOutput=null
PrivateTmp=true
Restart=always
[Install]
WantedBy=multi-user.target
# Start/enable service
systemctl start cherrymusic@user
systemctl enable cherrymusic@user
/etc/apache2/userconf-enabled/cherrymusic-user.conf
----------------------------------------------------
RewriteEngine on
RewriteRule ^/cherrymusic$ /cherrymusic/ [R=permanent]
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:7070/cherrymusic
ProxyPassReverse http://localhost:7070/cherrymusic
# Restart Apache2
systemctl restart apache2
# PID file
/home/user/.local/share/cherrymusic/cherrymusic.pid
# Rotate?
/home/user/.local/share/cherrymusic/server.log
CHERRYMUSIC (pip3)
==============================
apt-get install python3
apt-get install python3-pip
pip3 install --upgrade pip
pip3 install cherrymusic
apt-get install mpg123 faad vorbis-tools flac imagemagick lame python3-unidecode
# Initialize config files
su user -c 'cherrymusic'
/home/user/.config/cherrymusic/cherrymusic.conf
----------------------------------------------------
s#^basedir\s*=.*$#basedir = /home/user/Downloads#g
s#^port\s*=.*$#port = 7070#g
s#^localhost_only\s*=.*$#localhost_only = True#g
s#rootpath\s*=.*$#rootpath = /cherrymusic#g
# Initialize DB
su user -c 'cherrymusic --update'
/etc/systemd/system/cherrymusic@.service
-------------------------------------------------
[Unit]
Description=CherryMusic server
Requires=network.target
After=network.target
[Service]
User=%I
Type=simple
ExecStart=/usr/local/bin/cherrymusic
StandardOutput=null
PrivateTmp=true
Restart=always
[Install]
WantedBy=multi-user.target
# Start/enable service
systemctl start cherrymusic@user
systemctl enable cherrymusic@user
/etc/apache2/userconf-enabled/cherrymusic-user.conf
----------------------------------------------------
RewriteEngine on
RewriteRule ^/cherrymusic$ /cherrymusic/ [R=permanent]
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:7070/cherrymusic
ProxyPassReverse http://localhost:7070/cherrymusic
# Restart Apache2
systemctl restart apache2
# PID file
/home/user/.local/share/cherrymusic/cherrymusic.pid
# Rotate?
/home/user/.local/share/cherrymusic/server.log
# Get version
cherrymusic --version | head -1 | awk '{print $NF}'
==================================================================
Chrome Remote Desktop Install for Linux
https://www.everything-linux-101.com/how-to/remote-control/chrome-remote-desktop-install-for-linux/
wget http://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
dpkg -i chrome-remote-desktop_current_amd64.deb
apt-get -y install -f
Service name:
chrome-remote-desktop
echo "export CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES=1024x768" >> ~/.profile
echo "startxfce4" > ~user/.chrome-remote-desktop-session
--------
Github: headless ubuntu|debian + gnome, accessible via Chrome Remote Desktop
https://gist.github.com/Zate/f9f938684f3e06392c362c89dd6b870b
4/wgFMWSjAQ7sqaqp7dWdBgR9rrTTDzVK5GeEkOewm8ZReQ5lJm0YEirTjcxrJ_mzcejOfI87h8z_VOpwreBAgqrY
==================================================================
APACHE 2 Diagnostics
https://cwiki.apache.org/confluence/display/httpd/ListOfErrors
```
curl -sL https://raw.githubusercontent.com/richardforth/apache2buddy/master/apache2buddy.pl | perl
```
==================================================================