Archive for April 9th, 2011

Turn off system beep in Ubuntu

System Beep

System Beep

System beeps are annoying. Not only the sound is bad but it doesn’t even come from the speaker, instead it comes from the midi on your computer board. It can get very annoying every time it goes off in a quiet place like library. Even at home, when you are just trying to concentrate. Anyway, it is easy to turn it off.

 

The easiest solution is probably:

Go to System > Preferences > Sound > System Beep tab. Just uncheck the box and the beep is a history.

 

You can enable the visual beep if you want. I wish Ubuntu would make it more configurable so I can just pick my own sound or at least make the default one less loud and annoying. After all these system beeps do come up quite often and depending on your computer it can easily wake your neighbors up.

Some cases when system beep comes up include:

1) Typing the wrong login and trying to get into the system, which happens quite a bit when I get on pc at night in a dark.

2) No auto-complete option when you type something in the Terminal window. Happens quite a bit, especially navigating through the directory structure.

3) Searching for something in Firefox when there are no results. Comes up a lot when I try look up a position of the website in google for instance.

etc. When does it frustrate you the most? 🙂

I searched online a little bit about this issue and seems that there are many many users complaining about it… I hope that this is something that will be fixed in the future updates. After all, I’d like to have the beep, just want the sound to be more pleasant and from the regular speakers. Also, seems that people didn’t have an easy option to disable it in the older versions or prefer to use different methods. If you have an older version or just like experimenting, you can try these solutions as well:

1) Temporary disabling via user preference utility in terminal, type:

xset b off

xset b 0 0 0

2) For the terminal – Edit > Current Profile > General > Uncheck “Terminal Bell”

3) Set bell frequency to 0 in terminal type:

setterm -bfreq 0

4) Blacklist the pc speaker driver. In terminal type:

sudo sh -c “echo blacklist pcspkr >> /etc/modprobe.d/blacklist”

or just go to /etc/modprobe.d/blacklist and manually add a line at the end: “blacklist pcspkr”

Please note, that some Ubuntu versions have /etc/modprobe.d/blacklist.conf

5) Remove the driver. In terminal type:

sudo modprobe -r pcspkr

to re-enable the driver you’ll have to type:

sudo modprobe pcspkr

6) Removing the module, which is pretty much the same, in terminal type:

sudo rmmod pcspkr

If you want it back, just type the same command:

sudo modprobe pcspkr

I hope this helped you and you can now enjoy your peaceful and quiet evenings.

Please let us know if it helped you and if you have tried any other solutions.

How to open a Terminal window in Ubuntu

Ubuntu Terminal Window

Ubuntu Terminal Window

This one is simple, but many starting Linux users find terminal windows extremely overwhelming. It is true, even in Ubuntu you WILL have to use terminal at some point. It is similar to Windows Command Prompt window but is more vital part in the OS. 🙂

It is usually a lot faster to get something done using Command Line Interface (CLI), but you need some experience before you get better at it. So, here is how you start a Terminal window in Ubuntu:

Applications menu > Accessories > Terminal.

Now lets configure a terminal shortcut keys. Go to:

System > Preferences > Keyboard Shortcuts.

It is also pretty convenient to open/switch between terminal windows by pressing Ctrl + Alt + F1 through F6. F7 will hide the Terminal windows and get you back to the desktop.

These are the simple ways to open the terminal window in Ubuntu and do simple navigation between the ones you have. We will have a look at common functions and describe some useful terminal commands in the future posts.

Edit: I broke my ubuntu today and almost lost hope as ALT+F# buttons did not work. I was able to get the terminal window using this shortcut:

Ctrl+Alt+T

How to run Windows In Ubuntu – Installing VirtualBox

XP Virtual Box In Ubuntu

Windows XP Virtual Box In Ubuntu

VirtualBox gives you the ability to run another operating system inside of your already existing operating system.  First, you can download a copy here, but it is not needed as you can install it using synaptic package manager. VitualBox is very convenient. As stated before – it does run an OS inside of another OS, so make sure you got a bit of RAM for two systems. However, unlike with dual-boot system, you would not have to reboot the computer every time you need to use a different OS. You can also enjoy the convenience of easily running the applications that you can’t live without and completely give up one system over another. VirtualBox is just an easier way to have it, however, if you like to run Windows applications in Ubuntu, check out Wine project (a bit more complicated, more on it later).

Anyways, have a Windows CD handy and logged in to your Ubuntu, let’s start. Go to System > Administration and look for “virtualbox-ose”. Install the package. Next, use a terminal window to add yourself to vboxusers group. Type:

sudo adduser $USER vboxusers

or simply type in your username instead of $USER.

Next step is to enable USB support for your VirtualBox. Open terminal window once again and type:

sudo gedit /etc/init.d/mountdevsubfs.sh

This would open an editor to edit the file. Now find the section that says:

#
# Magic to make /proc/bus/usb work
#

Make sure that these lines are uncommented (no  ‘#’ at the beginning), if they are, uncomment them (remove the starting ‘#’ sign). These 5 lines are starting with:

mkdir
obusmode
domount usbfs
ln -s .usbfs
mount

Save the file and reboot.

Now it is time to launch the VirtualBox. Go to Applications > System Tools > Innotek VirtualBox and click “New” as we are creating the new box. Now select OS Type you are trying to install – such as Windows XP and name the box. Select the memory you want to dedicate to the box and how to share the hard drive. Make sure you have enough disk space… a few gigs will do. 🙂

Time to install Windows. Put in your CD and go through the “settings”. Make sure you have some options such as “Mount CD/DVD Drive” for it to work, but also go through additional settings to set up your network and such. Click Next and Windows will start installing.

Once the install is complete – you should have a Windows VirtualBox. I would recommend going to “Devices > Install Guest Additions” next. This option will give you a lot more flexibility, such as running in full screen mode, seamless mode, share the folders and copy cut from one system into another. Pretty cool stuff.  Now restart again and log into to your new VirtaulBox. Play around, check out Full Screen Mode by pressing Host Key, usually right ctrl unless you changed it, together with “F”. Also, check out Seamless Mode by pressing Host Key with “L”. To get out of the mode, just repeat the key combos.

You now have a system within a system. Good work. 🙂

How to install Ubuntu

Ubuntu Installation

Ubuntu Installation Screen

Installing Ubuntu is easy. First, make sure you have a copy of Ubuntu (look through my recent post – How to Burn Ubuntu Disk if you have to). Second, decide whether you want it to have on the same machine as your other OS. Yes, you can have Windows and Ubuntu on the same computer.

Now lets start. If you have a disk, you have two options:

1 (easy) – install it from your Windows. Start your computer and insert the Ubuntu disk into the drive. It should open up a screen with installation options. Now this option is good if you are just going to use Ubuntu as a secondary system. You can later even remove it via add/remove Windows options. The bad thing is that it will affect the performance as it will be using Windows file system. Now the Wubi installation will guide you through the process. It is as easy or even easier than installing Windows, just pick your settings, username, password, etc. It will then download the required files for selected configuration and you will have a dual boot computer. Just restart the Windows and you can pick which OS you want to load on every reboot.

2 – Regular Installation. I prefer this method. I still use Windows, but I have a second pc and a virtual box (if you are not sure what it is, it’s like an operating system inside of an operating system… more on this later) with Windows. Anyway, its time to start. Start Windows, plug in disk and wait for the install screen to pop up. You can also install it by enabling the bios to boot from CD and start your computer with the CD in the drive. “Demo and Installation” option is the one you need.  Make sure you have enough disk space, I’d say around 5Gb at least. You should get to the screen with the desktop and actual Ubuntu, however, it is only a demo. To install, click “Install” on the desktop. It will guide you through a few simple steps, such as selecting language, picking user name and password, selecting partition and some others… Selecting partition is probably the most confusing part. If Ubuntu is the only OS you will have, you can use the entire disk. If not, just use the largest continuous space. Keep on going through the easy configuration screens and click “forward” until you see “install” button. Here you can review the settings before clicking it.  Once complete, remove the CD from the drive and restart your computer.

Ta-da! Doesn’t get much easier than that! 🙂 Now just login using the credentials entered during installation and enjoy the new system!

Please let me know if you have any questions or comments…

How To Burn Ubuntu Disc

Maverick Meerkat Disc

Maverick Meerkat Disc

After showing off Ubuntu a few people asked me where they can get Ubuntu and how much it is. Next time I will just send them to this post instead. 🙂

Ubuntu is freely available on the web in the .iso format. You can download a desktop/laptop edition here. After download is complete, you can burn it on the disk. Regular 700 mb CD would work but if you want to have it on DVD, its ok too . Here are the instructions:

If you use Windows 7, it comes with built in support to burn ISO files. Just right click the newly downloaded file and click “Burn disk image”.

For older versions of Windows you can use CD burning software that has an ability to burn image files, ISO in this case… I prefer nero which comes with free trial if you want to give it a shot. Just pick a menu option to burn an image and find the Ubuntu file that you have just downloaded.

Newer Macs also have an option to burn an image file, just use the disk utility or disk copy, depending on your OS.

If you already use Ubuntu and just trying to get the newer version, it also has a built in support to burn ISOs. Use CD/DVD Creator and burn it as a file image.

Upon completion you should have a bootable Ubuntu disk.

If you don’t want to waste a disk, you can also install Ubuntu from a flash drive. However, if you decide to make bootable disk out of ISO, make sure you burn it as an image. You cannot just drag and drop the file and burn it as data.