Archive for the 'Ubuntu' Category

static IP address

# /etc/network/interfaces — configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card – this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0

iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

To restart networking:
/etc/init.d/networking restart

Managing my Dell DJ with Ubuntu / gnomad2

Gnomad 2 does an awesome job managing my Dell DJ… Its a very simple program which gets the job done with no fluff and what not…

awesome program…

just wanted to post that before i get back to workin on this homework…

Later,
J!

Microsoft Intellimouse Explorer setup

Here is how to set up your intelliexplorer mouse from microsoft in ubuntu so that the thumb buttons work like they do in windows… This has been discovered from this website…


cat /proc/bus/input/devices # find which event the mouse is on
sudo gedit /etc/X11/xorg.conf

After the existing inputdevices section add this:

Section "InputDevice"
Identifier "Microsoft Intellimouse"
Driver "evdev"
Option "Device" "/dev/input/event3"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7 5 4"
Option "Emulate3Buttons" "no"
EndSection

Note: replace the bold event3 with the even found in the first step

Now add this above the mice in the serverlayout section:
InputDevice "Microsoft Intellimouse" "CorePointer"

sudo apt-get install imwheel #installs imwheel...

Add the following command to your startup commands in the sessions manager…

imwheel -k -b "89"

Multiple monitor setup in Ubuntu Dapper

Finally got around to setting up multiple monitors in Ubuntu… it turned out to be quite simple actually…

I installed the drivers for the ATI video card and ran a simple command

sudo apt-get update
sudo apt-get install linux-restricted-modules-$(uname -r) #Okay if it is already installed
sudo apt-get install xorg-driver-fglrx
sudo depmod -a
sudo aticonfig --initial
sudo aticonfig --overlay-type=Xv
sudo shutdown -r now
sudo aticonfig --dtop=horizontal

This will make ubuntu much easier to use with my new 24″ monitor…

later,
J!

Speed up Ubuntu boot up w/ mobile laptop

When I would take my laptop to class or somewhere there would be a long delay, about a minute, for it to realize that it was not going to get an IP address from the ethernet jack because no cable was plugged in… So after some googling I found a slight work around… You need to edit your /etc/network/interfaces file… You need to comment out a few lines such as mapping hotplug, script grep, map eth0, and auto wlan0.. below is my interfaces file… In bold are the lines I commented out…


# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
#mapping hotplug
# script grep
# map eth0

# The primary network interface
iface eth0 inet dhcp

#Wireless network card stuff...
iface wlan0 inet dhcp
wireless-essid (wireless SSID here)
wireless-key (Put your WEP Key here)

#auto wlan0

By commenting those lines out, there is no longer a networking delay when booting up… You do however have to enable which device what to use when you do boot up which is no big deal…

–Jason

How to get your Microsoft Intellimouse Explorer to work under Ubuntu 5.10

UPDATE: depreciated… much simpler method can be found here

Since I use a microsoft intellimouse explorer mouse and there are no drivers for it in linux, obviously, i set out on a quest this morning to get it working correctly. The only buttons that did not work correctly were the forward and backward buttons on the side of the mouse which I used to use frequently in Windows. After a quick google, I found a guide that I had to make a few changes to in order to get it to work and I figured I should document it for future use by me and possibly others.

The first step is to edit your xorg.conf file located in /etc/X11/ . I replaced the original mouse section with the section below:

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "7"
#Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "6 7"
Option "Resolution" "100"

EndSection

The next step is to install imwheel. I used synaptic package manager to install this by searching for imwheel.

After installing imwheel you need to edit the imwheelrc file located in /etc/X11/imwheel/ .

".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right

After setting up imwheel, I created a script to startup when X starts to enable the features of the mouse… I created a script called mouse and placed it in my home directory:

xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67"

Using the Sessions prefence menu in System>Preferences>Sessions, I added the mouse script to the startup tab so that when X starts, the script is ran…

After that you are good to go… You should be able to use the back and forward buttons now in nautilus and in firefox, and any other browswer probably…

Here is a link to the original article that I used to get my mouse working.

–Jason