Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Saturday, 22 May 2010

10 Things to do after a Fresh Ubuntu Install

0 Comments
Often, there are certain things that people do after a fresh install of their operating. I often install my operating systems once a while (and find such re-installs painfully horrible) because I manage to screw something up with an application or tweaking some setting results in an improperly functioning operating system.

Monday, 3 May 2010

Flickering Monitor in Ubuntu 10.04 for ATI Cards

26 Comments
While Ubuntu 10.04, Lucid Lynx really runs like a Lucid Dream, the one thing that I found problematic is not being able to run dual monitors. While dual monitors worked great in Windows and even Ubuntu 9/8 for some reason whenever I tried to set up the second external monitor, it would always flicker and wiggle.

However, thanks to the great people at the Ubuntu forums, it seems like I have found a fix that works. Special thanks to clhsharky for this tip. You can read the full post here.

But here's the gist of it (I've tried this on an ATI x1400 Video card, and it stops the external monitor from flickering):

Update (August 20, 2010): Seems like the rc7 release is available. You might want to download that instead... (see the comments section for more information)
Update (August 21, 2010): As Ryan suggests in his comment below, the rc6/rc7 candidates may contain a security flaw, so you may want to read that first before proceeding...

Go to http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.34-rc6-lucid/ 
and download the following files and install them in this order (depending on which processor you have)

For Intel (x86/64) based processors download and install (installing as in double click the .deb files after downloading it and click install..) the following in this order:
linux-headers-2.6.34-020634rc6_2.6.34-020634rc6_all.deb
linux-headers-2.6.34-020634rc6-generic_2.6.34-020634rc6_i386.deb
linux-image-2.6.34-020634rc6-generic_2.6.34-020634rc6_i386.deb


For AMD processors download and install the following .deb packages in this order:
linux-headers-2.6.34-020634rc6_2.6.34-020634rc6_all.deb
linux-headers-2.6.34-020634rc6-generic_2.6.34-020634rc6_amd64.deb
linux-image-2.6.34-020634rc6-generic_2.6.34-020634rc6_amd64.deb


Finally, after you restart, you'll be able to choose the rc6 kernel while you boot, which should fix the problems.

Again, this may not work for all ATI cards, but it seems to work for mine!

And boy is Ubuntu fast... it loads in ~ 35 seconds on a 4 year old laptop. Impressive... and now I also use dual monitors if I want to!

Thursday, 29 April 2010

Installing Ubuntu without a CD drive using USB drive

0 Comments
With the latest release of Ubuntu, I feel that more people will have access to a highly mature, fast and easy to use operating system. But unfortunately, most people I’ve talked all believe that in order to install Linux (GNU/Linux) on your computer, you’re going to have to burn CD’s and it’s going to take a long time.

While this was true in the past, no longer is it necessary to burn a CD (or even have a CD drive, if you’re a netbook user) in order to use an open source operating system (OSOS ?). Here’s now you can install Ubuntu or any other similar flavour of an open source OS, with UNetbootin

Sunday, 18 October 2009

Adding a deskbar to Ubuntu 9.10's panel to search files and other things

0 Comments
Interestingly enough, my trusty deskbar applet seems to have gone missing in this latest flavour of Ubuntu 9.10 (aka Karmic Koala). Usually, you would be able to right click on the main panel (The bar on the top of the screen that has Application, Places and Systems and so on) and add the panel called "Deskbar" to your computer.

Why deskbar you ask? Because deskbar is to ubuntu as spotlight (or Windows Start menu search) is to Mac OS X (or Windows 7). It helps you quickly find the files that you need on your Ubuntu partition or your PC partition, and helps you do stuff like quick math, searching the dictionary and searching the Interwebs.

Saturday, 18 April 2009

Ubuntu Audio Does Not Work - Static Sound Instead

20 Comments
Have you ever experienced the static sound on Ubuntu when you should have been hearing something (perhaps the start up sound or something) from your speakers? Well, you might think that your sound card has stopped working or something, but as it turns out.. there's a quick way to get your audio back to normal.

It's not that your sound isn't working... it's just "muted" (although I wonder why it makes the static sound instead of being completely quiet...).

To get your sound back here's what you need to do:
  1. Double click on the speaker icon in the menubar
  2. Alternatively, you can press Alt+F2 and type in: gnome-volume-control and click 'Run'

Then on the volume control window, choose the appropriate device where it says "Device:" and just turn your "PCM" volume all the way up... if this slider is all the way at the bottom you'll just get static from the speakers instead of sound.


Hope this helps others out there who experience the same audio "stuttering" problem.

Sunday, 29 March 2009

Greate OneNote like Free Notetaking Application - BasKet Note Pads

9 Comments
I've recently taken up using my laptop as the main source of notes, instead of paper based note systems. As a result, I searching around for a note taking application that would help me take notes quickly and efficiently and then easily review them (the biggest problem with hand written notes is that it's hard to find/read them when you need them) later on whenever I'd need to do so.

However, instead of using 'professional' (and expensive!) software like OneNote from Microsoft, I decided to find an open source alternative that would do just the same. So I wouldn't have to worry about "bad karma" as they say. Although there were several alternatives out there for the Mac and also for Windows, the best alternative in my opinion so far has actually been an application for Linux!


It's called BasKet Note Pads (an application originally developed for the KDE environment, but works fine on Gnome too... so it should work on almost any Linux Distro out there) and it's almost like Microsoft OneNote... but better! Why? Because, it's free... and it's open source too (so that means that it will at least get an update once in a while hopefully..). So far, I've found it to be the best note taking application out there.

In BasKet Note Pads not only can you emulate the beloved one note feature of being able to click anywhere and type in a OneNote document, but you can also assign special categories to each note that you type. For example, you can give the note the tag of a Todo, and once you do this an empty checkbox will appear beside the note. Then once you are done the Todo item, just check the checkbox and BasKet will automatically place a line (strikethrough) through the text indication that the job was done.

I find that this is a great app where you can just "write down" all your ideas really quickly and then come back later and arrange them into logical categories to create a computer "mindmap" of sorts. Plus, its great to be able to take notes at a lecture in little bits and pieces and then add them together in their own little notepages to get a whole overview of the lecture topics.

There's other categories as well... like the 'progress meter'. So you can click on the progress meter once you've reached another stage in the assignment... making sure that you're on track with each project. Plus, you can create a main note for a project (with its tag as a project meter) and then drag and drop additional to-do "notes" in the project. BasKet will automatically group the notes as one whole note so you can easily minimize and maximize a project depending on what you want to look at.

If that's not enough, it also has the ability to have funky backgrounds and the ability to grab screenshots (great for doing online research... where you can grab screenshots of products you like from their website and put them in one document and then compare them side by side) and place them right into the document. The only thing it pretty much cannot do right now is take audio notes and link them to the typed notes. However, I feel that it's only going to be a matter of time before they add that feature too.

BasKet note pads is a great free way to add a little organization to your life and a great way to take notes if you are a college/high school students. Although you'll need Linux to run it, I recommend you get linux and give this little app a try. Once you figure out how to do things, I'm sure you'll find it a formidable replacement for OneNote.

Monday, 26 January 2009

Disable Annoying System Beep on Linux (Ubuntu/Kubuntu)

3 Comments
I've been using Ubuntu (well... technically Nubuntu, as I am most certainly a Linux/Unix Newbie) quite a bit lately (more on that later...!) and if there's one thing that has annoyed me so far, it's probably the little old antiquated system beep that my computer makes when I accidentally press a key I'm not supposed.

The beep is loud (I've fallen off the chair quite a few times because of it), useless (well... sort of), annoying and just plain unnecessary. So, I finally decided to get rid of it. Of course, like any other linux newbie I decided to do a quick search on the interweb to find out how to fix the problem.

The first article I came across, from the how to geek, was a bit useless because it was for Ubuntu Edgy! Since I'm using the 8.10 (Intrepid Ibex) version of the operating system, there is no 'System Beep' tab when I go to System > Preferences > Sound! But then I found another article from arsgeek that helped me handle the problem. Except, the instructions on arsgeek could have been a little better... so I'm publishing what I did on my blog.

First, I pressed Alt + F2, which brought up the run application command, and typed in the command as stated on arsgeek with a sudo in the front. Like so:

sudo gedit /etc/modprobe.d/blacklist

And checked the box beside 'Run in terminal' and clicked Run.

Then, I typed in my password when Terminal asked me to type it... and Gedit open with the blacklist file.

I copied and pasted the entry:

#silly speaker beep
blacklist pcspkr


at the bottom of the file, and saved the file > Closed Gedit. Finally, on the terminal window that was still open I typed in (I could have of course restarted my system... but I didn't want to waste the 20 seconds):

sudo rmmod pcspkr

And that was the end of the annoying speaker beep problem, in Linux!

More on my experiences with Linux later!

Tuesday, 13 January 2009

Tremulous: Free Open Source Online Multiplayer Game

2 Comments
Here's a good computer video games that isn't expensive. It's free You don't need expensive consoles or super fast computers to play it. And you don't need Windows or Mac to play it because it runs on Linux too (You can however, use a Windows and Mac to play it too... if you wish to do so).

Plus, this games also has elements of a first person shooter game, real time strategy and additional multiplayer online game features. It's based on the Quake engine, and has two main skillsets of aliens and humans.

The game I'm talking about here is called: Tremulous.





It's free, open source (yes, that means hackable too...) fast and easy to learn. The objective of the game is this: There are two teams, humans and aliens. Each team has to build their own base and defend it, while attacking the enemy base to destroy it. Plus it looks pretty good too.

Naturally there are several unique elements in the game. For example, you need to be able to shoot (with several different kinds of weapons that work differently), build a base (both human and alien bases are different) and learn how to use an alien (because aliens can't shoot.)

Plus, since its free there are loads of people all over the world playing the game. You too can host your own game server from your very own computer (provided you have a good internet connection and a fairly fast computer) and all you need to play is a regular mouse and keyboard.

We'll instead of me telling you more about the game, why not give the game a try. May be you'll like it, may be you wont. But it's free.. so you've got nothing to loose.

Monday, 5 January 2009

Improve battery life on a Linux laptop

11 Comments
Often I find that one of the key things that matters in a laptop that you plan to lug around, especially at school, is it's battery life. Without electricity the laptop is as good as a brick, although it might be more shinier. Most laptops sold in the market today usually have good battery life. However, the big question is: what can you do if you already have a laptop with a good battery life... but want to INCREASE the battery life? Also, let assume that you are running Linux on the laptop... since right now I am running Ubuntu on my laptop and I love every moment of it.

Improving battery life for Ubuntu/Kubuntu/Edubuntu etc.

The first things that you can do to improve your battery life are pretty obvious, but I'll mention them here anyway:
  • Lower the display brightness to the lowest possible level to make sure that the screen doesn't sip your battery power.
  • Close any applications that you are not using and unplug any usb/external deviceees that you might not be using as well. This saves some memory from being used (and also makes the hard drive work a little less) and ensures that no power is taken for ports that you aren't really using. See below for information on how to disable the USB ports as well to improve more battery life.
  • Disable all Linux eye candy (Do this by going to System > Preferences > Appearance > Visual Effects Tab > Choose 'None') . This means - No Beryl/Compiz Fusion, no wobbly windows and no fancy revolving cubes. It also means a couple of extra minutes of battery power - So choose wisely.
  • Turn off wireless and bluetooth if you don't need it.
Now, for the more technical stuff that's going to improve your battery life. As always, you might want to make sure that you back up your data before you try this, because most of the tips stated below can in fact cause your system to hang and in the worst case scenario - cause it to be inoperable. But on the other hand, if it works fine for your laptop then you might be able to improve the battery power by 20 - 30%.

Step 1: Enable Laptop Mode

This uses the 'laptop' policies that are in ubuntu to ensure that the computer uses only the resources it really needs. As a result, it'll be able to cut down on the resources it doesn't need and save you some battery power. To do so... I did the following:

First, I pressed Alt + F2, which brought up the run application command, and typed in the command:

sudo gedit /etc/default/acpi-support

And checked the box beside 'Run in terminal' and clicked Run.


Then, I typed in my password when Terminal asked me to type it and pressed enter... and Gedit opened with the file.

Then I changed ENABLE_LAPTOP_MODE=true. And saved the file. And finally I restarted the computer... just to let the changes take effect (but I guess there must be some command out there that I don't know of that will make the changes take effect automatically).

Step 2: Make your CPU run slower by enabling CPU frequency scaling


I opened a terminal window, (Applications > Accessories > Terminal) and typed in :

sudo chmod +s /usr/bin/cpufreq-selector

If it asks you for you password... then type it in and press enter. Then, right click on the menubar and click Add to Panel. Then click on the CPU Frequency Scaling Monitor and click Add. From the CPU Scaling Monitor, choose the lowest possible Speed (in my case 1GHz) or choose the "Powersave" option.

Doing so will make the laptop run at a much slower CPU speed and save you a LOT of power.


Step 3: Disabling unused ports on your computer and throttling the wireless card's power



By disabling the unused USB ports etc. on your laptop, and decreasing the power used by your wireless card, you can save even more battery power. Obviously, if you're using a USB mouse or a necessary external USB device, you don't want to disable the ports. But if you're not using then then you can safely disable them.

To disable USB ports, open a terminal window and type:

sudo rmmod uhci_hcd
and then type in your password if necessary and press enter. This should disable the USB ports.

To put your wireless card (sorry... this only works for intel wireless cards) into power saving mode do what i did:
I pressed Alt + F2 like stated above, which brought up the run application command, and typed in the command:

sudo gedit /etc/laptop-mode/conf.d/wireless-ipw-power.conf

And checked the box beside 'Run in terminal' and clicked Run.


Then, I typed in my password when Terminal asked me to type it and pressed enter... and Gedit opened with the file.

Then I changed the 0 to 1 for CONTROL_IPW_POWER. Saved the file and quit Gedit. Of course, you could have changed the other parameters as well... but I didn't bother doing that, since the default looked good enough for me.

Step 4: Enjoy the newly gained battery power


That's it... the "hacks" mentioned above are about the only things you can do (with the exception of restarting Ubuntu in shell mode and using only the text interface.) to boost your battery life.

If you know any other ways of improving battery life or battery performance, do state them in the comments below!

Sunday, 4 January 2009

Make fonts look better on Linux (Ubuntu)

1 Comments
For years, I've wondered, isn't there some way I can get my fonts on Ubuntu/Kubuntu/Any other distro of linux look like the fonts on Mac OS X or even at least Windows? Every time I looked at some website through Firefox on Ubuntu, the text kerning, leading and everything would just look weird. In my opinion linux font rendering was crappy, and to be honest, I never tried to figure out a way to make it look alright.

It wasn't the anti-alising on Linux, it was something else. Nevertheless, I think I've found a way to make the fonts looks as they should be on Ubuntu (and other similar releases like Kubuntu/Edubuntu/SomethingelseBuntu).

Thanks to Jeremy Zawodny's post, and then a post in the masterplan (this post is absolutely correct when it says that we take font rendering for granted on operating systems like Windows and OS X, and then think that the fonts on Linux are just different), I was able to figure out some ways I could make the fonts on Firefox in Linux look like the fonts in Windows or on Mac.

I won't steal the contents from the post in the masterplan, however if you too want to fix the font rendering and font display in your ubuntu install, then do head over to the 'Sexy smooth fonts on kubuntu' post and follow the super simple instructions (if you guys are stuck, then I'll try to help out here).

Furthermore, you might also want to turn on Subpixel smoothing with Ubuntu by clicking on System (in the menubar) > Appearance > Fonts tab > Choosing sub pixel smoothing and clicking close. And Viola, that's an easy way to make sure that you have the smoothing that's best for almost any monitor.

I think the reason this feature is not turned on by default is probably to save some system resources (you know how particular those uber geek ubuntu users are =) !), but nevertheless its super easy to do whatever you want in the operating system. Which, of course, is absolutely great!

Sunday, 21 December 2008

Use Active Screen Corners for increasing productivity on a Mac and Linux

0 Comments
One thing I love about Macs (and now also in new Linux distros) is that they are filled with all kinds of productivity features. Apart from the fact that it doesn't need constant updating and anti-virus checks, it also has a great little feature called Active Screen Corners. If you've never used this before, then here's how it works.

Once the feature is turned on (instructions on how to do that below...), you can move your mouse to one corner of the screen (be it the upper right hand corner, or the bottom right hand corner) and have your mac do pre-programmed tasks.

For example, in my case, I have the lower left corner set as my 'Expose' corner. So if I want to activate expose all I need to do is move my mouse over to the bottom left corner and it's does the same thing as pressing the F9 button. So instead of searching around for a keyboard shortcut or a button, you can simply move your mouse to one corner. This is much more efficient, faster and might save you some repetitive strain injuries as well.

In this post I'll only provide instructions for how to enable and play around with the active screen corner feature on a Mac. However, there are several other posts/articles/books/manuals out there that deal with how to do the same thing on Linux. But at this moment, I don't have linux installed on any of my machines, nor do I remember how to set the feature.

Anyway:

Enabling Active Screen Corners on a Mac

  1. Click on the Apple Button at the top left hand corner of the screen and click on 'System Preferences...'
  2. Click on Expose and Spaces (or just Expose if you're on Tiger)
  3. Switch to the Expose tab if you aren't already in it.
  4. Under Active Screen corners - choose your settings. (Each drop down list refers to one corner.... so if you move your mouse to that corner, the computer will perform those tasks)
  5. Once you are done simply close the System Preferences Window
For your reference, here's what the 'different wording' on the options mean.
All Windows - Does Expose
Application Windows - Does the same thing as F10 where it only performs Expose on Application Windows
Desktop - Shows the Desktop
Dashboard - Shows the Dashboard
The other options like 'Start Screensaver' or 'Sleep Display' are pretty self explanatory.

I must mention here that I've been searching for the 'Sleep Display' option for a while, because I like to turn off the display to save power when I'm still using my computer (for tasks like listening to music) on the go... or when I'm trying to sleep with my mac turned on. So having that as an Active Screen Corner is awesome too.

That's it. Enjoy the new productivity! And believe me, its really handy when you have a bazillion windows on the desktop.

Friday, 17 October 2008

Full-screen distraction free writing environments for Windows and Linux

1 Comments

I love the idea of WriteRoom for the Mac, but it's a Mac only application. If you're on Windows or on Linux you'll probably have to use these free alternatives (the non-free alternative being “buy a Mac”). All of them perform the same tasks and have similar interfaces.

Unlike WriteRoom, however, these applications do not have a scrollbar for spell check. They're all black windows with green text and that's pretty much it. Of course, you can change the colour of the background and the text

JDarkroom for Windows and Linux

A simple full-screen text editor

image

You can download it here.

Darkroom for Windows

From the website:

Dark Room is a full screen, distraction free, writing environment. Unlike standard word processors that focus on features, Dark Room is just about you and your text.

Basically, Dark Room is a clone of the original WriteRoom that is an OS X (tiger) exclusive application. It is a child of necessity, as there were no viable alternatives in Windows to produce the same behaviour. Sure, you can kind of emulate the behaviour by jumping through a bunch of hoops in Word/Writer, but it isn’t the same. Also, you can do something similar in emacs, but who wants to learn a bunch of obscure keyboard shortcuts?

The goal of the project is to capture the essence of WriteRoom, while keeping it simple and just as free.

image

You can download it here.