Linux Terminal Shortcuts03.19.09

I came across this great article full of “Linux Terminal Shortcuts” this morning and thought I would share. Well the title of the post was actually “50 ways to impress geeky linux friends”, but I think there were some good tidbits in there for people using linux that might not know how powerful the command line is. Although it requires a bit more effort than the dumbed down “point and click” world – I think you might find these features far more useful (and advanced) than any version of Windows.

Out of the 50 tips, here are the ones I picked out to be most useful Linux Terminal Shortcuts:

  1. Rip a DVD: You wouldn’t think it would be this easy, but you can rip a DVD on the command line with the following: dd if=/dev/cdrom of=/cdrom_image.iso
  2. Encrypt your files: Easily encrypy any files from prying eyes using this command: gpg -c filename.doc, and simply enter your password twice. Then to decrypt them later, just run this command: gpg filename.doc.gpg and enter the password you used.
  3. Block a Web Site: Kids use your laptop a lot? Boyfriend spending too much time on MySpace? You can block any web site in linux quickly and easily. Just run this command to open a file: gedit /etc/hosts, and then add 127.0.0.1 website.com one by one to block any web sites you want!
  4. Scan Wireless Networks: If you want to scan for all available wireless networks, run this command: iwlist scan, and get much more info on each than you would ever get in Windows.
  5. Convert text to HTML: Linux shines in it’s ability to process information, and particularly in conversion utilities. For example, convert a text file into HTML like this: recode ..HTML < file.txt > file.html
  6. Schedule a download: Say you want to download an 800MB file but want to do it when everyone is asleep? Just run this command: echo ‘wget url’ | at 01:00

I’m sure there are tons more not in that article – post yours now below!

[nms:linux hacks,8,0,0,smorgas.linux.hacks]

Posted in diy, linux, resources and tips, tutorial, ubuntu linuxwith Comments Off

Phoenix Pre-Boot Shell01.07.09

PC Mag online has a post about the Phoenix Pre-Boot shell that’s pretty cool. Some computers and laptops have had pre-boot environments for years but they were proprietary to that make and model computer. Now Phoenix has launched downloadable versions at CES 2009 that you can install on any laptop (that has an AMD or Intel chipset with virtualization technology).

What is a “pre-boot shell” you ask? It’s an environment that loads instantly when your PC starts – before you ever get to windows. This is usually based on Linux, and the cool things is now manufacturer are starting to add features that allow you to perform basic tasks without ever booting into Windows. Just need a web browser, or quick access to Amazon or flickR? These pre-boot shells have wi-fi built in so you can do basic web tasks on the fly in seconds without booting. Phoenix claims as much as 25% increase in savings to your battery charge.

I think it’s funny in a way that “once again” Linux is being used as an innovator where Microsoft falls flat. On the one hand you could say that Windows Vista had too many versions to choose from, but on the other hand Linux is so very flexible that it can be used on a phone, for a pre-boot shell, on a thumb drive, or in a cable box.

In a way – the simplistic features of the pre-boot shell remind me of when I tried gOS, the version of Linux that is famously installed on the WalMart budget PC’s that were $199 last year. It has huge icons at the bottom toolbar with most-oft-used web functions, like MySpace, Facebook, eBay, Amazon, Firefox, etc.

If any of you are interested in what the pre-boot shell could be like, I invite you to download a copy of the latest Ubuntu Linux for free, burn it to a CD and run it “live”. You can try out Linux on your Windows laptop or desktop without installing a thing.

Isn’t Linux great?

Posted in computers, linux, liveCD, ubuntu linux, web, windowswith Comments Off

gOS, google command line, and google Linux06.04.08

Is there a google shell, a google command line, or a google operating system?

There is a version of Linux supposedly used within google called Goobuntu, or google on “Ubuntu” linux. Many have speculated for years that google intends to market this, but they have repeatedly denied it. I myself have installed “gOS” which stands for “green OS” – many mistakenly call “google OS” because it such an insanely web based version of linux. Their new catch phrase is “Linux meets MySpace”. I can attest it works well because I replaced relatives Windows XP with this install and they are fine with it. They still don’t understand that they don’t have Windows – and they don’t even know what Linux means. Despite this, they’ve had no problems using their computer for the last year, and I’ve not received one single phone call regarding a virus, trojan, or other crippling PC problems like they used to have.

Get a live preview of gOS here (I’m not sure which version it is):

I found something cool today that calls itself the “unofficial google shell“. Really it’s just an ajax app that allows you to do a cool “command line like” web search. Check it out – I think you’ll really dig it!

google shell

Posted in linux, myspace, ubuntu linux, webwith Comments Off

Asus Eee PC Windows XP05.20.08

asus eee PC 12G pic A short while ago I reviewed the Asus Eee PC, which is an incredible sub-compact laptop that runs on Linux and you can buy brand new for only $300-$500. Some say it was inspired by the OLPC or One Laptop Per Child initiative. In a way the things that have derailed and plagued the OLPC front are now starting to creep into the computer industry as a whole – and it’s not really surprising.

This post of part of The Smorgasbord Tech Reviews series!

Let me explain…in my basement I have a 6 or 7 year old Gateway box. When I got it (used) it had 128MB of RAM and a 20GB HDD. The processor I think is Pentium III, maybe 500-600Mhz?? I upgraded the Ram to 256MB and installed Redhat Linux. Over the years it has had many different versions of Linux, but for the last 3 years or so it’s been Ubuntu. Now that box has 512MB of Ram, a 100GB and 120GB hard drive, and a 128MB graphics card and an LCD dispay. It’s funny, the only thing I never upgraded was the USB 1.1 to 2.0. This box works great as an Internet / email workhorse. I can get any web work done on it, edit graphics, manage digital pics, or mp3′s. I converted video on this box for many years (and still can). My whole point here is that you don’t need a lot of horsepower or the latest hardware to have a solid affordable working home computer for many years (anymore). I know tons of geeks that recycle hardware and do the exact same thing.

Now that technology has evolved a bit, the same “sect” of geeks that recycle hardware wouldn’t mind using that same tech on a portable device they could take with them. There are lots of linux laptops now available, but many geeks have been installing linux on their windows laptops for years. It was inevitable that the Asus Eee Linux PC would be a hit in the geek community. Asus got a taste of success and predicted 2 million Asus Eee PC’s sold this year, and you can just hear somebody in marketing say “if we sold that many Linux Eee’s, just imagine how many we could sell if it had Windows on it!”.

Well, that time has come, and now Asus has come forward to release versions (4G and 12G) Windows XP Home installed. A lot of geeks are pissed off and screaming “sellout”, but Asus isn’t exactly a non-profit company. If the oil companies can make windfall profits the year of the largest hurricane in U.S. history – is it any surprise Asus released a windows version of the Eee PC? I think not.

So now that anyone can enjoy the sub-compact genius of the Eee PC – how well does Windows run on it? It comes with Windows XP, 12GB of storage, 900Mhz Celeron CPU, and 1GB of DDR memory. It has a new 8.9 inch display which can run at 1,024 x 600 pixels, which makes it much closer to a standard (non-wide) desktop. It even supports multi-gesture inputs, like the iPod touch and iPhone, something (that currently) no other PC made today can claim. You don’t get Skype and Open Office installed, but you certainly can install them yourself easily.

Some reviews say the Windows version of the Asus Eee PC aren’t as good as Linux, mainly because the storage is only 12GB instead of 20. The storage had to be sacrificed to pay for the Windows license. The speakers may suck, but they do on the Linux version too. At least the screen is increased to a decent (and still compact) size, and the camera is now a respectable 1.3 megapixels. It’s all give and take I guess.

I had read a lot of reviews on Amazon and eBay where some had purchased the Linux version of the Eee PC and just couldn’t do it. They had all kinds of problems, and probably no “geek” to turn to for help. So they either tried to return them or sell them on eBay. The Windows version is for the masses, and will make it much easier to just “plug and play” devices. Although “most things” work in Linux, there are still of lot of printers, cameras, and other devices that either don’t work, or take a bit of “tweaking” to get running. Let’s face it, none of us may ever drop anything off to the “Geek Squad” to be fixed, but there’s a reason they have customers.

My original Asus Eee (Linux) PC Review.

[nms:asus Eee 12G XP,4,0,0,smorgas.asus.eee]
[nms:asus Eee 4G XP,4,0,0,smorgas.asus.eee]
[nms:asus Eee 12G XP,4,0,0,smorgas.asus.eee]

Posted in computers, gadgets, hardware, windowswith Comments Off

315 Linux LiveCD distros for download08.31.07

Here’s another nice resource I found stumbling around, a list of 315 Linux Live CD’s for download. LiveCD’s are great because you don’t have to install anything on your computer to run a complete operating system. Nice to use as a guest on someone else’s pc, but more importantly it’s a great way to try out a Linux distribution without having to install it on the hard drive. This list is sorted by number of votes, so the more popular ones are on the top. Also – if you’re into Linux you may not realize how many different kind of distros are out there. Like ones specifically for education, gaming, medical, security, home entertainment. You may be surprised to find out though, that many liveCD’s contain tools for specific purposes. Like computer forensic tools, firewall tools, diagnostic utilities, data recovery, server clustering, and of course OS replacement. Download a couple and try a new version of Linux today!

Posted in computers, linux, liveCDwith Comments Off

How to install second hard drive in Ubuntu Linux06.29.07

So you’ve been using linux for awhile now, and it’s time to install another hard drive for some more storage? Maybe it’s finally time to wipe out a Window’s or NTFS partition.

In any event, I wrote this post so you would have a little help through this step. I’m going to assume that you already know how to install a hard drive. I’m also going to assume that you knew how to make it a master or slave, you’ve checked to make sure that it shows up in bios, and that it was intalled properly. It also assumes you’ve already formatted your drive in linux ext3 format, using a tool like gParted, or something similar.

If you’ve done all of these things, then boot up your system – and let’s get going. I’m using Ubuntu linux – formerly Breezy 5.10, but I’ve recently upgraded to Dapper 6.06.

Open up a terminal window and run the following command:
$ sudo fdisk -l

You should get a listing of the hard drives installed on your computer. There will be a little paragraph for each one that will look like this:


Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 4678 37576003+ 83 Linux
/dev/hda2 4679 4865 1502077+ 5 Extended
/dev/hda5 4679 4865 1502046 82 Linux swap / Solaris

In windows disk drives are assigned an alphabet letter, and traditionally – floppy disk drives were a: and / or b:, and the main hard drive was c:/. Then the first cdrom or dvdrom was d:/, and any additional drives would be e:, f:, and so on. In linux it’s kind of the same, but in a different format. All hard drives installed are listed in the ‘device’ or /dev directory. All drives start with the appendage “hd” (I think for ‘hard drive’).

So, if you have 2 hard drives and one cdrom – then you have 3 devices. You have a hda, hdb, and hdc. The number of partitions comes next. If your main hard drive is linux – and you have 3 partitions, then you’ll have a hda1, hda2, and hda5. The partition numbers aren’t in a logical order – hda5 is always the swap partition.

So know, if you see your hard drive listed in the sudo fdisk -l, then you know you can mount it. Your computer has a startup file that tells it what to mount when it boots. We need to edit this file and add the new drive.

But first we have to create a directory. We have to create what’s called a “mount point”. A mount point is a virtual directory. It’s like saying – mount that hard drive from this directory.

The most logical place to create the mount point for the new hard drive is either the /mnt or /media folder. Many would say that /mnt is the only place it should be – the mount folder. However, Ubuntu always mounts all dvd, cd, and removable media in /media. I chose to make my mount point here for just that very reason.

Think of what you want to call the new mount point name. Just make sure you don’t use any special characters or spaces in the name. I called mine linuxstore. Now, in terminal run the following command substituting my mount point name for yours:
$ sudo mkdir /media/linuxstore

Next, here’s one of the most important things….and somethng that I didn’t find in any of the articles on the web when I was trying to figure out how to do this. You have to make the mount point directory ‘writable’. In other words, you have to give it writable permissions. They have to be world-writable permissions since you aren’t a member of the ‘root’ group in which all mount points are owned.

So, now you want to run the following command (again substituting my mount point name for yours):
$ chmod 777 /media/linuxstore

If you want to mount your drive right away, and you don’t care if it’s mounted automatically every time you boot – then in terminal run the following command:
$ mount /dev/hdd1 /media/linuxstore

There! Now you are temporarily mounted. But…if you want it to be permanent, you need to edit your filesystem tab file. Run the following command in terminal:
$ gedit /etc/fstab

The text editor window will appear with the fstab file loaded up. You will see something that looks kind of like this:

# /etc/fstab: static file system information.
#
#
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdb1 /media/hdb1 ext3 defaults 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

All you have to do is add a new line for the new drive…
I will add the following line to my fstab for my new drive:

/dev/hdd1 /media/linuxstore ext3 defaults 0 0

Just be sure to substitute both the name of my hard drive for yours (mine is hdd1, is yours hdc1 or another name?), and my mount point hame for yours. Then save the file.

Now you will have the new hard drive mounted and writable both every time you boot. In Ubuntu, you should find your new drive listed under your ‘Places’ menu. To make the hard drive show up right now, without rebooting – just reload your fstab file with the following command:
$ sudo mount -a

Now you’re done! Enjoy your new storage drive in Linux!

originally published: 2006-06-04 13:28:53 -0400

Posted in ubuntu linuxwith 15 Comments →





  • My name is John Pratt and I like all kinds of geeky, gadget tech stuff. I maintain web sites, write a little code, fool around with Wordpress, Ubuntu, play lead guitar in a band, and have a general fondness for computers electronic 'thingies'!