Geek Talk
Mandriva Linux Setup Guide
Personally, I like Mandriva Linux. One of the things you'll tend
to find about Linux users is that every user has one distribution
(or "distro") which he thinks is the best. There's also a lot of
snobbery and rivalry (especially from the people who feel that they
"keep the faith" on open-source software better than you
do; I'm looking at you, Ubuntu fans).
Anyway, I've used plenty of UNIX and linux flavours over the years:
Solaris, HP-UX, IRIX, RedHat, SuSE, and Mandrake (now called Mandriva),
and for me, Mandriva represents a pretty good balance of convenience
and flexibility. I'm not out to prove my credentials as the most
pious open-source advocate out there or the most "hardcore"
Linux user; computers are tools that I use for my convenience, not
altars of worship.
In any case, Mandriva is a free download from their website, it's got a slick
installer, it's quick, and it comes preloaded with all the stuff
you need for basic home/office productivity and net surfing
activities. Its installer and setup features have been greatly
improved over the years, but configuration can still be confusing
for newbies. It won't be a problem for an experienced power user,
but for the kind of person who calls tech support to change his
screen resolution, a Linux installation is probably out of his
league. However, it's still a fairly familiar GUI interface, and
once you've got it up and running, even a neophyte should be able
to use it without problems.
Tips
The 2008.0 version's installer is much more streamlined than
previous versions. If you go with the default options, you'll end
up with a bootable OS that can surf the Internet, answer E-mail,
watch DVDs, and do some basic office stuff. But there are a few
extra things that you'll need to do:
- From the Start Menu, go to "Tools", "System
Tools", "Configure Your Computer". This tool is
called drakconf, and it's basically the control panel for
Mandriva Linux.
- From drakconf, go to "Security" on the left-hand
panel. This area is fairly self-explanatory; you'll want to set
up a firewall if your machine is directly connected to the
Internet (in fact, this should be done immediately).
After that, you can set the security level. This defaults to
"high", which is good enough for most users. The
"higher" setting is for people who want to run a server
which acts like a typical commercial webhost, and allows people
to log into it from across the Internet.
- From drakconf, go to "Software Management" on the
left-hand panel, and then choose "Configure media sources
for install and update". Click "Add" and then add
one of the "Official Updates" mirrors, so that your
system can download and install the latest security and bugfix
patches.
- From drakconf, go to "Software Management" on the
left-hand panel, and then choose "Manage Software".
From here, you can add extra software from the installation DVD
that was not installed by default. One package that you'll
probably want to add is grip, for ripping CD audio to hard disk.
If you want to develop websites or web apps, you'll want to add:
- apache, apache-mod_php, and apache-mod_ssl
- mysql and mysql-client
- php, including the php-cli, php-gd, php-mbstring, php-mcrypt,
php-mysql, and php-zlib modules
- phpmyadmin
That may sound like a pain in the ass, but just try installing
all of that on a Windows box, and you will appreciate the
convenience of picking them from a menu here.
- From drakconf, go to "Hardware" on the left-hand
panel, and then choose "Set up the printers ...".
From here, you can configure printers that are hooked up to
your machine, or network printers, or printers on Windows
machines on your LAN. This widget is a huge improvement over
older versions, which required you to enter funky configuration
lines in order to access Windows printers. You can also configure
scanners, fax servers, and UPS units from the "Hardware"
tab, although I've found that the configuration of these devices
is still a bit flaky, due to driver issues.
- From drakconf, go to "System" on the left-hand
panel, and then choose "Manage date and time". This
will let you set the date and time, or choose the far better
option of synchronizing time with an NTP server, so your
computer time will always be accurate. From the "System"
tab, you can also add more users to your system (the installer
only asks you for one, which is good enough for your average
clueless home user, but not for a power user).
Now, you might want to install a few other key add-ons which
you'll have to acquire from the Internet:
- Lame (a top-notch MP3 encoder). Google it, download the source
code, and then do the usual "configure", "make",
and "make install" commands in order to build it. Then,
open up /etc/ld.so.conf and add the line "/usr/local/lib"
to make sure that the linker can find the libraries.
- Libdvdcss (you don't strictly need this, but if you feel like
playing commercial DVDs and you don't like LinDVD, you'll need it
in order to play them on kaffeine or some other software. Google it,
download the source code, and then do as you did with Lame.
- MPlayer and/or VLC (two media players that come bundled with
Mandriva but only in crippled form). These are best obtained from
the Penguin Liberation Front (Google it).
- DDClient (if you have a dynamic DNS-based website; if you don't
know what dynamic DNS is, you won't need it).
- Sitecopy (if you have a website and you want to keep a local
copy synchronized with it).
- Captive. This is an NTFS filesystem driver that allows you to
read and write to NTFS partitions on your system. Very
handy. Keep in mind that you'll have to install FUSE first, which
is a separate package. FUSE comes on the Mandriva Powerpack DVD,
but I'm not sure if it comes with the free version.
Other configuration hints
- If you want to have a "family login" screen, Edit
/etc/kde/kdm/kdmrc to replace the line "UseTheme =
True" with "UseTheme = False". You can now use the
"Configure Desktop" function to select icons to go with
each username.
- If you want to use NFS, add the following line in the
"Advanced" area of your firewall setup:
111/tcp 111/udp 2049/tcp 2049/udp
- Edit /etc/hosts.deny to add the line "ALL:ALL EXCEPT
127.0.0.1:DENY". This will lock out access to any apps which check
/etc/hosts.deny (such as sshd or nfs) from any IP address except
your own. You can add lines like "sshd:192.168.1." and
"portmap:192.168.1." to the hosts.allow file if you want to let LAN
users access services.
- Assuming you installed Apache, in /etc/httpd/conf/httpd.conf, edit
the ServerName to whatever you want your webserver to look like in
your address bar, and edit the AllowOverrides directive to
"All", otherwise .htaccess files won't do anything.
Upgrading
One of the best things about Linux is the fact that user
settings are generally stored on a completely separate partition
from the OS, so you can upgrade from one OS version to the next by
completely overwriting it, without wiping out your user settings in
the process. If you partition Linux so that your /home partition is
kept separate, you can format all of your partitions except for
/home when you upgrade. But as a general rule, you probably want to
keep copies of the following files and/or directories from your
original OS partition(s) in order to make an upgrade go
smoother:
- /etc/hosts (in case you use the hosts file at all)
- /var/www/html (in case you have a website on your machine)
- /etc/ddclient/ddclient.conf (if you use ddclient)
- /etc/exports (if you use NFS file sharing)
- /etc/postfix/main.cf (if you use your machine as a mail server)
- /etc/hosts.allow and /etc/hosts.deny
- /var/lib/mysql (in case you have any MySQL databases on your machine)
- /etc/samba/smb.conf (in case you use Samba to share files with Windows machines)
- Any crontabs in use (if you don't know what a crontab is, ignore this)
Personally, I've never really trusted upgrade scripts. If you're
going to switch from one version of an OS to the next, you should
just wipe out the old OS entirely, and as long as you keep your
/home directory separate, you can do so relatively painlessly.
Last updated: 2007-11-16
Continue to Applications
Jump to: