%% LyX 2.3.4.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{verbatim}
\usepackage{prettyref}
\usepackage{textcomp}
\usepackage{url}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\newenvironment{lyxcode}
	{\par\begin{list}{}{
		\setlength{\rightmargin}{\leftmargin}
		\setlength{\listparindent}{0pt}% needed for AMS classes
		\raggedright
		\setlength{\itemsep}{0pt}
		\setlength{\parsep}{0pt}
		\normalfont\ttfamily}%
	 \item[]}
	{\end{list}}

\makeatother

\usepackage{babel}
\begin{document}
\title{Log of unix software lessons, including installation of Ubuntu GNU/Linux
on a Toshiba Satellite 2410 laptop, and installation of Ubuntu Server
as a desktop GNU/Linux server\\
{\footnotesize{}Also includes older installs of Mandriva and Mandrake}}
\author{Christopher Barrington-Leigh}
\date{2003-2007}

\maketitle
In 2003 I left the world of professionally supported Unix and got
my own laptop. These are just my notes on things I've learned as a
user of less-than-fully-supported (open source) unix distributions
from Mandriva Linux and recently Ubuntu. Some things are written as
advice to others; some as notes to myself. I include some notes on
recently developed software I like, too.

{[}2006{]} For those who are just looking for a good, working operating
system but are frustrated with Microsoft, I endorse the following
advice (from someone more knowledgeable, 2005):
\begin{itemize}
\item If you're buying something new, buy a Macintosh, supplemented with
Openoffice.org's free office suite. When you can now get (in Mac OSX)
a unix core underlying a polished GUI, why bother with GNU/Linux?
If you want to, make sure you have a reason.
\item If you are already invested in intel-like hardware, install a more
basic, stripped-down version of GNU/Linux than Mandriva currently
is: Linspire or Ubuntu. These will happily install themselves alongside
Microsoft Windows. Mandriva doesn't YET {[}2005{]} offer a simple,
robust option. (Instead, they offer a full-fledged, high-performance
installation which is nearly-robust).
\item If you're running Ubuntu, you can find beautiful, clear answers and
methods without strange gui interfaces at: http://ubuntuguide.org/
\end{itemize}
My current status: 
\begin{itemize}
\item {[}2007{]} My system gradually updated to Ubuntu Gutsy, and is now
running the released version. My recommendation is no longer ``buy
a Mac''. It's find somewhere which sells computers without charging
for an operating system, and use Ubuntu.
\item {[}2007{]} I'm using Ubuntu Edgy now. I upgraded the RAM on my laptop
from 256MB to 1GB. This was a very cheap way to make everything work
twice as fast... Hooray: Openoffice, all other tools are just grand
now.
\item {[}2006{]} Helped with another fresh install of Dapper Server (grad.econ.ubc.ca).
This was trickier, due to it being a replacement of a RedHat system
and various customised stuff.
\item {[}2006{]} Automatically updated to Ubuntu Dapper! Now also running
a desktop server, installed as Ubuntu Breezy but since automatically
updated to Dapper.
\item {[}2005{]} Ubuntu Breezy installed and touchpad issue resolved. Scroll-wheel
no longer in use.
\item {[}2005{]} Mandriva 2005 LE 4-CD club version working extremely well
after a few quick fixes. (See \prettyref{sec:2005LEfull4}). I don't
recommend installing any Mandriva distribution without paying for
the Club access (or 4th CD). My printer, pcmcia wireless, modem, built-in
accelerated/3D graphics, DVD playing, CD-ROM writing, external monitor,
sound, etc all work. Sleep/hibernate modes do not work at all for
me on this Toshiba laptop.
\end{itemize}
\tableofcontents{}

\chapter{Ubuntu Gutsy}
\begin{itemize}
\item After install, use ``Software sources'' GUI from menu to select
the sources, turning on some extra ones. Then..
\item Some of my standard friends:
\end{itemize}
\begin{lyxcode}
sudo~apt-get~install~latex-beamer~gbib~aterm~~~emacs21~latex2html~elinks~streamripper~xpdf-utils~~ssh~emacs-extra~emacs-goodies-el~preview-latex~~a2ps~psutils~gv~sshfs~xmms~lyx~latex-xft-fonts~fetchmail~postfix~ipython~python-mode~alpine~xmms-wma~xmms-mp4~ubuntu-restricted-extras~wine~meld~pdftk~feh~enscript~mplayer~alien~efax-gtk~imagemagick~w32codecs~imagemagick~ps2edit
\end{lyxcode}
\begin{itemize}
\item Which gives the response (I ignored this?):
\end{itemize}
\begin{lyxcode}
~you~must~run~\textquotedbl apt-get~install~10~emacs-extra/select-modes~doesn't~exist\textquotedbl ~to~install~theses~languages~support~long~description~here...
\end{lyxcode}
\begin{itemize}
\item It also said (I ignored this?):
\end{itemize}
\begin{lyxcode}
msttcorefonts~uses~defoma~Msttcorefonts~uses~the~DEbian~FOnt~MAnager~(defoma).~If~you~wish~to~use~the~fonts~provided~by~this~package~under~the~X~Window~System,~you~must~configure~it~to~~~use~defoma~fonts.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~The~easiest~way~to~do~so~is~to~use~the~x-ttcidfont-conf~package.~For~more~information,~install~the~x-ttcidfont-conf~package~and~consult~its~documentation~under~/usr/share/doc/x-ttcidfont-conf.~For~uses~of~msttcorefonts~not~related~to~the~X~Window~System~(e.g.~printing)~this~is~not~required.
\end{lyxcode}
\begin{itemize}
\item I chose ``internet with smarthost'' for the mail server options.
I set it up to use smtp.gmail.com as a smtp relay host. (?). I also
told it the local default host to use was interhcange. dpkg-reconfigure
postifx \textquotedbl internet with smarthose\textquotedbl{} then
\textquotedbl cpbl-laptop\textquotedbl{} chose NOT synchronous updates
\item I also needed to edit /etc/fuse.conf, as described in my sshfs section
\end{itemize}
That's about it! wow.

Oh, I also clicked on date/time and set it to use NTP

I also installed Adobe Acroread -- see ubuntuguide.org

And I had to set up my printer -- nearly automatic.

I downloaded the RealPlayer rpm and installed it with alien, as before.

\subsection{Jan 2008}

Once again, I have \emph{permanently lost email} due to bad permissions
in my /var/mail path. I had symbolically linked the latter to another
path, and that path had not quite the right ownership, although 

drwxrwsr-x 2 root mail 4.0K 2008-01-24 21:51 mail/ 

rather than 

drwxrwsr-x 2 root root 4.0K 2008-01-24 22:13 mail/ 

. The other directories/files had the correct permissions.

Fetchmail got the mail. Postfix caught it, queued it, and then either
bounced it or destroyed it. (Okay, maybe it wasn't permanently lost
-- maybe bounced.)


\chapter{Ubuntu Feisty}

I installed the beta Ubuntu 7.04 version from CD. I have two partitions
I use for unix operating systems, so as usual, I installed into the
alternate one, making for a very safe switchover. There are many great
improvements!
\begin{itemize}
\item Pine has gone open source as Alpine. 
\item Trying to run any command that isn't yet installed tells you what
you might want to install!
\item Other linux distributions on the disk are noticed and incorporated
by Grub. 
\item Ubuntu now offers its own non-free-drivers package! No more need for
Automatix, etc.

\begin{lyxcode}
sudo~apt-get~install~ubuntu-restricted-extras
\end{lyxcode}
\item My graphics ran with full 3D out of the box. {[}ugh, but then shortly
it stopped working. maybe after running Ubuntu's 3rd party program?
Anyway, I fixed as with Edgy: just replace the glx driver with the
older one:

\begin{lyxcode}
sudo~apt-get~intstall~nvidia-glx-legacy
\end{lyxcode}
\item Hibernating works on my box for the first time! {[}uh, except network
doesn't come back up.{]}
\item I put ``smart-notifier'' in my startup script. Now my laptop will
warn me about 24 hours before my hard drive crashes from old age!!
\end{itemize}
etc, etc.

Some of my standard friends:
\begin{lyxcode}
sudo~apt-get~install~latex-beamer~gbib~aterm~~~emacs21~latex2html~elinks~streamripper~xpdf-utils~~ssh~emacs-extra~emacs-goodies-el~preview-latex~~a2ps~psutils~gv~sshfs~xmms~lyx~fetchmail~postfix~ipython~python-mode~alpine~xmms-wma~xmms-mp4
\end{lyxcode}
\begin{itemize}
\item I needed to make some adjustments to xorg.conf to make the touchpad
side-scrolling more sensitive. 
\end{itemize}

\chapter{Ubuntu server: How to make a complete server in one hour with Ubuntu.
March 2006}

I guess this is what they call a \textquotedbl LAMP\textquotedbl{}
server, since it comes nearly turnkey with Linux, Apache, MySQL and
PHP. Plus lots else in this case: Mediawiki, shell accounts, ...

\section{Install X applications}

I installed the server distribution (a mistake -- easier to just
change the desktop version to not start X by default? rather than
installing all the gui tools afterwards on top of the stripped-down
server version) so, to install graphical desktop, used:
\begin{lyxcode}
sudo~apt-get~install~gnome-desktop

sudo~apt-get~upgrade
\end{lyxcode}
Having stuff installed does not slow down the system -- only running
it does! Yet useful admin tools are gui... Therefore I am not sure
what good the ``server'' version is. (Oh: one difference is that
updates are less frequent / bleeding-edge for the server)

\section{Install extra apps}

Do the desktop enhancement thing: (the first line below is from March
2006. Google on ``Automatix'' to get something up to date).
\begin{lyxcode}
wget~http://beerorkid.com/automatix/automatix\_5.6-2\_i386.deb~

sudo~dpkg~-i~automatix\_5.6-2\_i386.deb

Automatix

\end{lyxcode}
and install any other favourite tools\footnote{For instance:
\begin{lyxcode}
sudo~apt-get~install~ssh~emacs21~w32codecs~a2ps~psutils~gv~latex-beamer~gbib~kdissert~xfce4-iconbox~xfce4-mixer~xfce4-systray~xfce4-toys~xfce4-trigger-launcher~xfprint4~xfcalendar~aterm~lyx~octave~emacs21~latex2html~elinks~streamripper~xpdf-utils~scribus~auctex~emacs-extra~emacs-goodies-el~preview-latex~gnomebaker~flashplayer-mozilla~acroread~mozilla-acroread~acroread-plugins~gftp~azureus~realplayer~streamtuner~mutt~urlview~sun-j2re1.5~
\end{lyxcode}
} you want...

\section{Install some server services}
\begin{lyxcode}
sudo~apt-get~install~mysql-server~phpmyadmin~postfix

sudo~apt-get~install~mediawiki~mediawiki-math~apache2~
\end{lyxcode}

\subsection{As per the postfix install instructions:}
\begin{lyxcode}
sudo~newaliases
\end{lyxcode}
I set the hostname for mail up to be the gc ip name\footnote{Post-fix installer told me the following: You have several choices
for general configuration at this point. If you have your debconf
priority set to 'low' or 'medium', you will be asked more questions
later. You can always run \textquotedbl dpkg-reconfigure --priority=low
postfix\textquotedbl{} at a later point if you want to see these questions
again. No configuration - IF YOU WANT THE INSTALL TO LEAVE YOUR CONFIG
ALONE, CHOOSE THIS OPTION. No configuration changes will be done now:
If you have not already configured Postfix, your mail system will
be broken and should not be used. You must then do the configuration
yourself by editing /usr/share/postfix/main.cf.dist and saving your
changes as /etc/postfix/main.cf, or by running dpkg-reconfigure Postfix.
main.cf will not be modified by the Postfix install process. }.

The install noted that mail sending failed. (?)

The mailing system worked perfectly sending mail to the internet without
ANY configuration!I love it! (This must be related to friendly behaviour
on the part of my ISP, which is U.B.C. -- oh, yes.. maybe sending
directly to outside UBC does not work yet.?)

\subsection{To initiate the MySQL service:}
\begin{lyxcode}
mysqladmin~-u~root~password~\emph{<pick-root-password>}
\end{lyxcode}

\subsection{Mediawiki is hidden until I do:}
\begin{lyxcode}
sudo~ln~-s~/var/lib/mediawiki~/var/www/mediawiki
\end{lyxcode}
and then browsing it worked. I followed the web-based setup process
(Wiki name is GCRA) Then, as directed:
\begin{lyxcode}
sudo~mv~/var/lib/mediawiki/config/LocalSettings.php~/etc/mediawiki/LocalSettings.php

sudo~chmod~600~/etc/mediawiki/LocalSettings.php~

sudo~mv~/var/lib/mediawiki/config~/var/lib/mediawiki/config\_retired
\end{lyxcode}
But how to get the wiki to appear at /wiki rather than /mediawiki
??????? Well, doing
\begin{lyxcode}
sudo~ln~-s~mediawiki~wiki~
\end{lyxcode}
from /var/www is good enough for now.

And how to move the MySQL database (data location) off the root partition?

To change the graphic that seems to adorn default layout to a new
one (/home/cpbl/wiki.png):
\begin{lyxcode}
sudo~cp~/home/cpbl/wiki.png~/usr/share/mediawiki/skins/common/images/wiki.png~
\end{lyxcode}
Actually, I think there is just a variable/setting somewhere as a
cleaner way!

July 2006: spam attacks have started on the wiki. How to restrict
edit by IP address?? Have closed new accounts and edits by anonymous...
Still need to figure how to make new accounts; upgrade wiki version;
restrict access to edit by IP range

\subsection{Samba and Swat}
\begin{lyxcode}
sudo~apt-get~install~samba~smbfs
\end{lyxcode}

\subsubsection{Samba (offer Windows NT networking services)}

I followed Ubuntu's getting started guide to: make a samba user called
\textquotedbl gcra\textquotedbl , 
\begin{lyxcode}
sudo~smbpasswd~-a~\emph{<system\_username>}
\end{lyxcode}
the same name as a UNIX user gcra. Also following Ubuntu's instructions,
I turned on read/write to home directories for users, which means
gcra should be able to write to their home. (Next time, do all this
using SWAT rather than editing /etc/samba/smb.conf ?)

Edited /etc/samba/smb.conf to change workgroup name from MSHOME to
GCRA 
\begin{lyxcode}
sudo~/etc/xinit.d/samba~restart
\end{lyxcode}

\subsubsection{SWAT (administrate Samba through a web interface)}

\emph{I haven't found a 5-minute method for this yet, so ignore all
the following.}

sudo apt-get install xinetd

Swat: This didn't work (connection refused) until I edited some inetd
file to uncomment swat and tried:

sudo apt-get install xinetd

then it worked (uhh, did it? or only when i made a /etc/xinetd.d/swat
??). This seems peculiar to Debian / Ubuntu? 

An XP-Home user couldn't access the home share. With Swat I turned
on Domain Controller.. that might help???

\section{Webmin}

Do I want this?! I've never tried it. It apparently is served https
as installed, whereas SWAT needs fiddling to be SSL secure.

\section{Time service}

run \textquotedbl service-admin\textquotedbl{} to turn on ntp, see
what's going, etc.

\section{NFS}

sudo apt-get install portmap nfs-common

mount montoya.econ.ubc.ca:/web/montoya2\_backups /mnt/backups 

I did NOT even need to do the following:

sudo /etc/init.d/portmap restart 

sudo /etc/init.d/nfs-common restart

\section{Missing}
\begin{itemize}
\item Move the database data off the system partition/disk into the /home
space, so that the O.S. is separate from all data...
\item Regular filesystem (harddisk) backups
\item Installing my unix user management system, so we can give anyone who
wants one an account (e.g. for file service)
\item Fine-tuning the mail server?
\end{itemize}

\section{}


\section{Personal stuff}

\subsection{Move a MySQL database from another server:}

MySQL residents directory 

Used outstanding phpmyadmin to add gcra as a user with privileges
on just one database; created a database...

To move database. On old machine:
\begin{lyxcode}
mysqldump~-u~cpbl~-p~greencollege~residents~activityLog~>~\textasciitilde cpbl/gc.sql
\end{lyxcode}
Then I copied this file to the new machine, and:
\begin{lyxcode}
mysql~-u~gcra~-p~

use~directory~

source~/home/cpbl/gc.sql
\end{lyxcode}
presto! Except that the locations of graphics files are written into
the database as being on the old server, etc... so some changes needed
in my php Directory code.

\subsection{Apache access}

To control access by directory, I am using apache2.conf rather than
local .htaccess files...

sudo /etc/init.d/apache2 restart

Why? agh, it seems to me that if I turn on user-level control over
.htaccess and .htpasswd files, users have to give the apache group
read access (e.g. chown user:apache) to the .htpasswd file... but
users cannot do that. So superuser intervention is needed anyway.
Is this really right? (Help!). I've wasted a bunch of time chasing
down this problem.

\subsection{Anonymous ftp server (proftd) read/write; image indexer using php
and GD2: ``TWG''}

July 2006:

I want an anonymous ftp site in which people upload new directories
of images/videos. A script automatically indexes/thumbnails and organises
them. Comments etc can be added.

Solution: proftpd, php(4)-gd, and a free php script called twg. Very
neat! Too easy!

(Make sure to match php-gd package to the installed version of php.
In my case, it was php4, not php5.)

See Ubuntuguide for ftp installation.

I increased the php memory limit and file upload size in php.ini

\subsection{Fine tune security and behaviour of the web server}

Configuration is in /etc/apache2/apache2.conf. Rather than use .htaccess
files, I'm going to have security get set in that main config file
for the moment.

sudo /etc/init.d/apache2 restart

is useful.

Restricting authentication is really easy; just follow the directions
at a page such as 

http://httpd.apache.org/docs/2.0/howto/auth.html

I also changed the default web dir in people's home directories (\textasciitilde user/)
to ``web'' from ``public\_html'': simple.

.

.

.

\section{System upgrade}

In August 2006 I replaced the word ``breezy'' with ``dapper''
in /etc/apt/sources.list and initiated an update. The system downloaded
the \textasciitilde 0.5 GB of needed files, shut down some server
services, installed the new system, software, etc, restarted the services,
all by itself and seamlessly without requiring a reboot. Everything
worked, except that 
\begin{itemize}
\item I got relatively a harmless message about a mysql log from root each
day thereafter. This seems to be a real bug, and is now reported.
The solution is simply to delete two files: /etc/mysql/debian-log-rotate.conf
and /etc/cron.daily/mysql-server 
\item installing new software makes some complaint about mediawiki configuration
now, althought he wiki is working perfectly
\end{itemize}
Several days later I rebooted the machine, and everything continued
to work.

\chapter{Upgrade of server Dapper$\rightarrow$Edgy($\rightarrow$Feisty$\rightarrow$Gutsy)}

September 2007. Mike's advice: \emph{There are three things that will
probably break during an upgrade. Exim configuration file, named zone
files and encryption keys, and crontabs for root (for some reason
logwatch espectially gets wiped during upgrades).}
\begin{itemize}
\item updated. then changed ``dapper'' to ``edgy'' in sources.list.
then downloaded all without installing. Backed up all of /etc. Rebooted
to latest kernel.
\item began upgrade
\item dovecot.conf: kept existing (user-modified) version
\item /etc/exports: kept existing, modified version
\item /etc/ntp.conf: kept existing, modified version
\item It seems things are working no problem: mail works, cron looks okay...
\end{itemize}
So repeated for feisty...

except I installed upgrade-manager and made the mistake of trying
to ask it to ``Upgrade'', which it had offered to do. It wanted
me to install ubuntu-desktop first. I later found out that for servers,
the appropriate command is instead sudo do-release-upgrade, not update-manager.
Poor documentation in update-manager interface, then.

Instead, resumed by command line: began installing downloaded Feisty
packages:
\begin{itemize}
\item MD array booting: chose ``all'', even though I dont' think any RAID
arrays are needed for boot.
\item php.ini: Chose to installed new version. So I need to reimplement
differences. {[}done{]}
\item `/etc/dhcp3/dhclient.conf: kept old version
\item /etc/bind/named.conf.options: kept, but should add listen-on-v6 line?
\item apache2.conf: installed new one, so need to reimplement differences!
{[}done{]}

\begin{itemize}
\item (warning on restart)
\item Problem was that in sites-enabled, I needed to comment out the default
file. 
\end{itemize}
\item phpmyadmin htaccess: kept old (new is for setup only)
\item dovecot: kept old version
\item ntp.conf: kept old version
\end{itemize}
Success. Everything looks great.

\chapter{Ubuntu Dapper Server: another (harder) install (on grad.econ.ubc.ca)}

In Sept 2006 Mike Peters did a fresh install of Ubuntu (replacing
old RH). Notes:
\begin{itemize}
\item usermod -G admin -a biguser

to put user ``biguser'' in the admin gruop, which has sudo authority.
Root doesn't seem to be able to use X, but sudo can.
\item Make sure to add the (new) ubuntu-commercial repository for apt! It
has pine, opera, etc.
\item MySQL is up and running, with only the gradAdmin database (mostly
restored, partly recreated).
\item PHPmyAdmin is up and running: browse /admin/phpmyadmin and log in
as \textquotedbl root\textquotedbl{} with the password in the README
file. Need to install ``php5-gd'' for GD2 graphics library
\item All grad users have been restored with, except for one, their old
passwords: just needed /etc/passwd and /etc/shadow from the old system
\item My midnight script probably won't work yet, so I've not set it to
(crontab)
\item PHP is serving okay, but some people are having it fail. All they
need to do is to clear their browser cache.
\end{itemize}
Some to do's for us:
\begin{itemize}
\item my grad-admin script
\item NTP
\item backups
\item mail (postfix currently installed)
\item recreate non-grad users
\item other databases
\end{itemize}
--------------------

I have had amazing frustration with phpmyadmin / php(?) with the

virtual hosts, so I'm leaving it (and mysql) and have not reinstated
any

databases... (Not sure that those got backed up anywhere except the
old

version in my account.)

I have removed the CDROM from apt sources.

WEB SERVER:

mkdir /etc/apache2/logs

copy old VirtualServer directives to (which is a poor name) :

cp oldVirtualServerConfig /etc/apache2/sites-enables/gradEconSite

then:

/etc/init.d/apache2 restart

or:

apache2ctl restart

MYSQL:

mysqladmin -u root password <pick-root-password>

Then all other setup, importation of archived databases, etc can be
done

with phpmyadmin.

PHPMyAdmin:

I was getting download of php file! despite having installed php.

I tried: uncommment:

AddType application/x-httpd-php .php

in apache2.conf. That worked. Then:

I was getting strange error:

{[}Fri Sep 22 10:56:07 2006{]} {[}alert{]} {[}client 128.189.135.190{]}

/home/web/grad/phpmyadmin/.htaccess: DirectoryIndex not allowed here

I tried:

apt-get install libapache2-mod-php5

I'm still getting various errors from .htaccess in the /phpmyadmin

directory!

Solution: rename (disable/delete) .htaccess. Then it works fine.

I haven't taken any other security measures, since you still need
a password

to log in from that page. This admin interface works nicely. I reloaded
the

database dump file that I had saved on 12 Sept in cpbl account and
have

recreated by hand two users who are more recent than that.

I have moved the link to /home/web/grad/admin/phpmyadmin

POSTFIX:

apt-get install postfix

I chose \textquotedbl internet site\textquotedbl{} with \textquotedbl grad.econ.ubc.ca\textquotedbl{}
as host, but I got an error

Setting up postfix (2.2.10-1ubuntu0.1) ...

Adding group `postfix' (116)...

Done.

Adding system user `postfix'...

Adding new user `postfix' (108) with group `postfix'.

Not creating home directory `/var/spool/postfix'.

Creating /etc/postfix/dynamicmaps.cf

Adding tcp map entry to /etc/postfix/dynamicmaps.cf

Adding group `postdrop' (117)...

Done.

setting myhostname: montoya2.econ.ubc.ca.

setting alias maps

setting alias database

changing /etc/mailname

setting myorigin

setting destinations: grad.econ.ubc.ca, montoya2.econ.ubc.ca.,

localhost.econ.ub

setting relayhost:

setting mynetworks: 127.0.0.0/8

setting mailbox\_size\_limit: 0

setting recipient\_delimiter: +

setting inet\_interfaces: all

Postfix is now set up with a default configuration. If you need to
make

changes, edit

/etc/postfix/main.cf (and others) as needed. To view Postfix configuration

values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases

newaliases: warning: valid\_hostname: misplaced delimiter:

montoya2.econ.ubc.ca.

newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname:
bad

paramete

dpkg: error processing postfix (--configure):

subprocess post-installation script returned error exit status 1

Errors were encountered while processing:

postfix

E: Sub-process /usr/bin/dpkg returned an error code (1)

Bizarre: I had to, in /etc/postfix/main.cf, change

myhostname = montoya2.econ.ubc.ca.

to: myhostname = montoya2.econ.ubc.ca

and then postfix started alright (but read on):

dpkg --configure postfix

Setting up postfix (2.2.10-1ubuntu0.1) ...

Postfix configuration was not changed. If you need to make changes,
edit

/etc/postfix/main.cf (and others) as needed. To view Postfix configuration

values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases

{*} Stopping Postfix Mail Transport Agent postfix {[}

ok {]}

{*} Starting Postfix Mail Transport Agent postfix {[}

ok {]}

But when sending mail, it still thinks the host name has a period
at the

end. Also, it can't find smtp.

not fixed.

That's it for now.

Chris

====================== Postfix instructions:=============

You have several choices for general configuration at this point.
If you

have your debconf priority set to 'low' or 'medium', you will be asked
more

â\textasciitilde T\textasciitilde B questions later. You can always
run \textquotedbl dpkg-reconfigure --priority=low

postfix\textquotedbl{} at a later point if you want to see these questions
again. â\textasciitilde T\textasciitilde B

â\textasciitilde T\textasciitilde B No configuration - IF YOU WANT
THE INSTALL TO LEAVE YOUR CONFIG ALONE,

CHOOSE THIS OPTION. No configuration changes will be done now: If
you have

not â\textasciitilde T\textasciitilde B already configured Postfix,
your mail system will be

broken and should not be used. You must then do the configuration
yourself

by editing â\textasciitilde T\textasciitilde B /usr/share/postfix/main.cf.dist
and saving your changes as

/etc/postfix/main.cf, or by running dpkg-reconfigure Postfix. main.cf
will

not be modified by the â\textasciitilde T\textasciitilde B Postfix
install process. â\textasciitilde T\textasciitilde B â\textasciitilde T\textasciitilde B
Internet

site - mail is sent and received directly using SMTP. If your needs
don't

fit neatly into any category, you probably want to start with this
one and

â\textasciitilde T\textasciitilde B then edit the config file by
hand. â\textasciitilde T\textasciitilde B â\textasciitilde T\textasciitilde B
Internet site using

smarthost - You receive Internet mail on this machine, either directly
by

SMTP or by running a utility such as fetchmail. Outgoing mail is â\textasciitilde T\textasciitilde B
sent

using a smarthost. optionally with addresses rewritten. This is probably

what you want for a dialup system.

.

.

.

Squirrelmail:

sudo apt-get install squirrelmail 

sudo /usr/sbin/squirrelmail-configure 

ln -s /usr/share/squirrelmail /home/web/grad/gradmail

But it seems to need an IMAP server?! doesn't work yet.

.

.

For some reason, this was necessary:

apt-get install synaptic

and I cannot find ``software-properties'' on the apt repositories....
I want to make auto security updates.

.

.

apt-get install unattended-upgrades sbackup

.

.

.

Bizarre! After installation of php-mysql, mysql was not turned on
in php.ini! Needed to uncomment one line there. This is apparently
intentional, and documented on ubuntuguide.org, but there's no mention
from the .deb

And still, mail() from php seems to be failing silently.

Also, the --stdin option of passwd does not exist in Debian. What
to do? (solved: usermod -p)

\chapter{Ubuntu 6.10 ``Edgy Eft'' official release}

This is meant to be more of a slightly ``bleeding edge'' release.
Installed from CD. Added some extra apt sources. Followed ubuntuguide.org's
instructions for Automatix, which still got the wrong nvidia-glx package,
so:
\begin{lyxcode}
sudo~apt-get~install~nvidia-glx-legacy
\end{lyxcode}
before rebooting, after installing stuff from Automatix. Problems:
\begin{itemize}
\item no sound device ('/dev/dsp': Permission denied) for my primary user!

\emph{Solution}: actually, this is a security feature of linux. Because
my user was not the one I created during installation, it was not
given lots of permissions over peripherals. Just use the ``users
and groups'' gui to give the user permissions over lots of peripherals
(ie membership in groups).
\item graphics settings only include a 640x480 display on my screen. {[}\emph{solution}:
use my old xorg.conf. (This is not a an acceptable solution){]}
\item firefox terribly unstable: Many things with flash cause it to crash.
{[}\emph{solution:} xorg.conf comes with a DefaultDepth (of colour)
of 16. Change this in xorg.conf to 24; the instability goes away.{]}
\item Fonts in emacs are tiny and awful. {[}tried installing Automatix's
suggested extra fonts. no help{]} {[}\emph{Solution:} make sure that
in xorg.conf the font paths have the new ``/usr/share/fonts/X11/''
rather than ``/usr/share/X11/fonts/''. Maybe this was my fault,
since I had to install my old xorg.conf.{]}
\item the fat32 partition in /etc/fstab is not readable {[}solution:

\begin{lyxcode}
UUID=xxxxx~/myvfatpartition~vfat~rw,users,gid=users,umask=000,~0~0~

{]}
\end{lyxcode}
\item The new nvidia-glx-legacy driver does not give me glx /3D graphics,
even though glx and nvidia are loaded in xorg.conf. 

\emph{Solution:} append the following to the end of xorg.conf:
\begin{lyxcode}
Section~\textquotedbl Extensions\textquotedbl ~

Option~\textquotedbl Composite\textquotedbl ~\textquotedbl Disable\textquotedbl ~~

EndSection~
\end{lyxcode}
\item \LyX{} doesn't include basic fonts for math display. \emph{Solution:}
install latex-xft-fonts. Bug report submitted; this is a dependency
error introduced since Dapper.
\item Firefox's mp3 plugin doesn't seem to work. Neither do many video plugins,
including, for instance, viewing a simple .avi file in the browser.
Firefox seems slightly unstable, which it never used to be. ugh. {[}This
doesn't seem to be a problem anymore.. did I do something?{]}
\item An embedded .m3u file in html in Firefox and Opera do not work (fail
silently). The plugin gives some errors to console. This means basic
embedded sound in webpages fails. ugh.
\item The file /etc/papersize had the contents ``a4'' in stead of ``letter'',
appropriate for my locale. This messes up various things. Solution:
change it. {[}Bug report submitted{]}
\item many applications, e.g. gnometris for a trivial example, give many
warnings:

\begin{lyxcode}
Gtk-WARNING~{*}{*}:~Unable~to~locate~theme~engine~in~module\_path:~\textquotedbl pixmap\textquotedbl ,~
\end{lyxcode}
\end{itemize}
\begin{lyxcode}
~

I think this was due to a customisation in my Gnome themes, which
for some reason failed under Edgy. I used a different theme to fix
it.
\end{lyxcode}
As usual, install some personal favourites maybe not part of Automatix:
\begin{lyxcode}
sudo~apt-get~install~latex-beamer~gbib~aterm~~octave~emacs21~latex2html~elinks~streamripper~xpdf-utils~~ssh~emacs-extra~emacs-goodies-el~preview-latex~~a2ps~psutils~gv~sshfs~xmms~lyx~fetchmail~postfix~ipython~python-mode~
\end{lyxcode}
and:
\begin{lyxcode}
sudo~gdebi~pine\_4.64\_i386.deb
\end{lyxcode}
Problems with above: emacs-extra has trouble. Is this related to bad
mode behaviour for php, etc?
\begin{lyxcode}
/tmp/emacs-extra.config.123451:~90:~cannot~create~/usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el:~Directory~nonexistent~/tmp/emacs-extra.config.123451:~90:~cannot~create~/usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el:~Directory~nonexistent~/tmp/emacs-extra.config.123451:~90:~cannot~create~/usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el:~Directory~nonexistent~/tmp/emacs-extra.config.123451:~90:~cannot~create~/usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el:~Directory~nonexistent~/tmp/emacs-extra.config.123451:~90:~cannot~create~/usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el:~Directory~nonexistent~
\end{lyxcode}

\section{Sony DSC-W30 digital camera}

Aha, recently (Edgy) the system has become able to talk to my camera.
Now when I plug it in, everything happens automatically, GUI's pop
up, etc, and I can get my photos and videos with a simple copy. Yay,
GNU!

\chapter{Ubuntu 6.06 ``Dapper Drake'' official release}

Clean install from beautiful live-CD which can install (fast!) while
you are \emph{using} the live operating system! This is a brilliant
advance.

Everything looks great on the first go. Touchpad works nicely, with
sidebar scrolling on the touchpad.

I then installed and ran Automatix to get audio-visual workstation
(easy, but takes some time). Automatix gets one thing wrong (install
nvidia-glx, but my cardp is older so:)
\begin{lyxcode}
sudo~apt-get~install~nvidia-glx-legacy
\end{lyxcode}
and anyway Automatix breaks X, so I have to revert to ``nv'' driver
or my custom xorg.conf.

I then added a few more things:
\begin{lyxcode}
sudo~apt-get~install~latex-beamer~gbib~kdissert~aterm~~octave~emacs21~latex2html~elinks~streamripper~xpdf-utils~scribus~ssh~emacs-extra~emacs-goodies-el~preview-latex~w32codecs~a2ps~psutils~gv~sshfs
\end{lyxcode}
I am installing a non-Ubuntu version of \LyX , since Ubuntu's is old
(!? why?). Similarly, Ubuntu does not supply pine (my oooold-fashioned
mail client), so I have to get it myself. After downloading,
\begin{lyxcode}
sudo~dpkg~-i~pine\_4.64\_i386.deb~lyx-common\_1.4.1-1.lyx.org.1\_i386.deb~~lyx-qt\_1.4.1-1.lyx.org.1\_i386.deb~
\end{lyxcode}
And lastly, to get my mail server up:
\begin{lyxcode}
sudo~apt-get~install~fetchmail~postfix
\end{lyxcode}
And in the dialog that comes up, I chose Internet server for the configuration.
I needed to do nothing by hand.

\section{June 2006}

I had realplayer play bbc in my startup script. About 50\% of bootups
resulted in a realplayer with no sound until I rebooted. This was
fixed by putting a longer delay in when the startup script launched
it. (?)

Dapper seems to have installed with /etc/papersize set to ``a4''.
That is no good.

Also, some files have been printing with all characters turned to
rubbish boxes. Sending the doc through \textbackslash pdf2ps and
then ps2pdf fixed this, since the first one seems to rasterize....

\chapter{Ubuntu ``Dapper Drake'' Automatically upgraded from Ubuntu Breezy
on Toshiba Satellite 2410}

Pretty neat: nearly one-click complete upgrade of an operating system
and all associated software.

Well, almost. Before you do this, switch the driver in /etc/X11/xorg.conf
back from ``nvidia'' (the proprietary driver) to ``nv'' (the open
source one) --- for me, X failed to start after the install. So after
the upgrade, I used
\begin{lyxcode}
sudo~apt-get~install~nvidia-glx~
\end{lyxcode}
and switched the driver back to ``nvidia''.

Below are my notes on the BETA version. That is, there are supposed
to be bugs for this pre-release, and I've reported some of these bugs.

Also, some of the multimedia that I had installed with Automatix seems
gone. I've used a script called ``bumps'', plus

apt-get install libflash-mozplugin

uhhh. flash still doesn't work.!
\begin{itemize}
\item The boot process hung without explanation. Changing back to nv driver
seemed to make it work.
\item aterm flashes at the beginning of the line upon every single keypress
(aterm didn't with Breezy. xterm does not)
\item Firefox plugin for PDFs fails
\item ``Nvidia settings'' panel has no options to do anything
\item Pressing the switch-displays key (ie to activate external video display)
necessitates a violent restart of X: it gives a narrow screen with
many subwindows showing only the top of my desktop.
\item some other function keys work: mute, brightness, lock-screen
\end{itemize}
Post-install
\begin{itemize}
\item To upgrade to pentium-optimised:

\begin{lyxcode}
sudo~apt-get~install~linux-686
\end{lyxcode}
\item To have another browser option:
\end{itemize}
\begin{lyxcode}
sudo~apt-get~install~epiphany-extensions

\end{lyxcode}

\chapter{2005-November: Ubuntu ``Breezy Badger'' a.ka. 5.10 on Toshiba Satellite
2410}

This distro failed to setup my touchpad properly, and at least after
the nVidia driver had been installed, the display resolution was also
wrong. Instructions for the fixes are below.

The speed and interface and completeness of Ubuntu's software download/installation
service is really remarkable. Also, Ubuntu has embraced command-line
support, so Ubuntu's online FAQ makes, e.g. installing standard commercial
free software and plugins, a cinch. Below are some things I did to
add some standard (proprietary) functions to the default (open source)
operating system. This is mostly one big cut-and-paste into a terminal.
Much of it is now redundant, thanks to Automatix.

Ubuntu, with its support structure, backed by money and commitment,
will be the way to go! However, for some reason, like other GNU/Linux
systems, this one has not been endowed with a friendly greeter for
the new user nor a built-in guide to do standard set-ups that most
users will want (how do I set up my modem and ISP??). There is no
integrated control centre like in Mandriva.

In Feb 2006, the post-install procedure (endowing the operating system
with multimedia, 3D acceleration, browser plugins, Acrobat software,
additional software repositories, etc, etc) became vastly friendlier.
Now, just look for and install the ``Automatix'' GUI script written
for Ubuntu or the ``Easy Ubuntu'' script. These will take care of
all the standard goodies. 

For me, the only other tricks needed after install, then, are 
\begin{enumerate}
\item to get the touchpad working properly, 
\item to correct the display resolution imposed by Ubuntu's installation
of the nVidia drivers, 
\item to install a few other of my favourite softwares, 
\item add back in a GRUB entry for the other linux distribution on my disk
(the installer looks for Microsoft operating systems, but not other
GNU/Linux ones!?).
\item Tweak the mail server I use.
\end{enumerate}
My final xorg.conf (for my exact hardware) is available\footnote{xorg.conf for Ubuntu on Satellite 2410:

\# /etc/X11/xorg.conf (xorg X Window System server configuration file)

\#

\# This file was generated by dexconf, the Debian X Configuration
tool, using

\# values from the debconf database.

\#

\# Edit this file with caution, and see the /etc/X11/xorg.conf manual
page.

\# (Type \textquotedbl man /etc/X11/xorg.conf\textquotedbl{} at the
shell prompt.)

\#

\# This file is automatically updated on xserver-xorg package upgrades
{*}only{*}

\# if it has not been modified since the last upgrade of the xserver-xorg

\# package.

\#

\# If you have edited this file but would like it to be automatically
updated

\# again, run the following command:

\# sudo dpkg-reconfigure -phigh xserver-xorg

Section \textquotedbl Files\textquotedbl{}

FontPath \textquotedbl /usr/share/X11/fonts/misc\textquotedbl{}

FontPath \textquotedbl /usr/share/X11/fonts/cyrillic\textquotedbl{}

FontPath \textquotedbl /usr/share/X11/fonts/100dpi/:unscaled\textquotedbl{}

FontPath \textquotedbl /usr/share/X11/fonts/75dpi/:unscaled\textquotedbl{}

FontPath \textquotedbl /usr/share/X11/fonts/Type1\textquotedbl{}

FontPath \textquotedbl /usr/share/X11/fonts/CID\textquotedbl{}

FontPath \textquotedbl /usr/share/X11/fonts/100dpi\textquotedbl{}

FontPath \textquotedbl /usr/share/X11/fonts/75dpi\textquotedbl{}

\# paths to defoma fonts

FontPath \textquotedbl /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType\textquotedbl{}

FontPath \textquotedbl /var/lib/defoma/x-ttcidfont-conf.d/dirs/CID\textquotedbl{}

EndSection

Section \textquotedbl Module\textquotedbl{}

Load \textquotedbl GLcore\textquotedbl{}

Load \textquotedbl i2c\textquotedbl{}

Load \textquotedbl bitmap\textquotedbl{}

Load \textquotedbl ddc\textquotedbl{}

Load \textquotedbl dri\textquotedbl{}

Load \textquotedbl extmod\textquotedbl{}

Load \textquotedbl freetype\textquotedbl{}

Load \textquotedbl glx\textquotedbl{}

Load \textquotedbl int10\textquotedbl{}

Load \textquotedbl type1\textquotedbl{}

Load \textquotedbl vbe\textquotedbl{}

EndSection

Section \textquotedbl InputDevice\textquotedbl{}

Identifier \textquotedbl Generic Keyboard\textquotedbl{}

Driver \textquotedbl kbd\textquotedbl{}

Option \textquotedbl CoreKeyboard\textquotedbl{}

Option \textquotedbl XkbRules\textquotedbl{} \textquotedbl xorg\textquotedbl{}

Option \textquotedbl XkbModel\textquotedbl{} \textquotedbl pc104\textquotedbl{}

Option \textquotedbl XkbLayout\textquotedbl{} \textquotedbl us\textquotedbl{}

EndSection

Section \textquotedbl InputDevice\textquotedbl{}

Identifier \textquotedbl Configured Mouse\textquotedbl{}

Driver \textquotedbl mouse\textquotedbl{}

Option \textquotedbl CorePointer\textquotedbl{}

Option \textquotedbl Device\textquotedbl{} \textquotedbl /dev/input/mice\textquotedbl{}

Option \textquotedbl Protocol\textquotedbl{} \textquotedbl ImPS/2\textquotedbl{}

Option \textquotedbl Emulate3Buttons\textquotedbl{} \textquotedbl true\textquotedbl{}

Option \textquotedbl ZAxisMapping\textquotedbl{} \textquotedbl 4
5\textquotedbl{}

EndSection

Section \textquotedbl InputDevice\textquotedbl{}

Identifier \textquotedbl ALPS\textquotedbl{}

Driver \textquotedbl synaptics\textquotedbl{}

Option \textquotedbl AlwaysCore\textquotedbl{}

Option \textquotedbl Device\textquotedbl{} \textquotedbl /dev/input/alps\textquotedbl{}

Option \textquotedbl Protocol\textquotedbl{} \textquotedbl event\textquotedbl{}

Option \textquotedbl LeftEdge\textquotedbl{} \textquotedbl 120\textquotedbl{}

Option \textquotedbl RightEdge\textquotedbl{} \textquotedbl 830\textquotedbl{}

Option \textquotedbl TopEdge\textquotedbl{} \textquotedbl 120\textquotedbl{}

Option \textquotedbl BottomEdge\textquotedbl{} \textquotedbl 650\textquotedbl{}

Option \textquotedbl FingerLow\textquotedbl{} \textquotedbl 14\textquotedbl{}

Option \textquotedbl FingerHigh\textquotedbl{} \textquotedbl 15\textquotedbl{}

Option \textquotedbl MaxTapTime\textquotedbl{} \textquotedbl 180\textquotedbl{}

Option \textquotedbl MaxTapMove\textquotedbl{} \textquotedbl 110\textquotedbl{}

Option \textquotedbl ClickTime\textquotedbl{} \textquotedbl 0\textquotedbl{}

Option \textquotedbl EmulateMidButtonTime\textquotedbl{} \textquotedbl 75\textquotedbl{}

Option \textquotedbl VertScrollDelta\textquotedbl{} \textquotedbl 10\textquotedbl{}

Option \textquotedbl HorizScrollDelta\textquotedbl{} \textquotedbl 0\textquotedbl{}

Option \textquotedbl MinSpeed\textquotedbl{} \textquotedbl 0.45\textquotedbl{}

Option \textquotedbl MaxSpeed\textquotedbl{} \textquotedbl 0.75\textquotedbl{}

Option \textquotedbl AccelFactor\textquotedbl{} \textquotedbl 0.020\textquotedbl{}

Option \textquotedbl EdgeMotionMinSpeed\textquotedbl{} \textquotedbl 200\textquotedbl{}

Option \textquotedbl EdgeMotionMaxSpeed\textquotedbl{} \textquotedbl 200\textquotedbl{}

Option \textquotedbl UpDownScrolling\textquotedbl{} \textquotedbl 1\textquotedbl{}

Option \textquotedbl CircularScrolling\textquotedbl{} \textquotedbl 0\textquotedbl{}

Option \textquotedbl CircScrollDelta\textquotedbl{} \textquotedbl 0.1\textquotedbl{}

Option \textquotedbl CircScrollTrigger\textquotedbl{} \textquotedbl 2\textquotedbl{}

Option \textquotedbl SHMConfig\textquotedbl{} \textquotedbl true\textquotedbl{}

EndSection

Section \textquotedbl Device\textquotedbl{}

Identifier \textquotedbl NVIDIA Corporation NV17 {[}GeForce4 420
Go{]}\textquotedbl{}

Driver \textquotedbl nvidia\textquotedbl{}

BusID \textquotedbl PCI:1:0:0\textquotedbl{}

\# REst of this section by cpbl, from settings used under Mandriva...

BusID \textquotedbl AGP:01:00:0\textquotedbl{}

Option \textquotedbl DPMS\textquotedbl{}

Option \textquotedbl CursorShadowYOffset\textquotedbl{} \textquotedbl 2\textquotedbl{}

Option \textquotedbl CursorShadowXOffset\textquotedbl{} \textquotedbl 4\textquotedbl{}

Option \textquotedbl NoLogo\textquotedbl{}

\#Option \textquotedbl ConnectedMonitor\textquotedbl{} \textquotedbl DFP,
CRT\textquotedbl{}

\# TV Twinview -- This seems to do nothing!

Option \textquotedbl TwinView\textquotedbl{} \textquotedbl 1\textquotedbl{}

Option \textquotedbl SecondMonitorHorizSync\textquotedbl{} \textquotedbl 30-70\textquotedbl{}

Option \textquotedbl MetaModes\textquotedbl{} \textquotedbl 1024x768
@1024x768,1024x768 @1024x768; 800x600 @800x600,800x600 @800x600; 640x480
@640x480,640x480 @640x480\textquotedbl{}

\#Option \textquotedbl TVStandard\textquotedbl{} \textquotedbl PAL-N\textquotedbl{}

Option \textquotedbl SecondMonitorVertRefresh\textquotedbl{} \textquotedbl 60-100\textquotedbl{}

Option \textquotedbl TwinViewOrientation\textquotedbl{} \textquotedbl Clone\textquotedbl{}

EndSection

Section \textquotedbl Monitor\textquotedbl{}

Identifier \textquotedbl Generic Monitor\textquotedbl{}

Option \textquotedbl DPMS\textquotedbl{}

HorizSync 28-51

VertRefresh 43-60

EndSection

Section \textquotedbl Screen\textquotedbl{}

Identifier \textquotedbl Default Screen\textquotedbl{}

Device \textquotedbl NVIDIA Corporation NV17 {[}GeForce4 420 Go{]}\textquotedbl{}

Monitor \textquotedbl Generic Monitor\textquotedbl{}

DefaultColorDepth 24

\#\#\# added by cpbl for mdk10, see Thosten page for satellite 2410:

Option \textquotedbl NoDDC\textquotedbl{} \textquotedbl 1\textquotedbl{}

\#\#\#END: added by cpbl for mdk10, see Thosten page for satellite
2410:

Subsection \textquotedbl Display\textquotedbl{}

Depth 8

Virtual 1024 768

EndSubsection

Subsection \textquotedbl Display\textquotedbl{}

Depth 15

Virtual 1024 768

EndSubsection

Subsection \textquotedbl Display\textquotedbl{}

Depth 16

Virtual 1024 768

EndSubsection

Subsection \textquotedbl Display\textquotedbl{}

Depth 24

Virtual 1024 768

EndSubsection

Option \textquotedbl NvAgp\textquotedbl{} \textquotedbl 3\textquotedbl{}

\# Option \textquotedbl IgnoreEDID\textquotedbl{} \textquotedbl 1\textquotedbl{}

Option \textquotedbl DigitalVibrance\textquotedbl{} \textquotedbl 0
\# Picture improvement

EndSection

Section \textquotedbl ServerLayout\textquotedbl{}

Identifier \textquotedbl Default Layout\textquotedbl{}

Screen \textquotedbl Default Screen\textquotedbl{}

InputDevice \textquotedbl Generic Keyboard\textquotedbl{}

InputDevice \textquotedbl Configured Mouse\textquotedbl{}

InputDevice \textquotedbl ALPS\textquotedbl{}

EndSection

Section \textquotedbl DRI\textquotedbl{}

Mode 0666

EndSection}as is my Mandriva reference in /boot/grub/menu.lst.\footnote{title Mandriva 
\begin{lyxcode}
root~(hd0,4)~

kernel~(hd0,4)/boot/vmlinuz~root=/dev/hda5~resume=/dev/hda6~splash=silent~

initrd~(hd0,4)/boot/initrd.img~

boot
\end{lyxcode}
}
\begin{lyxcode}
\end{lyxcode}

\section{Post-install: basic workstation goodies}

First, install any updates offered immediately by the system. 

Then, get the touchpad / mouse working if it's not.

Run Automatix\footnote{If you don't know what you're doing, just turn \emph{everything} on.
If you want the option of fancy looking (better than GNOME) bars and
tools on your Desktop, don't miss out on gDesklets.} or (and!?) Easy Ubuntu. Then, as instructed,
\begin{lyxcode}
sudo~winecfg
\end{lyxcode}
Then... {[}note: keep an eye out during installations for related
packages ``recommended'' by apt-get... you may want to take the
advice{]}

These first couple of steps require using an editor; do them step
by step:
\begin{lyxcode}
sudo~apt-get~update

sudo~apt-get~install~nvu~

sudo~rm~-f~/usr/share/applications/nvu.desktop

sudo~gedit~/usr/share/applications/nvu.desktop
\end{lyxcode}
Using the editor that pops up, insert following:
\begin{lyxcode}
{[}Desktop~Entry{]}

Name=Nvu

Comment=Web~Development~Editor

Exec=nvu

Icon=nvu.xpm

Terminal=false

Type=Application

Categories=Application;Network;
\end{lyxcode}
Back to the shell:
\begin{lyxcode}
\end{lyxcode}
The following need no help; you can just paste this code all at once
into a shell. Some of it is redundant if you've used Automatix. It's
even safe to repeat this code.
\begin{lyxcode}
sudo~apt-get~install~w32codecs~a2ps~psutils~gv

sudo~apt-get~install~latex-beamer~gbib~kdissert

sudo~apt-get~install~xfce4-iconbox~xfce4-mixer~xfce4-systray~xfce4-toys~xfce4-trigger-launcher~~~xfprint4~xfcalendar

sudo~apt-get~install~aterm~lyx~octave~emacs21~~latex2html~~elinks~streamripper~xpdf-utils~scribus~ssh~

~sudo~apt-get~install~emacs21~auctex~emacs-extra~emacs-goodies-el~preview-latex~~

sudo~apt-get~install~gnomebaker~flashplayer-mozilla~acroread~mozilla-acroread~acroread-plugins~gftp~azureus~realplayer~streamtuner

sudo~apt-get~install~mutt~urlview

sudo~apt-get~install~sun-j2re1.5

java~-version

sudo~apt-get~install~libqt3c102-mt

wget~-c~ftp://ftp.cac.washington.edu/pine/pine\_4.64\_i386.deb

dpkg~-i~pine\_4.64\_i386.deb
\end{lyxcode}
\begin{comment}
sudo apt-get install gstreamer0.8-plugins gstreamer0.8-lame gstreamer0.8-ffmpeg
w32codecs libdivx4linux lame sox ffmpeg mjpegtools vorbis-tools

gst-register-0.8

sudo apt-get install libdvdcss2

sudo apt-get install xine-ui mplayer-586 mplayer-fonts

gconftool-2 --type string --set /desktop/gnome/volume\_manager/autoplay\_dvd\_command
\textquotedbl xine dvd://\textquotedbl{}

rm -f /usr/share/applnk/Multimedia/xine.desktop

ln -fs /usr/share/xine/desktop/xine.desktop /usr/share/applications/

cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list\_backup

sed -e 's/totem.desktop/xine.desktop/g' /usr/share/applications/defaults.list\_backup
> /tmp/defaults.list

mv /tmp/defaults.list /usr/share/applications/defaults.list

sudo apt-get install xmms

wget -c http://frankandjacq.com/ubuntuguide/xmms-wma\_1.0.4-2\_i386.deb

dpkg -i xmms-wma\_1.0.4-2\_i386.deb

cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list\_backup

cp /usr/share/applications/defaults.list /tmp/defaults.list\_tmp

sed -e 's/audio\textbackslash /mpeg=.{*}/audio\textbackslash /mpeg=XMMS.desktop/g'
/tmp/defaults.list\_tmp > /tmp/defaults.mp3

sed -e 's/audio\textbackslash /x-mpegurl=.{*}/audio\textbackslash /x-mpegurl=XMMS.desktop/g'
/tmp/defaults.mp3 > /tmp/defaults.m3u

sed -e 's/audio\textbackslash /x-wav=.{*}/audio\textbackslash /x-wav=XMMS.desktop/g'
/tmp/defaults.m3u > /tmp/defaults.list

mv /tmp/defaults.list /usr/share/applications/defaults.list

rm -f /tmp/defaults.{*}
\end{comment}


\section{Touchpad (ALPS)}

The touchpad is made by ALPS, but the Synaptic driver drives it too.
There seem to be three kinds of fixes described for the touchpad \footnote{These are:
\begin{enumerate}
\item (re)compile some driver or even the kernel, 
\item execute (and then, for simplicity, reboot):

\begin{lyxcode}
sudo~sh~-c~\textquotedbl echo~options~psmouse~proto=exps~>~/etc/modprobe.d/psmouse.modprobe\textquotedbl{}
\end{lyxcode}
This has the effect of making ``click-and-drag'' work for the touchpad,
when it does not seem to by default. To undo this change, just do
\begin{lyxcode}
sudo~rm~/etc/modprobe.d/psmouse.modprobe
\end{lyxcode}
and then, for simplicity, reboot.
\item Just edit xorg.conf, using Ubuntu's drivers, as described further
below.
\end{enumerate}
For my laptop, you should avoid the first two. The third (which is
all one would expect to need to do!) can make the touchpad do many
fancy things, include turning its right side into a scroll-bar. It
does not so far for me result in a working hardware scroll-wheel,
with which this laptop is equipped. However, this is not needed since
the functionality is now provided by the touchpad through sofware.

By the way, I found \emph{xev} to be a useful tool for debugging the
touchpad: it just reports X events.}. The only one with good results follows. Do this after the basic
steps, above.

First, create a new file with content as follows\footnote{These steps basically come from instructions in the thread
\begin{lyxcode}
http://ubuntuforums.org/showthread.php?t=78904
\end{lyxcode}
If you don't have exactly my hardware, you might read the thread to
adapt the steps. For the alps.rules file, only the ``i8042 Aux Port''
part might change; to see, try
\begin{lyxcode}
udevinfo~-a~-p~`udevinfo~-q~path~-n~/dev/input/event5`
\end{lyxcode}
} (the file contents should be all one line):
\begin{lyxcode}
sudo~cat~>~/etc/udev/alps.rules

BUS=\textquotedbl serio\textquotedbl ,~SYSFS\{description\}=\textquotedbl i8042~Aux~Port\textquotedbl ,~KERNEL=\textquotedbl event?\textquotedbl ,~SYMLINK=\textquotedbl input/alps\textquotedbl{}
\end{lyxcode}
Press Ctrl-D to end the file.

Then:
\begin{lyxcode}
sudo~ln~-s~/etc/udev/alps.rules~/etc/udev/rules.d/40\_alps.rules
\end{lyxcode}
Now just tell xorg.conf a different device and protocol to use. Put
the following in xorg.conf (for an optional external mouse, and the
ALPS touchpad), for instance by editing it with pico:
\begin{lyxcode}
Section~\textquotedbl InputDevice\textquotedbl{}

Identifier~\textquotedbl Configured~Mouse\textquotedbl{}

Driver~\textquotedbl mouse\textquotedbl{}

Option~\textquotedbl CorePointer\textquotedbl{}

Option~\textquotedbl Device\textquotedbl ~\textquotedbl /dev/input/mice\textquotedbl{}

Option~\textquotedbl Protocol\textquotedbl ~\textquotedbl ImPS/2\textquotedbl{}

Option~\textquotedbl Emulate3Buttons\textquotedbl ~\textquotedbl true\textquotedbl{}

Option~\textquotedbl ZAxisMapping\textquotedbl ~\textquotedbl 4~5\textquotedbl{}

EndSection

Section~\textquotedbl InputDevice\textquotedbl{}

Identifier~\textquotedbl ALPS\textquotedbl{}

Driver~\textquotedbl synaptics\textquotedbl{}

Option~\textquotedbl AlwaysCore\textquotedbl{}

Option~\textquotedbl Device\textquotedbl ~\textquotedbl /dev/input/alps\textquotedbl{}

Option~\textquotedbl Protocol\textquotedbl ~\textquotedbl event\textquotedbl{}

Option~\textquotedbl LeftEdge\textquotedbl ~\textquotedbl 120\textquotedbl{}

Option~\textquotedbl RightEdge\textquotedbl ~\textquotedbl 830\textquotedbl{}

Option~\textquotedbl TopEdge\textquotedbl ~\textquotedbl 120\textquotedbl{}

Option~\textquotedbl BottomEdge\textquotedbl ~\textquotedbl 650\textquotedbl{}

Option~\textquotedbl FingerLow\textquotedbl ~\textquotedbl 14\textquotedbl{}

Option~\textquotedbl FingerHigh\textquotedbl ~\textquotedbl 15\textquotedbl{}

Option~\textquotedbl MaxTapTime\textquotedbl ~\textquotedbl 180\textquotedbl{}

Option~\textquotedbl MaxTapMove\textquotedbl ~\textquotedbl 110\textquotedbl{}

Option~\textquotedbl ClickTime\textquotedbl ~\textquotedbl 0\textquotedbl{}

Option~\textquotedbl EmulateMidButtonTime\textquotedbl ~\textquotedbl 75\textquotedbl{}

Option~\textquotedbl VertScrollDelta\textquotedbl ~\textquotedbl 10\textquotedbl{}

Option~\textquotedbl HorizScrollDelta\textquotedbl ~\textquotedbl 0\textquotedbl{}

Option~\textquotedbl MinSpeed\textquotedbl ~\textquotedbl 0.45\textquotedbl{}

Option~\textquotedbl MaxSpeed\textquotedbl ~\textquotedbl 0.75\textquotedbl{}

Option~\textquotedbl AccelFactor\textquotedbl ~\textquotedbl 0.020\textquotedbl{}

Option~\textquotedbl EdgeMotionMinSpeed\textquotedbl ~\textquotedbl 200\textquotedbl{}

Option~\textquotedbl EdgeMotionMaxSpeed\textquotedbl ~\textquotedbl 200\textquotedbl{}

Option~\textquotedbl UpDownScrolling\textquotedbl ~\textquotedbl 1\textquotedbl{}

Option~\textquotedbl CircularScrolling\textquotedbl ~\textquotedbl 0\textquotedbl{}

Option~\textquotedbl CircScrollDelta\textquotedbl ~\textquotedbl 0.1\textquotedbl{}

Option~\textquotedbl CircScrollTrigger\textquotedbl ~\textquotedbl 2\textquotedbl{}

Option~\textquotedbl SHMConfig\textquotedbl ~\textquotedbl true\textquotedbl{}

EndSection
\end{lyxcode}
And at the end of the /etc/xorg.conf file, the ServerLayout section
should look like:
\begin{lyxcode}
Section~\textquotedbl ServerLayout\textquotedbl{}

Identifier~\textquotedbl Default~Layout\textquotedbl{}

Screen~\textquotedbl Default~Screen\textquotedbl{}

InputDevice~\textquotedbl Generic~Keyboard\textquotedbl{}

InputDevice~\textquotedbl Configured~Mouse\textquotedbl{}

InputDevice~\textquotedbl ALPS\textquotedbl{}

EndSection
\end{lyxcode}
These changes will work next reboot.

\section{Firefox's mplayer plugin}

Audio is sometimes really choppy in the mplayer plugin (which handles
all my A/V in firefox). Googling on ``choppy mplayer plugin'' gets
a solution: adding ``srate=48000'' to the bottom of /etc/mplayer/mplayer.conf
solves the problem! (!?)

\section{Opera browser}

Opera browser didn't work (seg fault). I followed instructions for
this problem at https://wiki.ubuntu.com/OperaBrowser and this fixed
the trouble.

\section{HP LaserJet 1320}

I plugged in by USB the printer, chose ``New printer'' from ``Printing''
in the System pull-down menu. It didn't see the printer immediately,
so I rebooted for simplicity (blasphemy!). Tried again. It knew the
1320; no drivers needed. Acrobat immediately was able to print; auto-double-sided
printing etc. No need for HP's CD, of course.

\section{Optional / custom}

Fetchmail and postfix: I get my mail with Pine (or mutt) from my laptop's
unix mail drop, which is filled by Fetchmail from various other unix
accounts I have elsewhere. Fetchmail talks to the port 25 (smtp port)
which is run by the MTA, postfix. For some reason, although postfix
comes standard with many distributions, it doesn't work at first.
The port 25 is not open; fetchmail complains ``smtp listener protocol
error\textquotedbl . The fix (for Mandriva and Ubuntu) seems to be
to uninstall and then reinstall postfix. Trivial:
\begin{lyxcode}
sudo~apt-get~remove~postfix~\\
sudo~apt-get~install~postfix
\end{lyxcode}
Oh, in Feb 2006 (everything much easier with Automatix):

this postfix trick didn't work like magic. Note any comments from
apt-get when installing postfix; follow those instructions. In addition,
I needed to run ``newaliases'' once to create /etc/aliases.db.

Also, because I now have two distributions installed on one machine
and therefore have two installations of postfix which collect mail
for me, I need to put the line
\begin{lyxcode}
mail\_spool\_directory~=~/mandriva/var/spool/mail
\end{lyxcode}
in /etc/postfix/main.cf to tell postfix where to put mail spools.
Well, then I'd have to change the default for where users should look
too. Easier is to make /var/mail or etc a symbolic link to the correct
place. Note that the mail spool files cannot be symbolic links, but
the directory can be.
\begin{lyxcode}
\end{lyxcode}

\chapter{2005: Mandriva 2005 Limited Edition}

\section{FAILED: Upgrade to Mandriva 2005 Limited Edition from the club mini
CD {[}on hardware: Toshiba Satellite 2410-W9X{]}}

First I tried upgrading from 10.1 to 2005LE using the club-mini single-CD.
This resulted in a significantly non-functioning installation; it
is a screwup of Mandriva to even allow the mini-CD to offer upgrades.

\section{FAILED: Upgrade to Mandriva 2005 Limited Edition from the three-CD
2005 LE distro's on-disk ISO's {[}on hardware: Toshiba Satellite 2410-W9X{]}}

Next I burned the (15 Mbyte) boot.iso from the first CD of the three-CD
2005LE distro to a CD. I think I can use this in the future to install
other distros from on-hard-drive ISO's. I used that to \emph{upgrade}
to 2005LE from ISO's on hard disk.

Next I added the easyurpmi sources (except some didn't exist) and
the club sources (except some didn't exist?).

Then call the magical command:
\begin{lyxcode}
urpmi~-{}-auto-select~
\end{lyxcode}
and wait a while!

Next, urpmi pine

The boot process/display hangs on ipmi probe, so I could not get to
a console to install NVIDIA. I turned the ipmi service off and then
could install NVIDIA's own commercial installer.

Many problems:

scroll mouse does not work in Firefox anymore

all the fonts look horribly pixellated (didn't before)

ALSA doesn't work, and installing relevant ALSA packages doesn't help.
(It turns out that during the install, one can choose between two
audio drivers; if one knows what they are, one would notice that the
default is NOT ALSA!); xmms does not work under any setting.

I ran alsaconf, but this made no difference.

my shells frequently telling me I have mail, when I do not.

I downloaded the latest RealPlayer rpm from their site and installed
it.

\section{FAILED: Full/fresh install of Mandriva 2005 Limited Edition from
the three-CD 2005 LE distro's on-disk ISO's {[}on hardware: Toshiba
Satellite 2410-W9X{]}}

Next, I tried a fresh install (includes formatting the root partition)
after saving /var/spool/mail. Many things were again screwed up. A
rough account follows.
\begin{lyxcode}
urpmi.addmedia~main~http://gulus.usherbrooke.ca/pub/distro/Mandrakelinux/official/2005/i586/media/main~with~media\_info/synthesis.hdlist.cz~

urpmi~emacs-X11~xmms~auctex~finger~fetchmailconf~bittorrent-gui~aterm~fetchmail~lyx~xdvi~compress~locate

urpmi~pine~

Some~package~requested~cannot~be~installed:~pine-4.62-1plf.i586~(due~to~unsatisfied~liblber.so.2)~

urpmi~-{}-auto-select
\end{lyxcode}
To build pine:

urpmi gcc pam-devel libopenssl-devel ncurses-devel

./build lmd

but result still fails without libldap.so.2!!

win32-codecs real-codecs

Following is big!

urpmi totem mplayer 

Oops. then I used the drak gui to install MANY gnome, video stuff.

urpmi jre xpdf

JAVA: download it straight from Sun's site; follow their install directions.
(above uprmi gave an old version of kaffe for jre?)

Then (with jre) Azureus runs!; this is a better bittorrent client??.

rpm -Uvh AdobeReader\_enu-7.0.0-2.i386.rpm error: Failed dependencies:
libstdc++.so.5 is needed by AdobeReader\_enu-7.0.0-2 libstdc++.so.5(CXXABI\_1.2)
is needed by AdobeReader\_enu-7.0.0-2 libstdc++.so.5(GLIBCPP\_3.2)
is needed by AdobeReader\_enu-7.0.0-2 

in urpmi media manager, searching by files or descriptions does not
work, and i can find no settings to affect it.

\section{Full install of Mandriva 2005 Limited Edition from CD1-CD4 (club
download) set}

\label{sec:2005LEfull4}Oh, there's a 4 CD set. So why is there a
3 CD set which doesn't work well? I had CD1-CD4 on the hard drive
as ISOs. I backed up /var/spool/mail and used the boot.iso method
to do a fresh install from on-disk ISO's (but preserving my /home
partition, which has user accounts). 

These comments now reflect the help of Adam W, a most friendly Mandriva
employee, who helped sort them out (identifying a bunch of veritable
bugs in the release). The lesson for me was to be more open to the
possibility that problems experienced are real bugs that need reporting
and fixing. Mandriva's poor QA is improving, but distro's are still
not robust when they come out.

\subsection{Comments on installer: }

I complained that in MDK10.1, the html link to the main INSTALL.html
documentation file on the first CD was broken. \emph{It still is in
this version!} Yes, the top-level help file for installing the distribution
does not exist! Again! {[}I have reported this bug, to no avail{]}.

It claimed to format my / partition, as requested, but it must not
have, since my old /etc/fstab still exists!? {[}unclear now. maybe
/etc/fstab is kept on purpose? If so, how is that a fresh install?{]}

I installed from on-disk ISO's. The installer claimed to find 6 ISO's,
i.e. those from CD5 and CD6 too, even though they were absent. Better
still, the media manager comes up with all 8 CD's listed, but I don't
understand it, since they have not been mounted..? In fact, the media
manager had one of the CD's listed four times. {[}seems to be a real
bug{]}

The installer gives some nice ``standard debug procedure'' for audio;
but this info is not so useful during installation. It could maybe
tell me where to find such info later.

My past problems with ALSA not working properly was to do with the
fact that there is actually a choice of drivers for audio, and I had
left it as the non-ALSA default driver. It is cryptic, though, in
the installation: it mentions you are choosing between OSS and ALSA,
but does not tell you which driver is which! Advice: switch to driver
with name starting with ``snd-'' for ALSA. {[}Apparently on most
hardware, the installer will default to ALSA, but it believes mine
has some trouble. I find no trouble. Regardless, the instructions
during install are not helpful.{]}

I went through and chose all my packages carefully, and then at the
very end of the installation had the opportunity to save my selection
to a file (great!!), although some parts of that option (e.g. save
to ftp) are not yet programmed! and just lead to blank screens.

\subsection{Comments on functionality after installation}
\begin{enumerate}
\item The first boot failed to reach X. Boot messages said dkms failed to
install nvidia and also slmodem. I had to switch ``nvidia'' to ``nv''
in /etc/X11/xorg.conf. {[}TWO bugs! To fix my X problem, I needed
to add the nvidia driver to modprobe.preload. Also, the error messages
from the nvidia kernel on boot should be ignored.{]}
\item Mozilla-firefox complains when it starts that it fails to initialise
rpnp.so. {[}A real (Mandriva) bug; confirmed on another installation
with all CD's.{]}
\item Mouse scrolling doesn't work properly. The installer, unlike in previous
versions, picked the wrong mouse type as default. Maybe I didn't test
it properly. PS/2 universal scroll mouse works.
\item Yay! Acroread7 was installed. 
\item So was an old version of realplayer. 
\item There are so many softwares available, it might be nice to have a
tip-of-the-day option which tells you of a useful package/program
each morning.
\item I asked for mozilla (ie in addition to firefox) during the install,
but it wasn't installed, and worse it is no longer available afterwards
either. {[}Maybe this is due to the installer's confusion about how
many CD's were present; Mozilla is available in the contrib mirror,
which wasn't available at first.{]}
\item Wahoo!: multiple sound sources work in parallel!! (sometimes; start
xmms first).
\item Realplayer fails to get access to the sound driver for 1.5 mins after
startup!!? {[}This needs the workaround to DISABLE the arts server
in KDE (by gui). But then, no KDE apps make their silly noises. Maybe
in the future sound will be better sorted out.{]}
\item I installed NVIDIA's driver, but then X fails every \emph{second}
boot: cannot find a screen. {[}See above; this is a (bad!) Mandriva
bug; the fix is to add nvidia to modprobe.conf{]}
\end{enumerate}

\subsection{Procedure after install}

Here is what I did post-install:
\begin{enumerate}
\item As root, run some lines to get some mirrors in the urpmi database
(see footnote)\footnote{\begin{lyxcode}
club:

urpmi.addmedia~distrib\_mirrors.secsup.org\_i586\_2005LimitedEdition~ftp://mirrors.secsup.org/pub/linux/mandrakelinux/official/10.2/i586/media/main/~with~./media\_info/hdlist.cz~

urpmi.addmedia~club.comm\_i586\_2005LimitedEdition~http://cpblcpbl:cpblMandrake@www.mandrakeclub.com/downloads2/comm/10.2/i586/~with~./media\_info/hdlist.cz

urpmi.addmedia~updates\_mirrors.secsup.org\_i586\_2005LimitedEdition~ftp://mirrors.secsup.org/pub/linux/mandrake/Mandrake/updates/10.2/RPMS/~with~./media\_info/hdlist.cz

urpmi.addmedia~club.contrib\_mirror.aca.oakland.edu\_i586\_2005LimitedEdition~ftp://mirror.aca.oakland.edu/linux/mandrakelinux/devel/testing/Mandrakeclub/10.2/i586~with~hdlist.cz

public:~urpmi.addmedia~plf-free~ftp://ftp.free.fr/pub/Distributions\_Linux/plf/mandrake/free/10.2~with~synthesis.hdlist.cz~urpmi.addmedia~plf-nonfree~ftp://ftp.free.fr/pub/Distributions\_Linux/plf/mandrake/non-free/10.2~with~synthesis.hdlist.cz~urpmi.addmedia~-{}-update~updates~ftp://mirrors.secsup.org/pub/linux/mandrake/Mandrakelinux/official/updates/LE2005/main\_updates/~with~media\_info/synthesis.hdlist.cz~urpmi.addmedia~main~ftp://mirror.aca.oakland.edu/pub/linux/mandrakelinux/official/2005/i586/media/main~with~media\_info/synthesis.hdlist.cz~urpmi.addmedia~contrib~ftp://mirror.aca.oakland.edu/pub/linux/mandrakelinux/official/2005/i586/media/contrib~with~media\_info/synthesis.hdlist.cz~urpmi.addmedia~jpackage~ftp://mirror.aca.oakland.edu/pub/linux/mandrakelinux/official/2005/i586/media/jpackage~with~media\_info/synthesis.hdlist.cz~
\end{lyxcode}
}. Commercial mirror failed (25 April 2005). Then run 

\begin{lyxcode}
urpmi~-{}-auto-select
\end{lyxcode}
\item I use pine, but the plf rpm of pine in my mirror list fails to install.
Download from pine's site and compile it yourself.

\begin{lyxcode}
To~build~pine:

urpmi~gcc~pam-devel~libopenssl-devel~ncurses-devel

./build~lmd
\end{lyxcode}
\item Download nvidia driver from their site and install it according to
instructions. Change xorg.conf to use nvidia.
\item If skipped xmms in installation, urpmi xmms xmms-alsa gnome-alsamixer
\item Download latest Skype rpm and install. If desired, download more recent
RealPlayer rpm and install. Maybe some of these efforts are only necessary
for me due to not having the full CD set.
\item urpmi win32-codecs libdvdcss (latter available from plf source). AAhh!
action DVD looks horrible compared with under 10.1 {[}This just turned
out to be a different default for interlacing behaviour than in the
last versions of video players (!). In Totem, press ``i'' to toggle
interlacing.{]} For DVD ripping, try ``urpmi dvdrip DVDrip'' and
then run dvdrip.
\item My shells keep telling me that I have mail (even when it's not new).
They didn't used to do this before, and I can't figure out how to
get rid of it. {[}Not yet figured out{]}
\item gtkguitune for guitar. psbind (where isi t?); urpmi octave finger
\item Oooh. I finally got my nvidia card to display to an external monitor
(LCD projector). I had tried this before, and recently, and got errors,
but all I needed to do was reboot (ie restarting X didn't work.. I
guess something's in the hardware). I didn't quite get the twinview
I was looking for -- I only got the external display, no laptop display
-- but enough to present PDFs and project DVD's. \#:) So, my current
setup is: xorg.conf \url{xorg.conf}.
\item Too much fun (text to speech): urpmi festival sox ... e.g. see http://www.aerospacesoftware.com/text-to-speech-howto.html
\end{enumerate}

\chapter{2004-November: Installation of Mandrake 10.1-Official on Toshiba
Satellite 2410-W9X }

\subsection*{b}

\section{Installation}

I upgraded (i.e., avoided a fresh install) from MDK10 to MDK10.1-Official,
using ISO format files (i.e., not expanded to files, and not burned
to CD). I used a floppy boot disk with the appropriate list file detailing
where the rpm's were (ie following standard directions, which are
sadly out of date: one can use ISO's directly), but the installer
ignored this file! Instead, it let me specify wher the first ISO was.
Rather than let me worry during installation whether I would get a
chance to specify where the others were, it stated clearly (a great
improvement!!) that it had found all four! before proceeding. {[}{[}By
the way, why do I need the boot floppy? Can't I just add something
to LILO to tell it to boot from some install file somewhere?{]}{]}
{[}{[}Another possibility for upgrading is just to let people switch
urpm sources to the new distro?...{]}{]}

But then the screen went blank for a while, making me worry (needlessly)...
the interface stil needs help. The installer claimed it would take
90 minutes! but suddenly decided (correctly) it was finished after
only \textasciitilde 15. It's great not having to change CD's etc.
The Network configuration is much improved! It has a little more explanation
what it's asking for.

It's remarkable how poor some superficial things (above) can still
be coming from Mandrake. The html link to the html documentation file
on the first CD was also broken -- only the .txt version existed!
Unbelievable, almost, for an official release from a good company
trying to make a good impression.

\section{After installation}

I mostly wanted this upgrade for the sleep/suspend functionality,
but it still does not work at all, at least out of the box. The other
reason was the hope that ALSA would be able to mix more than one sound
source at once. That still did not happen by itself, though I haven't
spent extra time on it.

Also, wine does not work at all. Applications come up as all-black
windows. (fixed, below)

A number of things were broken after the ``upgrade'':
\begin{enumerate}
\item The KDE panel, ``kicker'' died whenever I logged in or started it
up. I ended up trashing all my KDE settings and starting over (a great
nuisance!). Remember, keyboard shortcuts are hidden under ``Accessibility''
under KDE customisation! One can spend forever going through all the
stupidly separated ``look and feel'' options for KDE configuration.
More integration, please; more tabs; less having to launch separately
from a long menu system a dozen different GUIs.
\item ALSA (sound) was no longer working after installation! I tried alsaconf,
and I turned off ``sound'' service on startup. No luck. Next time
I rebooted, ALSA was running, and I just needed to use the alsamixer
to un-mute the PCM and adjust volume levels. Hmm. Still, I want to
be able to hear more than one sound source at once! e.g. Skype ringing
while I'm listening to BBC... Aha. (March 2005): I finally got that
to work: very simple; as root, put the following lines into /etc/asound.conf
:

\begin{lyxcode}
\#/etc/asound.conf~start:

pcm.!default~\{

~~type~plug

~~slave.pcm~\textquotedbl dmixer\textquotedbl{}

~~\}

pcm.dsp0~\{

~~type~plug

~~slave.pcm~\textquotedbl dmixer\textquotedbl{}

~~\}

pcm.dmixer~\{

~~type~dmix

~~ipc\_key~1024

~slave~\{

~~pcm~\textquotedbl hw:0,0\textquotedbl{}

~~period\_time~0

~~period\_size~1024

~buffer\_size~8192

~~rate~44100

~~\}

~bindings~\{

~~0~0

~~1~1

~~\}

~~\}

ctl.dmixer~\{

~~type~hw

~~card~0

~~\}

\#end.
\end{lyxcode}
Immediately, multiple apps will play their sound simultaneously!
\item I had to reset all my urpm media! http://easyurpmi.zarb.org/ is a
place for setting up some urpmi media with a batch command. For the
club ones, Mandrake Club has an interface to give urpmi.addmedia commands
one by one. All pretty quick.
\item OpenOffice during upgrade: My choices for language settings in OpenOffice
got overwritten by the upgrade! It switched to interpreting dates
the American way! Just need to change language locale in Options.
{[}I only ever used the spreadsheet; but I now prefer Gnumeric anyway{]}.
\item Mandrake Online: I paid (donated?) for Mandrake's little update icon,
which has some way to go before it's useful. If you ever delete the
mdkonline (mdkapplet) applet from your desktop panel, just edit \textasciitilde /.MdkOnline/mdkonline
(turn to TRUE the auto thing) and then run mdkapplet to get the applet
back on your panel.
\item I have not managed to get my nVidia drivers going again after upgrade,
even though I'm a club member. Not sure why this is always such a
pain.
\item Since the upgrade, I now have to tell KDE that I want to log out TWICE
for it to actually take effect!! Weirdness! {[}This went away{]}
\item urpmi fnfx for some Toshiba laptop tricks??! ``FnFX enables owners
of Toshiba laptops to change the LCD brightness, control, the internal
fan and use the special keys on their keyboard (Fn-x combinations,
hot-keys).'' Hm. I uninstalled this again: something broken.
\item Added twinview functionality to xorg.conf, copied from a Toshiba 2410
linux page (tiscali). Didn't work the only time I tried with an LCD
projector.
\item No sound on mpegs / quicktime from mplayer or etc. Try ``urpmi codecs''
to find a number of rpms for codecs for different programs. e.g. urpmi
win32-codecs real-codecs ... but this didn't help. I installed from
the mandrake gui a more recent mplayer and now there is sound.
\item Firefox: This may not give a recent version, but use it; updating
from mozilla.org gave me bugs.
\end{enumerate}
\begin{lyxcode}
urpmi~mozilla-firefox

\end{lyxcode}

\section{Xorg and nVidia drivers once more}

Some advice from someone on a MandrakeClub forum worked, with one
difference and despite a number of discouraging things (see below)
on the way. What a shame that out of four Mandrake distributions,
I've never managed to get the nvidia working using Mandrake's packages!
So.. once again, the following is how to let nvidia rather than Mandrake
install their driver. Starting with the 6226 release from nvidia,
there is no patch needed for this kernel.

I installed the appropriate kernel-source. (uname -r and then urpmi
kernel-source).

I uninstalled the nvidia and nvidia-kernel and dkms-nvidia rpms but
got horrid errors:
\begin{lyxcode}
{[}root@{]}\#~urpme~nvidia

To~satisfy~dependencies,~the~following~packages~will~be~removed~(15~MB):

dkms-nvidia-6111-1mdk.i586~(due~to~missing~nvidia)

nvidia-6111-3mdk.i586

Is~this~OK?~(y/N)~y

removing~dkms-nvidia-6111-1mdk.i586~nvidia-6111-3mdk.i586

+~/usr/sbin/dkms~-{}-rpm\_safe\_upgrade~remove~-m~nvidia~-v~6111~-{}-all

dkms.conf:~Error!~No~'DEST\_MODULE\_LOCATION'~directive~specified.

dkms.conf:~Error!~No~'PACKAGE\_NAME'~directive~specified.

dkms.conf:~Error!~No~'PACKAGE\_VERSION'~directive~specified.

Error!~Bad~conf~file.

File:~/var/lib/dkms/nvidia/6111/source/dkms.conf~does~not~represent

a~valid~dkms.conf~file.

error:~\%postun(dkms-nvidia-6111-1mdk)~scriptlet~failed,~exit~status~5

{[}root@{]}\#~urpme~nvidia-kernel

The~following~packages~contain~nvidia-kernel:~nvidia-kernel-2.6.8.1-10mdk-6111-1mdk.i586

{[}root@l{]}\#~urpme~nvidia-kernel-2.6.8.1-10mdk-6111-1mdk.i586

removing~nvidia-kernel-2.6.8.1-10mdk-6111-1mdk.i586

dkms.conf:~Error!~No~'DEST\_MODULE\_LOCATION'~directive~specified.

dkms.conf:~Error!~No~'PACKAGE\_NAME'~directive~specified.

dkms.conf:~Error!~No~'PACKAGE\_VERSION'~directive~specified.

Error!~Bad~conf~file.

File:~/var/lib/dkms/nvidia/6111/source/dkms.conf~does~not~represent

a~valid~dkms.conf~file.

error:~\%preun(nvidia-kernel-2.6.8.1-10mdk-6111-1mdk)~scriptlet~failed,~exit~status~5
\end{lyxcode}
I then from init 3 ran the nvidia script. It failed with
\begin{lyxcode}
ERROR:~Unable~to~load~the~kernel~module~'nvidia.ko'.~This~is~most~likely

because~the~kernel~module~was~built~using~the~wrong~kernel~source~files.

Please~make~sure~you~have~installed~the~kernel~source~files~for~your

kernel;~on~Red~Hat~Linux~systems,~for~example,~be~sure~you~have~the

'kernel-source'~rpm~installed.~If~you~know~the~correct~kernel~source

files~are~installed,~you~may~specify~the~kernel~source~path~with~the

'-{}-kernel-source-path'~commandline~option.

->~Kernel~module~load~error:~insmod:~error~inserting~'./usr/src/nv/nvidia.ko':

-1~Invalid~module~format
\end{lyxcode}
Looking at the log file /var/log/nvidia.log or something like that
indicated I should try

urpmi gcc

which upgraded from 3.3 to 3.4. That had in fact been the problem.
I tried the nvidia script again and it worked. I also added the line 
\begin{lyxcode}
nvidia~
\end{lyxcode}
to the end of the file /etc/modprobe.preload. This is necessary! If
it's not there, you will need to reinstall the NVIDIA driver every
time you boot!

Then I got dkms errors on every boot-up, until I deleted the whole
(old) nvidia directory from some dkms directory.

\section{toshutils compiling}

I still cannot get toshutils to compile. urpmi gtk-devel gtk+ yacc
may solve some of the problems, but I still get lots of errors.

By the way, for anyone using a Toshiba, there is a great Toshiba Linux
email list on which one can ask for help. (Might not be available
archived online?).

I also found some patches for the toshutils program... it seems it
might be quite buggy? I applied those patches but still had errors
remaining.

Jan 2005: Still no luck with this stuff. urpmi acpi cpufreq gnome-cpufreq-applet
does not help.
\begin{lyxcode}
echo~3~>/proc/acpi/sleep~
\end{lyxcode}
tries but says suspend is an unsupported event. Same with mode ``4''.

Other diagnostics:

ls /proc/acpi

I turned apmd off for startup at boot in services gui.

There is a ``toshiba extras'' kernel option which might not be standard?!

cat /proc/acpi/battery/BAT1/info 

cat /proc/acpi/battery/BAT1/state

Can't find kpowersave

Oh.. Installing klaptop seems nice. Now there's an icon on my taskbar,
and I can ``configure ACPI'' and can initiate suspend/hibernate.
Only problem is, those fail, and eventually give up and return to
the session... 

\section{Security}

Ohhh. Wakeup call! I just noticed that for the indefinite past my
computer has been under ssh attack!! Since I had some guest and family
accounts with trivial passwords (what was I thinking?!), I have probably
had people all over my machine. Ah what to do? Try to get pam-tally
working? I have set the Mandrake security level one grade higher and
installed/activated a firewall.

\begin{comment}
CD writing

GNOME's (nautilus) CD writing interface is wonderfully simple --
excellent. But from KDE menu, it failed. Needed to fix nautilus installation
with

urpmi nautilus

Well, actually, I don't find that as easy as I did for writing ISO's
(just right-click on ISO in nautilus).

urpmi k3b

installs the other, deluxe option, which copies CDs, writes data,
etc..
\end{comment}


\chapter{2004: Installation of Mandrake 10 on Toshiba Satellite 2410-W9X }

\begin{comment}
Upgrading to MDK10 WASTED about 4 full days of my life, due to lack
of self-control, when I couldn't afford it. It really pisses me off
that so many problems came up when I didn't try to do anything special,
am a paying Mandrake club member, etc. This really worsened my view
of GNU/Linux, after 13 years as a unix user. Why can't they make the
simple stuff work robustly?

urpmi.addmedia updates\_sluglug.ucsc.edu\_i586\_10.0Official ftp://sluglug.ucsc.edu/pub/Mandrakelinux/official/updates/10.0/RPMS/
with ../base/hdlist.cz
\end{comment}

Upgrading was frustrating initially, though I think I figured out
my mistakes eventually. See my page for Mandrake 9.2 install for details
on compatibility etc. I have my /home directory on a separate partition,
so there was never any real risk to reinstalling -- just expended
time.

I tried to do an update on Mdk 9.2 to 10. There was very little direction
on how to use ISO's on disk. I thought I had done it but then somewhat
into the upgrade the install started freaking out, claiming errors
on libdv2, libgii, libgii0, and then endless more. I ended up burning
CD's IN MS WINDOWS to save my ruined system (ie complete the ``upgrade''),
but even then X did not work at all.

How to write an ISO image: In Nautilus (file browser), right click
on the .iso image and choose ``write to CD''. Yep.
\begin{itemize}
\item mdkonline but icon says service is deactivated -- waiting for payment!
\item could not install Pine. It has a dependency which didn't seem to be
fixed when I fixed it. Argh!! this means I was installing an rpm for
another distro... So I compiled pine myself: no problem. build and
then just copied the bin/{*} to /usr/local/bin
\item Mutt can be customised to feel a lot more like pine... maybe look
into it... but I have to say, I do like pine as it is, with its menu
customisations etc
\item tried repeating trick from MDK9.2: uninstalled postfix, then reinstalled
it, to make fetchmail (and now mutt, since I'm giving up on pine)
work. Then needed to start postfix service after reinstalling it.
\item Shoot! Forgot to save my mail spool again when I did a full ``clean''
install. If I switch to mutt, mail will be saved in my account.
\item Despite doing a full install, the graphical display during bootup
still says MDK 9.2 !
\item Sound, graphics all worked. {[}{[}NO! Actually, ALSA, despite being
built into the kernel, is not active by defaul!?!! See far below{]}{]}
\item Got error message ``/var/spool/mail must have 1777 protection''.
from mail via pine. Fixed this by chmod'ing as root... But it came
back soon! Solution: This message can and should be set to be ignored
in pine.
\item From mandrake club, set up urpmi for commercial and contrib'd apps...
tried to install mozilla plugins (failed). installed a nvidia kernel
rpm and a nvidia GLX rpm but it only used a portion of my display,
so I uninstalled. Mandrake club was thus USELESS for me.
\item and a realplayer rpm... documentation sucks..
\item After second (minimal) installation: urpmi flash cxplugin gstreamer-plugins
acroread-nppdf RealPlayer-rpnp totem OpenOffice.org lyx xterm aterm
wireless-tools fetchmail xmms latex2html xdvi grip a2ps auctex texmacs
OpenOffice.org-help-en octave-forge finger fetchmailconf bittorrent-gui
j2re
\item Also (not necessarily wanted) installed: urpmi emacs-php-mode emacs-mode-compile
\item (making use of club commercial site, etc...)etc Note there's a good
html site for choosing a bunch of urpmi.addmedia from choices of mirrors,
generate command line to do it all.
\item RPMdrake: has buggy pointer, which looks like a watch when it shouldn't.
Should close a category in response to left arrow key. Has buggy scrolling:
often unresponsive to scrollbar use. After any action, sits and rescans
all media: stupid!
\item Also installed libdvdcss (search for it), after which commercial DVDs
work!!
\item For sound recording and mp3 encoding? also did urpmi mp3encode libmp3lame,
both of which I downloaded by hand from rpmfind, and urpmi audacity.....
Uhh. To get audacity to record, I need to be root and I need to say
``killall artsd'' first. It does encode mp3 using /usr/lib/libmp3lame.so.0.
Actually, kickarts is installed now too, so on the KDE task bar you
can add a button to kill artsd. NONE OF THIS WAS NECESSARY: SEE ALSA
STUFF BELOW.
\item urpmi wine and then wine app.exe... it works first go!!
\item urpmi php-gd so that a php image indexing program works on web server.
But then had to edit /etc/php.ini to deal with memory exhausted in
PHP when using GD on large image. Increased memory limit to 24 MB.
\item I mounted the MDK10 iso's in fstab so that i could urpmi.addmedia
them, rather than having to expand out the files.
\end{itemize}

\subsection{Mail:}

It seems I have full mail servers running, so if I delete the smtp
host in pine, mail is sent straight from my machine! That's not good
for privacy (risk of reply to dynamic IP?) but if I were using Mutt
or if I had a fixed IP it would be good.

Also, note that interchange still says they will do upgrade system
soon... then switch all mail to them with secure pop...

\subsection{Another round of XFree trying}

\begin{comment}
I might have had the wrong sources installed?? Anyway, the following
works better than the NVIDIA commercial installer did in default mode:

./NVIDIA-Linux-x86-1.0-5336-pkg1.run --add-this-kernel

then run the newly build {*}custom.run file ... Okay, after days of
messing, 
\end{comment}

the solution is simple: Forget the Mandrake commercial RPMs!! Stick
with the nvidia shell script, making sure to have the kernel-source
which matches my kernel exactly! (Still need to upgrade kernels to
.13?). Then, see Thorsten's page or etc for all the weird XF86Config
lines: the display on my laptop lies about the available modes, so
you have to tell X to ignore them. Now the full screen is used, GLX
works, etc.

\subsection{Another round of XFree frustration}

I unplugged the computer and booted it on wireless, and now my X is
broken. 

\begin{comment}
AAAAAAAAAAAAAAHHHHHHHHHHHHHHH!!!!!!!!!!!!!!!

It seems to overwrite the config file each boot, and only nv works.
I'm back to the same old shit: the NVIDIA installer doesn't work,
etc.
\end{comment}

My kernel is 2.6.3-7mdk but when I install the sources, I get 2.6.3-13mdk.

SOLVED: So reinstalling the NVIDIA script seemed to do the trick.
God knows what messed up the driver. And the problem with that is
that the kernel and sources didn't match. I probably just need to
tell the NVIDIA script where to find the sources. Instead, I installed
-7 and removed -13.

\subsection{Trying to get sound recording to work}

\begin{comment}
Damn. installed krec -- doesn't work. Audacity is screwy. Best results
using ``rec'' and ``play''. Can't seem to get recording to happen
except at 48kHz.

Randomly installed much shit -- e.g. gnome-alsamixer

Okay!! After hours wasted, the simple MS-like tool to use is definitely
gnome-sound-recorder. It just makes .wav files, and volume and sample
rate are transparent. I think my machine is still always recording
at 48000, though.

So, from the 48000 kHz wav file from gnome-sound-recorder, the following
magical incantations work well for voice. (online I read use -l 2
and -b 128 for voice).
\end{comment}

sox -r 48000 Untitled.wav -r 32000 un.wav rate 

mp3encode -s 32 -b 64 -l 2 un.wav un.mp3 

Actually, gnome-sound-recorder hung when recording a long (5 min)
sound. Instead, use the excellent ``rec'' along with above two lines.

\subsection{FINALLY, progress with sound: ALSA revelation}

Aug 2004: Motivated by interest in gnomemeeting and skype, I spent
ages trying to figure out why they would not work (problems with /dev/dsp
and etc etc). It turns out that I have never had ALSA running, despite
it trying to start up on boot and being integrated in my kernel!!
What is Mandrake thinking? Why is it so hard to find documentation
on this?! Maybe there was an option I messed up in the install: choose
ALSA if you have the choice! Anyway, I had to install a bunch of ``alsa''
rpms (tools, lib, player). Those include ``alsaconf'' to be run
by root, and alsamixer. After one restart, everything works beautifully,
including Flash sound, skype, choice of sample speeds, etc in both
GNOME and KDE.

Also got ALSA plugin for xmms, changed xmms to use ALSA, and configured
detail to use audio device rather than PCM (latter, default, made
jittery sound).

NOTE: Now I can only use one sound application at once! They block
each other. http://www.thepenguin.org.uk/alsa/ says this is due to
my sound device, but can be overcome with the latest ALSA and a dmixer
plugin. Still to do..

\subsection{Video}

urpmi xine-win32??

\subsection{Anacron: some regular root scripts}

urpmi anacron, since this computer is not on continuously.

Actually, I had planned to then set slocate and update jobs, but it
seems that if you install anacron, these are already done. /etc/cron.daily
and so on include such things.

\subsection{Kernel upgrades}

``uname -r'' tells you your kernel.

Need to reinstall the Nvidia commercial driver for each kernel upgrade.
I think there's the problem that for me, kernel-source upgrades happen
automatically, but kernels don't. Then they're out of sync, and maybe
that makes my X (commercial nvidia driver) break?!? Can't undersstand
why. Anyway, to update kernel, see http://www.mandrakesoft.com/security/kernelupdate
. For kernels, seem to need to use a longer filename with urpmi; e.g.:
\begin{lyxcode}
urpmi~kernel-2.6.3.16mdk-1-1mdk.i586~~

rather than 
\begin{lyxcode}
urpmi~kernel-2.6.3-16mdk
\end{lyxcode}
\end{lyxcode}
Don't forget to reboot into the new kernel before reinstalling NVIDIA
driver.

Wow this was epic. I uninstalled kernel-source-... and reinstalled
kernel source (all unnecessary) and then found out from reading groups
that the new NVIDIA drivers have problems (got ``not clean, please
run 'make mrproper'\textquotedbl{} in the install log, etc). So, don't
use the 61xx driver versions; download the old 5336 version from nvidia.com.
{[}September 2004{]}. That works fine. (610x version compiles but
gives me a black screen in X!). Also, in general if trouble with nvidia
installers, can run them with --extract-only flag, then enter directory
and use ``make install''.

Seem to need to rerun ``alsaconf'' as root after each kernel upgrade
too!

{[}btw, I was once again confused by booting with wireless which seemed
to break X, but it may have been my recent upgrade of kernel-source
instead???? don't know, but solution is reinstall driver as above..{]}

\subsection{Postscript: changing bounding boxes in order to make optimal 2-up
versions of .ps files}

Ugh. There is no single method here, and in general everything seems
very difficult. In a few occasions, the psbind program with carefully
chosen set of pages to scan for bounding box, and possibly borders
and margins set to 0, works nicely. But when there is lots of white
border within the bounding box, psnup will overwrite text with white!!!
in the case of a scanned document (?). 

Could make a version of psbind which does each page independently?

\subsection{MediaWiki}

\begin{comment}
Tried this again, on montoya2. Safe mode is on in PHP. Install works
with /tmp warning. home page fails with warning to do with /tmp. I
changed all instances of /tmp in wiki code to local images/tmp, but
that's not enough -- would need to change a PHP variable? Little
help on this issue: seriously frustrating.
\end{comment}


\subsection{Dual-boot stuff}

Though I almost never use it, the proprietary and fragile operating
system (MS Win2K) on one small partition became messed up, so I simply
reformatted and reinstalled the OS. That was easy: it did not overwrite
LILO (which had been put on disk's first sector by Mandrake).

\subsection{Scribus}

Couldn't install this so far, but it might be only hope for better
than Acroread....

\subsection{Maple}

{[}oct 2003{]} I installed Maple 6 (REALLY OLD!!) as though it were
RedHat 6/6.1, but I guess I have the wrong version of glibc (not 2.0?),
so it doesn't work. Ahh. I got it working by following this FAQ:

\texttt{This problem is caused by a conflict between various dynamically
linked shared libraries used by Maple. As a workaround, rename or
remove the following files in the folder \$MAPLE/bin.IBM\_INTEL\_LINUX\_REDHAT
or \$MAPLE/bin.IBM\_INTEL\_LINUX\_SUSE (where \$MAPLE is the location
of your Maple installation). The default location is /usr/local/maple.}

\texttt{ld-linux.so.2 }

\texttt{libc.so.6}

\texttt{libdl.so.2}

\texttt{You can either move these files to a temporary folder or change
their names by adding a letter to the filenames. Do not remove the
files from your system until you are sure that removing them fixes
the problem on your system.}

Next, I still have a problem due to the fact that the hostname changes
whenever I log on to the network wirelessly, and this confuses the
license manager. Ahh. Tech support helped me with this. You no longer
need a license manager for Maple 6. Just put the license.dat file
obtained from Maple straight into the license folder. So, from scratch:
in flexlm/unix dir on CD, run license install script. Then \emph{replace }
\begin{lyxcode}
/usr/local/maple/license/license.dat
\end{lyxcode}
with the file license.dat from Maple.

Oh, I also may have had to symbolic link maple and xmaple to /usr/local/bin:
\begin{lyxcode}
ln~-s~/usr/local/maple/bin/maple~/usr/local/bin/maple

ln~-s~/usr/local/maple/bin/xmaple~/usr/local/bin/xmaple
\end{lyxcode}
This was an old version of Maple -- I doubt any problems installing
a newer one!!!

\chapter{2003-December: Installation of Mandrake 9.2 on Toshiba Satellite
2410-W9X }

I don't know what the ``W9X'' part means. By the sounds of others'
pages, I guess all 2410's are fairly equivalent.

Previously I had installed Mandrake 9.1 on the same Toshiba Satellite
2410 \url{mandrake91_toshiba.html}.

Installed it next to existing MS Win2000pro (the last version ever
of M.S. Windoze which can be copied and reused etc without registering??)
-- no problem, no fiddling with NT boot loaders: just let Mandrake
do its thing.

\texttt{more /proc/version} says: Linux version 2.4.22-10mdk (nplanel@no.mandrakesoft.com)
(gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)) \#1 Thu Sep 18
12:30:58 CEST 2003 .

The following page is better; follow it for most stuff: linuxfrance.chez.tiscali.fr/toshiba\_eng.html

.....

Still to do:

APM! dl Modem; set sendmail up for smtp forwarding (NO! wait for fixed
network).

\section{Initial Mandrake installation}

Chose UK English; Generic PS2 wheelMouse (can test it!)

Used custom partitioning (and the auto-allocate button)

I needed all three CD's.

Graphics autodetected: Generic Flat panel 1024x768. NVidia GeForce4

I chose XFree 4.3.

Left ``zeroconf host name'' blank, if it was asked. 

Chose ``standard'' security; no firewall.

Turned on ssh and other servers.

Boot loader: chose LILO (there's no /boot partition with Mandrake!)
on disk's first sector. Upon installation, the Win2K which was already
installed worked perfectly.

\section{Post-install configuration}

Extra packages

I installed: lyx, wireless{*}, fetchmail, ethereal, xmms, latex2html,
xdvi, grip, a2ps, and aterm from the Mandrake CD's (using \texttt{urpmi
<package>} called as root). Probably others, too. I have copied my
CD's to the hard drive and changed the location through the Drak Package
program, so now using urpmi to install stuff will get it from the
hard disk if Mandrake shipped it, and the internet otherwise. 

Had to install adobe acrobat by hand; had to install a bunch of plugins
for Mozilla. Downloaded pine and some others.

\subsection{Graphics}

Shut down X by Ctrl-Alt-F1, log in as root, and type \texttt{init
3}. Then as root ran the NVidia driver installation program I downloaded
(very simple to find/choose) from NVidia's web site.

Then I made the couple of changes in /etc/XF86Config-4 advised by
the nvidia install docs, and also added \texttt{Option NoLogo} under
``Section `Device'{}'' to remove the full-screen logo on startup.
(Hey, that doesn't work!). The 3D programs I try now work.

\subsection{Wireless ethernet in PCMCIA card}

PCMCIA worked initially. I did use the graphical package installer
to install iwconfig and pcmcia-tools, I think, from the Mandrake CD's.
I stuck in my wireless card (whose true Orinoco chipset I knew should
work fine with Linux) and it just worked automatically -- much easier
to set up than in Windows. I had to run the Mandrake Contrl Center
network setup once, but didn't change anything. So, the card acquired
the local signal at UBC and that was that. The wireless card, if it's
inserted, shows up as eth1 and that's that.

Well, I am on UBC campus in a place where the wireless connection
is REALLY flakey. When it goes down, (especially) if root calls ``ifup
eth1'' to refind the network, sometimes I can no longer launch any
X application!! I get an error such as
\begin{quotation}
\texttt{Xlib: connection to \textquotedbl :0.0\textquotedbl{} refused
by server}

\texttt{Xlib: No protocol specified}

\texttt{/usr/X11R6/bin/xterm.real Xt error: Can't open display: :0.0}
\end{quotation}
I can fix this by having root say ``hostname localhost'' but this
doesn't last very long. What to do??

28Nov2003: Another try. There is interference due to rogue access
points / wireless hubs, I guess, so often my link seems to die and
``iwconfig'' reports that the ESSID has changed from ``ubc'' to
``default''. If I tell iwconfig to change it back, this sometimes
fixes the problem! I have told Mandrake Control Centre to use only
``ubc'' now, but that didn't fix the problem. (!?). I have now edited
the defaults essid in /etc/pcmcis/wireless.opts to fix it to ``ubc''
rather than ``any''.

2Dec2003: Ahh, for what it's worth there are now a bunch of gui wireless
consoles:

rpm -Uvh kwifimanager-1.0.2-1.MDK91.i586.rpm 

And while I'm at it, upgrade wireless-tools:

rpm -Uvh --test wireless-tools-26-1mdk.i586.rpm libiw26-26-3mdk.i586.rpm 

\subsection{Keyboard}

The key bouncing problem of Toshiba is no longer present under Mandrake
9.2

\subsection{\protect\LyX}

urpmi lyx 

\subsection{Toshiba Utilities}

Much later: November 2003: rpm -Uvh toshutils-2.0.1-2.i686.rpm. It
gives an install message ``Run \textquotedbl /etc/rc.d/init.d/fan
start\textquotedbl{} to start Toshiba fan daemon.'' It does not work.
It claims my kernel's missing the module?? I have rpms for toshset
and toshutils installed, but they both crash when run.

\subsection{Cannot get toshutils-2.0.1 to install: claims :}

CANNOT get toshutils ie power management etc to work. Help!? I just
want to be able to sleep and hibernate.

\subsection{Fetchmail}

Crazy! Under Mandrake 9.2, the postfix server does not work properly
if mailman is also installed and not set up properly. So: with the
drak rpm or whatever, uninstall postfix, and then reinstall postfix.
Apparently this is not a bug, but it wasted a lot of my time, since
fetchmail no longer worked. I suspect that uninstalling mailman would
also have made the local smtp server (postfix) work properly.

urpmi fetchmail

So, postfix (the recent name for sendmail, the common MTA) is running
on this system, and I think that is what receives the mail from fetchmail.
I have my fetchmailrc file set up to get mail by IMAP from Berkeley.
It works perfectly. I haven't yet got sendmail working to transparently
send mail when I get online.

\subsection{Sound}

Sound seems to work for most applications, but RealPlayer 8 was initially
silent. I get the ``cannot open the audio device.'' This is fixed
easily. Run realplayer, chose to set the preferences, and turned on
ESound. Quit the player, and restarted it. (Now I can watch NASA TV
coverage of Spirt and Opportunity.)

\subsection{Modem and PPP}

(see Mandrake 9.1 version. I haven't bothered with this yet).

\subsection{Canon i550 printer with GNU/Linux (Mandrake 9.1)}

Please DO NOT buy this printer. Canon is quite clear they will not
support it. I think they may have some other well-supported printers
(??) but I would check their modern attitude before supporting them
by buying any Canon product.

I RETURNED THIS PRINTER FOR A FULL REFUND.

See my Mandrake 9.1 install page for details.

\subsection{Epson Stylus C84 with GNU/Linux}

So then I bought a Stylus C84. Epson has a good record with GNU; I
should have figured this out before. I plugged it in, ran Mandrake
Control Center under Mandrake 9.2. It has a built in driver for the
C84; autodetected, etc. Works perfectly.

See comment on k3b cd case printing, below.

Aaah. Feb 2004: I used the http interface to CUPS to adjust the print
mode and (maybe as a result), printer printed an entire page of black
on the next file!! I deleted printer, re-ran the Drake setup thing
(which autodetects and sets it up!) and things are happy again!! Printers...sigh.

\subsection{Window managers etc}

12Sept: installed blackbox, bbconf, bbkeys, bbpager rpms. I don't
like them. Maybe try again in a few years. Aha! Eventually installed
my beloved old friend vtwm (which I used back in early 90's: still
better than most vwm's now)! Perfect.

\subsection{CD -writing}

I log in to a shell as root and then run k3b. Everything seems to
work perfectly. Start by running the k3b setup. I don't think Gnome
is useful here.

In order to make a cd case cover, I used GCombust, another CD writing
program already set up in Mandrake 9.1. However, when I printed out
the cover, it was slightly too small!! I had to enlarge the postscript
file by 2.575\%. I used:

\texttt{psresize -w8.7176in -h11.282in -W8.5in -H11in cdcase.ps cdcasebigger.ps}

\subsection{Maple}

{[}oct 2003{]} I installed Maple 6 (REALLY OLD!!) as though it were
RedHat 6/6.1, but I guess I have the wrong version of glibc (not 2.0?),
so it doesn't work. Ahh. I got it working by following this FAQ:

\texttt{This problem is caused by a conflict between various dynamically
linked shared libraries used by Maple. As a workaround, rename or
remove the following files in the folder \$MAPLE/bin.IBM\_INTEL\_LINUX\_REDHAT
or \$MAPLE/bin.IBM\_INTEL\_LINUX\_SUSE (where \$MAPLE is the location
of your Maple installation). The default location is /usr/local/maple.}

\texttt{ld-linux.so.2 }

\texttt{libc.so.6}

\texttt{libdl.so.2}

\texttt{You can either move these files to a temporary folder or change
their names by adding a letter to the filenames. Do not remove the
files from your system until you are sure that removing them fixes
the problem on your system.}

Next, I still have a problem due to the fact that the hostname changes
whenever I log on to the network wirelessly, and this confuses the
license manager. Ahh. Tech support helped me with this. You no longer
need a license manager for Maple 6. Just put the license file obtained
from Maple straight into the license folder.

Oh, I also may have had to symbolic link maple and xmaple to /usr/local/bin.

This was an old version of Maple -- I doubt any problems installing
a newer one!!!

\subsection{Octave}

Jan2004: 

\texttt{urpmi f77}

\texttt{rpm -Uvh octave-2.1.44-1mdk.i586.rpm  libfftw2-2.1.3-11mdk.i586.rpm
libhdf5\_0-1.4.4-2mdk.i586.rpm }

\subsection{Automatic clock synchronisation}

As root, type:

\texttt{urpmi ntp}

The settings are in /etc/ntp.conf if you like to look, but you don't
need to! (But you should -- put in a local time server; for me, ntp.ubc.ca).
Unoptimised but fully functional clock setting will now occur whenever
you boot! Simple, beautiful.

For optimisation, details: http://www.tldp.org/HOWTO/TimePrecision-HOWTO/ntp.htm

After you've set that up, use ntpq -p as root to check what it's doing.

\subsection{Backup}

To backup a user directory, I set up drakBackup (ie use the all-purpose
config tool) and make use of the .backupignore feature and a combo
of CD-R and network and to-disk: see the Mandrake documentation: excellent.
Oh but the software isn't. My backup was more than one CD's worth,
and the drakbackup wasn't savvy, and its report doesn't claim anything's
gone wrong: awful logging.

\subsection{Automatic updates from Mandrake}

I'm not sure of all the details, but the following two lines done
as root (could be put in /etc/cron.daily, for instance) does the magic!
This gets the updates from Mandrake, auto-selects all of them, automatically
installs them and leaves the rpm's downloaded in /var/cache/urpmi/rpms.
You can leave out the --noclean switch if you don't want to keep
the rpms.

\texttt{\#!/bin/bash}

\texttt{\# Check for any rpm updates from Mandrake}

\texttt{urpmi.update -a}

\texttt{urpmi -{}-update -{}-auto -{}-auto-select -{}-noclean}

Alternatively, to do this ``manually'', type Alt-F2 and enter ``MandrakeUpdate''
in the dialog box, and click ``run''. But this interface seems awfully
broken (latencies in ui) to me.

For whatever reason, when first doing the auto update above for Mandrake
9.2, I got an error:

The following packages have bad signatures: /var/cache/urpmi/rpms/apache2-2.0.47-6.3.92mdk.i586.rpm:
Invalid Key ID (sha1 md5 gpg GPG\#22458a98 OK) 

I solved this (!?) by doing ``urpmi apache2'' first. I don't know
why. 

This auto updating also sometimes tells me that a file it just apparently
just downloaded is missing. Since it gives the exact internet path
(ftp://...) I just use wget followed by that location to get the file
and put it in the /var/cache/urpmi/rpms/. 

\section{Upgrading without burning ISO's}

To upgrade Mandrake from 9.2 to 10 by downloading ISO's (I paid to
join Mandrake Club) without bothering to burn CD's: I expanded the
ISO of disc 1 into a temporary directory (see below). From it, I wrote
the cdrom.img file to a floppy (could also write a couple others,
to make network-installable version?). Then did installation (upgrade)
using ISO's on disk.. .just boot floppy. See directions on CD 1, which
are, unbelievably, written for MS-Windows-users!
\begin{lyxcode}
mkdir~mdk10

mkdir~/iso

mount~-t~iso9660~\textasciitilde /mdk10iso/Mandrake91-cd1-inst.i586.iso~/iso~-o~ro,loop=/dev/loop0

cp~-fR~/iso/{*}~mdk10/.

umount~/iso
\end{lyxcode}
and so on for other ISO's.

Prepare boot floppy: Insert a good 1.44MB floppy in your floppy drive.
\begin{lyxcode}
cd~mdk10/images

dd~if=cdrom.img~of=/dev/fd0

\end{lyxcode}
Instead of cdrom.img, might use the hd one or network one, etc...

Argh. I couldn't get the CDrom floppy boot process to point to the
hard drive, so I ended up opening the ISO's and using th hd-floppy
boot...

\chapter{Hardware Appendix}

(Taken originally from: \texttt{http://www.toshiba.ca/web/specifications.grp?lg=en\&section=1\&group=223\&product=531\&part=830})

Satellite 2400 Series Specifications 2410-W9X: 1.90GHz (PS241C-2PW9XP)

Processor 

CPU: Mobile Intel Pentium 4 Processor - M Clock Speed: 1.90 GHz Coprocessor:
Integrated Coprocessor, 400 MHz PSB Cache: L1 Cache 12KB/8KB (instruction/data),
L2 Cache 512KB

Memory 

Standard: 256MB PC2100DDR Maximum: 1024MB (512MB+512MB) Expansion
Modules: 128MB, 256MB, 512MB PC2100 DDR SODIMM modules BIOS ROM: 4Mbit
capacity

Storage 

Floppy Disk Drive: Built-in 1.44MB, 3.5\textquotedbl{} integrated
Optical Drive: Built-in COMBO DRIVE DVD/CD-RW. 180ms DVD, 130ms CD
Maximum speed: CD-R(16x), CD-RW(10x), CD-ROM(24x). ATAPI interface
Hard Disk Drive: 40.0 billion bytes, 9.7mm height, Enhanced IDE, Access
time 12ms read/12ms write

Display System 

Type: TFT Active Matrix colour LCD display Size (diagonal): 15\textquotedbl{}
TFT LCD Panel Resolution: 1,024x768x16.7 million colours External
Support and Maximum Colour Support: 800 x 600 x 16.7 million colours
(no clean stretch) 1,024 x 768 x 16.7 million colours 1,280 x 1,024
x 65,536 colours (virtual display) 1,600 x 1,200 x 65,536 colours
(virtual display) Simultaneous Display Support: 1,024x768x16.7 million
colours

Video 

Graphics Controller: NVIDIA® GeForce 4 420. 3D and 2D accelerator.
AGP bus. Simultaneous Display Capable. Open GL Support. Video Memory:
16MB DDR

Audio 

Sound System: YMF753. Full duplex 16bit. Stereo. Direct 3D sound.
External mic and headphone port. Volume Control dial, Built-in stereo
speakers..

Communication 

Modem: V.92 Data/Fax Modem, Ring Wake-up Resume LAN: 10/100 Ethernet
LAN network interface card, Wake-up On LAN, remote boot. 802.11b wireless
antenna built-in. Also requires PA3212U-2MPC wireless accessory module
for full wireless function.

Expansion 

Memory: 2 slots total, one slot filled with 256MB, other slot empty.
Empty slot can be filled with 128MB, 256MB, or 512MB PC2100 DDR SDRAM
module. Maximum 1024MB RAM (512MB+512MB) PC Card Slots: 2 PC Card
slot supports two Type II or Type III PC Cards, Supports Cardbus Ports:
Parallel, RGB, infrared, 3 USB, 1 TV-Out, RJ11, RJ45, external microphone
port, headphone port, SD Card Slot.

Keyboard and Pointing Device 

Keyboard: Full sized 85 keys with 12 function keys 2.7mm keystroke,
6mm height Dedicated Windows Keys. Touchpad pointing device with scroll
wheel Toshiba Console button Internet Button CD Control Function:
Play/Pause, Stop/Eject, Previous, Skip/Next

Dimensions and Weight 

Dimensions: 327 mm (W) x 286 mm (D) x 42 mm (H) Weight: 7.5 lbs

Operating System 

Software: Microsoft® Windows® XP Home Edition

Power 

Power Supply: 75W external Universal AC adaptor input voltage (100
\textbackslash x\{2013\} 240V 50/60Hz Frequency (Universal), output
voltage (15V, 5A). Dimensions: (WxHxD) 56mmx28mmx140mm Weight: 400g
Battery Type: Removable, Rechargeable 9-cell Lithium Ion (Li-ion)
10.8V x 4500mAh capacity. Dimensions: (WxHxD) 174.5mmx70mmx18.5mm;
Weight: 370g Battery Life: 2.5 hours Recharge Time: 3 hours off/ 3-10
hours on

BIOS 

Support: TSETUP support, APM support, ACPI support, PnP support, VESA
support, DPMS support, DDC support, SM BIOS support, PCI BIOS support

Security 

Security: Cable lock slot, power on password

Environmental Specifications 

Temperature: Operating 5°to 35°C (41° to 95°F); Non Operating \textbackslash x\{2013\}20°
to 65°C (-4° to149°F) Thermal Gradient: Operating 15° C per hr. max;
Non Operating 20° C per hr. max Relative Humidity: Operating 20\%
to 80\% non-condensing; Non-Operating: 10\% to 95\% non-condensing
Altitude (relative to sea level): Operating: -60 to 3,000m.; Non-Operating:
-60 to 10,000m Shock: Operating: 7G; Non-Operating 60G Vibration:
Operating 0.2G; Non-Operating: 1G

Warranty 

Toshiba Warranty: Canada and International Limited Warranty System
unit: One year parts and labour Battery: One year Pre-installed software
is excluded from TCL standard limited warranty Click here for complete
details on this warranty program and other Warranty Programs such
as On-site and Next Business Day Service.

Print Friendly page 

Hard Disk Drives: {*}GB = billion bytes for hard drives, accessible
capacity may be less.

{*}{*}Data connection rates may vary depending on conditions.

CPU Disclaimer

All brand and product names are trademark of their respective companies. 

.

.

.

.

.

Satellite 2400 Series Specifications

2410-W9X: 1.90GHz (PS241C-2PW9XP)

Processor

CPU: Mobile Intel Pentium 4 Processor - M

Clock Speed: 1.90 GHz

Coprocessor: Integrated Coprocessor, 400 MHz PSB

Cache: L1 Cache 12KB/8KB (instruction/data), L2 Cache 512KB

Memory

Standard: 256MB PC2100DDR

Maximum: 1024MB (512MB+512MB)

Expansion Modules: 128MB, 256MB, 512MB PC2100 DDR SODIMM modules

BIOS ROM: 4Mbit capacity

Storage

Floppy Disk Drive: Built-in 1.44MB, 3.5\textquotedbl{} integrated

Optical Drive: Built-in COMBO DRIVE DVD/CD-RW. 180ms DVD, 130ms CD

Maximum speed: CD-R(16x), CD-RW(10x), CD-ROM(24x). ATAPI interface

Hard Disk Drive: 40.0 billion bytes, 9.7mm height, Enhanced IDE, Access
time 12ms read/12ms write

Display System

Type: TFT Active Matrix colour LCD display

Size (diagonal): 15\textquotedbl{} TFT

LCD Panel Resolution: 1,024x768x16.7 million colours

External Support and Maximum Colour Support: 800 x 600 x 16.7 million
colours (no clean stretch)

1,024 x 768 x 16.7 million colours

1,280 x 1,024 x 65,536 colours (virtual display)

1,600 x 1,200 x 65,536 colours (virtual display)

Simultaneous Display Support: 1,024x768x16.7 million colours

Video

Graphics Controller: NVIDIA® GeForce 4 420. 3D and 2D accelerator.
AGP bus. Simultaneous Display Capable. Open GL Support.

Video Memory: 16MB DDR

Audio

Sound System: YMF753. Full duplex 16bit. Stereo. Direct 3D sound.

External mic and headphone port. Volume Control dial,

Built-in stereo speakers..

Communication

Modem: V.92 Data/Fax Modem, Ring Wake-up Resume

LAN: 10/100 Ethernet LAN network interface card, Wake-up On LAN, remote
boot. 802.11b wireless antenna built-in. Also requires PA3212U-2MPC
wireless accessory module for full wireless function.

Expansion

Memory: 2 slots total, one slot filled with 256MB, other slot empty.
Empty slot can be filled with 128MB, 256MB, or 512MB PC2100 DDR SDRAM
module. Maximum 1024MB RAM (512MB+512MB)

PC Card Slots: 2 PC Card slot supports two Type II or Type III PC
Cards, Supports Cardbus

Ports: Parallel, RGB, infrared, 3 USB, 1 TV-Out, RJ11, RJ45, external
microphone port, headphone port, SD Card Slot.

Keyboard and Pointing Device

Keyboard: Full sized 85 keys with 12 function keys

2.7mm keystroke, 6mm height

Dedicated Windows Keys.

Touchpad pointing device with scroll wheel

Toshiba Console button

Internet Button

CD Control Function: Play/Pause, Stop/Eject, Previous, Skip/Next

Dimensions and Weight

Dimensions: 327 mm (W) x 286 mm (D) x 42 mm (H)

Weight: 7.5 lbs

Operating System

Software: Microsoft® Windows® XP Home Edition

Power

Power Supply: 75W external Universal AC adaptor input voltage (100
? 240V 50/60Hz Frequency (Universal), output voltage (15V, 5A).

Dimensions: (WxHxD) 56mmx28mmx140mm

Weight: 400g

Battery Type: Removable, Rechargeable 9-cell Lithium Ion (Li-ion)
10.8V x 4500mAh capacity.

Dimensions: (WxHxD) 174.5mmx70mmx18.5mm;

Weight: 370g

Battery Life: 2.5 hours

Recharge Time: 3 hours off/ 3-10 hours on

BIOS

Support: TSETUP support, APM support, ACPI support, PnP support, VESA
support, DPMS support, DDC support, SM BIOS support, PCI BIOS support

Security

Security: Cable lock slot, power on password

Environmental Specifications

Temperature: Operating 5°to 35°C (41° to 95°F); Non Operating ?20°
to 65°C (-4° to149°F)

Thermal Gradient: Operating 15° C per hr. max; Non Operating 20° C
per hr. max

Relative Humidity: Operating 20\% to 80\% non-condensing; Non-Operating:
10\% to 95\% non-condensing

Altitude (relative to sea level): Operating: -60 to 3,000m.; Non-Operating:
-60 to 10,000m

Shock: Operating: 7G; Non-Operating 60G

Vibration: Operating 0.2G; Non-Operating: 1G

Warranty

Toshiba Warranty: Canada and International Limited Warranty

System unit: One year parts and labour

Battery: One year

Pre-installed software is excluded from TCL standard limited warranty
Click here for complete details on this warranty program and other
Warranty Programs such as On-site and Next Business Day Service.

Print Friendly page 

Hard Disk Drives: {*}GB = billion bytes for hard drives, accessible
capacity may be less.

{*}{*}Data connection rates may vary depending on conditions.

CPU Disclaimer

All brand and product names are trademark of their respective companies.

Design and specifications subject to change without notice.

<-@<-@7d

-@-@Font: Default-@-@ 
\end{document}
