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.
Post a Comment

Popular posts from this blog

How to install Cura 2.X on Ubuntu 17.04

How to install Cura 2.X on Ubuntu

Cura is not available on ubuntu Repositories on version 17.10.

The resolution: To fix this issue you will need to install a PPA repository.

How to get this archive working properly is found here https://launchpad.net/~thopiekar/+archive/ubuntu/cura

rm -f ~/.config/cura/*
rm -f ~/.local/cura/*
sudo add-apt-repository ppa:thopiekar/cura
sudo apt-get update
sudo apt install cura cura-plugins-all cura-extra-plugins-all


Ubuntu GNOME 16.04 running on Yoga Pro 2 with HiDPI and touch screen support

Ubuntu GNOME 16.04 running on Yoga Pro 2 with HiDPI and touch screen support






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

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

Ubuntu 16.04 is not released yet, the screen shoots are from a daily build, 16.04 it is scheduled to be released in Q2 2016.
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, but sometimes screen does not rotate, I'm still trying to figure out what is wrong.
Yoga Keys boot key
F12 - Boot menu to select booting from usb drive
F2 - Bios Menu

Power down the co…

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…