meta data for this page
  •  

This is an old revision of the document!


Linux/Prepare

Basic

Disable console beep

To disable console annoying beep: * System wide by removing PC Speaker module:

rmmod pcspkr
sudo echo "blacklist pcspkr" > /etc/modprobe.d/pcspkr-blacklist.conf

Usefull software

sudo apt-get install wireshark cups
sudo usermod -G lp,lpadmin,dialout,sudo,audio,video,netdev,vboxusers,wireshark,kismet,i2c user_login

parallel packers

sudo apt-get install pigz pbzip2 pxz lbzip2

To force using parallel packers system-wide:

ln -s /usr/bin/lbzip2 /usr/local/bin/bzip2
ln -s /usr/bin/lbzip2 /usr/local/bin/bunzip2
ln -s /usr/bin/lbzip2 /usr/local/bin/bzcat
ln -s /usr/bin/pigz /usr/local/bin/gzip
ln -s /usr/bin/pigz /usr/local/bin/gunzip
ln -s /usr/bin/pigz /usr/local/bin/zcat
ln -s /usr/bin/pixz /usr/local/bin/xz

or use bash aliases:

.bashrc
alias gzip='pigz'
alias gunziip='unpigz'
alias bzip2='pbzip2'
alias bunzip2='pbunzip2'
alias xz='pxz'

add i386 architecture

dpkg --add-architecture i386
apt-get update
apt-get install gpm tcpdump bmon tinc ppp pptpd mc links2 gparted hdparm smartmontools smart-notifier valgrind openssh-server
apt-get install wireshark mtr

etckeeper

apt-get install git 
git config --global user.name "my name"
git config --global user.email myemail@address.pl
apt-get install git-cola etckeeper kdiff3

Disable PC speaker

echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf

resolv.conf

apt-get install resolvconf

Add own nameserver into /etc/resolvconf/resolv.conf.d/base

nameserver 8.8.8.8

and execute

sudo resolvconf -u

Polish & locales

dpkg-reconfigure keyboard-configuration
apt-get install console-data
dpkg-reconfigure console-data
dpkg-reconfigure locales

add

  • pl_PL
  • pl_PL.UTF-8

In Debian, locales are handled in /etc/default/locale. File /etc/environment is deprecated.

grep pam_env.so /etc/pam.d/*
...
/etc/pam.d/login:session       required   pam_env.so readenv=1
/etc/pam.d/login:session       required   pam_env.so readenv=1 envfile=/etc/default/locale
...

Logitech wireless mouse/trackball

To handle old (not Unifying Receiver) Logitech product:

sudo apt-get install lomoco
sudo lomoco -i
003.005: 046d:c508 Receiver for Cordless Optical TrackMan (C-BA4-MSE) Caps: CSR SMS 
	Receiver type: C508
	Mouse type: Cordless Optical TrackMan
	Connect button on mouse pressed: no
	Active RF Channel: 1
	Battery status: 7 (full)
	Cordless security ID: 0x8e16
	Receiver talking: yes
	Lock Request (CONNECT button pressed): no
	Mouse Powerup (First time out of the box auto-locking): no
	Receiver Unlocked (Mouse disconnected): no
	Wait Lock (Searching for mouse): no
	Device physical shape type: 0
	SmartScroll (SMS): reporting not supported
	USB Mouse Polling Interval:  10ms
sudo lomoco --pid=C508 -i | grep -w "Battery status:"

For logitech devices there are additional packets: https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse

Change trackball pointer speed

Using CTM:

xinput set-prop "Logitech USB Receiver" "libinput Accel Speed" 1
xinput set-prop "Logitech USB Receiver" "Coordinate Transformation Matrix" \
2.000000, 0.000000, 0.000000, \
0.000000, 2.000000, 0.000000, \
0.000000, 0.000000, 1.000000

NTP: allow time corrections bigger than 1h

  1. Edit /etc/default/ntp and add “-s” argument.
  2. Ordered List ItemInstall ntpdate and ntp
  3. Ordered List ItemSwitch RTC to UTC time:
timedatectl set-local-rtc 0
ntpd -qg
hwclock --systohc