Ubuntu Gutsy advanced stuff for Entreprise Software

This tutorial describes some advanced configuration for enterprise wireless network that is required for the place I work, and how to add some RPM compatibility to Ubuntu/Kubuntu systems.

TN3270 Emulation

Install this package as a replacement for TN3270 emulation in IBM Personal Communications

sudo apt-get install x3270

Bash (K|X|Ed)ubuntu Fix
As from Feisty Fawn (7.04) the default shell is Dash, not Bash. This can cause problems with installing things like IBM Websphere. To change back to Bash, perform the following commands: In the dialog select "No" to switch to the bash or select "Yes" to switch to the dash.

sudo dpkg-reconfigure dash
IBM DB2 UDB Database

Install
sudo dpkg-reconfigure alien
In general for IBM products you should also perform the steps on section:

* Bash (K|X|Ed)ubuntu Fix
* Installing on (K|X|Ed)ubuntu using RPM
of this tutorial.

To install DB2 UDB database on a ubuntu system read the official tutorial on The Linux Documentation Project web site. http://tldp.org/HOWTO/DB2-HOWTO/index.html

Enterprise Wireless in Gutsy

LEAP Authentication in wireless
Both (K|X|Ed)ubuntu Gutsy network manager and knetworkmanager support LEAP.

802.1x (EAP_TLS) Authentication in wireless
Ubuntu Gutsy network manager and knetworkmanager do not support 802.1x (EAP_TLS).

* Get your own PKI Digital Certificate
* Request an 802.1x (EAP_TLS) Wireless Client ID
This method allows you to connect to the enterprise network using userid + a certificate.

802.1x (EAP_TLS) - How to connect to EAP_TLS wireless
Since network manager or knetwork manager GUI does not support EAP_TLS auth mechanism, you can only connect to the network using the command line wpa_supplicant.

create file ~/tools/work_wireless/wpa_supplicant_work.conf
# ap_scan set to 2 is very important to make the wireless work in EAP_TLS environment
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=2
update_config=1
fast_reauth=1
network={
ssid="WORK_SSID"
scan_ssid=1
key_mgmt=IEEE8021X
eap=TLS
identity="USERID"
private_key="PATH_TO_CERTIFICATE_FILE"
private_key_passwd="CERTIFICATE_PASSWD"
}
create file ~/tools/work_wireless/enable_work_wireless.sh

# make sure you only have one wpa_supplicant and one dhclient process per device
# some times you need to start it twice
sudo wpa_cli terminate
sleep 1
sudo ifconfig ath0 down
sudo ifconfig eth0 down
sudo killall wpa_supplicant
sudo killall dhclient3 dhclient
sleep 1
sudo wpa_supplicant -c${HOME}/tools/ibm_wireless/wpa_supplicant_ibm.conf -Bw -Dwext -iath0
sleep 1
sudo dhclient ath0
run the shell file when ever you need to connect to work wireless.

Command line Wireless tools

To help figuring out what auth is support on your site
# list your ap and display auth info
iwlist scan
# For logs I usually kill NetworkManager and then run:
sudo NetworkManager --no-daemon
# Or
sudo NetworkManager --no-daemon > filename 2>&1
Development tools

# minimal dev stuff
sudo apt-get install build-essential devscripts fakeroot pbuilder
#C/C++/Shell KDE KDevelop IDE
sudo apt-get install build-essential kdevelop graphviz-cairo doxygen doxygen-doc cpp-doc c++-annotations gcc-doc glibc-doc libstdc++6-doc make-doc m4-doc stl-manual htdig htdig-doc gettext sgmltools-lite kbabel exuberant-ctags khelpcenter ark autoconf automake libtool kdevelop-doc cmake konsole ruby python alleyoop kcachegrind kcachegrind-converters kprof valgrind


Example how to build a deb package from source Add the source feeds using the adept GUI

sudo apt-get source knetworkmanager
sudo apt-get build-dep knetworkmanager
# include debug info in the binary
export DEB_BUILD_OPTIONS=nostrip
cd knetworkmanager-0.2ubuntu1
# build
sudo debuild
# lets you rebuild without starting all over, (no clean).
sudo debuild -nc
cd ..
sudo dpkg -i network-manager-kde_0.2ubuntu1-0ubuntu1_i386.deb


Installing on Ubuntu using RPM


Introduction

In Ubuntu is very easy add support for RPMs. The pre-reqs are required by IBM linux software, and probably other Redhat/Suse rpms.

Pre Reqs

# ***************************************************************************************
# The packages below install pre-reqs necessary for the common IBM rpms:
# python, perl, glade.so, pango.so, libstdc++.so.5, libXm.so.3
# ***************************************************************************************
# Gutsy
sudo apt-get install rpm
sudo apt-get install libfreetype6
sudo apt-get install python2.4-glade2
sudo apt-get install python2.4-gtk2
sudo apt-get install libstdc++5
sudo apt-get install libglade-gnome0
sudo apt-get install lesstif2
sudo apt-get install libmotif3 libmotif-dev
Install
sudo mkdir /var/lib/rpm
sudo rpmdb --initdb

# use rpm -iv to install a rpm
# use rpm -ev package to remove a rpm
# use rpm -qa to list all installed RPMs
# use rpm -ev package to remove a rpm

How to fix a xorg configuration
# Reply to all the questions
sudo dpkg-reconfigure xserver-xorg

# automatic
sudo dpkg-reconfigure -phigh xserver-xorg


Warning :)

I use these posts for self reference, so these tutorials might not be easy to follow.

Comments