Skip to main content

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.

Popular posts from this blog

Ubuntu 17.10 running on Lenovo Yoga 920 with HiDPI and touch screen support

I resized the windows partiton to the minimun necessary (100G), disabled secure boot and I also remove bitlocker key encryption on windows drive, this allows Ubuntu to see that partition and allow windows to boot with secure boot disabled, without complaning.

This makes everything go easier if you want to keep windows arround on the same disk and dual boot with Ubuntu, you should do this it helps a lot. Even after you disable this, you can re-enable it back, both secure boot and bitlocker key encryption.

Before installing on windows updates resize your windows partition, installing all windows updates will not alow you to gain as much space as possible. After resizing the windows partition to the minimium size you want, install all windows updates, bios and driver updates.

I upgraded all windows updates to the latest version and all drivers to the latest version and upgraded the bios on windows to the latest version before installing Ubuntu, I don't think this makes much differenc…

Ubuntu 17.10 review. Running with hidpi, touch screen and wayland support

Ubuntu GNOME 17.10

I think Ubuntu GNOME is the best flavor of Ubuntu if you are running in HiDPI mode 3200x1800 with a touchscreen. All screen captured images are at HiDPI resolution.

Since I prefer the standard gnome-session experience, I installed the "gnome-session" package and rebooted the system. And on the cog icon next to the sign in button, select the "GNOME" instead of ''Ubuntu" option before clicking the sign in button.

sudo apt install gnome-session

Touchpad
I increased the speed, enabled "tap to click", "two finger scrooling". and on gnome-tweak enabled click method to "fingers".
Touch support Ubuntu gnome support for touchscreen is pretty good on the desktop.
Chromium browser supports touch screen very well and much better than Firefox without any plug-ins.
In my Yoga pro 2, the windows key on the screen panel works as the windows key on the keyboard.
Screen rotation is supported on the new gnome and disables …

Using a socks proxy

#ssh to a machine on the network you need access and start # a local socks server ssh -D 9999 httpserver.blah.com
# setweb browser proxy to proxy: localhost:9999
# To use other apps with socks install sudo apt-get install tsocks
# Change config file to (remove everything else) /etc/tsocks.conf server = 127.0.0.1 server_port = 9999
# ssh to a machine tsocks ssh -X httpserver.blah.com
# eclipse to a machine tsocks eclipse
reference: using tsocks for tunneling cmds lines and everything else http://www.plenz.com/tunnel-everything