Andre Broers’ personal blog

February 20, 2008

Install sun jdk 6 on ubuntu gutsy

Filed under: java, linux, ubuntu — Tags: , , — broersa @ 1:33 pm

Use the following to install the sun java developers kit on ubuntu gutsy:

sudo apt-get install sun-java6-jdk sun-java6-plugin sun-java6-fonts
sudo update-java-alternatives –set java-6-sun

February 18, 2008

Install Wine in Ubuntu Gutsy

Filed under: linux, ubuntu — Tags: , , — broersa @ 8:11 pm

[update]

I think this this blog item is outdated and there is another way to install wine. Please “google” to another installation instruction.

[/update] 

 

First add the repository to ubuntu:

sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/gutsy-winehq.list

Than add the key:

wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

Than update the repository:

sudo apt-get update

Than install wine:

sudo apt-get install wine

Install the medibuntu repository

Filed under: linux, ubuntu — broersa @ 7:47 pm

 I copied a snipped from the medibuntu website to explain what it is and how to add the repository to the sources.list. See this link to get the whole page:

https://help.ubuntu.com/community/Medibuntu

Introduction

[WWW] Medibuntu (Multimedia, Entertainment & Distractions In Ubuntu) is a repository of packages that cannot be included into the Ubuntu distribution for legal reasons (copyright, license, patent, etc).

Some of these packages include the [WWW] libdvdcss package from [WWW] VideoLAN and the external binary codecs package (commonly known as w32codecs) used by [WWW] MPlayer and [WWW] xine.

Install in Gutsy

  • Ubuntu 7.10 “Gutsy Gibbon”:
    sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list
  • Then, add the GPG Key:
    wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update

Ubuntu Gutsy Radeon Dual Head

Filed under: linux, ubuntu — broersa @ 7:31 pm

I have a radeon 7000 ve card with two lcd monitors with a resolution of 1024×768. To get them working in Gutsy I added the following Virtual line in the Screen section of my /etc/X11/xorg.conf:

Section "Screen"
        Identifier      "Default Screen"
        Device          "ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE]"
        Monitor         "C384FA-M"
        DefaultDepth    24
        SubSection "Display"
                Virtual         2048 768
                Modes           "1024x768" "800x600" "640x640"
        EndSubSection
EndSection

After a logout / login I give the command:

xrandr --output DVI-0 --right-of VGA-0

Now the display is in dual head mode. Because the total display size of the radeon7000/ve card is smaller than the 2048×768 virtual desktop the right side of the desktop isn’t refreshed. I had a work around by opening a permanent firefox browser on my right monitor.

When you put the xrandr statement in the .profile the dual head is always enabled when you log on.

January 28, 2008

Create OC4J 11 client environment

Filed under: 11g, linux, oc4j — broersa @ 6:40 pm

After some new installs over here I have a new Oracle VMware server based on Centos 5. I installed the oc4j 11 standalone server as the oracle user. This article describes how to create a client environment to build applications and deploy them to the remote oc4j.

I installed under root the package ant ( yum install ant ).

I installed under root the latest jdk in /usr/local (jdk-6u4-linux-i586.bin)

I added the JAVA_HOME to my .bash_profile

I added the $JAVA_HOME/bin to my PATH in the .bash_profile (in front of the rest)

In my home dir I created a directory oc4j_client_11110_preview in which I unzipped the oc4j_client_11110_preview.zip.

I added the OC4J_HOME to my .bash_profile

In my home dir I created a directory toplink_11.1.1.0_071214_preview-3 in which I unzipped the toplink_11.1.1.0_071214_preview-3.zip.

I added the TOPLINK_HOME to my .bash_profile

In my home dir I created a directory oc4j_admin_client_11110_preview in which I unzipped the oc4j_admin_client_11110_preview.zip.

I added the OC4J_ADMIN to my .bash_profile

In my home dir I created a directory myclasses wherin I downloaded ojdbc6.jar from Oracle JDBC download page.

now I have the needed jar libraries.

January 11, 2008

Installing Flash in Ubuntu Gutsy

Filed under: linux, ubuntu — broersa @ 7:12 pm

Due to a bug#173890 it is not possible to install the flash player. A new package can be obtained from :

http://launchpadlibrarian.net/10761023/flashplugin-nonfree_9.0.115.0ubuntu2_i386.deb

usb wireless md40900 dongle on ubuntu gutsy with WPA2

Filed under: linux, ubuntu, usb, wireless — broersa @ 9:23 am

After installing ubuntu gutsy I discovered that my usb wireless wasn’t working. I solved the problem with the following steps:

first download the windows driver from www.medion.de  :

http://www1.medion.de/site/service_~u~_support/treiber_~u~_updates/?op=detail&id=1853&type=treiber&lang=de

extract the driver and put it on a memory stick. When the downloaded exe is started it will extract the drivers to c:\Medion . Copy the c:\Medion\Driver directory including 4 files on the memory stick. The files should start with WlanUIG.* .

Now install the software:

sudo apt-get install ndiswrapper-common
sudo apt-get install –force-yes ndiswrapper-util

add the following lines to /etc/modprobe.d/blacklist because these drivers won’t work:


blacklist islsm_pci
blacklist islsm
blacklist islsm_usb
blacklist prism2_usb
blacklist rtl8187
blacklist r8187b
blacklist r8187
blacklist prism54usb
blacklist prism54pci
blacklist p54usb
blacklist p54pci

Now it is time to install the ndis drivers. Insert the memorystick in the machine. It will be mounted on /media/disk1 in my situation. cd to the directory /media/disk1/Driver and issue the following statements:

sudo ndiswrapper -i WlanUIG.inf
sudo ndiswrapper -l

wlanuig : driver installed
device (0CDE:0006) present (alternate driver: p54usb)

sudo modprobe ndiswrapper
dmesg
[   63.799356] ndiswrapper version 1.45 loaded (smp=yes)
[   63.926769] usb 5-3.4: reset high speed USB device using ehci_hcd and address 6
[   64.047713] ndiswrapper: driver wlanuig (,11/15/2004, 3.03.13.0) loaded
[   65.846130] wlan0: ethernet device 00:60:b3:b3:0a:78 using NDIS driver: wlanuig, version: 0×3030d, NDIS version: 0×501, vendor: ‘NB 802.11g Wireless LAN USB Adapter(3886)’, 0CDE:0006.F.conf
[   65.846188] wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
[   65.846231] usbcore: registered new interface driver ndiswrapper

sudo ndiswrapper -m        //this will load the ndiswrapper module at startup.

Now it is time to configure the new wlan0 interface with the network-admin application in the Ubuntu GUI.

After all the parameter are set your /etc/network/interfaces file should look like this:


auto lo
iface lo inet loopback

iface wlan0 inet dhcp
wireless-essid <your ssid>   #this line I had to add due to a Bug#403316
wpa-psk <your key>
wpa-driver wext
wpa-key-mgmt WPA-PSK
wpa-proto WPA2
wpa-ssid <your ssid>

auto wlan0

I had to add one line the interfaces file manually.

after this I issued a:
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start

And my wireless usb dongle does the job. (After a reboot it comes up automatic)

Blog at WordPress.com.