Archive for the ‘Internet’ Category

In the past four months I have revisited Ubuntu Linux, and I have to say, I like it! During my three month trip to South Africa I ran Ubuntu in VirtualBox, and also installed it on my computer in Wubi. Hopefully content written during the trip will be posted soon. During the trip I got a hold of Ubuntu 9 and installed it through Wubi on my computer, with mixed results. Now that I’m home though, I have partitioned my new 750 GB hard drive and am now running both Ubuntu and Windows 7.

So first, Wubi. Wubi is the Windows-based Ubuntu Installer that allows you to install Wubi almost as you would a normal program. The Wubi option allows you to boot into Ubuntu as you do Windows, and works pretty well, almost as well as a native installation. Almost. The only real problem I had with my Wubi installation of Ubuntu was that there was no Hibernate feature.

In a Wubi installation of Ubuntu, through some conflict with a virtual hard disk format or something, there is no hibernation option. Hibernate is by far the most used mode on my computer, although this being a problem is really just personal preference. The other thing that really is a problem, not really a personal preference thing like the last one, is that while running Windows, you have absolutely no access to the files on your Wubi installation. None, no access. That means if I need to get a picture or document from my Wubi installation, I would have had to restart my computer, boot into Ubuntu, and either move that file to a removable storage device, or to a folder on my Windows hard drive. Problematic.

Despite that fact, in case you’re interested in installing Ubuntu using Wubi, here’s what you need to do:

  1. Go to and download an ISO of Ubuntu, or, if you have an EXTREMELY slow internet connection and have lots of time, go ahead and request a disk with Ubuntu to be sent to you. A quick note to those of you who don’t know what an ISO is: An ISO is technically an image, although not in the conventional sense of a picture. An ISO is an ‘archive’, or an image of every single file on, typically, a hard drive. Having an ISO file solves the problem of getting software that needs to be run from a CD to masses of people. By utilizing an ISO file, it is possible to put all the files in the archive on a disk, and this recreate the disk needed. In this case, the Ubuntu ISO contains all the files required for installing and running Ubuntu, put conveniently into a single file that can be burned to a disk to use in installation.
  2. Once you have an Ubuntu ISO, which is the option most of the readers here will take, go ahead and download and install DAEMON Tools Lite. DT Lite allows you to mount .ISO, .MDX, and various other .ISO-like file types as if they were actually burnt to a CD in your CD-Rom drive. For those of you that don’t want an explanation of this, skip ahead to step 3. Here’s what I mean: Typically an ISO is meant to be downloaded and burnt to a CD (Or DVD) so that a perfect replica of that CD, DVD, or Blu-Ray disk, can be had by anyone that obtains a copy of that ISO file. As you might have guessed, this can be used to even make illegal copies of the install disks for operating systems like Windows (XP, Vista, 7), programs like Microsoft Office, and yes, even OS X. More popularly, you can use the .ISO format and formats similar to it (.MDX is my preferred for this sort of thing) to make backups of your DVDs using DT Lite. As done with the .ISO file distributed on the website, you can make copies of DVDs and share them, thus effectively pirating DVDs in a very easy way.
    Now the common denominator in all these forms mentions above is that you need a CD, a DVD, or in an extreme case a Blu-Ray disk (CD’s hold up to 700MB of data, DVDs can hold up to around 8.5GB on Dual-Layer disk, and Blu-Ray disks, the last time I checked, could hold around 25GB) to use the .ISO file (or .MDX file, for that matter) in order to effectively utilize the files inside the archives. Otherwise, all you can do with that backup copy of your favorite movie is burn it to a DVD and watch it from there. Now here comes DT Lite. DT Lite mounts an archive file (ISO, MDX, etc), which makes the computer think that the file being mounted is actually burnt to a CD or DVD and is spinning in your disk drive right now. So if you make a copy of your DVDs, and of course, I mean the ones you own, not the ones from Netflix, you can mount that file in DT Lite and watch the DVD as if you had popped the DVD into your computer. Same with ISO files, which is the easiest way to install Ubuntu with Wubi.
  3. Now that you have downloaded and installed DT Lite onto your computer, go ahead and open it. I generally ignore the main window and look for the taskbar icon, because that had just been easier for me in the past. Right-click the taskbar icon and click ‘Mount’n’Drive Manager’. As a side note, to create copies of CDs and DVDs click ‘Disk Imaging’ instead. DT Lite will scan your disk drives for media to create an archive of, and ask you where you would like to save it. If you would like to save the archive in a format other than the default .mdx file type, browse for a new file location and change the file type it is to be saved as in the drop-down menu at the bottom of the explorer window.
  4. On the far left side there should be a button with a disk and a green + sign on it. Click that button and navigate to the saved Ubuntu ISO file. Once found, double-click the ISO file. This will open the ISO file in the Mount’n’Drive Manager.
  5. Now click the image of a disk with a play sign on it. If you’re unsure of the button, hover over the active buttons until you see one that says ‘Mount’. Click it.
  6. Auto-Play should popup asking you what you would like to do with the ‘newly inserted disk’. In Windows 7 at least, I cannot speak for other versions, you should be able to simply click the link that says ‘Run Wubi Installer’, or something to that effect. Otherwise open up (My) Computer, and double-click the disk drive that holds the Ubuntu ISO. It should have a similar name to the actual Ubuntu ISO archive you downloaded. Once you double-click the disk drive, you should be presented with an option to ‘Run Wubi Installer’, or again, something to that effect. If even that fails, click once on the drive, and then look for the ‘(Run) Autoplay’ button somewhere towards the top of the Explorer window.
    One of those should get the Wubi installer running!
  7. Now all you need to do is follow  the on-screen prompts. The only problem you may have when installing Wubi is lack of disk space, but so long as you have around 10GB free, give or take, you should be fine. Note, if detailed instructions are needed here, I will post a manual with pictures.

I also ran Ubuntu, the same version I had installed on my computer by Wubi, in VirtualBox. For those of you that do not know, VirtualBox allows the installation of various operating systems on your computer in a virtual environment. This means that although someone may be viewing this page in Windows right now, they could open up VirtualBox, start up a distro of Linux that has been installed there, and run that operating system inside of Windows, without needing to restart their computer and boot into that operating system. I used this on my hard drive so that when I was booted into Windows 7, as I usually am, I could easily open Ubuntu to program in, as programming in Ubuntu is far easier than Windows due to all the convenient built-in tools available.

So now that you’re interested, how does VirtualBox work? VirtualBox works by creating a virtual hard drive on your computer. This is a file, which you specify the size of, that all the files installed in your operating system are stored on. Basically, this is setting a portion of your hard drive off for this installation, and telling VirtualBox to store all the files there. Once your operating system has a ‘hard drive’ to install on, VirtualBox will install that operating system on it.

So how about a step-by-step guide:

  1. Download and install VirtualBox at Make sure to download the correct version for your operating system. Once the download is complete, double-click the executable file to open it.
  2. Follow the on screen prompts and install VirtualBox with the default settings, unless you’re sure that you want to change something. You’ll probably be asked to install some drivers or something quite a few times. Agree to them all. Once the installation is finished, click Finish and start up VirtualBox.
  3. Since this is a new installation, you don’t have any existing installations in VirtualBox. So long as you have the ISO of the operating system you would like to install in VirtualBox, go agead and click the button labeled ‘New’. Click ‘Next’ when prompted.
  4. In this screen you will be naming your VirtualBox installation, and telling VirtualBox what kind of operating system you are installing. Pick a descriptive name that you will be able to differentiate from your other VirtualBox installations. The first drop-down menu allows you to choose what kind of operating system you will be installing. If in doubt, you’re probably installing a version of Linux, and if you don’t know otherwise, it’s probably safe to go with that option, or ‘Other’. If you select Linux from the ‘Operating System’ menu though, you will have quite a few option to choose from in the ‘Version’ menu, so it would be a good idea to check through that list before hitting ‘Other’. For this example, I will assume that you’re installing Ubuntu Linux, and have chosen ‘Linux’ for the operating system, and ‘Ubuntu’ for the version. Click next when you’re finished.
  5. In this screen you will be asked to choose how much RAM, commonly referred to as ‘memory’, that will be allocated to your VirtalBox operating system.
    -For all of your confused as to why RAM was renamed memory and are wondering what you’re supposed to call your hard drive space now, I am with you! I usually refer to RAM as what it is, RAM, and my hard drive space as hard drive space. I guess I’m just old-fashioned in that manner. Keep the distinction in mind though.
    Here it would be a good idea to just check to see what the minimum system requirements for the operating system you are installing are, so that you don’t end up grossly underestimating how much memory you actually need, and end up with a very sluggish machine. Head over to Google and do a quick Google search for that info, and then enter that amount, plus a little more if you have some to spare, in the box on the right-hand side. Click Next.
  6. Here you will choose whether to create new virtual hard drive, or use an existing one. You will need to choose to create a new one; this option should already be checked. Click Next.
  7. Now you will find yourself in the ‘Create New Virtual Disk Wizard’. In this wizard you must choose how much of your hard drive space you would like to allocate to this VirtualBox machine. Again, head over go Google and check the minimum system requirements for the operating system you are installing before proceeding, and enter that number, plus a little more if it can be spared. Click ‘Next’ until you find yourself at the screen titles ‘Hard Disk Storage Type’.
  8. The wizard does a fine job in describing the differences between a dynamically expanding storage or a fixed storage drive, so I will leave the choice up to you. However, I will say that I would choose ‘Fixed-size Storage’ based on personal preference. This way I can’t use up all my hard drive space unknowingly and not be able to access any of the files that are taking up all that space through Windows. Once you have made your choice, click ‘Next’.
  9. Here you must set the size of your virtual hard drive. Use the system minimum, plus a few more GB if you can spare the space. Ultimately, how much extra space you allocate is your call, but I usually go for two or three GB depending on how much I plan to use this virtual machine. You can also change the location of the virtual hard drive, which is simply a single file, if you need to, but I usually just leave it alone. Click ‘Next’ when finished.
  10. You should now be presented with the ‘Summary’ screen. Skim over the summary and make sure you like all the settings. If you are satisfied, click ‘Finish’.
  11. Eventually you will need to click ‘Finish’ again, so click it. Now you will be back where you started 8 steps ago, except your new virtual machine should be in the window on the left side. Make sure it is selected, and click ‘Start’ at the top of the window.
  12. Welcome to the First Run! Just cancel the wizard. You will be told that there is no bootable device -blah blah blah. Click ‘Devices’, mouseover CD/DVD Devices, and click ‘Choose a virtual CD/DVD disk file…’. Navigate to the folder where you’ve stored the ISO and select it. Now click ‘Machine’ and scroll down to ‘Reset’ and click it. The window should refresh and boot into the setup for the operating system. The installation from here on out will differ from operating system to operating system, so check for a guide for that particular operating system. As far as VirtualBox setup goes, you’re finished. Whenever you would like to run the virtual machine, open up VirtuabBox and make sure the machine you want to start is selected, and then click ‘Start’.

Some of the definite pluses for me to run Ubuntu in a VirtualBox machine included easy access to an easy place to do programming without having to restart my computer, a place to try Ubuntu hassle and risk free, and by having Ubuntu installed in a virtual machine I could do pretty much anything with it and if something messed up, clear off the virtual hard drive and start over. This made a lot of things easier for me. For beginners wanting to test out Ubuntu, or various other distros of Linux, I would strongly recommend this before partitioning your hard drive and installing that distro natively. Similarly, I would recommend this especially to programmers. Ubuntu is a great place to program because it natively supports so many programming languages, and while the editors can be somewhat basic at the beginning, it is extremely easy to get editors as complex as you need them to be. I, for one, am perfectly happy with gedit. gedit offers syntax highlighting, and automatically senses which programming language I’m using and highlights accordingly. I don’t need anything more fancy than that. Seriously though, I would highly recommend this.

So those are two ways to install Ubuntu on your computer without having to partition your hard drive or do anything quite that drastic, but what if you want access to your files in Windows? Both Wubi and an installation of VirtualBox wont allow you to access any of the files stored on their ‘hard drives’ unless you are booted into the Wubi installation of Ubuntu or have VirtualBox open.

Well, to my knowledge, the only other option is to partition your hard drive. Sounds scary, doesn’t it? Is it really scary? No. I recently, for Christmas, got a 750 GB replacement hard drive for my computer. I have been planning on reinstalling Windows 7 since I got home from South Africa a little less than a month ago, and I finally did on my new hard drive. Since the hard drive had no existing operating system, I used the ‘Custom’ installation option to install Windows 7 on my empty hard drive, which also gives me the option to create and format hard drive partitions. At first, I was planning on simply using my Windows installation disk to create the partitions on my new computer: a partition for my Windows 7 installation as well as the program files, another partition for all my personal files, and one more partiton for Ubuntu. Or at least, that’s what I had planned.

The idea here was to create a seperate partition for my operating system installations, and have my personal files stored seperately. In doing this, I would no longer need to backup my computer before reinstalling Windows, and totally wiping my Windows installation would no longer be such a big deal. With my documents stored seperately all I needed to do was overwrite the partiton that stored my Windows 7 installation, and voila, I had a clean installation of Windows 7.

But what if you aren’t planning on doing a clean install of Windows, and thus wont be using the Windows partition manager anytime soon? My first recommendation would be to simply boot from the Ubuntu CD and use the built-in partition manager. To do this follow the instructions below:

  1. Download the Ubuntu ISO from Make sure you download the right one – 32bit or 64bit.
  2. Assuming that you are running Windows 7, find the ISO file in Windows Explorer and right-click it. Click ‘Burn to Disk’. If you don’t see that option in the context menu look for it in the blue bar running at the top of the screen. Follow the on-screen prompts.
  3. Once the burn is complete, leave the disk in your optical drive and restart your computer.
  4. When given the option, press the F12 key, which will bring up a list of devices you can boot from. Note that the key you must press to bring up the screen to choose which device to boot from will vary from computer to computer, but generally it is the F12 key. When the Boot Options screen comes up, use the arrow keys to scroll between the options until you can choose to boot from the CD/DVD drive. Hit the Enter key.
  5. Now your computer should boot from the Ubuntu disk. You will be given the option to try Ubuntu, or to install. I would recommend trying Ubuntu. If you were to choose the install option you would be required to install Ubuntu, and do nothing but that. Conversely, were you to choose to try Ubuntu you will not only be able to install Ubuntu as you would by choosing the install Ubuntu option, but depending on your wireless card you may also have internet access, where you will be able to read this tutorial for reference, and occupy yourself throughout the installation.
  6. The Ubuntu desktop should appear a few moments after you click the Try Ubuntu button. Click the ‘Install’ icon on the desktop.

My recommendation is EASEUS Partition Master Home Edition (free). After my clean installation of Windows 7 I used this program to modify and create the required partitions for my Ubuntu installation. For this tutorial, I will assume that you are using EASEUS Partition Master Home Edition.

  1. Once you’ve downloaded Partition Master open it up.
  2. As a side note, make sure that your already created partitions have enough space to expand in case you need to make them bigger. I forgot to do this, so now all my partitions are a set size, and the only one I can expand now is my Windows partition, which is where I store only my Windows 7 installation, and my program files. All my personal files are stored separately. Because the Windows partition is 50GB, I doubt I’ll need to expand it any time soon. Now how much extra space you set aside for each partition depends first on how much hard drive space you have open on your computer, and second on what the partition in question will contain. For example, my 50GB Windows partition will most likely not need to expand so long as I keep my personal files on a separate partition. Therefor, I would leave little if any extra space for my Windows partition. Conversely, it would make sense to leave space for my Documents partition to expand as I needed it to because that is where I store all my documents for both my Windows 7 installation and my Ubuntu installation.
    On my 750GB hard drive, I would set aside between 5GB and 15GB to expand my Ubuntu partition (for files or programs that must run or be located on an ext2 formatted drive, respectively). For my Documents partition, the space would vary. I currently have a 200GB partition for my personal files, to wiggle room of about 50GB would be plenty.  Additionally, if you know that you will be installing programs requiring large amounts of hard drive space for program files, create a ‘wiggle’ partition of a size according to your best estimate depending on the program. The disk partitioning strategies outlined above are optional. However, I would strongly recommend adding a small partition between your Windows partition, or whatever type of partition is at the end, and your Ubuntu partitions. Also, the information coming is extremely important if you are planning on expanding partitions at any time:
    In order to create a ‘wiggle’ partition that is effective, the ‘wiggle’ partition MUST be beside the partition it is responsible for, and preferably on the right side of that partition. Generally you can expand a partition in either direction only dependent on the location of the unallocated space, but in some cases partitions can only be expanded to the right of their current location. As another side note, you CANNOT move a partition, regardless of its placement.
  3. Now that EPMHE (EASEUS Partition Master Home Edition) is open, you should see a screen similar to the screenshot below:
    Disk 1 is generally your primary drive (normally C:). Any other hard drives, flash drives, external hard drives, or similar drives, will be located below your primary hard drive. Unless you have a second hard drive in your computer you will want to be modifying your primary hard drive, which is, again, normally Disk 1.  Click on the gray box labeled ‘Unallocated’. Next, at the top of the screen click the button with the green plus sign labeled ‘Create’. Label the drive ‘Ubuntu System Files’ or something to that effect. This partition should be about 5GB or so and will include all your Ubuntu system files. Although not needed, you can make the partition larger if you feel like it. On my computer, for example, the partition is set to be 10GB, minus formatting space. Note: When resizing the drive to 5 (or 10) GB, either type the number in the text box beside the ‘Partition Size:’ label, or if you are going to drag the slider to choose a size, drag the RIGHT side. Now choose a drive letter, anything will do, and for the file system, choose ‘EXT2’ from the drop-down menu. By choosing EXT2 you for an Ubuntu partition file system, you will be able to access it in Windows very easily. Click ‘OK’. You have now created a partition for your Ubuntu system files.
    Next, you need to create a swap partition. The swap partition acts like additional RAM for your Ubuntu installation, and should be about the size of your built-in RAM. Follow the same steps you used to create the last partition and label the drive ‘Ubuntu Swap’ or something like that. The file system should be EXT2. Again, the size should be equivalent to the size of your built in memory, or RAM. Once finished, click ‘OK’.
    Next, you need to click on the gray box labeled ‘Unallocated’ again. Click the ‘Create’ button and label the drive ‘Ubuntu Home Files’ or something similar. Choose a drive letter, and again format the drive as EXT2. Now this drive, as you may have guessed form the drive label you gave it, will be holding your personal files that need to be located on an Ubuntu file system. If you plan on having most of your files on a seperate ‘Documents’ partition, then this need only be about 10GB or so, which is the recommended minimum size by Choose a drive size, and click ‘OK’.
    These are the partitions you will need to install Ubuntu. I recommend you create them in this order, because now you have the option to expand your Ubuntu home partition without disrupting any other files. Click ‘Apply’
    Take note of the exact sizes of each drive you will be using in Ubuntu in MB, because during the Ubuntu installation you will not be presented with drive labels or anything of that sort, just something like /dev/sda1 and a drive size in MB.
  4. Now that you have all the partitions ready and formatted, click ‘Apply’ and wait for EPMHE to make the necessary changes. This will require a reboot, which if perfect. Slip your Ubuntu disk into the disk drive before the computer reboots or during if you think you are quick enough. When prompted, hit the ‘F12’ key to open your boot manager. Alternately, you could download a program such as OSL2000, which is a boot manager requiring no human input to start, but it is easier to just hit the F12 key when prompted.
  5. When a list of available boot devices comes up, use the arrow keys to scroll down to the entry labeled CD/DVD Drive and hit enter.
  6. Ubuntu will boot up. You may have to hit the Enter key once more at a welcome screen asking if you would like to 1) try Ubuntu or 2) Install Ubuntu 3)…. If you do, make sure you select ‘Start (Try) Ubuntu’ and hit Enter. This will load the desktop, and may give you access to the internet during installation depending on your wireless card, or if you are using a LAN cable at the time.
  7. There should be an icon on the top left of the Ubuntu desktop with the title ‘Install Ubuntu’ or something to that effect. Double-click it. The Ubuntu installation wizard will popup and start prompting you for input. Here you will enter your username, password if you choose one, blah blah blah, time zone, blah blah blah, and finally come to the screen asking where you would like to install Ubuntu.
  8. Now I’m guessing that you are going to want to install Ubuntu and keep Windows on your machine. If that is NOT the case, select the radio button labeled ‘Use entire hard drive’ or ‘Use entire disk’. Otherwise, click the radio button labeled ‘Manual’ or ‘Specify Partitions Manually (advanced)’ or something similar. Click ‘Forward’.
  9. The window presented to you now should have a bar across the top, colored in sections in various colors. These are the partitions on your computer. Below is a window with all of the partitions that you can select, format, and install on. Look for the partition you made for the SWAP area. Once found, format it as EXT2 and set the mount-point to ‘/swap’. Click ‘OK’.
    Find the partition you made for the Ubuntu system files, and click it. Format it as EXT2 and set the mount-point to ‘/root’ and click ‘OK’.
    Finally, find the partition you made to be your home directory and format it as EXT2. Set the mount-point on this drive to ‘home’ and click ‘OK’. Now go back to the partition with the mount-point as ‘/root’ and click is. Cancel the formatting window if it comes up. Click the ‘Install’ button at the bottom of the window.

The only thing you may need to do now, if you did not do it before specifying the partitions to install on, would be setting your time zone, and setting your keyboard layout.  Unless you know for sure differently, choose the US Standart keyboard layout. Presently, Ubuntu will ask to restart. Restart your computer.

The next thing you should see if the GNU Grub boot loaded with a few different options. The bottom option should be your Windows installation, and will be labeled as such, but the currently selected option should be your installation of Ubuntu. Unless you need to boot into Windows for something, hit Enter and check out your new Ubuntu installation. Otherwise, use the arrow keys to move up and down the list to the Windows option and hit Enter to boot into it.

Currently, Ubuntu is the default operating system. If you are anything like me, you will want Windows to be the default. But how to change this? It is not done by changing anything on the Grub boot screen. Boot into Ubuntu and then follow the next steps. Note, there will be a paragraph or two at the end of this next part explaining what each of these commands does, and how to use it in case you would like to know.

Changing the Grub bootloader default operating system:

  1. At the top of your screen, on the left side, a menu is labeled ‘Applications’. Click it. Hover over ‘Accessories’, then move your mouse down the new menu and click ‘Terminal’. Do not be afraid.
  2. Type the following into the terminal and hit Enter:
    cd ../../boot/grub
  3. Congratulations, you have changed your directory in Ubuntu via the command line. If you would like to see a listing of all the files in this or any directory, type in: ls and hit Enter. Now you need to type in the following and hit Enter once more:
    sudo gedit grub.cfg
    After hitting Enter, you will be prompted to type in your password. Type it in and hit Enter once more. Note, you will not see your password as you type. This is normal.
    A text editor named ‘gedit’ should popup with a bunch of text in it. This is the Grub bootloader configuration file.
  4. Look for the that reads something like this:
    set default=”1″
    It should be on line 13 or somewhere near that. Change the ‘1’ to a ‘6’. This variable, for that is what default is, sets the default operating system to run. The number ‘6’ may not be the correct number for you. If, when you restart, Ubuntu is still selected as the default operating system to load or you did not receive the desired result, count the number of entries in the Grub bootloader. Subtract 1 from that number, and that is the number you need to set default to.
  5. Click the ‘Save’ button, or hit ‘Ctrl+S’ and exit gedit. If you would like to make sure that your changes were saved, go back to the terminal and type in the following and hit Enter:
    cat grub.cfg
    Use the scroll wheel to move up the page until you see default being set. Make sure it is the number you desired. If not, repeat steps 3-5.
  6. If you are ready to reboot and try this out, type in ‘exit’ and hit Enter. This will close the terminal. Next click the menu titled ‘System’ near the ‘Applications’ menu and click ‘Shutdown’. You will be asked if you want to Shutdown, Restart, Suspend, or Hibernate. Click Restart. Next time Grub loads, Windows should be selected. There is an automatic timer on the Grub bootloader that will launch the default operating system if nothing changes during 10 seconds, so you can just start your computer and leave it.

Basic shell commands:

cd: The first command used in the above example was cd. cd stands for ‘Change Directory’, and it is used to change your current directory in the shell. To change to a directory, type in cd followed by the name of the folder that you would like to cd in to.
.. is a command used in conjunction with cd that tells cd to change to the directory above the current directory. As an example, take the cd command used above:
cd ../../boot/grub
First we tell the shell that we want to change the current directory. Next, the place we want to go is passed in. ../../ means  that we would like to go up two levels. So if you were in the folder ‘l3’ with a structure similar to the one described below, you would now be in ‘l1’:


However, if the folder name was ‘l 3’ (l space 3) then you would either need to enclose the directory in quotes: “l 3” or use the continuation character to negate the space: ‘l\ 3’. To really grasp this, experiment some. Messing up when changing directories will create no system problems, so you can mess up all you like.

gedit: gedit is a very versatile text editor for Ubuntu Linux. By typing gedit followed by the name of a file, you can open an new text file in the current directory with the name specified. If the name specified already exists, the existing file will be opened.

When creating a file in this way, by using the command gedit new_file_name , the terminal will become unusable until the gedit window is closed. Once you close the gedit window, the terminal will once again become usable. To remedy this inconvenience append the and sign (&) to the end of the line. So the new command would look like this:
gedit new_file_name&
This will leave the terminal active during the time you are using gedit, and is especially helpful when programming because now you only need one terminal window open to work on and test programs.

sudo was appended to the command gedit this time so that gedit could be run with administrator privileges  and save the system file ‘grub.cfg’. To run any program or command with administrator privileges, just append sudo to the beginning of the command.

ls: ls is an extremely useful command that displays the file and directory names of everything in the current directory. Since ls just displays the filenames, what if you want more detailed information? Both ls -lsa and ll will list all the names of the files in the current directory along with the group they belong to, the read/write/execute permissions, and the date last modified.

The last partition you need to create is a swap partition. The swap partition acts like additional RAM for your Ubuntu installation, and should be about the size of your built-in RAM. Follow the same steps you used to create the last two partitions and label the drive ‘Ubuntu Swap’ or something like that. Again, the size should be equivalent to the size of your built in memory, or RAM. Once finished, click ‘OK’.

A Channeler is a program I would like to see. Yes, I channeler. What is a channeler? well in the context that I am thinking of it in, it would be a program that would channel my internet connection to one specific application. For instance, instead of my internet connection being divvied up between all my open applications that require an internet to even preform the most mundane task, this program would let me choose which programs would be allowed to use the internet. No more would Firefox be using my internet connection to refresh my email while I was playing Combat Arms, no more would Evernote be syncing my notes with their server. No more would windows be checking for updates in the background. I want a program that will do that. I want to be able to give one program all the resources [in this case, the internet connection] that it needs to do its task most quickly and efficiently.

That is what I would like to see.

I just wanted to make a quick post about this.

Awhile back I was working on a homework assignment for my Web Design class I needed global variables. Now for those of you who don’t know what a global variable is, a global variable is a variable that can be accessed anywhere in a program, no matter where it is called. Now the way that I knew you could do this was to have a dollar sign ($) before the variable name, thus making it global. Here’s what something like that would look like:

function hello_world
$hello_world = “hello world”;

function goodbye_everyone
alert(“I said: “+ $hello_world+ “And now I’m saying goodbye!”);

The above code snippet would work, but only because I have the variable $hello_world as a global variable.

Now what I wanted was an easier way to do this. Because once you declare a variable global with the dollar sign, it has to be written like that throughout the whole program. Not such a big deal, except  I was already over 1,000 lines into my code, so it became a big deal. I went searching through the internet for a better way to do this, and found it.

It turns out that when you declare a variable, it gets appended to the ‘window’ object. So what did I need to do to access this variable? Let me show you:

function hello_world
hello_world = “hello world”;

function goodbye_everyone
alert(“I said: “+window.hello_world+”And now I’m saying goodbye!”);

Notice that all I had to do to use a global variable in this above example was add ‘window.’ to the beginning of the variable. I didn’t have to change the first invocation of the variable or anything. All I had to do was type in window.hello_world to use this variable as a global variable. Very, very, very easy to use and much much better than creating special global variables. This way if you start a program you can add the capabilities to use global variables without having to backtrack through your program.

And yes, this is cross browser. I’ve tested it in Firefox, Chrome and Internet Explorer.

If you have any questions I’d be happy to answer them.

Happy coding!

First, let me add a few more key phrases here so that I can get the most views here. This solution will be the easiest way to find the ID’s of Firefox elements.

Find the XUL element ID’s of Firefox elements.
Finding the element ID’s for Firefox.

1. If you’ve followed my instructions in my last post, open your Firefox profile that does NOT use WebScarab as a proxy.
2. Go to and download Firebug. Firebug allows you to easily view the contents of webpages, and change them in real time. Once you’ve installed this addon, restart Firefox.
3. Now that that is done, open the following URL in a new tab: chrome://browser/content/browser.xul

You should see an exact replica of your Firefox interface now in the browsing window. Pretty cool, huh? Now that you have the Firefox Interface in a window where you can easily view it, you may go through it with Firebug. The easiest way to do this is to use the ‘Inspect’ button, which allows you to hover over an element, Firebug scrolling to that part in the ‘web page’. So suppposing that I wanted to know the ID for the search bar. I would click the ‘Inspect’ button, then I would hover over the scrollbar. Once I’d done this, Firebug would scroll to a line in the code which would tell me that the ID for the url container is ‘url_container’, and the actual URL bar is called the ‘urlbar’. Pretty simple.

Now sometimes just hovering over an item wont quite cut it. Sometimes you will be forced to go through the code manually. To make this easy, open Firebug in a separate window so that you have the most space possible.

Once you’ve located an element through Firebug, you have two options. One! You can change the CSS attributes in real time to see what would happen. If you do this, no changes you make will remain in place.
You’re second option! You could find the userChrome.css file, which controls the CSS for your version of Firefox. The best way to do this is to just search for it with Windows search or something similar.

Once you’ve found userChrome.css, I recommend opening it it HTML-Kit, my favorite Web Developing program. If you don’t have HTML-Kit, and don’t plan on getting it, you can just open it in a simple text editor.
Armed with your new knowledge of the ID’s that go into Firefox, you may now change different aspects of your browser! Here’s a small example using the urlbar.

So I’ve opened userChrome.css in HTML-Kit, and it’s a blank document. That’s fine. To change the background color of the urlbar, I’m going to type in the following:

background-color: orange !important;

Those of you familiar with CSS will know that the pound sign (#) denotes that ‘urlbar’ is an ID, that ‘background-color: orange’ changes the background color from it’s default to orange. Now the ‘!important’ may be something new to you though. To add any elements to userChrome.css and have them overwrite Firefox’s built in style sheet, you MUST add the ‘!important’ after the actual value.

So now you know how to find the ID’s of all of Firefox’s elements. You can now edit anything you would like: changing colors, fonts, positions-anything you can think of. If you are not familiar with CSS, check out, or come back here. Soon I plan on having some basic CSS up here, along with the basics for Pythong programming.

Chinese Hackers

Posted: November 5, 2009 in Internet, Trends
Tags: , ,

Chinese Hackers

Let me start this article with a few excerpts from the Popular Science article Hackers: The China Syndrome.

  • For years, the U.S. intelligence community worried that China’s government was attacking our cyber-infrastructure. Now one man has discovered it’s worse: It’s hundreds of thousands of everyday civilians. And they’ve only just begun.
  • By the time the offensive [on American websites by (primarily) Chinese hackers] was over, Chinese hackers had felled 1,000 American sites.
    • An excerpt from an article referenced in Hackers: The China Syndrome called The First World Hacker War: ”We’ve achieved our goal,” the leader of Honkers Union said in one Chinese newspaper. ”It’s time for it to end.”
    • In the past two years, Chinese hackers have intercepted critical NASA files, breached the computer system in a sensitive Commerce Department bureau, and launched assaults on the Save Darfur Coalition, pro-Tibet groups and CNN. And those are just the attacks that have been publicly acknowledged.
    • The problem, of course, is that it’s practically impossible for the FBI to catch or prosecute hackers operating abroad. “The international legal framework doesn’t exist,” says the CSIS’s Lewis. And extraditing a hacker to the U.S. simply doesn’t happen, given our current relationship with China. Learning to defend ourselves seems to be the only option.
    • Chinese hackers, it turns out, take credit on their own sites for attacks, leaving a long trail of documentation.
    • Monitoring a cross-section of sites over several days to estimate the number of people logged in at any given time, he [Scott Henderson] came up with 380,000 hackers.
    • In a 2005 Hong Kong Sunday Morning Post article, a man identified as “the Godfather of hackers” explains, “Unlike our Western [hacker] counterparts, most of whom are individualists or anarchists, Chinese hackers tend to get more involved with politics because most of them are young, passionate, and patriotic.” Nationalism is hip, and hackers — who spearhead nationalist campaigns with just a laptop and an Internet connection — are figures to revere.
    • …the Chinese government tends not to prosecute hackers unless they attack within China…that lack of supervision is tacit approval, and it constitutes a de facto partnership between civilian hackers and the Chinese government.
    • The government at a minimum tolerates them. Sometimes it encourages them. And sometimes it tasks them and controls them.” In the end, he says, “it’s easy for the government to turn on and hard to turn off.”
    • “These rogue groups are missing oversight,” Henderson says. “When a situation is approaching critical mass” — if, for instance, these hackers decide to abandon simple vandalism and start gunning for Social Security numbers or classified information — “who’s the guy who pulls back and says, ‘No, we don’t go any further’?
    • If we can’t handle the information Chinese hackers are leaving now, scarier still is what could happen when it disappears.

Interesting, isn’t it? I’m afraid that I messed up the order of these excerpts, but those excerpts are a general summation of this great article on Chinese hackers.


The massive attack that took place from May 4th and lasted a few weeks preformed by mainly Chinese hackers was not the first attack that Chinese hackers had performed on U.S websites, but it was by far the biggest. By the time this attack was finished hackers from India, Saudi Arabia and Argentina had joined in with Chinese hackers in a massive movement that could have crippled this nation. The government raised its Infocon level fearing an outright cyber assault. The attack that felled a reported 1,000+ U.S websites including and other government websites was sparked when a U.S plane and a Chinese plan collided. The American pilot landed safely, but the Chinese pilot was unfortunately killed.

Now before I go on I want you to understand something about Chinese hackers. In a report from the Hong Knog Sunday Post in 2005 a man described as “the Godfather of Hackers” explains, “Unlike our Western [Hacker] counterparts, most of whom are individualists or anarchists, Chinese hackers tend to get more involved with politics because most of them are young, passionate, and patriotic.” Nationalism is cool in China, and with a laptop and an internet connection you can become the equivalent of a rockstar. That’s what spurs on movements like this, something many call Hacktivism. They are activists that use their skills in hacking to be politically active. And for them, they don’t have to worry about being prosecuted; China is the perfect country for hackers.

This is why the unfortunate plane collision sparked outrage among the Chinese, especially the hacker community and they lashed out. This outlash was the parent of the massive attack I mention before. The attack consisted of mostly defacements of various websites, especially government websites, but the attackers could have easily aimed higher. The scary thing though was the words of the leader of the Chinese hacker group Honkers Union: “We’ve achieved our goal. It’s time for it to end.”

Why is this scary? This was the leader of a hacker group; his group decided that this was enough, so they stopped. What if they hadn’t stopped? What if they decided that this wasn’t enough, that they wanted to make us literally pay, they could have stolen sensitive data, especially the often undergaurded credit card numbers. Maybe the other Chinese hacker groups followed their example, or maybe those other groups ended on their own time, but the thing is, nobody can control any of these hackers, least of all the Chinese government.  They’re doing anything about it, their policy up to this point, as I’m sure it will continue to be, had been “As long as you don’t hack a Chinese computer, you’re probably safe from prosecution.” That leaves almost the whole world open, especially America. Unlike in America, hackers in China freely take credit for their hacker work; they don’t have to fear punishment from their government. They are looked upon as the American equivalent of a rockstar, they’re teen idols in China. That’s just how it is.

Chinese hackers usually operate alone or within small groups, but as demonstrated in what the New York Times dubbed as “The First world Hacker war” they will band together to attack a common target, and there isn’t much, if anything at all, that we can do to stop this force. Take, for example, the Chinese hacker group Red Army. Their leader publicly takes credit for his and his groups actions, and faces no prosecution. His group of more than 3,000 hackers can give you an idea on the massiveness of some of these groups. 3,000 hackers, that’s massive. All in one group, and for the most part united in their actions.

In the First World Hacker War a reported 1,000 U.S websites were taken down by mostly Chinese hackers, but were joined by Indian, Saudi Arabian, and Argentinean hackers before the attack was over. This 1,000 website number on a whole this number was much larger though. To grasp this number you must realize that the unreported American hacker community’s backlash to these defacements of American websites that must have gone on went unreported or even unknown to the public, and it was surely a massive hack conducted by many. So you see, the overall number of websites hacked in result of this massive Chinese attack would have surely been more than the publicized number.

The not so genius of Genius and the genius of Pandora. Interesting title huh? I want to talk about why I don’t like Apple’s Genius feature and why I really like Pandora.

So first, why I don’t like Apple’s Genius. Awhile ago I dismissed this feature  as unnecessary and annoying. A stupid feature that would try and convince me to buy songs. I wasn’t totally wrong, but I wasn’t totally right either. Apple’s Genius feature is designed to convince me to buy songs, but based on my tastes in music, not at random. Depending on which of the songs in my library get played the most and which I rate the highest will effect what Genius recommends for me. This is great and all, but what if I really like the back Skillet, but I didn’t have any of their music? if I had artists similar to them then maybe I would still get recommendations of other related bands, but then again, maybe not. The point I’m trying to make is that Genius is dependent on what is in my library. I can’t say that I like the band Skillet if I don’t have any of their songs in my library.

That’s where Pandora comes in. With Pandora I can say that I like Skillet and any other band and not have any of their songs in their library. I don’t even have to have music to be able to get recommendations on songs I may like if I use Pandora. Why? because Pandora is an internet radio. I give it songs I like and it gives me suggestions on songs that I may like in return. I can give Pandora my top 10 favorite artists and Pandora will recommend similar songs from other artists and also play songs from those artists. I get the best of both worlds. I get to listen to my favorite music, and listen to similar music by other people.

I used to think that this kind of approach was ridiculous “Why would I want to listen to music by a bunch of people that I’ve never heard of before?” but now as I’m expanding my music tastes I think that this kind of approach is great. Go ahead, check it out. You don’t even need an account to try it out. Pick your top 10 favorite artists and put the in and listen while you read some of my other posts 🙂

I just heard about Google OS this morning. I first read about it in a PC World article, which you can find Here. After I read that article I went over to Google’s Blog to read their original article. If you want, you can read Google’s article by clicking Here. So now on to something that’s important.

First, I want to talk about a comment I read on the PC World article, and also partly about the PC World article itself.

If you went over to PC World to read their article on the Google OS, or even just read the headline, you would have saw that it read:

“Google Chrome OS: Does the World Need Another Operating System?”

I would say the answer to this question is, at first thought, definitely a “Yes.”, but after some thought should the answer really be a “Yes”?

This comment was by a person going by the name “rcprimak” in response to the PC World article. He made a pretty good point:

Waht the article and most of the postings seem to forget is that Windows 7 (at least on Netbooks) has a Quick Start mode. Within seconds, long before your Desktop appears, you can be browsing or doing e-mail. Why reinvent the wheel, Google?

Pay particular attention to the last statement: “Why reinvent the wheel, Google?” I agree with rcprimak when he asks this question,  but I think his question is out of context. I don’t think that he understands what Google is saying, what Google is trying to do: Google wants to take this browser they have made, and make it into an operating system. The browser would be your whole operating system. Chrome is a good browser. Chrome is really fast. And granted, it may not have worked for everything I personally wanted to do, but think about how long Chrome has been out: less than a year. Google envisions an operating system that truly utilizes cloud computing.

Google is going to try to make the operating system irrelevant through web apps and cloud computing.