GNU Linux


HOWTO - How I configure my Ubuntu system


There should be a blue line here

Table of Contents

There should be a blue line here

1. Extra packages I normally install

It is worth loading/installing this lot now as it will save time later and can be done afte boot int the first time during the initial update from Ubuntu. Time for a coffee!

Install command
sudo get-apt install x2x openssh-server 
sudo apt-get install nfs-kernel-server nfs-common portmap autofs libdevmapper lm-sensors sensors-applet \ 
     gparted ntfs-3g ntp ntpdate xosview k3b 
sudo apt-get install thunderbird  keepassx sdf popfile filezilla apache2 apache2.2-common apache2-doc \ 
     mysql-client  mysql-server mysql-admin mysql-query-browser apt-cacher 
sudo apt-get install curl sysv-rc-conf joystick scite 
sudo apt-get install kvm libvirt-bin ubuntu-vm-builder virt-manager virt-viewer gkrellm 
sudo apt-get install ia32-libs      # <<== 64-bit olny 

For Cedega on 64 Bit also add:


Note: I stopped dealing with this bunch of %^&*(# when I realised they were only interested in my money and have no intention of providing any customer service or a working product. If only they had bothered to answer an email or a post on their own forums. *wave* Take my advice and just buy Windows it is cheaper and that works! In short Cedega Transgamer == JABOT!

There should be a blue line here

2. LVM, RAID, and all that.

How I configure my Hard disks.

There should be a blue line here

3. Network setup, NFS, autofs, Samba

How I configure my Network stuff.

There should be a blue line here

4. HOWTO:Back and restore Linux, M$ Wimpodz

How I do my backups AND get it restored again.

There should be a blue line here

5. HOWTO: Configure Automatic login.

This could be considered a security risk.

System->Administration->login window->Security tab

There should be a blue line here

6. HOWTO get x2x working.

So you have two linux hosts both running X. You also hove two screens and want to control both with one mouse and keyboard. Yes you can do this with a KVM but with a KVM you cannot simply copy/paste between the two machines as well. With x2x you can simply move the mouse to one side of the screen and keep on going and it appears automagically on the other screen.

This is one of those setups that is so so simple the SECOND time around . Now I have it working its really very simple to explain.

Make sure x2x is loaded on both machines, (may only be needed on the 'to'). X2x was working so I stopped playing around and didn't tidy up.

Install command
sudo apt-get install x2x 

Then on the 'from' host where the keyboard and mouse are create a liilte script. The script allows you to start up x2x in the sessions config so it is allways running and saves having to remember the command if you need to start it up manually.

Command
ssh -X to_hostname /usr/X11R6/bin/x2x -west -to :0 & 

In my case I'm connecting to a host called to_host and when I move my mouse off the left hand side of the monitor or west, The mouse appears on the to_hostrs screen and I'm controlling that host now.

Copy and paste just works out of the box.

There should be a blue line here

7. HOWTO: Put grub back when Windows screws it up

When you get to the desktop open a terminal and enter. (I am going to give you the commands and then I will explain them later)

Grub settings for:
linux32 it is 'root (hd1,0)'  & 'setup (hd0)'. 
linux60 it is 'root (hd0,1)'  & 'setup (hd0)'. 

Code:
sudo grub 

This will get you a "grub>" prompt (i.e. the grub shell). At grub>. enter these commands

Code:
find /boot/grub/stage1 

This will return a location. If you have more than one, select the installation that you want to provide the grub files. Next, THIS IS IMPORTANT, whatever was returned for the find command use it in the next line (you are still at grub>. when you enter the next 3 commands)

Code:
root (hd1,0) 

Again use the value from the find command i.e. if find returned (hd0,1) then you would enter root (hd0,1)

Next enter the command to install grub to the mbr

Code:
setup (hd0) 

Finally exit the grub shell

Code:
quit 

Code:
title   Expensive non Linux OS or buggy insecure bloatware 
root 
 
Windows Grub menu lines are 
title           M$ Winpdoz, 
root            (hd0,0) 
makeactive 
chainloader     +1 

There should be a blue line here

8. HOWTO: Install nVidia drivers

This is for Feisty, it's NOT needed for Gusty as nVidia drivers are installed and Glxgears is going to 18+K FPS

Install and run Envy, to install a working nVidia driver.

There should be a blue line here

9. HOWTO install folding at home

If this is running on a 64-bit system you will need the ia32-libs.

Code:
sudo apt-get install ia32-libs 

Just copy the ~/foldingathome directory to the new machine. Then run

Code:
sudo ./installService 
./foldingathome/folding start 

You can run ./finstall and take the default to just about everything. Include the 3rd party stuff too. If you want a new install.

My Folding details
User is Zafrusteria 
Team is 45104 

There should be a blue line here

10. HOWTO: Install lm-sensors

How to detect CPU temperature & fan speeds and voltages

Also install ksensors for temps on 64bit systems look at sensors-applet (32bit) but no as many temps as ksensors.


Note: The app gkrellm is nice but not what I'm looking for.

There should be a blue line here

11. HOWTO Install and move my popfile database

Install popfile with synaptic package manager. It should already be configured for some reasone Ubuntu uses a different port to listen on so you may need to change the pop3_port to be 7071. That is about all I remember I needed to do. Other than that is create some buckets inside popfile. Once popfile is running and you have configured your buckets. Send yourself some of your previous emails one at a time. Then reclasify them. This will speed up the already fast training process.

Since I have a large already trained popfile installation i do not want to loose it. So i copy the database. Do this by zipping up the contents on /var/lib/popfile EXCEPT popfile.cfg. Copy it over to the new machine and unzip. The unzip should be done as the user popfile.

Code:
cd /var/lib/popfile 
tar zcvpf /data/popfiledb.tgz messages popfile.db stopwords 


Note: I now have the popfile data on /data.

Code:
sudo /etc/init.d/popfile stop 
sudo mkdir /data/popfile 
sudo chown popfile:popfile /data/popfile 
cd /var/lib 
sudo mv popfile popfile_old 
sudo ln -s /data/popfile  /var/lib/popfile 
sudo /etc/init.d/popfile start 

There should be a blue line here

12. HOWTO: Move my Firefox and Thunderbird profiles

Copy the ~/mozilla_profiles directory to the new location.

Code:
cd 
cp -r /opt/linux32_home/richard/mozilla_profiles/ . 
firefox -profilemanager 

Point the new profile at ~/mozillia_profiles/Firefox/Profiles/xxxxxxx.default/

Code:
mozilla-thunderbird -profilemanager 

Point the new profile at ~/mozillia_profiles/Thunderbird/Profiles/xxxxxxx.default/

There should be a blue line here

13. HOWTO Install Deluge Bittorrent client

Download it from here and select the Ubuntu specific package The package listed in Synaptic is rather out of date.

Ports are already redirected on D-link 41112 (5), 41121 (7) & 41131 (6) Max upload is 35-38 15 max connection 250 connections max

btw Tried Azureus it's just too slow :-( Use Deluge instead it's not as pretty but it is faster, a lot faster!

There should be a blue line here

14. HOWTO Install and setup Vmware and then move existing vm-machines to new machine.

On Gusty just download from Vmware server home site and install.

There should be a blue line here

15. HOWTO:Speedup Ubuntu boot times.

Code:
sudo apt-get install sysv-rc-conf 

There should be a blue line here

16. HOWTO:CPU throttling, Frequency scaling.

This CPU frequency stuff is all very good for laptops but when using folding@home on a desktop you want it to go really fast all the time.

The simplest way so far is to add the CPU Frequency scaling Monitor Applet to the panel and left click to turn off throttling by selecting Performance. See the following link.

Simple way to manually turn the frequency scalling to performance.

Take a look at this and search for "CPU scaling follow the steps through to get scaling working and the applet installed.

But the best way I have found it to remove the damn cpufrequency $%^&* alltogether, I disabled the init.d scripts as shown below.

Code:
$ ls -l /etc/init.d/*cpu* 
-rw-r--r-- 1 root root 2.5K 2008-03-26 19:58 cpufrequtils 
-rw-r--r-- 1 root root 7.0K 2007-06-12 00:37 loadcpufreq 

To turn on the ability to mess with this stuff again simply add the execute flag for at least root.

This link goes to a similar post with a little more info than the one in the Wiki.

More info about scaling from a NON Ubuntu source.

You only need to add the cpu scaling modules you want to the /etc/modules file. So if you only ever use one governor or never use some others why load them.

There should be a blue line here

17. HOWTO get a Packard Bell scanner working.

1) Do not buy a Packard Bell scanner get something else!

If that is too late then at least in Linux (unlike Vista) you can get it to work. The Diamond 1200 plus is as far as I can tell from the web a rebadged Mustek Bearpaw 1200 something.

Xsane and libsane should already be installed, it was for me, with Gusty 7.10. All I needed was to download and copy the firmware driver to the directory listed below. I found the firmware file from the link below to search for my scanner.

To find what Linux thinks my scanner is

Code:
scanimage -L 
device `gt68xx:libusb:001:003' is a Mustek Bearpaw 1200 CU Plus flatbed scanner 

The bit I'm after is the gt68xx. So I can now look in, it says quiet clearly where the firmware file needs to be installed/copied. It is close to the top of the file.

Code:
more /etc/sane.d/gt68xx.conf 
... 
... 
# Put the firmware file into "/usr/share/sane/gt68xx/". 

Install kooka as the front end for scanning.

There should be a blue line here

18. HOWTO:Get my USB Logitech Rumblepad working.

Logitech ignore Linux so do not provided any drivers or help :-( but most are already catered for by the kernel.

Code:
cat /dev/input/js0 

If you see some unusual characters on the screen it means Linux found your USB rumblepad. (It's a good sign).

Code:
sudo apt-get install joystick 

Joystick is a program to calibrate the gamepad from the console. Use these commands to calibrate and then test the rumble pad. There will be a whole bunch of numbers on the screen which should change as you press buttons and wiggle the joysticks.

Code:
jscal /dev/input/js0 
jstest /dev/input/js0 

There should be a blue line here

19. HOWTO:Get the splash screen working on wide screens (1680X1050).

I found this great post by SirYes it works for me. Remember when you get the the grub part use vga=0x369 for 1680x1050x24.

The first part about setting the frambuffer for the virtual consoles works too! That is on my AMD64 beasty.

No more Janet and John text .

There should be a blue line here

20. HOWTO setup a simple 'almost' default Apache server.

How I configure my local test Apache server.

There should be a blue line here

21. HOWTO: Install and/or move keepass to another machine

Install keepass with Synaptic copy the .keepass directory to your new home dir make sure it is readable only by uer user

Code:
cd 
chmod 700 .keepassx 
chmod 600 .keepassx/* 
chown richard:richard keepassx keepassx/* 

Job done.

There should be a blue line here

22. HOWTO:Install Bluetooth

Never got it working in Ubuntu, Kbuntu works out of the box :-( Shame KDE is so like M$.

There should be a blue line here

23. Links to places of interest

Links to sources of info and background reading.