debian
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\]\$ ‘ [...]
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 [...]
Building a nginx debian package with third party modules
I created this manual on Debian Squeeze (amd64) with the latest version of nginx (stable) an one third party module as example. If you want to build your own package, check for the latest versions of the modules and nginx and modify the version numbers in this manual. 1. Install build debian tools and depending [...]
Resize images (folder) with imagemagick (mogrify)
Before upload pictures to my online gallery i want to resize them to a smaller size. I don’t want to open all with a tool or something. I want to run a small script on my netbook without GUI. First install imagemagick: aptitude install imagemagick Now “cd” into the directory with your images and execute: [...]
Upgrade Debian Lenny to Squeeze on Citrix XenServer
1. Update your Lenny installation Make sure that your current Lenny is up-2-date. aptitude update aptitude upgrade 2. Change sources to Squeeze Open “/etc/apt/sources.list” and replace “Lenny” with “Squeeze” here is an example: # Debian Squeeze deb http://ftp.de.debian.org/debian/ squeeze main deb-src http://ftp.de.debian.org/debian/ squeeze main # Debian Squeeze Security deb http://security.debian.org/ squeeze/updates main 3. Upgrade your [...]
Install VirtualBox 4.0 on Ubuntu / Debian
1. Add new software repository Edit the file ”/etc/apt/sources.list” with your favorite editor and add the following line depending on your Ubuntu version: Ubuntu 10.10 (Maverick Meerkat) deb http://download.virtualbox.org/virtualbox/debian maverick contrib Ubuntu 10.04 (Lucid Lynx LTS) deb http://download.virtualbox.org/virtualbox/debian lucid contrib Ubuntu 9.10 (Jaunty Jackalope) deb http://download.virtualbox.org/virtualbox/debian karmic contrib 2. Add the GPG-Key wget [...]
Install Tomcat 7 on Debian (Lenny) with virtual hosts and Apache2 integration
This article is a new version of my Apache Tomcat 6 article. This article describes how to install Apache Tomcat 7 on Debian Lenny, Apache2 integration and virtual hosts. Tocat 7 is not available over the regular sources on Debain Lenny (and Etch) it need to be installed by hand. Tomcat 7 is still BETA. [...]

