<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-13768020</id><updated>2011-04-21T19:42:00.618Z</updated><title type='text'>Linux</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shfbbm-linux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-13768020.post-112767432181874390</id><published>2005-09-25T18:33:00.000Z</published><updated>2005-09-25T18:52:01.826Z</updated><title type='text'>Samba</title><content type='html'>Today I set up samba properly. Previously it only worked one way (viewing windows shares on the linux box) and involved typing the tedious command "sudo mount -t smbfs //192.168.0.1/share /mnt/share" and entering two passwords (one for sudo, and one for the mounting).&lt;br /&gt;&lt;br /&gt;Firstly I set up a line in /etc/fstab to make this much quicker.&lt;br /&gt;&lt;br /&gt;//192.168.0.1/share /mnt/network smbfs _netdev,noauto,users,password="",fmask=777,umask=777  0 0&lt;br /&gt;&lt;br /&gt;Now I can just type "mount /mnt/network" to mount the share. No password is necessary (in actual fact, you could just put a blank password when mounting it manually) since it's in the fstab command (password=""). I also changed sudoers to allow this command to be run without a password, so overall it's much quicker to mount.&lt;br /&gt;&lt;br /&gt;The fmask=777 and umask=777 are important as they give regular users permission to write on the shared drive (since windows doesn't have permissions).&lt;br /&gt;&lt;br /&gt;The other stage of setting up samba was getting the windows computer to see me, and be able to access my files. This was achieved by setting up a smb.conf file like this:&lt;br /&gt;&lt;br /&gt;[global]&lt;br /&gt;workgroup = MSHOME&lt;br /&gt;netbios name = Tux&lt;br /&gt;security = user&lt;br /&gt;password level = 8&lt;br /&gt;deadtime = 3&lt;br /&gt;guest account = nobody&lt;br /&gt;&lt;br /&gt;[homes]&lt;br /&gt;browseable = no&lt;br /&gt;writable = yes&lt;br /&gt;&lt;br /&gt;[mp3]&lt;br /&gt;path = /home/ian/Music&lt;br /&gt;browseable = yes&lt;br /&gt;guest ok = yes&lt;br /&gt;writable = no&lt;br /&gt;&lt;br /&gt;It's quite straightforward since there's not printers or anything complicated to set up. I have two shares set up, for home directories (which require correct username/password to view) and for my mp3s (read only, can be viewed by the guest account, nobody). You have to set up the accounts for any users logging on like this using smbpasswd (just "smbpasswd -a username" as root, there must already be a local account with that name).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112767432181874390?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112767432181874390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112767432181874390'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/09/samba.html' title='Samba'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112341419922409852</id><published>2005-08-07T11:18:00.000Z</published><updated>2005-08-07T11:29:59.233Z</updated><title type='text'>More sudo</title><content type='html'>I've set up the sudoers file a little more sensibly now.&lt;br /&gt;&lt;br /&gt;%wheel  ALL=(ALL)       ALL&lt;br /&gt;%wheel ALL = NOPASSWD: /sbin/poweroff, /sbin/reboot, /bin/mount /mnt/cdrom, /bin&lt;br /&gt;/umount&lt;br /&gt;%wheel ALL=(ALL) !/bin/su&lt;br /&gt;&lt;br /&gt;The first line says that anyone in the wheel group (i.e. me) can run any command as root, but needs to enter his password first. &lt;br /&gt;&lt;br /&gt;The second line says that I can do some mundane tasks like mount the cdrom drive, or poweroff without needing a password at all. This line has to be after the previous line - if it's before, you still need a password as the other line overrules it or something.&lt;br /&gt;&lt;br /&gt;The third line says that you can't sudo to su. I originally put this in a security thing, then realised that if someone unauthorised got access to a wheel group user, they could just sudo everything and wouldn't need the su to root at all. So in reality, its function is more to make sure I don't forget the root password, and slow me up from running lots of commands as root, where I might make silly mistakes (such as "rm -Rf /").&lt;br /&gt;&lt;br /&gt;In fact, the whole file doesn't really increase security at all (although it'd be just as hard to get access to my account as root's). It just serves to save me typing passwords on mundane things, and make me type passwords on anything that could actually damage the computer. It's just a way of stopping and saying "wait a minute, are you sure you want to do this?" before I blow up the computer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112341419922409852?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112341419922409852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112341419922409852'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/08/more-sudo.html' title='More sudo'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112280244576674164</id><published>2005-07-31T09:25:00.000Z</published><updated>2005-07-31T09:34:05.776Z</updated><title type='text'>xscreensaver</title><content type='html'>I'm not a big fan of screensavers since they tend to either look rubbish or use up lots of processing power, but I figured I needed something to lock the screen whilst I'm away. After a little experimenting with xlockmore, I figured it probably wasn't worth going against the norm and installed xscreensaver.&lt;br /&gt;&lt;br /&gt;My biggest gripe with xscreensaver is that ugly screen you get when you go to unlock it. It is truly unpleasant. However I found out that you can change that by editing /etc/X11/app-defaults/XScreenSaver. I'm not sure if you can do it on a user level by editing ~/.xscreensaver.&lt;br /&gt;&lt;br /&gt;Here's the relevant section. Basically I just changed all of the colours to black and white and removed the "XScreensaver vX.Y. This display is locked" text. It looks much better than before, although I couldn't figure out how to get rid of the xscreensaver logo.&lt;br /&gt;&lt;br /&gt;! Resources for the password and splash-screen dialog boxes of&lt;br /&gt;! the "xscreensaver" daemon.&lt;br /&gt;!&lt;br /&gt;!*Dialog.headingFont:           *-times-bold-r-*-*-*-180-*-*-*-iso8859-1&lt;br /&gt;*Dialog.headingFont:            *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1&lt;br /&gt;*Dialog.bodyFont:               *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1&lt;br /&gt;*Dialog.labelFont:              *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1&lt;br /&gt;*Dialog.buttonFont:             *-helvetica-bold-r-*-*-*-140-*-*-*-iso8859-1&lt;br /&gt;*Dialog.dateFont:               *-courier-medium-r-*-*-*-80-*-*-*-iso8859-1&lt;br /&gt;*Dialog.foreground:             #FFFFFF&lt;br /&gt;*Dialog.background:             #000000&lt;br /&gt;*Dialog.Button.foreground:      #000000&lt;br /&gt;*Dialog.Button.background:      #000000&lt;br /&gt;!*Dialog.Button.background:     #D6D6D6&lt;br /&gt;!*Dialog.Button.pointBackground: #EAEAEA&lt;br /&gt;!*Dialog.Button.clickBackground: #C3C3C3&lt;br /&gt;*Dialog.text.foreground:        #FFFFFF&lt;br /&gt;*Dialog.text.background:        #000000&lt;br /&gt;*passwd.thermometer.foreground: #FF0000&lt;br /&gt;*passwd.thermometer.background: #000000&lt;br /&gt;*Dialog.topShadowColor:         #000000&lt;br /&gt;*Dialog.bottomShadowColor:      #000000&lt;br /&gt;*Dialog.logo.width:             210&lt;br /&gt;*Dialog.logo.height:            210&lt;br /&gt;*Dialog.internalBorderWidth:    0&lt;br /&gt;*Dialog.borderWidth:            0&lt;br /&gt;*Dialog.shadowThickness:        0&lt;br /&gt;&lt;br /&gt;!*passwd.heading.label:         XScreenSaver %s&lt;br /&gt;*passwd.heading.label:          &lt;br /&gt;!*passwd.body.label:            This display is locked.&lt;br /&gt;*passwd.body.label:             &lt;br /&gt;*passwd.user.label:             User:&lt;br /&gt;*passwd.passwd.label:           Password:&lt;br /&gt;*passwd.passwdFont:             *-courier-medium-r-*-*-*-140-*-*-*-iso8859-1&lt;br /&gt;*passwd.thermometer.width:      8&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112280244576674164?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112280244576674164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112280244576674164'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/xscreensaver.html' title='xscreensaver'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112267617076623822</id><published>2005-07-29T22:26:00.000Z</published><updated>2005-07-29T22:37:48.740Z</updated><title type='text'>.bashrc</title><content type='html'>For some reason, .bashrc is not running when I log in. This is a pain, since aliases such as poweroff="sudo /sbin/poweroff". Ok, it takes seconds to type the extra characters, but it bugs me nonetheless. And I may want to put other stuff in there at some point.&lt;br /&gt;&lt;br /&gt;I added the following to /etc/profile:&lt;br /&gt;&lt;br /&gt;if [ -x ~/.bashrc ]; then&lt;br /&gt;. ~/.bashrc&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;Problem solved.&lt;br /&gt;&lt;br /&gt;[EDIT]&lt;br /&gt;I did a little more searching and found out that slackware doesn't use .bashrc, but does have .bash_profile. Anyway, I removed the lines from /etc/profile, and put all my user stuff in .bash_profile. It works fine, no point adding extra files for no reason, it'll only complicate things.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112267617076623822?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112267617076623822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112267617076623822'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/bashrc.html' title='.bashrc'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112247847191361765</id><published>2005-07-27T14:58:00.000Z</published><updated>2005-07-27T15:34:31.920Z</updated><title type='text'>Email</title><content type='html'>My email setup consists of &lt;a href="http://www.catb.org/~esr/fetchmail/"&gt;fetchmail&lt;/a&gt;, &lt;a href="http://www.procmail.org/"&gt;procmail&lt;/a&gt;, &lt;a href="http://www.mutt.org/"&gt;mutt&lt;/a&gt;, &lt;a href="http://nbsmtp.ferdyx.org/"&gt;nbsmtp&lt;/a&gt; and &lt;a href="http://msmtp.sourceforge.net"&gt;msmtpqueue&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Setting up fetchmail and procmail is not really a problem, there are umpteen guides on the net.&lt;br /&gt;&lt;br /&gt;Sending mail is a little harder. I don't use sendmail/qmail etc. since they're far too advanced for my needs, and I have no idea how to set them up. Instead I go for small smtp programs such as msmtp, esmtp or nbsmtp. &lt;br /&gt;&lt;br /&gt;msmtp and esmtp wouldn't work. I have no idea what was wrong, instead I just gave up and installed nbsmtp, which works fine. I set up mutt with "sendmail = 'nbsmtp -h smtp.gmail.com -p 465 -U username@gmail.com ...'" and it sent mails through gmail just great.&lt;br /&gt;&lt;br /&gt;The next thing to do was set up so that I could switch at will between gmail accounts when I compose and email. This is a case of constructing a macro in mutt which changes the sendmail option to pass different option to nbsmtp (i.e. a different username and password), and also change the from address in the headers.&lt;br /&gt;&lt;br /&gt;I came up with a line which looked a little like this:&lt;br /&gt;&lt;br /&gt;macro compose \e1 "\ef^uJoe Bloggs &lt;joebloggs1@gmail.com&gt;\n&lt;enter-command&gt;&lt;br /&gt;set sendmail='/usr/local/bin/nbsmtp -f joebloggs1@gmail.com -h smtp.g&lt;br /&gt;mail.com -p 465 -s -U joebloggs1@gmail.com -P joespassword'&lt;enter&gt;" 'choose &lt;br /&gt;Joe Bloggs smtp profile'&lt;br /&gt;&lt;br /&gt;I'll dissect it bit by bit:&lt;br /&gt;&lt;br /&gt;macro - this is a macro...&lt;br /&gt;compose - it works if you're on the compose screen (the one after typing your mail but before sending it)&lt;br /&gt;\e1 - it's activated when you type escape, then 1&lt;br /&gt;"\ef^uJoe Bloggs &lt;joebloggs1@gmail.com&gt;\n - this changes the from header to "Joe Bloggs &lt;joebloggs1@gmail.com&gt;". (escape f means change the from line, control u clears it, then Joe... \n is equivalent to typing it in followed by enter.)&lt;br /&gt;&lt;br /&gt;&lt;enter-command&gt;set sendmail='/usr/local/bin/nbsmtp -f joebloggs1@gmail.com -h smtp.g&lt;br /&gt;mail.com -p 465 -s -U joebloggs1@gmail.com -P joespassword'&lt;enter&gt; - this simply changes the sendmail option to nbsmtp...&lt;br /&gt;&lt;br /&gt;'choose Joe Bloggs smtp profile' - the text to display in the help screen&lt;br /&gt;&lt;br /&gt;I have a line like this for each email address I will be sending mail from.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The final part of the email setup is set up msmtpqueue scripts so that it doesn't matter if I'm online when I send email in mutt. &lt;br /&gt;&lt;br /&gt;The scripts are set up for use with msmtp, but it works with nbsmtp if you simply change the relevant line. I also changed the names of the files, folders, variables etc. from *msmtp* to *nbsmtp* to avoid confusing myself.&lt;br /&gt;&lt;br /&gt;Now mutt sends mail to the msmtpqueue script ("sendmail=/usr/local/bin/nbsmtp-queue -h smtp.gmail.com etc."), with the same options as before (they are passed onto nbsmtp). If the internet connection is up (tested by pinging google, probably not the best way) it runs the sendmail script straight away. If not, the sendmail script runs every 5 minutes as a cronjob, so the mail just sits in the queue until the net is up and then gets sent.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112247847191361765?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112247847191361765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112247847191361765'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/email.html' title='Email'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112240123286555737</id><published>2005-07-26T17:47:00.000Z</published><updated>2005-07-26T18:12:49.216Z</updated><title type='text'>More Lilo</title><content type='html'>Finally got around to setting up lilo properly today. Here's my lilo.conf:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;boot = /dev/hda&lt;br /&gt;install=text&lt;br /&gt;vga = 773&lt;br /&gt;delay=0                         &lt;br /&gt;password=""                     &lt;br /&gt;default=Linux &lt;br /&gt;&lt;br /&gt;# Override dangerous defaults that rewrite the partition table:&lt;br /&gt;change-rules&lt;br /&gt;  reset       &lt;br /&gt;                               &lt;br /&gt;image = /boot/vmlinuz           &lt;br /&gt;  root = /dev/hda1              &lt;br /&gt;  label = Linux                 &lt;br /&gt;  read-only                     &lt;br /&gt;  restricted                    &lt;br /&gt;                                &lt;br /&gt;other = /dev/fd0                &lt;br /&gt;label = Floppy&lt;br /&gt;mandatory&lt;br /&gt;unsafe&lt;br /&gt;&lt;br /&gt;other = /boot/cdboot.b&lt;br /&gt;label = CD&lt;br /&gt;mandatory&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Key things to note:&lt;br /&gt;&lt;br /&gt;install=text - I hate the crappy ascii menu.&lt;br /&gt;delay=0 - boot straight away, no waiting.&lt;br /&gt;password="" - when you run lilo it asks for the password to use and stores it somewhere safe, not in lilo.conf.&lt;br /&gt;restricted/mandatory - you need the password to boot from floppy or CD, or to pass options to the kernel (you also need to put scroll lock on otherwise you won't get the chance as delay=0).&lt;br /&gt;unsafe - you need this to get the floppy bit to work. It tells it not to check what's in the drive when you run lilo (although I think putting a bootable disk in would work too)&lt;br /&gt;&lt;br /&gt;And finally:&lt;br /&gt;&lt;br /&gt;other = /boot/cdboot.b&lt;br /&gt;This is a little hack I found &lt;a href="http://www.hochstrasser.org/wiki/pmwiki.php?pagename=Linux.LiloCDBoot"&gt;here&lt;/a&gt; to allow me to boot from CD "through lilo". It's explained better on that page, but I'll give it a go in case that site goes down or something.&lt;br /&gt;&lt;br /&gt;Basically, lilo can't boot up a CD (or it can, but I couldn't figure out how to make it work). Instead, it tells the BIOS that it failed to boot from the hard drive, so the BIOS then passes control to whatever is next on your boot order, which conveniently is the CD drive. &lt;br /&gt;&lt;br /&gt;cdboot.b is the program which tells the BIOS that the hard drive failed. It consists of 512 bytes and goes: CD 18 00 00 00 ... 00 00 55 AA. So that's CD, then 18, then 508 lots of 00, then 55, then AA.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112240123286555737?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112240123286555737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112240123286555737'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/more-lilo.html' title='More Lilo'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112232234501253630</id><published>2005-07-25T20:03:00.000Z</published><updated>2005-07-25T20:12:25.020Z</updated><title type='text'>mp3cddb</title><content type='html'>&lt;a href="http://rufus.hackish.org/wiki/MP3cddb"&gt;mp3cddb&lt;/a&gt; is a mp3 tagging/renaming perl script. After a couple of days of searching for a suitable program to do my tagging, I found this, and it suits my needs quite well. No real problems installing, just had to make sure all the dependencies were installed (and they were easily found once I found a working website for the project, since the link on freshmeat is wrong).&lt;br /&gt;&lt;br /&gt;It's very simple - you take a directory of mp3s, it finds the track information from &lt;a href="http://www.freedb.org"&gt;freedb.org&lt;/a&gt; and presents you with the most likely match. You can then edit the tags if necessary, and then it writes the tags to the files and renames them for you. Everything you could want in an mp3 tagger.&lt;br /&gt;&lt;br /&gt;The only minor inconvenience is that to find the correct information the tracks need to be named in the right order (e.g. "01 catch the pigeon.mp3"). This is fine since most of my ripping will be using cdparanoia and give me tracks imaginatively titled "track01.cdda.wav.mp3". But since I have a few albums which need to be tagged which were ripped on windows and given names in the format "title.mp3", they're in the wrong order.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112232234501253630?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112232234501253630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112232234501253630'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/mp3cddb.html' title='mp3cddb'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112151993717370514</id><published>2005-07-16T13:13:00.000Z</published><updated>2005-07-16T13:18:57.176Z</updated><title type='text'>Sudo</title><content type='html'>To speed up tasks which would otherwise require me to login as root, I very quickly hacked to sudoers files to allow all users in the wheel group to sudo any command without a password, and added my user to wheel.&lt;br /&gt;&lt;br /&gt;Whilst this is very convenient in speeding up the time it takes to mount the cdrom drive, mount samba shares, poweroff the computer etc (especially by using aliases such as poweroff="sudo /sbin/poweroff" in ~/.bashrc), it is also pretty insecure, since any user who gains access to my account can run any command, or become root by running "sudo su" with no need for a password.&lt;br /&gt;&lt;br /&gt;So bear in mind, this is not a permanent solution to my annoyance at having to be root to turn off the computer (and other such things). I really need to tighten up the security on the computer a lot (if only I wasn't so lazy).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112151993717370514?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112151993717370514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112151993717370514'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/sudo.html' title='Sudo'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112151637845679155</id><published>2005-07-16T12:03:00.000Z</published><updated>2005-07-16T14:31:54.456Z</updated><title type='text'>More Pytone</title><content type='html'>I'm not sure having pytone running through xmms is such a good idea.&lt;br /&gt;&lt;br /&gt;Firstly, there seems to be some coordination problems between what Pytone says it is playing, and the sound coming out of the speakers. I don't know that this is strictly a problem with xmms/pytone, and not just pytone itself, but I suspect that it may be the cause.&lt;br /&gt;&lt;br /&gt;The other thing is that today, whilst listening to music on my dad's windows box, I came the the conclusion again that computer speakers are just too small for music. So I thought... wouldn't it be cool if I could work at this computer, but have the music playing out of my Linux box. And then thought... wait, I can do that!&lt;br /&gt;&lt;br /&gt;I got the linux box running sshd, and then logged in from the windows box using Putty. Unfortunately, to get pytone running it needed X (due to xmms), which required me running an Xserver on the Windows box (I found a program called XLitePro which served the purpose well). Overall, it was more work than it was worth. A better solution would've been to run the Xserver on the linux box, with xmms working on that, but I couldn't figure out how to get that going quickly.&lt;br /&gt;&lt;br /&gt;Of course, with pytones internal player, or mpg321, I wouldn't have needed X (and  won't need it for any other things I ssh to do), and the whole process would be quicker and easier. It might also fix the coordination problems.&lt;br /&gt;&lt;br /&gt;[EDIT]&lt;br /&gt;I've now gotten pytone to work without xmms, using its internal mad based player. The problem before was that I didn't have the pymad library installed - simply downloading and installing this solved the problem.&lt;br /&gt;&lt;br /&gt;In doing this I've fixed the problems of pytone  saying its playing one thing when actually something else is playing, and can also run it purely in a terminal (no X required). I can also utilise the cool crossfading effect (although on the default length of 6 seconds to crossfade between songs it just sounded like a mess)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112151637845679155?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112151637845679155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112151637845679155'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/more-pytone.html' title='More Pytone'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112111408588273738</id><published>2005-07-11T20:11:00.000Z</published><updated>2005-07-11T20:46:11.850Z</updated><title type='text'>Pytone</title><content type='html'>"&lt;a href="http://www.luga.de/pytone/"&gt;Pytone&lt;/a&gt; is a music jukebox written in Python with a curses based GUI."&lt;br /&gt;&lt;br /&gt;It's also, as far as I know, the music player which best suits my needs.&lt;br /&gt;&lt;br /&gt;A little background info - a while ago I decided that it was time to make my CD collection obsolete.  I got to a stage where I had so much music on computer which I hadn't bothered to burn to CD that my music listening was split between the CD player and the computer, which seemed a bit stupid. I also had some problems with dodgy connections on my CD player, which means half the time I was only listening through one speaker, which was very frustrating. Hence I decided to migrate all of my music listening to be computer based.&lt;br /&gt;&lt;br /&gt;Since I already had all my CDs in mp3 format anyway, this should've been a quite straightforward task. The first problem was that of connecting decent speakers to the computer (the computer speakers were fine for computer use, but just too damn small to listen to music on). Connecting bigger speakers directly to the computer wouldn't work, since the signal coming out of the computer is too small, so the sound was practically inaudible at full volume. My solution was to send the signal into the computer speakers (which have mains power and a little amp in them, and also helpfully, a headphone plug), and use them to amplify the signal, then send it to the big speakers through the headphone plug. It's not particularly elegant, but it works.&lt;br /&gt;&lt;br /&gt;Then I needed a jukebox type player thing. I'd always used xmms, but this lacked the functionality to maintain a database of music and easily add and artist/album to the playlist. At least, if it did, I never found it, nor a plugin for it. All credit to Microsoft, I was looking for something more like Windows Media Player (although many aspects of that program I detest).&lt;br /&gt;&lt;br /&gt;All of the programs which I found with the kind of features I wanted were bloated, or just plain wouldn't run on my system. And then I had the idea of using a terminal based player - terminal stuff tends to be very lightweight, and hence fast, especially on a system of my calibre; and also with pseudo transparent terminals, looks surprisingly good at little cpu/memory expense, and matches most other programs I might be running.&lt;br /&gt;&lt;br /&gt;Pytone is a breeze to install, you just extract it to a folder (/usr/local is where I install all manually installed stuff), bung the configuration file in the right place (~/.pytone/pytonerc) and edit it, and then run it.&lt;br /&gt;&lt;br /&gt;Of course, that's the theory. This time around I had some problems getting it to play, my initial choice of using mpg321 to do the actual playing part failing. Rather than trying to figure out what was wrong with it, I opted for the easy choice and changed the choice of player to the internal player. Of course that didn't work either.&lt;br /&gt;&lt;br /&gt;I ended up trying pretty much all of the players in the conf file with their default settings, and none worked easily. However, xmms did give a reasonable error message, so I decided to work on getting that to work (since xmms works ordinarily, it seemed the easiest choice).&lt;br /&gt;&lt;br /&gt;The error message was something like "module xmms.control not found", so I tried a "swaret --install xmms" to see what xmms related stuff I could install which might be needed. I noted two packages which I might need, xmmsctrl, and pyxmms (since it's a python based player).&lt;br /&gt;&lt;br /&gt;I tried xmmsctrl first, based on the error message, but it didn't work.&lt;br /&gt;&lt;br /&gt;Installing pyxmms did work however. Problem solved. (whether xmmsctrl is needed or not, I don't know, but the error message stayed the same after installing it, so I presume it's not),&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112111408588273738?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112111408588273738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112111408588273738'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/pytone.html' title='Pytone'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112058906635335164</id><published>2005-07-05T18:40:00.000Z</published><updated>2005-07-05T18:44:26.353Z</updated><title type='text'>Sound + Alsa</title><content type='html'>This was deceptively simple to set up. All I did was run alsaconf as root, follow the instructions, let it probe a little and voila, it was done.&lt;br /&gt;&lt;br /&gt;Since this isn't particularly useful, here's a copy of the relevant output of lsmod, maybe someone else can figure out exactly what the program did. I should really avoid using these automated setup programs, part of my reasoning behind using Linux is to have complete control and know what's going on, which in this case clearly I don't&lt;br /&gt;&lt;br /&gt;snd-pcm-oss            37736   0 (unused)&lt;br /&gt;snd-mixer-oss          12504   0 [snd-pcm-oss]&lt;br /&gt;snd-es18xx             17644   0&lt;br /&gt;snd-pnp                 3168   0 [snd-es18xx]&lt;br /&gt;snd-pcm                56072   0 [snd-pcm-oss snd-es18xx]&lt;br /&gt;snd-page-alloc          6328   0 [snd-pcm]&lt;br /&gt;snd-opl3-lib            5892   0 [snd-es18xx]&lt;br /&gt;snd-hwdep               4804   0 [snd-opl3-lib]&lt;br /&gt;snd-timer              13604   0 [snd-pcm snd-opl3-lib]&lt;br /&gt;snd-mpu401-uart         3200   0 [snd-es18xx]&lt;br /&gt;snd-rawmidi            12740   0 [snd-mpu401-uart]&lt;br /&gt;snd-seq-device          3888   0 [snd-opl3-lib snd-rawmidi]&lt;br /&gt;snd                    30852   0 [snd-pcm-oss snd-mixer-oss snd-es18xx snd-pcm snd-opl3-lib snd-hwdep snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]&lt;br /&gt;soundcore               3396   3 [snd]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112058906635335164?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112058906635335164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112058906635335164'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/sound-alsa.html' title='Sound + Alsa'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112058877971787272</id><published>2005-07-05T18:35:00.000Z</published><updated>2005-07-05T18:39:39.716Z</updated><title type='text'>Poweroff</title><content type='html'>I always thought my hardware was too old to support powering off the PC automatically when you hit shutdown, and hence I never bothered trying to get it working. However, when I tried Ubuntu recently, it worked with the default setup, proving that my software was not too old.&lt;br /&gt;&lt;br /&gt;In fact it was ridiculously easy to get it to work - all I had to do was load the apm module ("modprobe apm"). Or alternatively, to make it load every time I booted, uncomment that line in rc.modules.&lt;br /&gt;&lt;br /&gt;At some point I will have to explore more of this power management functionality.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112058877971787272?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112058877971787272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112058877971787272'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/poweroff.html' title='Poweroff'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112039766780690983</id><published>2005-07-04T13:20:00.000Z</published><updated>2005-07-05T18:35:01.566Z</updated><title type='text'>Window Manager</title><content type='html'>I've now tried a variety of Window Managers in order to determine which I would go with. This is a very important choice for me. I dislike screen clutter (lots of icons, taskbar at the bottom, that kind of thing) as it takes up valuable screen retail space, and previously I've been stuck with very old monitors which won't go above 800x600. Although I do now have a better monitor which can at least to 1024x768 (maybe more if I play around with it), I'm still a fan of the simple look.&lt;br /&gt;&lt;br /&gt;I'm also very keyboard orientated. It's much quicker to do things through keyboard commands and shortcuts than a mouse. This also goes back to old hardware and fighting with a mouse to move the cursor, but even with a modern optical mouse I find it much more comfortable and quick to type than click. &lt;br /&gt;&lt;br /&gt;As a result my ideal desktop environment is something simple, fast and customisable. I like to have a nice background picture and nothing else on screen when no applications are open. Right/Middle Clicking on the desktop, or using keyboard shortcuts gets menus for launching apps or a list of open apps. I find a setup like this fast and efficient, and easy going on the resources (I'm using a 300MHz processor...). It also looks good, simple and elegant. Throw in a transparent terminal (I don't use "file managers" at all, everything like that is done on a terminal) and the whole thing is very sleek.&lt;br /&gt;&lt;br /&gt;I tried out a few window managers to decide what to use. There's a nice way of quickly switching from one to another which is very helpful - copy /etc/X11/xinit/xinitrc to ~/.xinitrc, and then change the last line from "exec ???" to "exec xterm". Now when you startx you will have a single xterm window, which you can use to load a window manager (typing "fluxbox" for example), and then close it with ^C and load another. Makes trying out a few much quicker as you don't have to keep restarting X.&lt;br /&gt;&lt;br /&gt;Anyway, I tried fluxbox (my previous WM of choice), blackbox, XFCE and openbox, and eventually settled on openbox. Fluxbox and blackbox would've suited me fine too, but openbox just grabbed me (it had the best looking default setup of the *boxes), and seems very customisable and downright cool. XFCE is probably a tad too bloated for my liking, although I have used it before and liked it.&lt;br /&gt;&lt;br /&gt;It loads very quickly, the background is set by Esetroot (included with Eterm, which allows it to have partial transparency which looks oh so cool), the keyboard shortcuts have been customised slightly to suit me as well. This is all pretty straightforward from reading the Openbox docs and editing the sample config files.&lt;br /&gt;&lt;br /&gt;I particularly like the fact that if you open a sub-menu near the edge of the screen, it shifts the whole thing slightly so that the menu never goes off screen. Very helpful for when I'm opening menus with the keyboard and not the mouse.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112039766780690983?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112039766780690983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112039766780690983'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/window-manager.html' title='Window Manager'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112038945302088104</id><published>2005-07-03T11:11:00.000Z</published><updated>2005-07-03T19:10:18.790Z</updated><title type='text'>Xorg Keyboard and Mouse</title><content type='html'>A couple of problems with X which needed to be sorted out. The keyboard layout was incorrect - fine for alphanumeric stuff, but some of the punctuation was in odd places - and the scroll wheel on my mouse didn't work. Both problems were solved by some simple editing of xorg.conf.&lt;br /&gt;&lt;br /&gt;For the keyboard, I added the lines 'Option "KbdModel" "pc104"' and 'Option "KbdLayout" "gb"'.&lt;br /&gt;&lt;br /&gt;For the mouse I added the line 'Option "ZAxisMapping" "4 5"' and changed the protocol from PS/2 to IMPS/2.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112038945302088104?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112038945302088104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112038945302088104'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/xorg-keyboard-and-mouse.html' title='Xorg Keyboard and Mouse'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112038907839257738</id><published>2005-07-03T11:00:00.000Z</published><updated>2005-07-03T19:06:46.263Z</updated><title type='text'>Swaret</title><content type='html'>After playing with Ubuntu for a few weeks, and experiencing the apt-get package management system for the first time, I decided I rather liked the ability to find, download and install a package with one simple command. So I set about installing swaret, which is slackware's equivalent.&lt;br /&gt;&lt;br /&gt;Since it's not included on the slackware 10.0 CDs, I downloaded it from &lt;a href="http://swaret.sourceforge.net"&gt;sourceforge&lt;/a&gt; and installed it ("installpkg swaret-1.6.2-noarch-1.tgz").&lt;br /&gt;&lt;br /&gt;To set it up I made a copy of the example configuration file to create /etc/swaret.conf which I edited according to the comments and ran "swaret --update" to get a list of packages from the CDRom and slackware mirror sites. Unfortunately this only has the official slackware packages though, so when I tried to test it by installing firefox, it couldn't find it. &lt;br /&gt;&lt;br /&gt;So I added one of the mirrors of the &lt;a href="http://www.linuxpackages.net"&gt;linuxpackages.net&lt;/a&gt; repositary to swaret.conf, and lo and behold it found firefox. It's quite an old version, so I ended up downloading the normal firefox installer and running that to install it, but at least swaret is working. &lt;br /&gt;&lt;br /&gt;It might not have up to date versions of every piece of software I want, but it still has it's place. I've installed Eterm and atk (library needed by firefox) with no problems, and it's much quicker and easier than finding and downloading and installing the files manually.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112038907839257738?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112038907839257738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112038907839257738'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/swaret.html' title='Swaret'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112038692994979208</id><published>2005-07-02T19:21:00.000Z</published><updated>2005-07-03T19:06:04.896Z</updated><title type='text'>Network</title><content type='html'>I have a very old NE ISA network card, which has never been detected automatically by any distribution. This was no exception.&lt;br /&gt;&lt;br /&gt;To find the card is a simple case of loading the correct module. This could be done by "modprobe ne io=0x280 irq=10" to quickly test that it works, but since I want it to do this every time I boot, I simply uncommented the appropriate line in rc.modules (/sbin/modprobe ne io=0x280). This successfully loads the module, so it turns out that you don't actually need to specify the irq.&lt;br /&gt;&lt;br /&gt;With the correct module loaded for the network card, some network stuff worked. For example I could ping other computers on my LAN, and even mount shared drives from them onto my box.&lt;br /&gt;&lt;br /&gt;However I couldn't access the internet. My dad's WinXP box has a broadband modem and hence direct connection to the internet. This connection is shared, using Windows' helpful "Internet Connection Sharing" utility, which in theory should allow my computer to connect directly to the internet if I set that box as a gateway. Unfortunately this didn't work, giving "host not found" messages.&lt;br /&gt;&lt;br /&gt;I started by rerunning netconfig, the tool used during installation to set up network connection. However I was pretty confident that everything was correct - a correct static IP address and subnet mask were right, gateway was set to the WinXP box's IP address, hostname isn't strictly important so I set it to "Tux" for want of anything better.&lt;br /&gt;&lt;br /&gt;After much faffing around with different network tools and utilities and such, I found out that the problem was with the name server which I had given. The problem being that I hadn't given one. Turns out I need to answer yes to "Will you be accessing a name server" and give the IP address of the gateway computer when asked for the  "Primary name server to use". Netconfig creates the file /etc/resolv.conf with this information, and once that was present and correct restarting the network stuff (rc.inet2 restart) made everything work correctly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112038692994979208?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112038692994979208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112038692994979208'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/network.html' title='Network'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112033106700961510</id><published>2005-07-02T18:52:00.000Z</published><updated>2005-07-03T10:35:47.246Z</updated><title type='text'>Lilo</title><content type='html'>My first reboot after installing Slackware hung on the bios line "Booting from hard drive (C:\)".&lt;br /&gt;&lt;br /&gt;The problem was that in the installation I had set lilo to install on the root partition of the linux installation (/dev/hda1) and not the master boot record (/dev/hda). The slackware installation told me that this was safer but would only work if the partition had been set to be bootable when doing the partitions with fdisk. However despite doing this, it didn't work. &lt;br /&gt;&lt;br /&gt;Now I'm not really too fussed where lilo is installed, so the fix was quite simple. I first booted onto the machine using the boot disk which I made during setup - if you didn't make one (due to laziness, running out of working floppy disks five years ago or not even having a floppy drive in your machine) you could use the slackware CD.&lt;br /&gt;&lt;br /&gt;It was then trivial to change one line in lilo.conf from "boot = /dev/hda1" to "boot = /dev/hda". Run lilo, restart the computer and "hurrah!" we have abrand spanking new bootable Slackware system.&lt;br /&gt;&lt;br /&gt;Lilo still needs more work to get rid of the disgusting menu and increase security, but we'll come to that later.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112033106700961510?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112033106700961510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112033106700961510'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/lilo.html' title='Lilo'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-112029400321824389</id><published>2005-07-02T08:29:00.000Z</published><updated>2005-07-02T08:48:27.723Z</updated><title type='text'>To-do List</title><content type='html'>My hard drive is here, and I may start fixing my computer up today, so first I made this list. It is basically all of the things which I want to get sorted on my computer. &lt;br /&gt;&lt;br /&gt;- Basic system installed and customised (re: security and optimisations)&lt;br /&gt;- Graphical environment installed (make it look pretty but retain usability and speed)&lt;br /&gt;- Sound&lt;br /&gt;- Mp3 player/encoder/tagger/ (probably Pytone, lame and easytag, but I'm not so keen on the latter)&lt;br /&gt;- Network (quick and easy to connect to other computers and transfer files)&lt;br /&gt;- Internet&lt;br /&gt;- Email (I like Mutt/fetchmail and whatever smtp I can get to work)&lt;br /&gt;- TV card (unlikely to work, seems to conflict with the motherboard)&lt;br /&gt;- Power management (computer turns off itself when I say shutdown - I thought my hardware was too old for this, but it works in default Ubuntu setup, so it must be possible)&lt;br /&gt;- Games (Windows via Cedega, but I haven't had much success with this in the past, DOS games through dosemu [I'm still a big fan of a lot of DOS games and abandonware], and any good Linux games that don't need a stonker of a 3D graphics card (that includes Nethack/Slashem for certain).&lt;br /&gt;- Printing via network (this has been temperamental in the past at best)&lt;br /&gt;- Audio programs (tracker or synth type stuff so I can try my hand and composing without having to actually play the instruments. This makes sound setup harder, a lot of them require JACK which I've never gotten working)&lt;br /&gt;- GNUCash or similar if I deem it's worth setting it up (it's not like I have a lot of money to manage)&lt;br /&gt;- Decent productivity software, particularly spreadsheet which is compatible with Excel (NOT OO.O , I detest that program)&lt;br /&gt;- Latex and shell scripts which will turn a plain text file into a beautifully formatted essay for me. (Makes schoolwork much easier as I don't worry about formatting, yet my work always looks better than everyone else despite spending no time doing the appearance)&lt;br /&gt;- Decent program for using my Creative Zen. I've used Gnomad, but it's not that good.&lt;br /&gt;&lt;br /&gt;More things will be added I'm sure. I also need to record all of my Mum/Dad's records and tapes to computer at some point. Well, not all of them, there's a fair bit of rubbish in their music collection.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-112029400321824389?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112029400321824389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/112029400321824389'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/07/to-do-list.html' title='To-do List'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-111955998839646934</id><published>2005-06-23T20:47:00.000Z</published><updated>2005-06-23T20:53:27.683Z</updated><title type='text'>Ebuyer Returns</title><content type='html'>Received an email from &lt;a href="http://www.ebuyer.com"&gt;Ebuyer&lt;/a&gt; regarding the hard drive I am returning. In fact, I received a series of emails - the first saying that they'd received it and it would be tested in the next couple of days, the second saying that it was faulty and be replaced, and the next three didn't have any proper sentences or comprehensive English but as far as I can tell were just confirming that it would be replaced. &lt;br /&gt;&lt;br /&gt;Pluses - very quick service (and they are replacing my harddrive - I'd be a bit peeved if they didn't seeing as there's no way it should fail within a year)&lt;br /&gt;Minuses - Incomprehensible email messages. Ah well.&lt;br /&gt;&lt;br /&gt;Once my new hard drive arrives I can set about installing Slackware and documenting the process, which is what this blog is supposed to be about.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-111955998839646934?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/111955998839646934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/111955998839646934'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/06/ebuyer-returns.html' title='Ebuyer Returns'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-111920060491032827</id><published>2005-06-19T16:56:00.000Z</published><updated>2005-06-19T17:03:24.913Z</updated><title type='text'>Ubuntu</title><content type='html'>Until I get my new harddrive, I've installed Ubuntu on a small 3GB hard drive I had lying around, and I'm currently using it. Seems nice enough, although I have a few problems which would probably be easily solved if I could be bothered to hunt through some documentation. As it is, I know I'm only going to be using it for a couple of weeks max, so I'm happy without sound and everything being tweaked perfectly.&lt;br /&gt;&lt;br /&gt;One thing I don't like is Gnome. I have an inherent dislike of it due to its bloat (although if I remember correctly, it's faster than KDE) and the fact that I have a toolbar at the top and bottom of my screen, which on a small monitor at 800x600 resolution results in me having a tiny space to actually view things in. I'm sure if I had the time I could set it up to give me much more room, and use more intuitive keyboard shortcuts to speed things up, but I can't be bothered, Oh well, I'm such a lazy sod.&lt;br /&gt;&lt;br /&gt;In fact, the slowness of Gnome, the amount of screen-bloat and the ugliness of it is rather reminiscent of Windows. I'm yearning for Fluxbox.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-111920060491032827?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/111920060491032827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/111920060491032827'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/06/ubuntu.html' title='Ubuntu'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-13768020.post-111908952614431289</id><published>2005-06-18T10:04:00.000Z</published><updated>2005-07-03T13:34:56.616Z</updated><title type='text'>Aiming for Slackware Perfection</title><content type='html'>One reason I started using Slackware Linux was the belief that I would be able to set it up, get everything working exactly how I wanted it, and then leave it and never have to tweak with anything ever again. Unfortunately, so far this hasn't happened.&lt;br /&gt;&lt;br /&gt;A while ago I decided that one day, when I had time, I would start again. I would reformat my hard drive, install from scratch, and achieve this aim. I also decided that as I did it I would document everything and publish it to the web, both for my own future reference, and in the hope that my experience could help someone else.&lt;br /&gt;&lt;br /&gt;A few weeks ago my hard drive started making those nasty grinding noises which tell you that something's not right. Since it's under warranty still, I'm hopefully going to get it replaced, and then it'll be time to start my quest for computer nirvana, recording everything I do here.&lt;br /&gt;&lt;br /&gt;On a completely unrelated note, I just received 10 Ubuntu Linux CDs in the post. They're giving them away for free - which may not sound surprising as it's open source software, but in this case, you don't even have to pay for the Postage/Packaging/Media costs. See &lt;a href="http://shipit.ubuntulinux.org/"&gt;here&lt;/a&gt; for more details.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13768020-111908952614431289?l=shfbbm-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/111908952614431289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13768020/posts/default/111908952614431289'/><link rel='alternate' type='text/html' href='http://shfbbm-linux.blogspot.com/2005/06/aiming-for-slackware-perfection.html' title='Aiming for Slackware Perfection'/><author><name>shfbbm</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
