lesson eight: security upgrades

June 28, 2008

security

Slackware occasionally has security upgrades, and the smart geek will have signed up to an email service that tells you when there’s a security upgrade available (and you can do this here, if you haven’t already). Today was the turn of something called Ruby, and although i’ve done these upgrades before, i haven’t written notes on it. so. notes:

[normally you need to grab a copy of the security update before you can install it. in my case, Michiel has already downloaded it, and my machine is set to look to his for a mirror, so this is not something i have to worry about.]

open a terminal.

switch to root with sudo -i, and type in your password (note to self: user password!)

type slackpkg update and let it run.

type slackpkg upgrade-all and let that run.

Wait for the blue screen with the list of files that need upgrading to pop up. make sure they’re selected and press “OK”. then let the upgrade run.

Et Voila! upgrades are done. :)

now type exit twice, once to log out of root, once to close the Terminal.


linux is baddddd ju-ju.

June 18, 2008

its official. According to UserFriendly, Linux is Bad Ju-Ju. Don’t use it.


not saying a word…

June 18, 2008


lesson seven: slackbuilds

June 17, 2008

i made a fatal mistake last night. I was bored with the games that exist on KDE, so instead of asking Michiel for some more i went looking to see if i could find some. I found this article, which recommends the top 10 free linux games, and not being interested in FPS, and having all the rest, the only one remaining was “Pingus“. That was the really really bad mistake: idly commenting “mmm, wouldn’t mind playing that”.

two minutes later i found myself working with slackbuilds!!! whaaa? where did slackbuilds come into it?! i only fancied playing a little game, not downloading/extracting/installing stuff, and WAHHHH working with root!!! (DO NOT WANNNNNT!) However, it turns out, to my total and utter surprise ($clue: sarcasm) that the Slackbuild team (specifically ppr:kut thanks ppr:kut!) maintains a Slackbuild of Pingus and that that’s the best place to download it from (well Michiel *would* say that wouldn’t he?). so i do. rather nervously. I find the relevant page for Pingus, then ask “now what?”. he points me to the HowTo page, and i nervously download the slackbuild (the .tgz file, in case anyone was wondering). Michiel directs it to the right directory (and i’m still very confused about this process but maybe writing it all out will help), then extract it, using the tar command (tar xvzy filename. i think. something like that anyway. Hey, i’m going off memory and it was 2am at the time…) and then i download the source. The first time i do this from the webpage, later we do it another way which confoozes me still further (and i’ll say this before Michiel does: it doesn’t take much.. to confooze me that is).

once all that’s done we execute the script by using the chmod command (as described on the HowTo page), and then, of course, we run into a problem. Turns out pingus has 3 dependencies (someone didn’t read the top of the pingus page properly.. both of us) - boost, scons and physfs. apparently i already have boost on my system (as Straterra said: thank god, compiling boost on a little PIII would be a nightmare, apparently) so i had to download the source file & slackbuild instructions, and extract, execute and install both of these before we could execute (compile) the pingus slackbuild properly.

And this was the part that *really* confused me for a while as Michiel was telling me to download the source file using wget, which i hadn’t done before, and telling me to move the package after it had been compiled from /tmp/ to packages (I think i got that right) and Michiel was patiently sitting there saying to me “where’s the package” and i honestly felt like screaming back at him “WHAT EFFIN PACKAGE?!!!!”. *ahem*. I’m not the most patient and calm of learners at the best of times (yes, i know, Michiel.. thats the understatement of the century but i’m trying to be nice to myself, ya hear?). another time i’d just hit return on an installpkg command and he gasped like he’d just seen me make some terrible horrible computer killing mistake and … then said “nothing”. he got called a choice collection of names at that point i can tell you.

All joking aside.. we were finally compiling pingus, side by side, him compiling it for 12.1, me for 12.0, and of course, his being a rather better model of computer (dual core, just for starters) than mine (a slow, but patient little PIII) he finished first. And then he started to explain to me - within hearing of my PIII - just why my PIII is so slow!!! Poor thing. I had to cover its ears and whisper reassurances to it. Speaking disparagingly of my baby. how dare he.

and for all that.. I’m actually quite proud. I installed something off Slackbuilds. okay, i did it with a lot of handholding and i’d have to do it with handholding next time but.. i did it. without flaking out too much (I don’t think i will *ever* like working in root).

so.. go me!!! :D


couldn’t resist

May 9, 2008

a photgraph snapped of a co-worker of a certain ##woodchuck resident..


upgrades!

May 3, 2008

Slackware 12.1 has been released. That will be absolutely NO surprise to anyone who reads this, i suppose, as they probably knew before Michiel leaned over the back of the sofa and informed me it was now released (in the middle of Law and Order: Special Victims Unit, no less. humph). However, this brings a new point in my education: i’m almost certainly going to be installing my own upgrades this time around. Ulp. [at least i'll have Michiel to hold my hand though. if only because if i did it on my own i would almost certainly a) screw something up b) have him screaming blue bloomin murder at me cos the mistake would be horrendous to fix.]

A new release of slackware seems to bring out the worst of the idiots in ##slackware. By this i mean those who seem to feel that a) installing slackware - or any open source software, i’m sure - entitles them to free support (rob0 has written a brilliant theory on it called S.W.E.E.T.) and who aren’t prepared to put any work (i.e. google!) in themselves on answering any of their myriad questions, b) that they can upgrade slackware without first reading the UPGRADE.TXT file (those on the last upgrade were caught out badly by this when they were specifically told not to use certain files to make their upgrades, that if they did, it would fubar their systems, and since they didn’t read the UPGRADE.TXT file, didn’t know about it. oh dear). There are other idiots as well, but that tends to be the two types that come in around the time of a new release of slackware, and i know it drives many of the long standing users/members of that channel insane. None of them mind helping those that are truly stuck, but when you are asked how to fix something simple for the umpteenth time that the person would have found themselves if they’d just bothered to google something.. well.. you can see the patience wearing thin.

Anyway. once my upgrades are through, with a certain amount of handholding, and i bet an awful lot of frustration from Michiel (and requests from me to use google - and no, I won’t be going into ##slackware to ask for advice!), i’ll come back and blog my experiences.. but it won’t be for a few days i think. maybe over the weekend, if its rainy. :D


lesson six: irssi

May 3, 2008

it won’t have escaped anyone’s notice that this blog went a bit quiet for a while. I’ve not been well, partly (teeth troubles), but also because i’ve been doing some of my other love: the garden.

An incident today (which i won’t go into here) led Michiel to set up irssi as a chat client for me. I said i would give it a go, rather than using Konversation. I’ve been feeling more confident about using irssi, since i started hanging out in ‘chucks and other geek chatrooms because i’ve been able to look over at his computer, see what he’s doing with his screen and observe that its not such a mysterious thing after all.

(if i have one criticism of Michiel as a teacher, its that he’s so good, its almost daunting to try to learn from him… kinda like.. “OMG i’m NEVER gonna be able to do that!!”. he’s fast on the keyboard which makes it hard to follow, but at the same time good in a way that makes it look very easy, while looking hard. if that makes any sense.)

However, he sent me off to choose a theme for irssi and it was in chatting to my best friend, sez, who isn’t a geek (although she has used linux, to her credit) about what was happening that i realised she’d never seen irssi as a chat client, so i promised to take a screenshot of it for her. Then i remembered this blog and.. well. an entry is well overdue (plus something else… more on that later).

So without any further ado.. i’d like to present.. my irssi:

Do i like it? so far. I’ve only got one complaint. Konversation, when your name is said in a channel, or someone pm’s you, briefly flashes the content of the message on the screen over whatever you’re looking at (i.e. firefox), and then flashes the lil konversation icon between blue and red in the bottom right hand corner. Irssi doesn’t do that. (Michiel would say that’s because Irssi is meant as a proper chat client, because its IRC and not meant to be insta-response… i’m sure he can tell you better than i can but.. you know.. i like to know when people are talking about me!!!) I don’t like using it on Michiel’s keyboard. With Irssi you move between the various channels by holding down the ALT key and each channel has a number. That’s great, when you know where the number keys are.. although i’m a speed typist i don’t know where the number keys are, necessarily, and moving around Irssi on Das Keyboard is .. a pain in the backside.

Apart from that, i like it. it feels like a proper geek’s IRC. i feel like a proper grown up geek using it. I could get used to it, i guess.. if i do i guess part of my transition has begun. I remember when Michiel first yanked us away from Windozs to Linux, bewailing the loss of my beloved mIRC… i tried out a few chat clients. Michiel suggested irssi. Wasn’t about to have that, i wanted Point n Click!. i wanted ease and simplicity! ahem. yes, i know better now.. i finally settled on konversation and now.. 3-4 years later.. i’m using the irssi i was so afraid of.

better late than never, i guess..


lesson five

April 9, 2008

hanging out in ##woodchucks, rob0 makes a comment that he’s: “editing apcupsd stuff. I cannot let it power off the machine in a shutdown. I made a special runlevel 2 which is like 1, but has network and sshd and syslogd”. this is a classic example of something that makes me go.. “huhhhh?” so i go looking things up to try to understand.

[And usually, i enter what i'm beginning to call "Acronym hell" (like dependency hell, but with acronyms). take the apcupsd. I put it into google, and i get the website for it straight away, which is good, but its not terribly informative to someone who is very new to stuff. "Apcupsd can be used for power mangement and controlling most of APC's UPS models on Unix and Windows machines. Apcupsd works with most of APC's Smart-UPS models as well as most simple signalling models such a Back-UPS, and BackUPS-Office." uhhhhh... huh? and no links as to what most of this means. so i go to wikipedia. which is better, in that i can follow links where i don't understand.]

Anyway. apcupsd is a program, a daemon (a background process program) that works with APC (a company) uninterruptible power supplies (which is the thing that saves your computer going up in smoke when there’s a power spike or cut).

runlevel is the thing that describes where the computer is in any stage.. so when you’ve just turned your computer on, its in one run level, when its in the XWindows its in another. Slackware has six levels. level 1 is single, level 2 is full multi-user with no display manager. (whatever that is). ahah… just spotted on the wikipedia page: “Lower run levels are useful for maintenance or emergency repairs, since they usually don’t offer any network services at all.”.. so.. maybe what rob means is he’s making a special thing that runs the computer at the minimum level possible, that keeps the stuff he needs running, running, in the event of a powercut, so that the UPS keeps the machine running for as long as possible before that runs out too.

[and yes, I'm well aware it would be far easier to actually ask rob what he meant by it all but that's missing the point: by doing this and going and looking stuff up i'm learning. and i probably will ask him at some point cos he's got no idea i'm doing this right now.]

sshd = secure shell. i guess so he can run some command stuff. that would be pretty necessary i guess. syslog.. hm. ahhh ok i think i see why this is necessary, so it can record what was going on with the computer so if there’s a problem, rob can see what it is. that makes sense too.

so i get it. i think. i’ll ask him later if i was right.. i think he’s a bit busy atm.. !!


lesson four

April 7, 2008

One of the tools Michiel has given me to help me learn is a book; “Linux Start Up Guide” by Fred Hantlemann. I’ve been reading some of it before i went to bed the last few nights (to be truthfully honest, mostly because reading just a couple of pages has me snoring before i know it. Its not boring or anything, more that.. well, mention words like “variables” and my eyes start closing of their own accord. annoying, really), and finally got to the point where, really, i had to start trying some of what i was reading if i was to make any sense of it (you know, the old “Tell Me I will forget, Show Me I will remember, Involve Me I will understand!”).

So Chapter 3 (”Operating Linux”) so far has had me using the whoami, the who am i, the id and the set commands, the ps -al command, the ls one (which i knew already) and ls /usr/bin | more, and more /var/log/debug which gave me a rude reply about not having access. well :P to you too matey.

It then went into detail about how to move and copy files, using the cp and mv commands, and how to make a directory (mkdir).

Then it started in on Vi. Now, this i’d heard of: Michiel had gone to some effort to explain to me why emacs = bad and Vim (the uptodatebigbrother verson of Vi) is good. not that i was any the wiser, then, as i didn’t really understand what an editor was. to me, an editor is the person in charge of a magazine. So i went looking on the intertubewebthingie to see if i could understand it a bit better. Wikipedia was a start: it led me to a page on why Vi (pronounced Vee-eye, not Vie) was the greatest gift to man, and why some nutheads use Vi/Vim. (at which point i turned to Michiel and asked him, is Vi/Vim good? he said yes. so emacs is bad. at least, from his perspective. Do i agree? no idea. yet. :D) so i think i understand now, what an editor is. its a program that lets you write. you can write normal text (although you’d be better off using a word processor or something if that was all you wanted to do) but you can also write programs. However, there’s a catch. in order to execute (i.e. run) your new program you either have to use the command interpreter to execute the contents of it, or you can mark the file as an executable.

huh? okay.. whats the Command Interpreter? (reading these things is frustrating: you understand one thing and get 20 more questions). Well, that was the next bit of the book, funnily enough, and the bit that sent me back to the intertubesfount-of-all-info. According to the book, the job of a Command Interpreter is “to analyse, or interpret command lines entered by the user and start any programs cited”. well, hey, that sounds like konsole, which is what Michiel tells me to use when he wants me to do something (and i’m slowly getting less scared of). and this goes back to another conversation we had, where he tried (and failed, although not his fault) to explain the difference between konsole and Bash (as an example of a Command Interpreter). Wikipedia was my starting point (Its not for nothing i’m known as wikislut), although not terribly illuminating, it was thinking about what i’d read in the book and everything else i’d learned that finally clued me in: Bash will do a lot of the things Konsole does, but Bash does more than Konsole does too. Konsole will only run or execute files, Bash will do the analyzing part as well.

So.. to make a program you have to write it first in an editor like Vim (or the much hated emacs), then use a command interpreter to analyse it and get it to run. analyse.. meaning check it works? Maybe i’ve got my understanding totally wrong, but it seems like a terribly long winded way to go about it. why not one program that will do everything: write the code, check it for bugs, then execute it?

hmmmm. see what i mean? … understand something.. get more questions.. argh!!!

I’m going to go have a bath and think this through some more.


lesson three

April 3, 2008

thanks to fred (he of the “do-not-click-that-link” fame) i now know what had, in my head, been called the thingiemahjig before now, is really called. its a backplate. (apparently he is jerryrigging one). a video on how to install one can be found here. Duct tape is a wonderful thing, by the way. no, not for gagging me, for sticking together a blank backplate to an IDE controller. i think, anyway. (I do know it came with a PCI backplate that is ATX incompatible, and no, i don’t know what any of that means either).