Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff

Language: German English

ubuntu

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\]\$ ‘ [...]

,

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 [...]

, ,

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 [...]

, , ,

Nagios 3 with Nginx on Ubuntu Server

1. Install Nagios 3 aptitude install nagios3 2. Test Nagios Installation Open “http://SERVER/nagios3/” in your browser. Login with user “nagiosadmin” and the passwort you have entered during the installation. 3. Switch from Apache to Nginx Nagios has dependencies to the Apache webserver. So Apache was installed with Nagios. Now we replace it with Nginx. 3.1 [...]

, ,

Install Gnome3 on Ubuntu 11.04 Natty or Ubuntu 10.10 Maverick

Run the following commands in your terminal: On Ubuntu 11.04: add-apt-repository ppa:gnome3-team/gnome3 aptitude update aptitude dist-upgrade aptitude install gnome-shell On Ubuntu 10.10: add-apt-repository ppa:ubuntu-desktop/gnome3-builds aptitude update aptitude install gnome3-session Note: This repository is outdated ! Lock out and back in, after completing the installation. (Choose Gnome3) Remove: aptitude install ppa-purge ppa-purge ppa:gnome3-team/gnome3 Links: * http://www.gnome.org [...]

, ,

Ubuntu Lucid on XenServer 5.6 FP1

Describes howto install Ubuntu Lucid 10.04 LTS (32-Bit or 64-Bit) on a Citrix XenServer 5.6 FP1 and convert the virtual machine into a template. Note: Click to enlarge a picture. 1. Create a new virtual machine Select template “Ubuntu Lucid Lynx 10.04 (64-bit)” and choose name and description for your virtual machine (or 32-Bit if [...]

, , , ,

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: [...]

, , , ,

Puppet Dashboard / Reports – Ubuntu

Puppet reports with “Puppet Dashboard“: Installation: Add the following lines to your “/etc/apt/sources.list” file: deb http://apt.puppetlabs.com/ubuntu lucid main deb-src http://apt.puppetlabs.com/ubuntu lucid main Run aptitude update to updates your packet list. If you get an “GPG error” because the public key is not available than add the Puppet Labs repository key to APT. (NO_PUBKEY 1054B7A24BD6EC30) run: [...]

, , ,

Previous Posts