Automatic installation scripts for Ubuntu / Linux

Run late_command script manually

wget -q --no-check-certificate -O - | sudo bash -s #00:11:22:33:44:55

Create pressed autoinstall CD

wget -q -O - | bash -

Post install second OS over KVM

sudo kvm -m 512 -hda /dev/sda -net nic,macaddr=$(LANG=en; ifconfig eth0 | grep "HWaddr" | tr -s " " | cut -d" " -f5) -net user -smp 2

Install default applications

# todo
# /tmp/debconf-answer.txt
# accept java licence
# sun-java6-bin shared/accepted-sun-dlj-v1-1    boolean true
apt-get -y install thunderbird vlc sun-java6-jre smbfs sun-java6-plugin bluefish putty tofrodos imagemagick p7zip-full smartmontools hwinfo lshw nfs-common rtorrent k9copy

gtk-recordmydesktop - Screencast creation for linux
unetbootin - create USB boot pen wirh different distributions

searchmonkey - powerful text searches on Linux using regular expressions
dosfstools - Utilities to create and check MS-DOS FAT filesystems
apt-get install gnome-do gnome-do-plugins
tofrodos - Converts DOS <-> Unix text files, alias tofromdos (dosfstools)
radiotray - Radio Tray is a simple streaming music player
apt-get install cclive - command line media download tool with low footprint (download YouTube videos)


sudo apt-get install msttcorefonts
sudo apt-get install ttf-ubuntu-title
Ubuntu font directory:

Fix Java plugin in Hardy (only i386)

apt-get remove icedtea-gcjwebplugin
apt-get install -y sun-java6-plugin

Netboot install from harddisk

gzip -d boot.img.gz
dd if=boot.img of=/dev/sda

Ubuntu tweak

wget ${URL} -P /tmp
sudo dpkg -i /tmp/ubuntu-tweak_*.deb

UMTS access

apt-get install nxclient network-manager-openvpn 
wget -P /tmp/
dpkg -i /tmp/nxclient*.deb
chmod 755 /usr/lib/cups/backend/ipp
rm /tmp/nxclient*.deb
#setserial wvdial

sudo add-apt-repository ppa:ubuntu-wine/ppa - Photoshop Wine HowTo - Photoshop Updates - Adobe Photoshop CS2 (trial version) much slower under Wine then Photoshop 7.0

# vineyard
sudo add-apt-repository ppa:cybolic/vineyard-testing
sudo apt-get update && sudo apt-get install vineyard

IE 6

sudo apt-get install wine cabextract
sh winetricks ie6
wine .wine/drive_c/Programme/Internet\ Explorer/iexplore.exe

Thunderbird / Firefox command options


sudo apt-get install aircrack-ng

Ubuntu Packages
apt-get install -y ubuntu-netbook-remix

Other apps...

sudo apt-get install nautilus-image-converter

Rip Audio CD

sudo apt-get install icedax lame
java -jar jripper_1_02_1.jar 

View space usage

dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k 2 -n | grep -v deinstall | awk '{printf "%.3f MB \t %s\n", $2/(1024), $1}' | tail -n 10

force remove package

dpkg --remove --force-remove-reinstreq PACKAGE_NAME

install cron without recommends

apt-get install cron -y --no-install-recommends

Insall sshfs

sudo apt-add-repository universe
sudo apt update
sudo apt-get install -y sshfs
sshfs -o ServerAliveInterval=15 /mnt

etope lister

wget -q -O /tmp/etopeLister.deb
sudo apt install -y libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5
sudo dpkg -i /tmp/etopeLister.deb


Terminator and terminator-split

# Install
sudo apt install -y terminator python-is-python3
sudo wget -qO /usr/bin/terminator-split
sudo sed -i 's|/usr/bin/python|/usr/bin/python3|g' /usr/bin/terminator-split
sudo chmod 755 /usr/bin/terminator-split
# test
terminator-split -m www{1..4}

Links - Nagios status monitor