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

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.

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
create file ~/tools/work_wireless/

# 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


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,,,,
# ***************************************************************************************
# 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
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…

Chrome OS advanced commands, settings, expert features

Chrome OS advanced commands, settings, expert features All features described here where tested on a Asus C302 Chromebook, but should work on all Chromebooks, screenshots are from the Asus C302.
Recovery Install new factory image for your chrome book

Perform a Hard Reset Go to settings select the reset section, you can do a reset or a powerwash.

Force-Boot Into Recovery Mode If you’d like to reinstall Chrome OS and you don’t see the “Chrome OS is missing or damaged” message on your screen, you can force your Chromebook to boot into recovery mode.

First, turn off your Chromebook. Next, press Esc + Refresh on the keyboard and hold down the Power button. Your Chromebook will boot straight to recovery mode.

Enable Canary First, turn off your Chromebook. Press Esc+Refresh+Power and, when the recovery prompt appears, press Ctrl+D and accept the prompt that appears to disable boot verification. When the Chromebook reboots, press Ctrl…

Ubuntu GNOME 17.04 running with HiDPI and touch screen support

Ubuntu GNOME 17.04 running with HiDPI and touch screen support

See my previous post on how to install Ubuntu on Yoga Pro 2 for Ubuntu GNOME 16.10.

I think Ubuntu GNOME is the best flavor of Ubuntu if you are running in HiDPI mode 3200x1800. All screen captured images are at HiDPI resolution.
Touch support Ubuntu gnome support for touch screen is pretty good on the desktop shell.
Chrome browser supports touch screen very well and much better than Firefox without any plug-ins.
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 the keyboard when the yoga is used as a tablet, side lock rotation button works to lock the screen in a certain rotation.

 What works Almost everything works great out of the box, there isn't many changes you need to do.
UbuntuGnome ships with gnome 3.24 and will boot with full resolution HiDPI and touch screen support enabled
Screen HiDPI supportBrightness, resolution keys, o…