Ubuntu installation: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 17: Line 17:
* [https://help.ubuntu.com/community/Installation official installation guides]
* [https://help.ubuntu.com/community/Installation official installation guides]


Decided to install a "clean" new version today, since I got really display trouble (firefox and other applications crashing). These notes are not complete, but give a rough outline of the steps involved.  
Decided to install a "clean" new version today, since I got really display trouble (firefox and other applications crashing). These notes are not complete, but give a rough outline of the steps involved.
 
{{under construction}}
{{under construction}}


=== Step 1: get it ===
=== Step 1: get it ===
Download site
* http://www.ubuntu.com/getubuntu/download
Decide what version you want. Basically there are 4 options for a desktop machine: 32 vs. 64 bit machines and normal vs. alternative distribution.
* 32 bit (most machines, also some third-party software may only run 32bits). Two subchoices:
** ubuntu-8.04.1-desktop-i386.iso  (this is your "normal" choice)
** ubuntu-8.04.1-alternate-i386.iso
* 64 bit (more expensive desktop machines)
** ubuntu-8.04.1-desktop-amd64.iso (also includes Xeon etc. processors)
** ubuntu-8.04.1-alternate-amd64.iso
Finally, there exist also vendor-packaged images that include additional goodies, e.g. graphics card drivers. E.g. DELL:
* [http://linux.dell.com/files/ubuntu/hardy/iso-images/ ubuntu-8.04.1-dell-reinstall.iso]


* http://www.ubuntu.com/getubuntu/download
The image you will download is an ISO ready to burn CD image (so you need a program to do this). Read [https://wiki.ubuntu.com/BurningIsoHowto/ burn the image].
* The image you will download is an ISO ready to burn CD image (so you need a program to do this). Read [https://wiki.ubuntu.com/BurningIsoHowto/ burn the image].  


; Burning horrors
; Burning horrors


It is likely that you might download a bad image (see step 3). Make sure that your image is correct with [https://help.ubuntu.com/community/HowToMD5SUM]. E.g. if you download to a Unix machine, type something like:
It is likely that you might download a bad image (see step 3). Make sure that your image is correct with [https://help.ubuntu.com/community/HowToMD5SUM]. E.g. if you download to a Unix machine, type something like:
md5sum ubuntu-8.04.1-desktop-i386.iso
md5sum ubuntu-8.04.1-desktop-i386.iso
 
This file name may change of course. The output should be a single line which you can match again the magic number, e.g.
This file name may change of course. The output should be a single line which you can match again the magic number, e.g.
c69e34e92d5402d1b87e6babc739f774
c69e34e92d5402d1b87e6babc739f774
for the ubuntu-8.04.1-desktop-i386.iso image. These is an official [https://help.ubuntu.com/community/UbuntuHashes list] (if you don't trust your mirror).
for the ubuntu-8.04.1-desktop-i386.iso image. These is an official [https://help.ubuntu.com/community/UbuntuHashes list] (if you don't trust your mirror).


Also to download, you may avoid using a browser, there exist FTP mirrors. Alternatively you can use a program like wget if you do this from a unix machine. Copy the download link from the appriate mirror and type e.g.
Anyhow, if Ubuntu is happy (see also step 3) you don't need to worry about this. But I lost like 2 afternoons (doing something else at the same time though). Ubuntu seems to like simple consumer machines much better than my somewhat older DELL Precision 380 with a Quadro graphics card.
wget --no-cache http://releases.ubuntu.com/hardy/ubuntu-8.04.1-desktop-i386.iso
 
Also to download, you may avoid using a browser, there exist FTP mirrors. Alternatively you can use a program like wget if you do this from a unix machine. Copy the download link from the appropriate mirror and type e.g.
wget --no-cache http://releases.ubuntu.com/hardy/ubuntu-8.04.1-desktop-i386.iso
or (better) from a trusted mirror:
or (better) from a trusted mirror:
wget --no-cache http://mirror.switch.ch/ftp/mirror/ubuntu-cdimage/hardy/ubuntu-8.04.1-desktop-i386.iso
wget --no-cache http://mirror.switch.ch/ftp/mirror/ubuntu-cdimage/hardy/ubuntu-8.04.1-desktop-i386.iso
Anyhow, if Ubuntu is happy (see step 3) you don't need to worry about this. But I lost like 5 hours (doing something else at the same time though).


Now burning is another '''painful''' issue (see step three). I took the simple default CD version from some ubuntu mirror and first used [http://infrarecorder.sourceforge.net/ infra recorder] on a Windows machine to burn the image (Menu Actions -> Burn Image..). Despite setting it to low burn speed it didn't work (i.e. failed the test in the Ubuntu installation). So I took another laptop and burned with Roxio. After 3 attempts (enabling all options like checking, very long file names, etc. it did seem to work at first (test passed). But during the install (some SQUASHFS error) and with a second test it failed again. So you actually may have two problems: CD is bad or the installation program (i.e. the SQUASHFS program) has a problem
Now burning is another '''painful''' issue (see step three). I took the simple default CD version from some ubuntu mirror and first used [http://infrarecorder.sourceforge.net/ infra recorder] on a Windows machine to burn the image (Menu Actions -> Burn Image..). Despite setting it to low burn speed it didn't work (i.e. failed the test in the Ubuntu installation). So I took another laptop and burned with Roxio. After 3 attempts (enabling all options like checking, very long file names, etc. it did seem to work at first (test passed). But during the install (some SQUASHFS error) and with a second test it failed again. So you actually may have two problems: CD is bad or the installation program (i.e. the SQUASHFS program) has a problem
Line 45: Line 62:
If your CD seems to be ok and installation fails you can try changing boot parameters (tried that) or else go for another install (e.g. download the [http://linux.dell.com/files/ubuntu/hardy/iso-images/ fat DVD] total ubuntu-only reinstall DVD ISO from DELL or the alternative CD from Ubuntu.
If your CD seems to be ok and installation fails you can try changing boot parameters (tried that) or else go for another install (e.g. download the [http://linux.dell.com/files/ubuntu/hardy/iso-images/ fat DVD] total ubuntu-only reinstall DVD ISO from DELL or the alternative CD from Ubuntu.


* Finally, make sure to have an Internet number ready if you use your machine at work.
* Finally, make sure to have an Internet number ready if you use your machine at work.


=== Step 2: save some stuff in your old ubuntu install ===
=== Step 2: save some stuff in your old ubuntu install ===
Line 57: Line 74:


If you don't have your home on a different partition make a gtar archive
If you don't have your home on a different partition make a gtar archive
tar zcf archiveXX.tgs directory
tar zcf archiveXX.tgs directory
* save all homes (I don't keep any real data on my personal machine, but you may later retrieve some config files or navigator bookmarks.)
* save all homes (I don't keep any real data on my personal machine, but you may later retrieve some config files or navigator bookmarks.)
* You also may save /usr/local (but it's better to reinstall !)
* You also may save /usr/local (but it's better to reinstall !)
Line 78: Line 95:


=== Step 4: ===
=== Step 4: ===


== Displays ==
== Displays ==
Line 112: Line 127:
(1) You need to download the Nvidia driver.
(1) You need to download the Nvidia driver.


* Either from [http://www.nvidia.com/object/unix.html Nvidia]. E.g. file NVIDIA-Linux-x86-1.0-9755-pkg1.run  
* Either from [http://www.nvidia.com/object/unix.html Nvidia]. E.g. file NVIDIA-Linux-x86-1.0-9755-pkg1.run
 
* Or via apt (a package manager), this is the better solution if it works:
* Or via apt (a package manager), this is the better solution if it works:
sudo apt-get install nvidia-glx-new
sudo apt-get install nvidia-glx-new
.. or maybe nvidia-glx (the older version)
.. or maybe nvidia-glx (the older version)


(2) Save the xorg.conf file
(2) Save the xorg.conf file
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.save1
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.save1


(3 - manual install) Install the driver (in case you got it from Nvidia only !)
(3 - manual install) Install the driver (in case you got it from Nvidia only !)
sh NVIDIA-Linux-x86-1.0-9755-pkg1.run
sh NVIDIA-Linux-x86-1.0-9755-pkg1.run


(4) Run the X server configurator (but make '''sure''' you have a copy of your old xorg.conf file !!)
(4) Run the X server configurator (but make '''sure''' you have a copy of your old xorg.conf file !!)
nvidia-xconfig
nvidia-xconfig


(5) The result won't do it, but it's a start. You have to hand-edit and
(5) The result won't do it, but it's a start. You have to hand-edit and
Line 131: Line 147:
E.g. I have this (I am minimalist and hate configuration work, so I stop when it works). I.e. if you want a single display for both monitors (you can drag stuff from monitor to the other) you '''only''' need to define one screen and one monitor. So, below there may some not used or even slightly harmful stuff (e.g. I have to check refresh rates).
E.g. I have this (I am minimalist and hate configuration work, so I stop when it works). I.e. if you want a single display for both monitors (you can drag stuff from monitor to the other) you '''only''' need to define one screen and one monitor. So, below there may some not used or even slightly harmful stuff (e.g. I have to check refresh rates).


Section "ServerLayout"
Section "ServerLayout"
    Identifier    "Default Layout"
Identifier    "Default Layout"
    Screen        "Screen0" 0 0
Screen        "Screen0" 0 0
    InputDevice    "Generic Keyboard"
InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
InputDevice    "Configured Mouse"
    InputDevice    "stylus" "SendCoreEvents"
InputDevice    "stylus" "SendCoreEvents"
    InputDevice    "cursor" "SendCoreEvents"
InputDevice    "cursor" "SendCoreEvents"
    InputDevice    "eraser" "SendCoreEvents"
InputDevice    "eraser" "SendCoreEvents"
EndSection
EndSection


Section "Files"
Section "Files"
# path to defoma fonts
# path to defoma fonts
    FontPath        "/usr/share/X11/fonts/misc"
FontPath        "/usr/share/X11/fonts/misc"
    FontPath        "/usr/share/X11/fonts/cyrillic"
FontPath        "/usr/share/X11/fonts/cyrillic"
    FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
    FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath        "/usr/share/X11/fonts/Type1"
FontPath        "/usr/share/X11/fonts/Type1"
    FontPath        "/usr/share/X11/fonts/100dpi"
FontPath        "/usr/share/X11/fonts/100dpi"
    FontPath        "/usr/share/X11/fonts/75dpi"
FontPath        "/usr/share/X11/fonts/75dpi"
    FontPath        "/usr/share/fonts/X11/misc"
FontPath        "/usr/share/fonts/X11/misc"
    FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
EndSection


Section "Module"
Section "Module"
    Load          "i2c"
Load          "i2c"
    Load          "bitmap"
Load          "bitmap"
    Load          "ddc"
Load          "ddc"
    Load          "extmod"
Load          "extmod"
    Load          "freetype"
Load          "freetype"
    Load          "glx"
Load          "glx"
    Load          "int10"
Load          "int10"
    Load          "type1"
Load          "type1"
    Load          "vbe"
Load          "vbe"
EndSection
EndSection


Section "InputDevice"
Section "InputDevice"
    Identifier    "Generic Keyboard"
Identifier    "Generic Keyboard"
    Driver        "kbd"
Driver        "kbd"
    Option        "CoreKeyboard"
Option        "CoreKeyboard"
    Option        "XkbRules" "xorg"
Option        "XkbRules" "xorg"
    Option        "XkbModel" "pc105"
Option        "XkbModel" "pc105"
    Option        "XkbLayout" "ch"
Option        "XkbLayout" "ch"
    Option        "XkbOptions" "lv3:ralt_switch"
Option        "XkbOptions" "lv3:ralt_switch"
    Option        "XkbVariant" "fr"
Option        "XkbVariant" "fr"
EndSection
EndSection


Section "InputDevice"
Section "InputDevice"
    Identifier    "Configured Mouse"
Identifier    "Configured Mouse"
    Driver        "mouse"
Driver        "mouse"
    Option        "CorePointer"
Option        "CorePointer"
    Option        "Device" "/dev/input/mice"
Option        "Device" "/dev/input/mice"
    Option        "Protocol" "ExplorerPS/2"
Option        "Protocol" "ExplorerPS/2"
    Option        "ZAxisMapping" "4 5"
Option        "ZAxisMapping" "4 5"
    Option        "Emulate3Buttons" "true"
Option        "Emulate3Buttons" "true"
EndSection
EndSection


Section "InputDevice"
Section "InputDevice"
                                                      # /dev/input/event
# /dev/input/event
                                                      # for USB
# for USB
    Identifier    "stylus"
Identifier    "stylus"
    Driver        "wacom"
Driver        "wacom"
    Option        "Device" "/dev/wacom"          # Change to  
Option        "Device" "/dev/wacom"          # Change to
    Option        "Type" "stylus"
    Option        "ForceDevice" "ISDV4"              # Tablet PC ONLY
EndSection


Section "InputDevice"
Option        "Type" "stylus"
                                                      # /dev/input/event
Option        "ForceDevice" "ISDV4"              # Tablet PC ONLY
                                                      # for USB
EndSection
    Identifier    "eraser"
    Driver        "wacom"
    Option        "Device" "/dev/wacom"          # Change to
    Option        "Type" "eraser"
    Option        "ForceDevice" "ISDV4"              # Tablet PC ONLY
EndSection


Section "InputDevice"
Section "InputDevice"
                                                      # /dev/input/event
# /dev/input/event
                                                      # for USB
# for USB
    Identifier    "cursor"
Identifier    "eraser"
    Driver        "wacom"
Driver        "wacom"
    Option        "Device" "/dev/wacom"          # Change to  
Option        "Device" "/dev/wacom"          # Change to
    Option        "Type" "cursor"
    Option        "ForceDevice" "ISDV4"              # Tablet PC ONLY
EndSection


Section "Monitor"
Option        "Type" "eraser"
    Identifier    "Monitor0"
Option        "ForceDevice" "ISDV4"               # Tablet PC ONLY
    HorizSync      28.0 - 51.0
EndSection
    VertRefresh    43.0 - 60.0
    Option        "DPMS"
EndSection


Section "Monitor"
Section "InputDevice"
    Identifier    "Monitor1"
# /dev/input/event
    HorizSync      28.0 - 51.0
# for USB
    VertRefresh    43.0 - 60.0
Identifier    "cursor"
    Option        "DPMS"
Driver        "wacom"
EndSection
Option        "Device" "/dev/wacom"          # Change to


Section "Device"
Option        "Type" "cursor"
    Identifier    "NVIDIA Corporation NV41 [Quadro FX 3450/4000 SDI]"
Option         "ForceDevice" "ISDV4"               # Tablet PC ONLY
    Driver         "nvidia"
EndSection
    Option "DPMS"
    #DKS (5 lignes)
    Option "TwinView" "Yes"
    Option "TwinViewOrientation" "LeftOf"
    Option "SecondMonitorVertRefresh" "56-76"
    Option "SecondMonitorHorizSync" "31-80"
    Option "MetaModes" "1920x1200,1600x1200; 1920x1200,NULL"
EndSection


Section "Screen"
Section "Monitor"
    Identifier    "Screen0"
Identifier    "Monitor0"
    Device        "NVIDIA Corporation NV41 [Quadro FX 3450/4000 SDI]"
HorizSync      28.0 - 51.0
    Monitor        "Monitor0"
VertRefresh     43.0 - 60.0
    DefaultDepth    24
Option         "DPMS"
EndSection
    SubSection    "Display"
        Viewport    0 0
        Depth      24
        Modes      "1920x1200" "1600x1200"
    EndSubSection
    # not really needed, but some games may want this
    SubSection     "Display"
        Viewport    0 0
         Depth      16
        Modes      "1920x1200" "1600x1200"
    EndSubSection
EndSection


Section "Screen"
Section "Monitor"
     Identifier    "Screen1"
Identifier    "Monitor1"
    Device        "NVIDIA Corporation NV41 [Quadro FX 3450/4000 SDI]"
HorizSync      28.0 - 51.0
    Monitor        "Monitor1"
VertRefresh    43.0 - 60.0
    DefaultDepth    24
Option        "DPMS"
    SubSection    "Display"
EndSection
        Depth      24
 
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
Section "Device"
    EndSubSection
Identifier    "NVIDIA Corporation NV41 [Quadro FX 3450/4000 SDI]"
EndSection
Driver        "nvidia"
Option "DPMS"
#DKS (5 lignes)
Option "TwinView" "Yes"
Option "TwinViewOrientation" "LeftOf"
Option "SecondMonitorVertRefresh" "56-76"
Option "SecondMonitorHorizSync" "31-80"
Option "MetaModes" "1920x1200,1600x1200; 1920x1200,NULL"
EndSection
 
Section "Screen"
Identifier     "Screen0"
Device        "NVIDIA Corporation NV41 [Quadro FX 3450/4000 SDI]"
Monitor        "Monitor0"
DefaultDepth    24
 
SubSection    "Display"
Viewport    0 0
Depth      24
 
Modes      "1920x1200" "1600x1200"
EndSubSection
# not really needed, but some games may want this
SubSection    "Display"
Viewport    0 0
Depth      16
Modes      "1920x1200" "1600x1200"
EndSubSection
EndSection
 
Section "Screen"
Identifier    "Screen1"
Device        "NVIDIA Corporation NV41 [Quadro FX 3450/4000 SDI]"
Monitor        "Monitor1"
DefaultDepth    24
SubSection    "Display"
Depth      24
Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection


Make sure that there are no syntax errors, and that you have and empty line at the end of this file.
Make sure that there are no syntax errors, and that you have and empty line at the end of this file.
Line 280: Line 300:


To check if there are any partially installed packages. It will try to complete thes installations.
To check if there are any partially installed packages. It will try to complete thes installations.
dpkg --configure -a
dpkg --configure -a


To detect and fix dependency problems
To detect and fix dependency problems
aptitude -f install
aptitude -f install


To upgrade
To upgrade
aptitude safe-upgrade
aptitude safe-upgrade


== Printers ==
== Printers ==
Line 317: Line 337:


* Edit /etc/gdm/gdm.conf and change:
* Edit /etc/gdm/gdm.conf and change:
  DisallowTCP=true  
DisallowTCP=true


* Then, you'll need to restart your X session (Ctrl + Alt + Backspace)
* Then, you'll need to restart your X session (Ctrl + Alt + Backspace)
Line 324: Line 344:


* Then you can allow certain hosts to connect e.g. to allow root on your own machine type
* Then you can allow certain hosts to connect e.g. to allow root on your own machine type
xhost + localhost
xhost + localhost
* To allow somebody on a different machine, type:
* To allow somebody on a different machine, type:
xhost + xxx.yyy.zzz
xhost + xxx.yyy.zzz
* It's important not to to type 'xhost +'. Since anyone may then connect to your screen. However, type xhost + something is boring, so it's more practical to edit /etc/X0.hosts. Just put the names or ip numbers of authorized machines there.
* It's important not to to type 'xhost +'. Since anyone may then connect to your screen. However, type xhost + something is boring, so it's more practical to edit /etc/X0.hosts. Just put the names or ip numbers of authorized machines there.


Line 332: Line 352:
You can install nmap to scan ports (X is on 6000).
You can install nmap to scan ports (X is on 6000).
* If you don't have nmap:
* If you don't have nmap:
  sudo apt-get install nmap
sudo apt-get install nmap
* Then type (as user):
* Then type (as user):
  nmap -v -A localhost
nmap -v -A localhost


In some cases you may have to define the display of your machine on your client machine. On your client machine type something like:
In some cases you may have to define the display of your machine on your client machine. On your client machine type something like:
export DISPLAY=xxx.yyy.zzz:0
export DISPLAY=xxx.yyy.zzz:0
or
or
setenv DISPLAY xxx.yyy.zzz:0
setenv DISPLAY xxx.yyy.zzz:0


== Java ==
== Java ==
Line 348: Line 368:
** Summary: You can get Sun Java as Ubuntu package, if you have multiverse enabled.
** Summary: You can get Sun Java as Ubuntu package, if you have multiverse enabled.
** You also then should consider making the Sun version the default (also explained in the above doc).
** You also then should consider making the Sun version the default (also explained in the above doc).


== Sound ==
== Sound ==


Sound may not work either.  
Sound may not work either.


* Install all the ALSA stuff (e.g. via the synaptic package manager)
* Install all the ALSA stuff (e.g. via the synaptic package manager)
Line 364: Line 383:


To list you sound hardware, type:
To list you sound hardware, type:
aplay -l
aplay -l


If there are none, type:
If there are none, type:
lspci -v
lspci -v
... and search through the list until you find something like:
... and search through the list until you find something like:
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
This means that you do have a sound card, but that the drivers or something else is missing....
This means that you do have a sound card, but that the drivers or something else is missing....


Anyhow it may take some time (between a few minutes and a few days) to find a solution. Often, the only thing you'd have
Anyhow it may take some time (between a few minutes and a few days) to find a solution. Often, the only thing you'd have
to do is to add a line to /etc/modprobe.d/alsa-base (needs root permissions). I have for my DELL/Sigmatel:
to do is to add a line to /etc/modprobe.d/alsa-base (needs root permissions). I have for my DELL/Sigmatel:
options snd-hda-intel model=ref
options snd-hda-intel model=ref
Then, '''reboot''' !
Then, '''reboot''' !


Line 391: Line 410:


* Add the Skype repository like this in the Synaptic Package Manager (through settings->Repositories->Third-Party Software)
* Add the Skype repository like this in the Synaptic Package Manager (through settings->Repositories->Third-Party Software)
deb http://download.skype.com/linux/repos/debian/ stable non-free
deb http://download.skype.com/linux/repos/debian/ stable non-free
* Reload or update the package information and search for "skype"
* Reload or update the package information and search for "skype"
* Install the skype package.
* Install the skype package.
Line 418: Line 437:
* http://www.cs.cornell.edu/~djm/ubuntu/
* http://www.cs.cornell.edu/~djm/ubuntu/
* http://ubuntuguide.org/wiki/Ubuntu_Edgy
* http://ubuntuguide.org/wiki/Ubuntu_Edgy


[[Category: Installation tips]]
[[Category: Installation tips]]

Revision as of 16:43, 14 September 2008

Ubuntu

Ubuntu is a popular Linux distribution, best suited for desktop computers. It is based on Debian, therefore the packaging (*.deb) works rather well.

This page so far is by no means a configuration and installation guide, but it contains some extra information. Daniel K. Schneider decided to put some of his installation notes in this wiki, so he won't loose them. Feel encouraged to add stuff :)

Ubuntu 10 8.04 LTS installation in a nutshell

The best short guide I found (including Nvidia):

If you are looking for an other practical, short and excellent installation guide (and that includes how to add non-free software):

The Ubuntu site also has a lot of useful information (though sometimes a bit lengthy):

Decided to install a "clean" new version today, since I got really display trouble (firefox and other applications crashing). These notes are not complete, but give a rough outline of the steps involved.

This article or section is currently under construction

In principle, someone is working on it and there should be a better version in a not so distant future.
If you want to modify this page, please discuss it with the person working on it (see the "history")

Step 1: get it

Download site

Decide what version you want. Basically there are 4 options for a desktop machine: 32 vs. 64 bit machines and normal vs. alternative distribution.

  • 32 bit (most machines, also some third-party software may only run 32bits). Two subchoices:
    • ubuntu-8.04.1-desktop-i386.iso (this is your "normal" choice)
    • ubuntu-8.04.1-alternate-i386.iso
  • 64 bit (more expensive desktop machines)
    • ubuntu-8.04.1-desktop-amd64.iso (also includes Xeon etc. processors)
    • ubuntu-8.04.1-alternate-amd64.iso

Finally, there exist also vendor-packaged images that include additional goodies, e.g. graphics card drivers. E.g. DELL:

The image you will download is an ISO ready to burn CD image (so you need a program to do this). Read burn the image.

Burning horrors

It is likely that you might download a bad image (see step 3). Make sure that your image is correct with [1]. E.g. if you download to a Unix machine, type something like: md5sum ubuntu-8.04.1-desktop-i386.iso

This file name may change of course. The output should be a single line which you can match again the magic number, e.g. c69e34e92d5402d1b87e6babc739f774 for the ubuntu-8.04.1-desktop-i386.iso image. These is an official list (if you don't trust your mirror).

Anyhow, if Ubuntu is happy (see also step 3) you don't need to worry about this. But I lost like 2 afternoons (doing something else at the same time though). Ubuntu seems to like simple consumer machines much better than my somewhat older DELL Precision 380 with a Quadro graphics card.

Also to download, you may avoid using a browser, there exist FTP mirrors. Alternatively you can use a program like wget if you do this from a unix machine. Copy the download link from the appropriate mirror and type e.g. wget --no-cache http://releases.ubuntu.com/hardy/ubuntu-8.04.1-desktop-i386.iso or (better) from a trusted mirror: wget --no-cache http://mirror.switch.ch/ftp/mirror/ubuntu-cdimage/hardy/ubuntu-8.04.1-desktop-i386.iso

Now burning is another painful issue (see step three). I took the simple default CD version from some ubuntu mirror and first used infra recorder on a Windows machine to burn the image (Menu Actions -> Burn Image..). Despite setting it to low burn speed it didn't work (i.e. failed the test in the Ubuntu installation). So I took another laptop and burned with Roxio. After 3 attempts (enabling all options like checking, very long file names, etc. it did seem to work at first (test passed). But during the install (some SQUASHFS error) and with a second test it failed again. So you actually may have two problems: CD is bad or the installation program (i.e. the SQUASHFS program) has a problem

Frustrating as experience. In any case set burning speed to something that is really low" (like 1 or 2 or 4), but never maxium !

If your CD seems to be ok and installation fails you can try changing boot parameters (tried that) or else go for another install (e.g. download the fat DVD total ubuntu-only reinstall DVD ISO from DELL or the alternative CD from Ubuntu.

  • Finally, make sure to have an Internet number ready if you use your machine at work.

Step 2: save some stuff in your old ubuntu install

(if you have one, else skip).

If you mount foreign file systems

  • /etc/fstab

If you have a special video setup

  • /etc/X11/xorg.conf

....

If you don't have your home on a different partition make a gtar archive tar zcf archiveXX.tgs directory

  • save all homes (I don't keep any real data on my personal machine, but you may later retrieve some config files or navigator bookmarks.)
  • You also may save /usr/local (but it's better to reinstall !)

Step 4: Format or repartition if you plan to continue using windows

  • I don't want windows on this machine (erased it sometimes)
  • You also may consider reformatting the hard disk (you can do this during the install process)
  • If do want Windows, you may consider sharing a partition and this is a bit tricky (see docs elsewhere).

Step 3: Boot the PC with the CD and enter installation

  • You may have to hit F12 or F2 (watch!) when the machine wakes up, select the CD-Rom Drive
  • You then must select a language (English for example)
  • You also should define your location and keyboard. Hit the F2 and F3 buttons at the bottom of the screen.
  • You also should check the integrity of the CD. Bad files can be a total showstopper ! I suspect that errors can have two reasons: A bad CD (most often), some hardware incompatibility (bad trouble for you).
  • Do not "try" Ubuntu without change unless you are afraid that Ubuntu is not compatible with your hardware. If your decision is made click on "Install Ubuntu"

... then wait for a rather long time (but if nothing happens, it can mean that your CD is bad)

Step 4:

Displays

Most Linux distribution's installer (at least the free ones) can't handle some slightly more fancy hardware automatically

Usually you have to do two things

  1. Find and install a driver for your graphics card
  2. Hand edit the /etc/X11/xorg.conf file.

Example Nvidia FX + 2 digital monitors

By Daniel K. Schneider. I have a Quadro FX 3450 card, a 24 and a 20 monitors. This is an executive summary. Find better explanation on Google :)

Depending on the day (if it's rainy or sunny or the particular Ubuntu version) installing an Nvidia driver can be an absolute nightmare. If things fail, it is probably a good idea to:

  • Make a copy of your /etc/X11/xorg.conf file
  • Remove everything that has to do with Nvidia
    • E.g. even drastic and dangerous apt-get remove nvidia*
    • it also can mean to remove manually files and other stuff (see various forums)
  • Also the machine needs to completely halted at some point and be restarted in recovery mode (Hit ESC when linux starts loading)
  • Make sure you can get a terminal (local or remote)
    • Make sure you have another machine nearby, e.g. Windows with a putty (ssh client) installed.
    • Hit ctrl-alt-F5 to enter a terminal mode or see above.
    • Avoid removing power (reset) ... this can damage files, try ctrl-alt-delete first (or a halt from a remote terminal)
  • Log files
    • Look at the log files, in particular /var/log/Xorg.0.log and search for "(EE)".
    • It's likely that your keyboard won't work. E.g. if you use special characters in your password you must know the layout of the US keyboard. That can be fixed again in the xorg.conf file.
    • X also remembers stuff in your personal home directory and there are logs too.

Anyhow, if by miracle, things go will, here is the rough procedure:

(1) You need to download the Nvidia driver.

  • Either from Nvidia. E.g. file NVIDIA-Linux-x86-1.0-9755-pkg1.run
  • Or via apt (a package manager), this is the better solution if it works:

sudo apt-get install nvidia-glx-new .. or maybe nvidia-glx (the older version)

(2) Save the xorg.conf file cp /etc/X11/xorg.conf /etc/X11/xorg.conf.save1

(3 - manual install) Install the driver (in case you got it from Nvidia only !) sh NVIDIA-Linux-x86-1.0-9755-pkg1.run

(4) Run the X server configurator (but make sure you have a copy of your old xorg.conf file !!) nvidia-xconfig

(5) The result won't do it, but it's a start. You have to hand-edit and merge information from the old xorg.conf.save1 file !!!

E.g. I have this (I am minimalist and hate configuration work, so I stop when it works). I.e. if you want a single display for both monitors (you can drag stuff from monitor to the other) you only need to define one screen and one monitor. So, below there may some not used or even slightly harmful stuff (e.g. I have to check refresh rates).

Section "ServerLayout" Identifier "Default Layout" Screen "Screen0" 0 0 InputDevice "Generic Keyboard" InputDevice "Configured Mouse" InputDevice "stylus" "SendCoreEvents" InputDevice "cursor" "SendCoreEvents" InputDevice "eraser" "SendCoreEvents" EndSection

Section "Files"

  1. path to defoma fonts

FontPath "/usr/share/X11/fonts/misc" FontPath "/usr/share/X11/fonts/cyrillic" FontPath "/usr/share/X11/fonts/100dpi/:unscaled" FontPath "/usr/share/X11/fonts/75dpi/:unscaled" FontPath "/usr/share/X11/fonts/Type1" FontPath "/usr/share/X11/fonts/100dpi" FontPath "/usr/share/X11/fonts/75dpi" FontPath "/usr/share/fonts/X11/misc" FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" EndSection

Section "Module" Load "i2c" Load "bitmap" Load "ddc" Load "extmod" Load "freetype" Load "glx" Load "int10" Load "type1" Load "vbe" EndSection

Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "ch" Option "XkbOptions" "lv3:ralt_switch" Option "XkbVariant" "fr" EndSection

Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" EndSection

Section "InputDevice"

  1. /dev/input/event
  2. for USB

Identifier "stylus" Driver "wacom" Option "Device" "/dev/wacom" # Change to

Option "Type" "stylus" Option "ForceDevice" "ISDV4" # Tablet PC ONLY EndSection

Section "InputDevice"

  1. /dev/input/event
  2. for USB

Identifier "eraser" Driver "wacom" Option "Device" "/dev/wacom" # Change to

Option "Type" "eraser" Option "ForceDevice" "ISDV4" # Tablet PC ONLY EndSection

Section "InputDevice"

  1. /dev/input/event
  2. for USB

Identifier "cursor" Driver "wacom" Option "Device" "/dev/wacom" # Change to

Option "Type" "cursor" Option "ForceDevice" "ISDV4" # Tablet PC ONLY EndSection

Section "Monitor" Identifier "Monitor0" HorizSync 28.0 - 51.0 VertRefresh 43.0 - 60.0 Option "DPMS" EndSection

Section "Monitor" Identifier "Monitor1" HorizSync 28.0 - 51.0 VertRefresh 43.0 - 60.0 Option "DPMS" EndSection

Section "Device" Identifier "NVIDIA Corporation NV41 [Quadro FX 3450/4000 SDI]" Driver "nvidia" Option "DPMS"

  1. DKS (5 lignes)

Option "TwinView" "Yes" Option "TwinViewOrientation" "LeftOf" Option "SecondMonitorVertRefresh" "56-76" Option "SecondMonitorHorizSync" "31-80" Option "MetaModes" "1920x1200,1600x1200; 1920x1200,NULL" EndSection

Section "Screen" Identifier "Screen0" Device "NVIDIA Corporation NV41 [Quadro FX 3450/4000 SDI]" Monitor "Monitor0" DefaultDepth 24

SubSection "Display" Viewport 0 0 Depth 24

Modes "1920x1200" "1600x1200" EndSubSection

  1. not really needed, but some games may want this

SubSection "Display" Viewport 0 0 Depth 16 Modes "1920x1200" "1600x1200" EndSubSection EndSection

Section "Screen" Identifier "Screen1" Device "NVIDIA Corporation NV41 [Quadro FX 3450/4000 SDI]" Monitor "Monitor1" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480" EndSubSection EndSection

Make sure that there are no syntax errors, and that you have and empty line at the end of this file.

Packages

A list of command-line stuff (you must be root or add "sudo" in front of each)

To check if there are any partially installed packages. It will try to complete thes installations. dpkg --configure -a

To detect and fix dependency problems aptitude -f install

To upgrade aptitude safe-upgrade

Printers

Printers don't necessarily work automatically either:

A good bet is to use this application:

Before you do so, it is like that you need a a PPD file (a file that defines properties of your postscript printer). Get it from:

Example Infotec

Example for Infotec ISC 1032 (A low end color copy and printer machine)

X Windows

We run a few sun servers and I prefer to run emacs (gui) on a remote machine instead of mounting all these file systems. Also I prefer to have a root terminal open instead of typing 'sudo' all the time. If you want allow for this:

Reconfigure the window manager (gdm)
  • Edit /etc/gdm/gdm.conf and change:

DisallowTCP=true

  • Then, you'll need to restart your X session (Ctrl + Alt + Backspace)
Allow remote hosts to connect
  • Then you can allow certain hosts to connect e.g. to allow root on your own machine type

xhost + localhost

  • To allow somebody on a different machine, type:

xhost + xxx.yyy.zzz

  • It's important not to to type 'xhost +'. Since anyone may then connect to your screen. However, type xhost + something is boring, so it's more practical to edit /etc/X0.hosts. Just put the names or ip numbers of authorized machines there.
If it doesn't work

You can install nmap to scan ports (X is on 6000).

  • If you don't have nmap:

sudo apt-get install nmap

  • Then type (as user):

nmap -v -A localhost

In some cases you may have to define the display of your machine on your client machine. On your client machine type something like: export DISPLAY=xxx.yyy.zzz:0 or setenv DISPLAY xxx.yyy.zzz:0

Java

By default Ubuntu comes with some Java 1.4 compatible version that is free. For some applications though, you need Java 5 or 6 from Sun

  • Read this: https://help.ubuntu.com/community/Java
    • Summary: You can get Sun Java as Ubuntu package, if you have multiverse enabled.
    • You also then should consider making the Sun version the default (also explained in the above doc).

Sound

Sound may not work either.

  • Install all the ALSA stuff (e.g. via the synaptic package manager)
  • Then test with Menu System->Preferences-Sound
  • Then set the right default volume with Menu Applications->Sound and Video->ALSA Mixer GUID (in particular PCM ! It may be as simple as that ...)

Sound trouble ?

If sound doesn't work search the Ubuntu forums: http://ubuntuforums.org/. A particular good overview posting was:

To list you sound hardware, type: aplay -l

If there are none, type: lspci -v ... and search through the list until you find something like: 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01) This means that you do have a sound card, but that the drivers or something else is missing....

Anyhow it may take some time (between a few minutes and a few days) to find a solution. Often, the only thing you'd have to do is to add a line to /etc/modprobe.d/alsa-base (needs root permissions). I have for my DELL/Sigmatel: options snd-hda-intel model=ref Then, reboot !

Non-standard software

Some organization maintain their own Debian/Ubuntu package servers.

Mediabuntu

Read this:

Skype

E.g. to install Skype, you could

  • Add the Skype repository like this in the Synaptic Package Manager (through settings->Repositories->Third-Party Software)

deb http://download.skype.com/linux/repos/debian/ stable non-free

  • Reload or update the package information and search for "skype"
  • Install the skype package.

Opinions

Add yours ...

DKS

  • Daniel K. Schneider uses Ubuntu since March 2007, because he got fed up with Mandriva updates not working correctly. I hate all OS's (Unix, Mac, Win) but prefer to work on Unix because it's fairly stable and appropriate for what I do. I also do have Windows machines (a Dell XP II and Acer tablet PC) for doing stuff that needs Win. (E.g. wordprocessing with Framemaker, X3D, Games). Our servers (e.g. for this wiki) run under Solaris. More difficult to install, but reliable on the other hand.
  • Indeed (it's now August 2007 and I went through a major upgrade) I find that Ubuntu and its packaging system is far more robust. Though I once failed with a non supported package, i.e. Cinelerra that I got from another site. It installed, but crashed on start. Have to try again at some point.
  • Other remarks: The official Ubunto Gnu Emacs installation is the "Leim" version, i.e. it can be used to edit UTF-8 text (I am writing my wiki entries with this).

Links

(there are many others)

Official
Other