ubuntu
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
[!NOTE|label:references:]
$ sudo sysv-rc-config jenkins on
$ sudo sysv-rc-conf --list | grep jenkins
jenkins 0:off 1:off 2:on 3:on 4:on 5:on 6:off
$ sudo update-rc.d jenkins enable
update-rc.d: warning: start runlevel arguments (none) do not match jenkins Default-Start values (2 3 4 5)
update-rc.d: warning: stop runlevel arguments (none) do not match jenkins Default-Stop values (0 1 6)
Enabling system startup links for /etc/init.d/jenkins ...
Removing any system startup links for /etc/init.d/jenkins ...
/etc/rc0.d/K20jenkins
/etc/rc1.d/K20jenkins
/etc/rc2.d/S20jenkins
/etc/rc3.d/S20jenkins
/etc/rc4.d/S20jenkins
/etc/rc5.d/S20jenkins
/etc/rc6.d/K20jenkins
Adding system startup for /etc/init.d/jenkins ...
/etc/rc0.d/K20jenkins -> ../init.d/jenkins
/etc/rc1.d/K20jenkins -> ../init.d/jenkins
/etc/rc6.d/K20jenkins -> ../init.d/jenkins
/etc/rc2.d/S20jenkins -> ../init.d/jenkins
/etc/rc3.d/S20jenkins -> ../init.d/jenkins
/etc/rc4.d/S20jenkins -> ../init.d/jenkins
/etc/rc5.d/S20jenkins -> ../init.d/jenkins
backup
$ dconf dump /org/gnome/terminal/ > ubuntu1710_terminal_backup.bak
restore
$ dconf load /org/gnome/terminal/ < ubuntu1710_terminal_backup.bak
reset
$ dconf reset -f /org/gnome/terminal
list
$ gsettings list-recursively | grep -i org.gnome.Terminal
$ sudo add-apt-repository ppa:noobslab/themes
$ sudo apt-get update
$ sudo apt-get install nokto-theme
$ sudo gnome-font-viewer ~/Tools/Monaco/Monaco_Linux.TTF
$ gsettings get com.canonical.Unity.Launcher favorites
['application://nautilus.desktop', 'application://gnome-terminal.desktop', 'application://firefox.desktop', 'unity://running-apps', 'application://gvim.desktop', 'unity://desktop-icon', 'unity://expo-icon', 'unity://devices']
$ /usr/lib/nux/unity_support_test -p
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on SVGA3D; build: RELEASE;
OpenGL version string: 2.1 Mesa 10.1.0
Not software rendered: yes
Not blacklisted: yes
GLX fbconfig: yes
GLX texture from pixmap: yes
GL npot or rect textures: yes
GL vertex program: yes
GL fragment program: yes
GL vertex buffer object: yes
GL framebuffer object: yes
GL version is 1.4+: yes
Unity 3D supported: yes
$ sudo apt-get install nautilus-actions
$ nautilus -q
$ utilus-actions-config-tool
$ sudo chmod -x /usr/lib/notify-osd/notify-osd
[!NOTE|label:references:]
$ sudo add-apt-repository ppa:fossfreedom/byzanz
$ sudo apt-get update && sudo apt-get install byzanz
$ git clone git@github.com:goldendict/goldendict.git
$ sudo apt-get install liblzma-dev qt4-qmake hunspell-dev hunspell build-essential libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev libqt4-dev libqtwebkit-dev libxtst-dev liblzo2-dev libbz2-dev libao-dev libavutil-dev libavformat-dev libtiff5-dev
$ cd goldendict/
$ qmake-qt4
$ qmake "CONFIG+=no_epwing_support"
$ make && sudo make install
$ sudo apt install m2crypto git python-pip
$ pip install --upgrade pip
$ pip install git+https://github.com/shadowsocks/shadowsocks.git@master
$ sudo ln -sf /home/marslo/.local/bin/ssserver /usr/local/bin/ssserver
start
$ sudo bash -c 'cat > /etc/rc.local' << EOF
## ssserver -c /etc/shadowsocks.json -d start
sudo /home/marslo/.local/bin/ssserver -c /etc/shadowsocks.json -d start
EOF
ubuntu
$ sudo add-apt-repository ppa:hzwhuang/ss-qt5
Shadowsocks-Qt5 is a cross-platform Shadowsocks GUI client.
Shadowsocks is a lightweight tool that helps you bypass firewall(s).
This PPA mainly includes packages for Shadowsocks-Qt5, which means it also includes libQtShadowsocks packages.
More info: https://launchpad.net/~hzwhuang/+archive/ubuntu/ss-qt5
Press [ENTER] to continue or Ctrl-c to cancel adding it.
gpg: keybox '/tmp/tmpaegs6_x4/pubring.gpg' created
gpg: /tmp/tmpaegs6_x4/trustdb.gpg: trustdb created
gpg: key 6DA746A05F00FA99: public key "Launchpad PPA for Symeon Huang" imported
gpg: Total number processed: 1
gpg: imported: 1
OK
$ sudo apt update
$ sudo apt install shadowsocks-qt5
others
$ sudo apt install python-pip
$ sudo pip install genpac
started by docker image teddysun/shadowsocks-libev
$ mkdir -p /etc/shadowsocks-libev
$ sudo bash -c "cat > /etc/shadowsocks-libev/config.json" << EOF
{
"server":"0.0.0.0",
"server_port":1111,
"password":"password0",
"timeout":300,
"user":"nobody", // optional
"method":"aes-256-gcm",
"fast_open":false,
"nameserver":"8.8.8.8", // be careful for this in private sub-network
"mode":"tcp_and_udp",
"plugin":"obfs-server",
"plugin_opts":"obfs=http"
}
EOF
$ docker run -d -p 1111:1111 \
-p 1111:1111/udp \
--name ss-libev \
--restart=always \
-v /etc/shadowsocks-libev:/etc/shadowsocks-libev \
teddysun/shadowsocks-libev
$ docker logs -f ss-libev
started by /etc/init.d/shadowsocks-libev
$ wget --no-check-certificate \
-O shadowsocks-all.sh \
https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
$ chmod +x shadowsocks-all.sh
$ ./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log
...
Which Shadowsocks server you'd select:
1) Shadowsocks-Python
2) ShadowsocksR
3) Shadowsocks-Go
4) Shadowsocks-libev
Please enter a number (Default Shadowsocks-Python): 4
You choose = Shadowsocks-libev
...
[Info] Starting install package autoconf
Do you want install simple-obfs for Shadowsocks-libev? [y/n]
(default: n): y
You choose = y
Please select obfs for simple-obfs:
1) http
2) tls
Which obfs you'd select(Default: http): 1
obfs = http
...
service
$ sudo /etc/init.d/shadowsocks-libev start
$ sudo /etc/init.d/shadowsocks-libev stop
$ sudo /etc/init.d/shadowsocks-libev restart
$ sudo /etc/init.d/shadowsocks-libev status
config
check status
simple-obfs
obfs=http;obfs-host=www.google.com
$ /etc/shadowsocks-libev/config.json
{
"server":"0.0.0.0",
"server_port": 1111,
"password":"mypassword",
"timeout":300,
"user":"nobody", // optinal
"method":"aes-256-cfb",
"fast_open":false,
"nameserver":"1.0.0.1", // be careful for dns resolve in private network
"mode":"tcp_and_udp",
"plugin":"obfs-server",
"plugin_opts":"obfs=http"
}
$ sudo lsof -i:1111
$ sudo netstatus -tunpla | grep 1111