Installing SUSE 10.1 "Loaded" (non-YUM variation)
This is a step-by-step walk-through for installing SUSE Linux 10.1 ("openSUSE") in my "Loaded" configuration, as described in: Moving from Gentoo to ... SUSE, Ubuntu, or Fedora Core?
Quick list of pros & cons:
Pros:
- Everything seemed to "just work" (once you follow the steps listed below).
- No manual editing of configuration files was necessary.
- Very nice "sysinfo:/" custom KDE extension; makes a nice "My Computer" replacement when you feel the need for one.
Cons:
- Would prefer to be able to use yum or apt-get for package management. SuSE provides rug, but it seemed a little flakey compared to yum and apt-get.
- Not obvious which of the multiple "update" tools to use to get the latest bugfixes (for the record, "rug update" seems to do the trick).
- Sun Java 5.0 makes things crash.
Prerequisites:
- A complete set of SUSE Linux 10.1 CDROMs (discs 1-5; I only needed 1-3, but it wouldn't hurt to have the whole set).
- Your IP address and nameserver addresses, in case something doesn't work with DHCP during network setup.
Instructions:
- IMPORTANT: Run these steps in this exact order. The default 10.1 installation has some bugs that need to be patched before moving on to later steps.
- Install SUSE Linux 10.1, accepting all defaults, except DO NOT run "Online Update" when asked (will run this later). I chose KDE as the window manager, but none of this is KDE-specific.
- Run YaST ("System"->"YaST (Control Center)", from the KDE menu) and click on "Installation Source":
- Select the line with an URL like "cd:///?devices=/dev/hdd". Disable this source by clicking "Enable or Disable" once.
- If the YUM update source it chose for you is slow, visit the SUSE Mirror List, find one that is closer/faster, and edit your primary YUM source to use that site.
The URL should end with something like "../suse/update/10.1"
WARNING: Some of the mirrors listed as "Complete" are actually not (e.g. sunsite.utk.edu missed 88 updates compared to mirrors.kernel.org). I recommend you browse several in the list and make sure to pick one that looks complete. Look in the directory for your architecture, e.g. suse/update/10.1/rpm/i586
- Go to the SUSE Repository Mirrors. Find one that is geographically close to you, and do two things:
- Click on the "Internet Installation Repository" link for the source you've chosen. Click "Add"->"HTTP ...." and add the server you chose. You can leave "Refresh" turned "OFF", since installation repositories shouldn't change. [NOTE: The URL should end with something like ".../SL-10.1/inst-source"]
- Click on the "Addon Installation Repository" link for the source you've chosen, and add it as above. You can leave "Refresh" turned "OFF", since installation repositories shouldn't change.[NOTE: The URL should end with something like ".../SL-10.1/non-oss-inst-source"]
- The well-known "packman" repository is where most of the multimedia packages come from. First, find a Packman Mirror near you. Click "Add" -> "HTTP ...", and add the server & directory name of the mirror, as above. Note that the directory name should end without something like "suse/10.1". Click "Yes" when prompted about whether to trust this installation source. Make sure "Refresh" is set to "On".
- Click "Finish" to save the installation sources and continue (be patient - it can take quite a while for it to complete this step).
Alternative: If your network connection is slow, you can skip steps #1 and #3, and use your CDROMs instead of a Repository Mirror. The only drawback is that the Repository Mirrors contain some extra packages that are not on the CDs (example: wxPython).
- Run YaST->Online Update:
- Click "Accept" (do not select any additional patches!). This will update libzypp and yast2-online-update first, since there are apparently some bugs in the stock 10.1 versions. [Ignore any errors about "ZMD not running"]
- Run Online Update again, and click "Accept" again (it should have selected several more patches for you).
- Reboot, so that ZMD will reload (and also to load any new kernel that was installed).
- From YaST, click "Software Management", and install the following:
Tip: You can search for and select multiple packages before clicking "Accept" to begin the installation.
- gcc
- kernel-source
- kernel-syms
- kdeadmin3
- expat
- java-1_4_2-sun
[Hints: Search for 'sun' in YaST. I tried java-1.5.0, but it seemed to make Firefox crash frequently.]
- java-1_4_2-sun-alsa
- java-1_4_2-sun-devel
- java-1_4_2-sun-plugin
- w32codec-all
- acroread
- flash-player
- RealPlayer
- mplayerplug-in
- libxine1
[Do a search for "xine" and UNCLICK "xine-lib" - DVD playback won't work if you install xine-lib instead of (or in addition to) libxine1]
- xine-ui
- Download libdvdcss; run (as root):
rpm -ivh libdvdcss2-1.2.9-1.i386.rpm
You should now be able to play retail DVDs through xine or mplayer (I've never gotten kaffeine to work, but I prefer xine anyways).
- [OPTIONAL] Although I have no proof that AppArmor caused problems with any applications, I tend to distrust things like this (and SELinux), since they can make things crash and/or behave weirdly. So, I go into YaST->Novell AppArmor->AppArmor Control Panel and turn it off.
- NVIDIA drivers:
- Go to NVIDIA.com, click "Download Drivers", then "Linux, FreeBSD, and Solaris Drivers". Download the driver; it will be called something like "NVIDIA-Linux-x86-1.0-8762-pkg1.run".
- Log out of KDE, switch to a console (Ctrl+Alt+F1), and run (as root):
init 3
sh NVIDIA-Linux-x86-1.0-8762-pkg1.run
Accept all defaults; answer "Yes" when it asks if it should update your X11 config file.
init 5
This will restart the X server. Run "glxinfo" and make sure it says "direct rendering: Yes" near the top.
- You have to reinstall the driver each time you upgrade your kernel. SUSE will fallback on the non-accelerated driver if you forget, so it is easy to overlook this step.
- If your system is like mine, your fonts are now tiny and unusable in GTK/GNOME apps (like Firefox). Here is how to adjust them:
- Check current display dpi with "xdpyinfo|grep resol". If it doesn't say "96x96", then do the following steps.
- Run "System" -> "Configuration" -> "SAX2".
- Next to "Monitor", click "Change", and select the "Display Size" tab.
- Calculate the screen size (in mm) to acheive 96x96 dpi as shown below, and enter these values in the "X" and "Y" axis boxes. For example, using 1024x768 resolution:
- X = 1024/96*25.4 = 271
- Y = 768/96*25.4 = 203
- Restart the X server and the fonts should be the correct size again ("xdpyinfo|grep resol" should give 96x96, or so).
75 dpi is another common choice here - use whichever makes your display look best.
- Add the following line to your .bashrc or similar:
export FIREFOX_DSP="aoss"
This makes sound sync better with streaming sites like YouTube. It is still a little off, but not as bad as the default.
- Installing MS Corefonts:
- Download: msttcorefonts-1.3-118.spec
- Run (as a regular user):
rpmbuild -ba msttcorefonts-1.3-118.spec
Note: If the process gets stuck while downloading, then edit the .spec file and pick a different download mirror. The list starts at line 45.
IMPORTANT: You must delete the % character when commenting a line in the spec file! Simply adding a # will not work.
- Run (as root):
rpm -Uvh /usr/src/packages/RPMS/noarch/msttcorefonts-1.3-118.noarch.rpm
SuSEconfig --module fonts
- See if the fonts are installed by doing:
xlsfonts | grep ^-microsoft
You should see a list of the corefonts displayed.
- I like to reboot now to ensure the fontserver sees all the new fonts (also need a reboot [or an X restart] if you made any changes using SAX2, above).
- Test the mscorefonts installation here: MS TTF Display Test. You should see a different font displayed by each name (starting from "Andale Mono").
Optional Stuff:
- jEdit:
- Download the Java-based installer
- Install (as root):
java -jar jedit42install.jar
- wxPython:
- Open YaST->"Software Management" and install:
- python-wxGTK
- python-wxGTK-doc [OPTIONAL]
- python-wxGTK-examples [OPTIONAL]
- [OPTIONAL]Test it out:
cd /usr/share/doc/packages/python-wxGTK/demo
python demo.py
- I like to add a few more commonly used Python modules:
- python-crypto
- python-devel
- python-doc
- python-sqlite2
- wings3d: Not available through YaST, had to install manually:
- Download from Wings3d homepage
- (As a regular user) Unpack & run, i.e.:
gzip -d wings-0.98.32a-linux.run.gz
sh wings-0.98.32a-linux.run
- GNOME: Since I install KDE as my default desktop during installation, I have to add GNOME afterwards. Here is the easiest way I've found to do it:
- YaST->Software Management
- In the "Filter" box (upper left), choose "Package Groups"
- Select the item: System->GUI->GNOME
- Right-click in the package-list frame and choose "All in This List"->"Install"
- Click "Accept"
This installs a LOT of packages - I wish there was a "gnome-meta" type package like the other distributions provide to give you a minimal GNOME base.
Sources:
- Hacking SUSE Linux 10.1
- Firefox, ALSA, Flash, YouTube, Google Video and SOUND!
- Optimal Use of MS TrueType Core Fonts for a KDE Desktop on SuSE
- Installation of MS TrueType Corefonts on SuSE 8.x/9.0