Содержание

Ubuntu 14.04 Setup Guide

mc

sudo apt-get install mc

language switch

cd ~
ln -s /media media
rm -R Downloads Documents Dropbox Music Pictures Public Templates Videos
ln -s /media/store/Documents Documents
ln -s /media/store/Dropbox Dropbox
ln -s /media/store/Downloads Downloads
ln -s /media/store/Music Music
ln -s /media/store/Pictures Pictures
ln -s /media/store/Public Public
ln -s /media/store/Videos Videos
ln -s /media/store/asutp asutp

skype

http://www.skype.com/en/download-skype/skype-for-computer/

sudo apt-get install sni-qt:i386

dropbox

https://www.dropbox.com/install?os=lnx

startup applications

skype
pidgin
goldendict
/opt/extras.ubuntu.com/touchpad-indicator/bin/touchpad-indicator

pidgin

sudo apt-get install pidgin
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install pidgin-indicator

virtualbox

sudo gedit /etc/apt/sources.list
add line: 
deb http://download.virtualbox.org/virtualbox/debian trusty contrib
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-4.3

Enabling USB devices:

sudo usermod -a -G vboxusers $USER
optional

Ubuntu/Debian users might want to install the dkms package to ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade. For Debian it is available in Lenny backports and in the normal repository for Squeeze and later. The dkms package can be installed through the Synaptic Package manager or through the following command:

sudo apt-get install dkms

What to do when experiencing The following signatures were invalid: BADSIG … when refreshing the packages from the repository?

sudo -s -H
apt-get clean
rm /var/lib/apt/lists/*
rm /var/lib/apt/lists/partial/*
apt-get clean
apt-get update
pipe serial port

In virtual machine serial port settings check «Pipe» and type «/home/denis/tmp/com3_sock»

sudo apt-get install socat
socat UNIX-CONNECT:/home/denis/tmp/com3_sock file:/dev/ttyUSB1

Emulating tty with socket:

socat UNIX-CONNECT:/home/denis/tmp/com3_sock TCP-LISTEN:8040    
telnet localhost 8040

hg

sudo add-apt-repository ppa:mercurial-ppa/releases
sudo add-apt-repository ppa:tortoisehg-ppa/releases
sudo apt-get update
sudo apt-get install mercurial
sudo apt-get install tortoisehg

easystroke

sudo apt-get install easystroke
  1. mc, command, gnome-terminal –maximize -e mc
  2. close, key, alt-f4

qt

Tребует предварительной установки gcc и opengl:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test 
sudo apt-get update 
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 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-5 20
sudo update-alternatives --config gcc

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++-5 20
sudo update-alternatives --config g++

http://www.qt.io/download-open-source/

java

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

http://www.linuxrussia.com/2013/04/oracle-java-7-ubuntu-1304-1204-1210.html

postgresql

sudo gedit /etc/apt/sources.list.d/pgdg.list

deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update 
apt-get install postgresql-9.4 postgresql-contrib pgadmin3

firebird (ppa)

source

sudo add-apt-repository ppa:mapopa
sudo apt-get update
apt-cache search firebird2.5-*
sudo apt-get install firebird2.5-super
sudo dpkg-reconfigure firebird2.5-super
sudo apt-get install firebird2.5-examples firebird2.5-dev
cd /usr/share/doc/firebird2.5-examples/examples/empbuild/
sudo gunzip employee.fdb.gz
sudo chown firebird.firebird employee.fdb
sudo mv employee.fdb /var/lib/firebird/2.5/data/

isql-fb
SQL> connect "/var/lib/firebird/2.5/data/employee.fdb " user 'SYSDBA' password 'admin';

firebird (tar.gz)

Download from here http://www.firebirdsql.org/en/downloads/ and unpack anywhere.

wget http://cznic.dl.sourceforge.net/project/firebird/firebird-linux-amd64/2.5.4-Release/FirebirdSS-2.5.4.26856-0.amd64.tar.gz
tar -xzvf FirebirdSS-2.5.4.26856-0.amd64.tar.gz

sudo ./install.sh
sudo cp /usr/lib64/* /home/denis/tmp
/opt/firebird/bin/isql
SQL> connect "/opt/firebird/examples/empbuild/employee.fdb " user 'SYSDBA' password 'admin';
sudo apt-get install flamerobin
SQL> CREATE DATABASE '/tmp/testdb' user 'SYSDBA' password 'admin';
SQL> connect "/tmp/testdb" user 'SYSDBA' password 'admin';

goldendict

sudo apt-get install goldendict
add dictionary:
/home/denis/media/store/3-mainstorage/SoftFree/Dictionary/eng/goldendict/

restricted software

sudo apt-get install ubuntu-restricted-extras

disable error message

sudo gedit /etc/default/apport
Change value of "enabled" from 1 to 0

power management tool

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw

touchpad

sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install touchpad-indicator

wine

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
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
#/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
lsusb
Bus 002 Device 003: ID 0fce:01b1 Sony Ericsson Mobile Communications AB 
sudo gedit /lib/udev/rules.d/69-mtp.rules
# Sony Xperia Z2 Tablet
ATTR{idVendor}=="0fce", ATTR{idProduct}=="01b1", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
sudo gedit /etc/udev/rules.d/51-android.rules
ATTR{idVendor}=="0fce", ATTR{idProduct}=="01b1", MODE=”0666"
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

ups

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'