Различия
Здесь показаны различия между двумя версиями данной страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
dev:ubuntu:setup [2015/05/19 19:15] denis |
dev:ubuntu:setup [2017/07/10 13:33] (текущий) denis [Ubuntu 14.04 Setup Guid] |
||
---|---|---|---|
Строка 1: | Строка 1: | ||
- | ====== Ubuntu 14.04 Setup Guid ====== | + | ====== Ubuntu 14.04 Setup Guide ====== |
==== mc ==== | ==== mc ==== | ||
Строка 94: | Строка 94: | ||
sudo apt-get update | sudo apt-get update | ||
sudo apt-get install gcc-4.9 g++-4.9 cpp-4.9 | sudo apt-get install gcc-4.9 g++-4.9 cpp-4.9 | ||
+ | sudo apt-get install g++-5 | ||
sudo apt-get install libglu1-mesa-dev -y | sudo apt-get install libglu1-mesa-dev -y | ||
| | ||
sudo update-alternatives --remove-all gcc | sudo update-alternatives --remove-all gcc | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20 | sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20 | ||
+ | sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20 | ||
sudo update-alternatives --config gcc | sudo update-alternatives --config gcc | ||
| | ||
sudo update-alternatives --remove-all g++ | sudo update-alternatives --remove-all g++ | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20 | sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20 | ||
+ | sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 20 | ||
sudo update-alternatives --config g++ | sudo update-alternatives --config g++ | ||
| | ||
Строка 153: | Строка 156: | ||
- | ==== teamviewer ==== | ||
==== goldendict ==== | ==== goldendict ==== | ||
Строка 181: | Строка 183: | ||
sudo apt-get update | sudo apt-get update | ||
sudo apt-get install wine1.7 winetricks | sudo apt-get install wine1.7 winetricks | ||
+ | sudo apt-get install wine-gecko2.36 | ||
+ | ==== android mtp ==== | ||
+ | sudo apt-get install libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9 | ||
+ | sudo apt-get dist-upgrade | ||
+ | sudo gedit /etc/fuse.conf | ||
+ | | ||
+ | <code bash> | ||
+ | #/etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE) | ||
+ | |||
+ | #Set the maximum number of FUSE mounts allowed to non-root users. | ||
+ | #The default is 1000. | ||
+ | #mount_max = 1000 | ||
+ | |||
+ | # Allow non-root users to specify the allow_other or allow_root mount options. | ||
+ | user_allow_other | ||
+ | </code> | ||
+ | |||
+ | lsusb | ||
+ | Bus 002 Device 003: ID 0fce:01b1 Sony Ericsson Mobile Communications AB | ||
+ | |||
+ | sudo gedit /lib/udev/rules.d/69-mtp.rules | ||
+ | <code bash> | ||
+ | # Sony Xperia Z2 Tablet | ||
+ | ATTR{idVendor}=="0fce", ATTR{idProduct}=="01b1", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1" | ||
+ | </code> | ||
+ | |||
+ | sudo gedit /etc/udev/rules.d/51-android.rules | ||
+ | <code bash> | ||
+ | ATTR{idVendor}=="0fce", ATTR{idProduct}=="01b1", MODE=”0666" | ||
+ | </code> | ||
+ | |||
+ | sudo service udev restart | ||
+ | sudo reboot | ||
+ | | ||
+ | ==== gimp ==== | ||
+ | sudo apt-get autoremove gimp gimp-plugin-registry | ||
+ | sudo add-apt-repository ppa:otto-kesselgulasch/gimp | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install gimp | ||
+ | |||
+ | Find and install plugins here: http://registry.gimp.org \\ | ||
+ | * [[http://registry.gimp.org/node/26259|BIMP]] | ||
+ | * [[http://registry.gimp.org/node/13016|Noise generator]]<code> | ||
+ | you need to edit the makefile in the src folder to explicitly link libm.so.6. Change line 16 to read: | ||
+ | (CC) $(CFLAGS) -o $@ $^ -lm $(LIBS) | ||
+ | </code> | ||
+ | * [[http://registry.gimp.org/node/26396|Layer via Copy/Cut]] | ||
+ | |||
+ | ==== ups ==== | ||
+ | |||
+ | * install:<code> | ||
+ | sudo apt-get install nut | ||
+ | lsusb | ||
+ | </code> | ||
+ | |||
+ | * ''/etc/nut/ups.conf'':<code> | ||
+ | [ippon] | ||
+ | driver = blazer_usb | ||
+ | port = auto | ||
+ | vendorid = 0665 | ||
+ | productid = 5161 | ||
+ | desc = "Ippon Back Power Pro New 600" | ||
+ | </code> | ||
+ | |||
+ | * create ''/etc/udev/rules.d/10-ippon.rules'':<code> | ||
+ | SYSFS{idVendor}=='0665', SYSFS{idProduct}=='5161', MODE='0666' | ||
+ | </code> | ||
+ | |||
+ | * ''/etc/nut/nut.conf'':<code> | ||
+ | MODE=standalone | ||
+ | </code> | ||
+ | |||
+ | * ''/etc/nut/upsd.users'':<code> | ||
+ | [ups_admin] | ||
+ | password = 12345678 | ||
+ | upsmon master | ||
+ | </code> | ||
+ | |||
+ | * ''/etc/nut/upsmon.conf'':<code> | ||
+ | MONITOR ippon@localhost 1 ups_admin 12345678 | ||
+ | </code> | ||
+ | |||
+ | * start:<code> | ||
+ | sudo upsdrvctl start | ||
+ | sudo service nut-server start | ||
+ | upsc ippon | ||
+ | </code> | ||
+ | |||
+ | ==== mc conf highlight ==== | ||
+ | ''/usr/share/mc/syntax/Syntax'':\\ | ||
+ | file .\*(bash_completion|profile|\\.(sh|bash_login| .... |zshrc)) ... | ||
+ | Добавить ''conf'' после ''zshrc'': | ||
+ | file .\*(bash_completion|profile|\\.(sh|bash_login| .... |zshrc|conf))... | ||
+ | ==== tcpdump ==== | ||
+ | sudo tcpdump -A -i eth0 port 30000 | ||
+ | sudo tcpdump -A -i lo port 30000 | ||
+ | sudo tcpdump -v -X -i p1p1 host 192.168.127.23 and port 950 | ||
+ | sudo tcpdump -v -X -i p1p1 host 192.168.127.23 and port 950 and 'tcp[tcpflags] & tcp-push != 0' |