Systemadministration
Color Bash Prompt on Ubuntu and Debian
Ubuntu Green Prompt for your user Edit ”~/.bashrc” and change: #force_color_prompt=yes to: force_color_prompt=yes To change it for all new users make the same in ”/etc/skel/.bashrc”. Red Prompt for root Edit ”/root/.bashrc” and change ”force_color_prompt=yes” like for your user. Now change the color to red. Search this line: PS1=’${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ‘ and change it to: PS1=’${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ‘ [...]
Create a Linux or Utility Live Stick
Create Linux Live USB Stick with UNetbootin. Easy way to test a lot of other linux distributions or play around with some system utilities You can install the following OS and System utilities with unetbootin. Operating Systems * Ubuntu * Fedora * Debian * PCLinux OS * Linux Mint * Sabayon Linux * openSUSE * [...]
Encrypt your USB Stick
Encrypt your USB Stick with cryptsetup or TrueCrypt on Ubuntu. 1. Use cryptsetup 1.1 Install cryptsetup: aptitude install cryptsetup 1.2 Setup cryptsetup volume: Unmount the stick and format it: umount /dev/usb1 cryptsetup luksFormat /dev/usb1 Type “YES” an choose a password. Open the crypt partition: cryptsetup luksOpen /dev/usb1 crypt_USB Create new Filesystem and mount it: mkfs.ext4 [...]
Fix Ubuntu 11.10 Oneiric Ocelot dbus Problem
After uprade to Ubuntu 11.10 Oneiric Ocelot i get the following message during the system boot: Waiting for network configuration It takes a long time and leads to a black screen. You can see the following message sometimes, too. Unable to connect to the system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused The [...]
System Administrator Appreciation Day – 2011
To all other system adminstrators “HAPPY SYSADMIN DAY !” http://www.sysadminday.com and, of course Sources: http://www.userfriendly.org http://xkcd.org
Install Sun Java with Puppet on Ubuntu
Sun wants you to agree to its license before installing the JRE/JDK. For an unattended install you need a preseed file. You get the content of this file with “debconf-get-selections | grep sun-” on a system where you have already installed the required packages. Create a file “/etc/puppet/files/sun-java6.preseed” with the following example content: sun-java6-bin shared/accepted-sun-dlj-v1-1 [...]
Install latest Broadcom bnx2 linux driver
Install new broadcom driver on Ubuntu or Debian: 1. Download Linux driver http://www.broadcom.com/support/ethernet_nic/downloaddrivers.php 2. Unpack unzip linux-6.2.23.zip cd Server/Linux/Driver tar vfx netxtreme2-6.2.23.tar.gz cd netxtreme2-6.2.23 3. Install build tools and install the driver sudo aptitude install build-essential linux-headers make sudo make install 4. Test before installation: $ ethtool -i eth0 driver: bnx2 version: 2.0.2 firmware-version: 4.6.1 [...]
Install VMware Tools on Debian Squeeze
1. Install required packages aptitude install autoconf automake binutils cpp gcc linux-headers-$(uname -r) make psmisc 2. Mount VMware Tools mkdir /tmp/vmtools mount /dev/cdrom /tmp/vmtools 3. Unzip the tools tar -C /tmp -vfx /tmp/vmtools/VMwareTools*.tar.gz 4. Run install script cd /tmp/vmware-tools-distrib ./vmware-install.pl Note: You can also use the “open-vm-tools” instead of installing the VMware Tools. aptitude install [...]
Nginx as reverse proxy cache for wordpress and apache
1. Install Nginx * Install from PPA * Install using self build packages 2. General Nginx Settings Edit “/etc/nginx/nginx.conf” and modify or insert the following settings: [...] http { [...] # Gzip Settings gzip on; gzip_disable “msie6″; gzip_buffers 32 8k; gzip_comp_level 6; gzip_http_version 1.0; gzip_min_length 0; gzip_types text/html text/css image/x-icon application/x-javascript application/javascript text/javascript application/atom+xml application/xml [...]
Install nginx on debian squeeze from PPA
You find currently nginx version 0.7.67-3 in Debian Squeeze. If you want the latest version you have to build your own paket or you can use one from the ubuntu ppa. This installs the latest stable relase of nginx webserver (current 1.0.1) on Debian Squeeze. echo “deb http://ppa.launchpad.net/nginx/stable/ubuntu lucid main” > /etc/apt/sources.list.d/nginx-stable-lucid.list apt-key adv –keyserver [...]

