Tip: How Change Default OS in Dual Boot Ubuntu

My Acer 5570 Notebook is setup to dual boot Windows XP, for my online games and other Windows applications, and Kubuntu 7.10, my main operating system for stuff that I do most of the time like web browsing and blogging. Then my brother and I are now sharing the same notebook and he prefers Windows over Linux, not that I refuse to introduce him to Ubuntu but he had to use Microsoft Office for his office documents.

Windows and Ubuntu dual-boot systems are set boot Ubuntu first by default, so I decided to change the dual-boot order to default to Windows, since my brother will be using the notebook more.

To make Windows the default operating system in dual boot Ubuntu, follow these steps:

1. Press Alt+F2 to open the run dialog box.
2. Type in sudo gedit /boot/grub/menu.lst. Type in root password.
3. Edit the line that looks like this:

default 0

Change the number to the equivalent order of Windows in the operating system list in GRUB boot screen. The number 0 means that GRUB will boot the first operating system, and so on. If Windows is in the 4th line, change the number to 3.

4. Save the file and exit.
5. Reboot to check the change.

Windows should boot as default.

Popularity: 22% [?]

Hide Files Inside An Image File

Did you know that you can hide files inside an image file like jpeg? A simple image when opened or previewed looks like an innocent JPEG or any image file, but when uncompressed using any archiving software, it extracts files that were hidden from plain view.

However, in this video, Windows was used. I have yet to discover if this is possible in Linux.

Popularity: 7% [?]

Unpopular But Useful Windows Shortcut Keys

windows_vista_logoI may be a Linux user but from time to time, I use Windows since I have it as my workstation OS and my Linux runs as VM. Then I found these tips from technotraits.com that should make my work in my Windows machine a little faster and more efficient.

The best thing about these shortcuts? Some are also applicable to Linux machines.

Windows Explorer

1. F2
Rename files by highlighting the file and pressing F2. Same goes to Linux.

2. F6
Lets you move across various panes of Windows Explorer.

3. Alt + Enter/ Alt+Double Click
Highlight a file in Windows Explorer and hit Alt+Enter or Alt+Double Click to view the file properties.

4. SHIFT+Right Click
Show the right context menu listing alternative commands.

5. SHIFT+Double Click
Runs the alternate default command (the second item on the right context menu).

6. BACKSPACE
Move one folder up.

7. Ctrl+Double Click
Open a folder in a new explorer window.

8. SHIFT+Click Close Button
When using Shortcut #7, pressing Shift while closing the window will close the parent windows as well.

9. SHIFT
Autorun will not start if Shift is pressed while inserting CD/DVD.

10. F3
Hit F3 in Explorer and Search will open to search for files and folders.

11. Ctrl
Press Ctrl Key and drag files to another folder to copy the selected files.

12. Ctrl+Shift
Press Ctrl+Shift and drag a file to another location and shortcut will be created.

13. ALT+SPACE
Open up the active window’s system menu.

Windows Management

14. CTRL+ESC
Open the Start Menu.

15. Windows Key+M
Minimize all open windows.

16. Shift+Windows Key+M:
Maximize all open windows.

17. Windows Key+D
Same with Shortcut #15

18. ALT+F6
Press F6 to switch between windows of the same program.

19. F5
Refresh. Same with Firefox, IE and Linux

20. CTRL+TAB/CTRL+SHIFT+TAB
Switch between tabs of properties window.

Miscellaneous

21. SHIFT+F10
Opens up right context menu. Similar with right click.

22. Windows Key+Pause/Break
Open System Properties Box.

23. Windows Key+L
Lock your current screen.

I tried most of the commands here and they work! If you find these shortcuts useful or otherwise, you can use the comment form below.

Popularity: 6% [?]

Linux File Directory Structure

When I am introducing Linux to new users like students, I noticed that it takes time for the new user to get used to Linux, particularly the directory structure. Since most are Windows users, they know how the directory structure of Windows looks like, and expects that it will be the same with Linux. To properly illustrate the Linux directory structure, linuxconfig.org has an illustration of the Linux File Hierarchy for easy explanation:

Linux directory


Understanding the directory hierarchy of Linux will result in ease of navigation while running the OS, regardless of the distro (Ubuntu, Red Hat, Fedora, etc.).

Popularity: 31% [?]

10 Things You Didn’t Know You Could Do In Ubuntu

UbuntuUbuntu is one of the popular Linux distros around, still gaining popularity by the minute. It is very easy to use, lightweight and newbie-friendly. Ubuntu is the reason why the Linux stereotyping became less as this distro is becoming similar to Windows in terms of ease of usage but without the extra fat.

Since more people are migrating from Windows to Ubuntu, here are some interesting Ubuntu tips from ubuntukungfu.org that you may want to try with your Ubuntu pc. These tips are provided by Keir Thomas, author of the book Ubuntu Kung Fu, which contains over 300 other tips for Ubuntu 8.04.1.

1. Create website links that automatically install software

Did you know that you can create a link that will automatically launch Ubuntu’s package manager and install the software? This is very useful if you are helping someone install certain programs in Ubuntu. To create ’software install hyperlink” just create a hyperlink but instead of pointing to the usual http:// address, use

apt:< package name >

So if you are trying to install firefox, create a hyperlink and put apt:firefox in Hyperlink bar. This will create a hyperlink that will launch the package manager and install the package when clicked.

2. Do stuff without touching the mouse

If you know how to launch the ‘Run’ dialog box in Windows, this certain command is also available in Ubuntu. Press ALT+F2 and the similar ‘Run’ dialog box will appear, type in the command or the program name, let’s say firefox, hit enter, and firefox will launch.

3. Instantly Search Google for Any Word or Phrase

Googlizer is an app that you can install (this is available from the package manager) and use it to search Google for anything using the keywords directly from your file. An example is if you have a PDF file that contains the word ‘lethargy’, with Googlizer, all you need is to highlight the word, and click Googlizer’s icon to search the web.

4. Create a File Delete Command That Uses the Trash

If you are a frequent user of rm command, you can create a command that will move the file you wish to delete to the Trash directory, instead of completely deleting the file. To do this, just use the command alias and few tweaks with Linux files:

- Open a terminal window, and type gedit ~/.bashrc
- Add this line after the last line of the file:

alias trash=”mv -t ~/.local/share/Trash/files –backup=t”

- Save and close.

To use the command, you need to use the trash command instead of rm:

trash mydoc.txt

5. Repair Windows from Within Ubuntu

You can mount your Windows partition inside your Ubuntu and do stuff with it. With stuff I mean you can access your files in Windows partition, or you can also repair it within Ubuntu. To be able to repair a near-death Windows partition, unmount it and use the command ntfsfix:

sudo ntfsfix /dev/sda1

This is assuming that your Windows partition is /dev/sda1 and the filesystem used is NTFS.

6. Dump the Text on a Virtual Console to a File

Large files can be tiresome to read so you may want to filter the words that you need and dump into a new and smaller file. This can be done using this command:

ls > output.txt 2>&1

The command will execute ls command, put the results into the output.txt file and display errors, if there are any.

7. Instantly Hide a File or Folder

In Linux, any file that begins with period (.) is considered as hidden file. So if you want to hide a certain file from a younger sibling or parent, rename a file and put . at the beginning of the filename

mv grades.txt .grades.txt (use this command inside a terminal)

Or if inside Nautilus, highlight the file, press F2, and rename the file.

8. Print at the Command Line

Did you know that you can print files from the command line? Try this command to print a file without the fancy format for fast printing:

lp -o page-top=72 /home/myfile.txt

This is a quick and dirty way of printing files since the formatting is disregarded, but very useful if you want to print something fast and easy.

9. Listen to MP3s when no GUI is running

If you need to work in your Ubuntu using text mode only and no GUI running, install vlc using the apt-get command and use it to play your MP3 music from the command line:

vlc -I ncurses /home/*.mp3

This will play all mp3 files in the /home folder using the CLI mode of vlc.

10. Turn your desktop into your /home folder

If you want to make your default Desktop directory into something else beside the typical /home/user/Desktop location, you can do so by hitting Alt+F2 and type in gconf-editor. This will launch the gconf-editor app, put a check beside /apps/nautilus/preferences, save and exit. The change will take after after your next login.

Popularity: 12% [?]

Bundled Windows OS is Refundable

Choosing notebooks is becoming difficult to do because of so many choices and options to weigh. And if choosing hardware is not hard enough, notebook manufacturers bundle their products with softwares that are usually junk or something that you do not need.

One very common example is Windows Vista OS. Vista comes with every notebook, or computer for that matter, and buyers usually have to pay for it even if they do not want it. Some prefer to downgrade to Windows XP while some just have no other choice but to purchase the OS license only to wipe it off from their notebooks and replace it with Linux.

As a consumer, we have the right to choose which products we want to buy. And in some cases, notebook manufacturers do not seem to give buyers to choose if they want to buy OS or not. That really sucks because Vista OS licenses can cost at least $100, and customers are only paying for the license, therefore do not own the software. Why would you want to pay for something that you do not, and will never, own?

Fortunately, there are some people who actually read the End User License Agreement or EULA of Windows licenses and use it to their own advantage. Take for example uncle_benji, the author of equiliberate.org, who bought an HP notebook bundled with Vista. He chose to waive his purchase of Windows Vista license in favor of using Linux, and got his money back, almost the same amount of the retail price of Vista.

Read his full story here.

Popularity: 8% [?]

Portable Mozilla Firefox

I just found out that Mozilla Firefox, the world’s favorite web browser, has a portable version that can be stored in a USB storage device.

portable-firefoxBring your bookmarks with you with Portable Firefox

Firefox is bundled with PortableApps.com launcher, a free and open source platform you can use with any storage device like flash drives or iPod. So when you combine a portable app with Firefox, what you will get is a super fast and free browser that you can carry anywhere with you. And yes, it means you also have your bookmarks and extensions in your handy lil’ Portable Firefox. Read the rest of this entry »

Popularity: 11% [?]

Free Toolkits for Technical Support Engineers

For two years of my early career life, I was a struggling Windows support who worked from being a Windows help desk support to Windows on-site support before becoming a Linux system administrator.

Read the rest of this entry »

Popularity: 17% [?]

Cool Music from Windows Sounds

Okay, this is no way related to Linux but it is cool anyway. This is a very cool sample music created by mixing the Windows sounds together.

Can someone do something like this with Linux sounds please? :D

Popularity: 19% [?]

Random Randomness

windows network

public pgp key

Popularity: 17% [?]