Linux Blog

ATTEMPTING TO INSTALL LINUX PART DEUX

Filed under: Linux for Newb's — aaron at 6:18 am on Friday, January 2, 2009

Ok, where’d I leave off.  Oh yeah, at the asscrack of dawn on the 31st…failing, as one would expect from a “newb.”  Believe many of my problems may actually be hardware related on some level, but cannot decipher the main cause. Optical Drive is the most likely candidate.  Moving on.

12/31/2009
9:51pm  Compy DBAN’d, attempting install of UBUNTU release 8.10 again.  Background looks like a blood smear in DEADSPACE. “Partitions Formatting” – ext3 again – 5% again.  Let’s see if it goes any further…15%…Scanning Files.  Copying files at 22%, I get excited, but, you know, not in that way.

10:02pm  INSTALLATION FAILED. Error copying files to HDD [Errno5].  Multitude of causes include a faulty optical drive, bad HDD, too hot, I call BS and go with the last possible cause “burn speed.”

11:18pm  Attempting to install UBUNTU 8.10 at 8x burn speed. Optical Drive churning away. Background up, beginning installation, FROZEN at Partitioner.  Failure.  Time to celebrate the New Year with lotsa drinkin’.

01/01/2009

1:59am  Frustrated with UBUNTU, I’m experimenting with a liveCD of a release called BERRY.  The Desktop Background is a kitten melded into a desert wasteland.  Written in the lower left margin of the screen is “THE MOST BEAUTIFUL O/S IN THE WORLD.” If by beautiful, I hope they mean the code because this….this is just apalling. Oh FRACK, I click some random gear button and up pops another kitten.  This Distro was developed by Satan and his demon buddies…and possibly Kevin Rose.  Ok, big NO and big waste of time.

3:34am  Still a no go on the UBUNTU front.  What is the fracking problem?!?!?!11?  Will continue to hack away at it.

5:32am  Browsed around on the intarwebz and came across the FEDORA distribution 10.  Burning it at 16x and installing.  FAILURE.

01/02/2009

4:32pm   Attempting installation of FEDORA 10 again. SUCCESS, FINALLY SUCCESS, I NOW HAVE A SYSTEM RUNNING LINUX (though I wish it were a laptop so I could tinker with it in my recliner as opposed to on this monstrosity of a former laptop with a possible bad optical drive and as opposed to working in my office where it is less than comfortable given certain medical conditions).  UH OH, a pop up tells me there’s a kernel error.  BAH! I sent a report off to the FEDORA folk, this may seem interesting in the future  if I run into a problem; at that point I may be able to fix it.

5:00pm  Ok…so, Fedora 10 seems like…any other operating system really. I’m writing this post on the intarwebz (@ 5:12am) on it.  I’ll just have to tinker with it more I suppose.  As Fedora is supposed to be based off Red Hat, certain knowledge I acquire may assist me in future endeavours (MONEY).  Don’t get me wrong, I like the nice, clean GUI with the blue burning sun ‘n all, but…I want to get down to the nitty-gritty as they say around here.  I want to learn command line functions.  I also want to start learning more about programming languages such as C++ (antiquated or not), PERL, JAVA, etc.  I want to be able to do what SNIDE does on a day to day basis and type in a few commands and have complete control over my machine (or someone elses, heh).  It’s all going to take time though.  Time.  Crap, The time setting is wrong on this thing, I have to fix that, oh, and they make it really easy.  Where’s the fun in that?

Until next time fellow NEWBS.

Perl Regular Expression Cheat Sheet

Filed under: Shell Script Sundays — Owen at 10:15 pm on Saturday, October 6, 2007

Regular Expressions can be tricky, that’s why it is a good idea to keep a quick “cheat sheet” handy when working with them, here’s a concise cheat sheet to get you started:

.  	Match any character
\a  	Match alarm
\d 	Match digit character
\D  	Match non-digit character
\e  	Match escape
\f  	Match form-feed
\n  	Match newline
\r  	Match return
\s  	Match whitespace character
\S  	Match non-whitespace character
\t  	Match tab
\w 	Match "word" character (alphanumeric and "_")
\W  	Match non-word character
\022 Match octal char (i.e. 22 octal)
\xff  	Match hex char (i.e. ff in hex)
 
*	Match 0 or more times
+      	Match 1 or more times
?      	Match 1 or 0 times
 
{n}    	Match exactly n times
{n,}   	Match at least n times
{n,m}	  Match at least n but not more than m times
 
^	Match if at beginning
$ 	Match if at end
 
Examples:
\d{2}-\d{2}-\d{2}		# match date in dd-mm-yy format
^[ \t]+ 			#match leading whitespace
[ \t]+$			#match trailing whitespace
^[ \t]+|[ \t]+$ 		#match leading or trailing whitespace
 
$string =~ m/text/;		#returns true if $string contains text, case sensitive
$string =~ m/text$/i;		#returns true if $string contains text
$string =~ s/text1/text/;	#replace text1 with text2 in $string
$string !~ m/text/;		#returns false if $string contains text, case sensitive
$string !~ m/text/i;		#returns false if $string contains text

I find it useful to print it out and have it handy whenever I wade into the murky waters of regular expressions.