Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff

Language: German English

Novell Groupwise Messenger Client 2.2 on Ubuntu 11.10 Oneiric Ocelot or 12.04 Precise Pangolin 64-Bit

Installing Groupwise Messenger Client 2.2 on Ubuntu 11.10 Oneiric Ocelot or 12.04 Precise Pangolin 64-Bit.

Downloads

Download the Groupwise Messenger Client 2.2 from Novell: http://gwclient.provo.novell.com

Download Java JRE (jre-7u3-linux-i586.tar.gz) from Oracle: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Install Alien and required packets

aptitude install alien ia32-libs libstdc++5 libgnome2-0

Extract JRE

cd Downloads
tar vfx jre-7u3-linux-i586.tar.gz

Extract the RPM-Packet

alien --generate --scripts novell-messenger-client-2.2.0-20101111.i586.rpm

Change architectureArchitektur ändern

cd novell-messenger-client-2.2.0
vi debian/control

Replace

Architecture: i386

with

Architecture: amd64

Replace JAVA

rm opt/novell/messenger/client/jre -R
mv ../jre1.7.0_03 opt/novell/messenger/client/jre

Create Packet

Just type:

debian/rules binary

in your terminal to create the new DEP-Packet.

Note: You can ignore the warnings during this process.

Install

dpkg -i ../novell-messenger-client_2.2.0-20101112_amd64.deb

Links

http://ubuntuforums.org/showthread.php?t=776045

http://gwclient.provo.novell.com

Comments: 0 | Read Comments | Write a Comment |

Novell Groupwise 8 Ubuntu 11.10 Oneiric Ocelot or 12.04 Precise Pangolin 64-Bit

Update: Add Ubuntu 12.04 support

Installing Novell Groupwise 8 on Ubuntu 11.10 Oneiric Ocelot or 12.04 Precise Pangolin 64-Bit.

Downloads

Download the Groupwise 8 Linux Client Tarball from Novell: http://gwclient.provo.novell.com

Download Java JRE (jre-7u3-linux-i586.tar.gz) from Oracle: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Install Alien and required packets

aptitude install alien ia32-libs libstdc++5 libgnome2-0

Extract JRE

cd Downloads
tar vfx jre-7u3-linux-i586.tar.gz

Extract Groupwise

tar vfx gw802_hp3_client_linux_multi.tar.gz
cd gw8.0.2-96933_client_linux_multi/

Extract the RPM-Packet

alien --generate --scripts novell-groupwise-client-8.0.2-96933.i586.rpm

Change architectureArchitektur ändern

cd novell-groupwise-client-8.0.2
vi debian/control

Replace

Architecture: i386

with

Architecture: amd64

Replace JAVA

rm opt/novell/groupwise/client/java -R
mv ../../jre1.7.0_03 opt/novell/groupwise/client/java

Create Packet

Just type:

debian/rules binary

in your terminal to create the new DEP-Packet.

Note: You can ignore the warnings during this process.

Install

dpkg -i ../novell-groupwise-client_8.0.2-96934_amd64.deb

Comments: 7 | Read Comments | Write a Comment |

Racktables custom report

Two custom reports for Racktables to list physical servers and virtual machines.

Just download it here: Racktables Extension (182.92 kB)

Move folder “extensions” into the racktables “wwwroot” folder and create or modify “local.php” in the “inc” folder with the following content:

# Load server report
require_once "extensions/reports/server-report.php";

# Load virtual machine report
require_once "extensions/reports/vm-report.php";

Login into racktables and go to “Reports”.

Now you find “Server” and “Virtual machines” in the report menu.

Screenshots:

Note: Sort multiple columns simultaneously by holding down the shift key and clicking a second, third or even fourth column header!

Comments: 5 | Read Comments | Write a Comment |

Install Ubuntu on DELL Latitude ST Tablet

NOTE: It’s all testing and not stable! Try at your own risk!

Attention:
The GMA600 graphic hardware acceleration is not working !

dscn2958

1. Install

You need USB-Hub, USB-Keyboard and an USB-Stick.

1.1 Download Ubuntu

First download the latest Ubuntu release (currently Ubuntu 12.04 Alpha 2).

Download Daily Build

Choose ‘precise-desktop-i386.iso’ and download this ISO.

Note: You need Ubuntu 12.04, because the Psb_gfx drivers are already integrated in this version.

1.2 Create Ubuntu USB-Installer

Create an bootable USB-Installer with this ISO. Create USB Installer HowTo or this: USB Creator.

1.3 Start install

Connect USB-Hub to your tablet and the USB-Keyboard with the USB-Installer.

Now boot and press “F12″ and boot from the USB-Stick.

Install Ubuntu as you like (or use the live system).

2. Images

3. Known problems

3.1 WLAN not working

It is an ‘Atheros Wireless WLAN BT 1535C Half MiniCard’.

The chip of this WLAN card is: “Atheros AR6x02/AR6003 NWF WLAN”.

http://wireless.kernel.org/en/users/Drivers/ath6kl

Thanks to Patrick and kvalo i get the card to work:

rmmod sdhci_pci
rmmod sdhci
modprobe sdhci debug_quirks=0x2
modprobe sdhci_pci

To enable it on startup edit “/etc/default/grub” and change “GRUB_CMDLINE_LINUX_DEFAULT” to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash sdhci.debug_quirks=0x20"

And run:

update-grub
3.2 X Server not working

Try:

modprobe psb_gfx
/etc/init.d/lightdm restart

4. Links:

Hardware Support Components Video Cards Poulsbo
Get the Best Performace from the GMA 500
GMA500 Ubuntuusers
GMA500 psb_gfx
Dell Latitude ST
Ubuntu Daily Build
Linux Wireless ath6kl Driver

Please send me response how it works with your tablet.

Comments: 19 | Read Comments | Write a Comment |

Install Foswiki on Ubuntu with Nginx

The server

I start with a default installation of Ubuntu server (11.10 in this Howto).

Install Nginx

Install software to add PPA:

aptitude install python-software-properties

Add Nginx PPA:

nginx=stable # use nginx=development for latest development version
add-apt-repository ppa:nginx/$nginx

Install Ngnix:

aptitude update
aptitude install nginx

See Nginx install Ubuntu PPA for more details.

FastCGI

Now install FastCGI for Nginx:

aptitude install fcgiwrap spawn-fcgi

See Linode perl-fastcgi on Ubuntu

Install Foswiki

wget http://sourceforge.net/projects/foswiki/files/foswiki/1.1.4/Foswiki-1.1.4.tgz
mkdir /var/www
tar vfx Foswiki-1.1.4.tgz
mv Foswiki-1.1.4 /var/www/foswiki
chown www-data:www-data /var/www -R

Install required packets for Foswiki

aptitude install rcs libarchive-tar-perl libarchive-zip-perl libcgi-session-perl \
libdigest-sha-perl libdigest-sha1-perl libhtml-entities-numbered-perl \
libhtml-parser-perl libhtml-tree-perl

Configure Ngnix

Remove the ‘default’ site configuration by deleting the symlink:

rm /etc/nginx/sites-enabled/default

Create ‘/etc/nginx/sites-available/foswiki.conf’ with this content:

server {
    listen       80;
    server_name  foswikiserver;

    set $foswiki_root "/var/www/foswiki";
    root $foswiki_root; 

    location / {
        root $foswiki_root;
        index index.html;
    }

    location /bin/configure {
        allow 127.0.0.1;
        allow YOUR_IP_HERE_!!!;
        deny all;
        gzip off;
        fastcgi_pass unix:/var/run/fcgiwrap.socket;
        fastcgi_split_path_info ^/foswiki(/bin/configure)(?:\.pl)?(.*);
        fastcgi_param  SCRIPT_FILENAME  $foswiki_root$fastcgi_script_name;
        fastcgi_param  PATH_INFO $fastcgi_path_info;
        include fastcgi_params;
    }
}

Note: Replace “YOUR_IP_HERE_!!!” with the IP-Address of your workstation to allow you the access to the configuration page.

Now enable the new site:

ln -s /etc/nginx/sites-available/foswiki.conf /etc/nginx/sites-enabled/

Restart Ngnix:

service nginx restart

Note: My Foswiki server called ‘foswikiserver’ you have to replace this with your Domainname like ‘www.myfoswiki.com’.

Configure Foswiki

Now open ‘http://foswikiserver’ in your browser:

Select ‘Configure Foswiki’ and make your configuration settings.

Now go to ‘Extensions’ and select ‘Install and Update Extensions’.

Search the ‘FastCGIEngineContrib’ Extension and install it.

More informations see: Foswiki configuration on Nginx

Configure Foswiki FastCGI

Install the requires package:

aptitude install libfcgi-perl

Now create a small upstart script to run foswiki FastCGI.

Create ‘/etc/init/foswiki.conf’:

# Foswiki - Service Upstart script #

description "foswiki"
author "Mogilowski Sebastian"

start on started networking
stop on runlevel [!2345]

env FOSHOMEDIR=/var/www/foswiki
env FOSSOCKDIR=/var/run/nginx
env FOSUSER=www-data
env FOSGROUP=www-data
env NUMCHILDS=25

respawn

pre-start script
    chdir $FOSHOMEDIR/bin
    mkdir $FOSSOCKDIR                              ||true
    chown $FOSUSER:$FOSGROUP $FOSSOCKDIR           ||true
    chmod 0755 $FOSSOCKDIR                         ||true
end script

script
  cd $FOSHOMEDIR/bin

  exec su -s /bin/sh -c 'exec "$0" "$@"' -- $FOSUSER ./foswiki.fcgi -n $NUMCHILDS -l $FOSSOCKDIR/foswiki.sock

end script

Now you can start the foswiki service:

service foswiki start

Now extend the Ngnix configuration ‘/etc/nginx/sites-available/foswiki.conf’

server {
    listen       80;
    server_name  foswikiserver;

    set $foswiki_root "/var/www/foswiki";
    root $foswiki_root; 

    location / {
        root $foswiki_root;
	rewrite ^/?$ http://foswikiserver/bin/view.pl/Main permanent;
    }

    location /bin/configure {
        allow 127.0.0.1; # localhost, you may want to omit due to security considerations.
        allow YOUR_IP_HERE_!!!;
        deny all;
        gzip off;
        fastcgi_pass unix:/var/run/fcgiwrap.socket;
        fastcgi_split_path_info ^/foswiki(/bin/configure)(?:\.pl)?(.*);
        fastcgi_param  SCRIPT_FILENAME  $foswiki_root$fastcgi_script_name;
        fastcgi_param  PATH_INFO $fastcgi_path_info;
        include fastcgi_params;
    }

    location /bin/ {
           gzip off;
           fastcgi_pass             unix:/var/run/nginx/foswiki.sock;
           fastcgi_split_path_info  ^(/bin/\w+)(.*);
           fastcgi_param            SCRIPT_FILENAME $foswiki_root/$fastcgi_script_name;
           fastcgi_param            PATH_INFO       $fastcgi_path_info;
           fastcgi_param            SCRIPT_NAME     $fastcgi_script_name;
           include fastcgi_params;
       }

    location ~ (^/lib|^/data|^/locale|^/templates|^/tools|^/work) {
        deny all;
    }

    if ($http_user_agent ~ ^SiteSucker|^iGetter|^larbin|^LeechGet|^RealDownload|^Teleport|^Webwhacker|^WebDevil|^Webzip|^Attache|^SiteSnagger|^WX_mail|^EmailCollector|^WhoWhere|^Roverbot|^ActiveAgent|^EmailSiphon|^CrownPeak-HttpAgent|^$) {
        rewrite .* /404.html break;
   }
}

Note: Remember to replace “YOUR_IP_HERE_!!!” with the IP-Address of your workstation to allow you the access to the configuration page and to replace ‘foswikiserver’ with your servername.

Last step is to reload Nginx webserver:

service nginx reload

Open foswiki in your browser with ‘http://foswikiserver’

Links:

* foswiki.org
* nginx.org
* Foswiki configuration on Nginx
* Perl FastCGI on Ubuntu
* Install Ubuntu_PPA
* Foswiki FastCGIEngineContrib Extension
* Running upstart jobs as unprivileged users
* Upstart Intro, Cookbook and Best Practises

Comments: 0 | Read Comments | Write a Comment |

Xen FileSystem Performance Test

Testing XenServer filesystem performance on plain hardware and the difference between EXT and LVM.

How To Change the Default Storage Repository to EXT3


Hardware

IBM Blade HS21
2x Intel(R) Xeon(R) CPU E5540  @ 2.53GHz
16 GB RAM
LSI SAS 1064 with 2 SAS Disc with Raid 1

Software

XenServer 5.6 SP2

Virtual Machines

Ubuntu VMs (64-Bit) with latest XenTools installed (1 CPU per VM and 1024 MB RAM)

Testsoftware

bonnie++

(More Informations)

The Test

I run every test 3 times and used only the last two results. For example with 3 virtual machines i run bonnie++ 3 times on every virtual machine at the same time and stored the last 2 results of every virtual machine. (values tab in the table) I sum this 6 results and than divide it by 6. (summary tab in the table).

Download the OpenOffice table here: Xen Performance Test (303.59 kB)

Note: The data shows only the values for a single virtual maschine. For example the CPU Usage on the last tab in the table shows the CPU Usage of ONE virtual machine. (Multiplicate it with the amount of virtual machines and the difference between PLAIN is the virtualization overhead).

My result is, that there is no performance difference between LVM and EXT filesystem on the XenServer storage repository. But with EXT you can give the virtual maschines more storage as you physically have in your server.

Example:
overview

Comments: 0 | Read Comments | Write a Comment |

New year new theme

Happy new year !

A new theme is online.
It’s a modified version of black-with-orange.

Now with a little bit more colors and more cats.

I hope everything works for you. If not please let me know !

Comments: 0 | Read Comments | Write a Comment |

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\]\$ '

Note: For this change to take effect, you must log out then log in again.

Debian (older versions)

Green Prompt for your user

Open ”~/.bashrc” and append:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

Red Prompt for root

Edit ”/root/.bashrc” and append:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$ '

Other colors

Color	Code
Black	30
Blue	34
Green	32
Cyan	36
Red	31
Purple	35
Brown	33
Blue	34
Green	32
Cyan	36
Red	31
Purple	35
Brown	33
Comments: 0 | Read Comments | Write a Comment |

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		* Gentoo
* Arch Linux		* MEPIS
* Damn Small Linux	* Zenwalk
* SliTaz		* Slax
* Puppy Linux		* Dreamlinux
* gNewSense		* Elive
* FreeBSD		* CentOD
* NetBSD		* Mandravia
* Frugalware Linux	* xPUD

System utilities

* Parted Magic
* SystemRescueCD
* Super Grub Disk
* Dr. Web Antivirus
* F-Secure Rescue CD
* Kaspersky Rescue Disk
* Backtrack
* Ophcrack
* NTPasswd
* Gujin
* Smart Boot Manager
* FreeDos

1. Installation

aptitude install unetbootin

2. Create Live USB Stick

Open UNetbootin from your start menue:

llcd1

Select Distribution and Version with the Selectbox on the top. I choose Ubuntu 11.10 for example.

llcd2

Make sure you have selected the correct USB-Drive at the bottom of the window.

llcd3

UNetbootin now download the selected Operating System and install it on the Stick.

llcd4llcd5llcd6llcd7

3. Boot from USB

Unmount the stick and reboot your system. Make sure you are booting from USB-Drive.

llcd8llcd9llcd10

Note: UNetbootin is available for Linux, Windows and MacOS !

4. Links

* http://unetbootin.sourceforge.net

Comments: 0 | Read Comments | Write a Comment |

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 /dev/mapper/crypt_USB
mount /dev/mapper/crypt_USB /mnt

Remove the drive:

umount /dev/mapper/crypt_extern
cryptsetup luksClose crypt_extern
1.3 Mount cryptsetup:

Now reattach the stick. Ubuntu ask you for the password (LUKS passphrase) you choose and mount the crypted partition.Nun den Stick wieder einstecken. Ubuntu fragt nun nach dem Passwort (LUKS passphrase) welches man vorher festgelegt hat und mountet die verschlüsselte Partition

luks_passphrase1

Note: “/dev/usb1″ is may be different on your System.

2. Use TrueCrypt

2.1 Installation:

Download tar.gz from truecrypt.org

Extract and run setup script:

tar vfx truecrypt-7.1-linux-x64.tar.gz

./truecrypt-7.1-setup-x64

Select “Install TrueCrypt” and accept the licence terms.

tc1tc2

Press enter to exit the setup tool.

tc3

2.2 Setup TrueCrypt Volume

Run TrueCrypt from your Start Menu and select “Create Volume” now choose “Create a volume with a partition/drive” and press “Next”.

tc4tc5

Choose “Standard TrueCrypt volume” select a Volume and select your preferred encryption options:

tc6tc7tc8

Now enter a password for your usb stick, enable the large file support and select the filesystem type. (I take ext4)

tc9tc10tc11

If you want to use your usb stick on other operating system than linux you can enable the cross-platform support. But you have to choose a filesystem type which windows and/or macos understand in the previous step.

tc12

Now make some random moves with your mouse and select “Format”. (This will take a few minutes)

tc13tc14

2.3 Mounten:

Run TrueCrypt from your Start Menu.

“Select Device” and select your TrueCrypt Partition:

tc15

Press “Mount” and enter your password.

tc16

Device “truecrypt1″ is now mounted on your system and ready to use.

3. Links:

* http://www.selbstdatenschutz.info/linux/externe_datentraeger_verschluesseln

* http://wiki.ubuntuusers.de/truecryptn

Comments: 0 | Read Comments | Write a Comment |

Previous Posts