Entries Tagged as 'How-To'

SCRUB

Its Linux Wednesday! This post is slightly later than usual, but I was upgrading to Xubuntu 8.04, review next week :) . Anyway, today I will be telling about a small application I run once month, called SCRUB. This application is the closest thing I have found to a defragment software for Linux. Basically, its a Disk scrubbing program. This utility writes patterns on files or disk devices to make retrieving the data more difficult. It operates in one of three modes:
1) the special file corresponding to an entire disk is scrubbed
and all data on it is destroyed.
2) a regular file is scrubbed and only the data in the file
(and optionally its name in the directory entry) is destroyed.
3) a regular file is created, expanded until
the file system is full, then scrubbed as in 2).

SCRUB on my PC takes about 20minutes to complete, but will change depending on the speed of your PC and your HDD size. I have noticed speed increases on my PC and it has in the past cleared some room on my HDD. I would recommend you download this application, and run once a month to make sure your PC is running at its best.

Link


Getting Lexmark Printers to work on Linux

Its Wednesday, its that time of week for my post about Linux. I think its about time I gave it a name, it will now be known as “Linux Wednesdays!”

One of the hardest hardware manufactures to get to work on Linux is Lexmark. Lexmark make very good quality printers at a very good price, but there are not many Linux drivers for them. For anyone thinking about getting a printer for Linux, get a HP printer, there are great drivers for all their printers.

When I was using Windows, I purchased the Lexmark Z640 printer. The Z600series is very popular home printer, cheap and does the job. However, there are only drivers for Windows. So when I switched to Linux, my printer did not work. I spent my weeks of research, it turns out that Lexmark do provide drivers for the Z605 printer for RedHat users. I download these drivers, than converted the rpm file to deb and installed. I had finally got my colour inkjet printer to work on Linux.

To help Lexmark users out, below are the two drivers. Install “z600cups_1.0-2_i386″ first and then install “z600llpddk_2.0-2_i386″. I also understand these drivers may work with other Lexmark inkjet printers.

Right click and click “save as”

z600cups_1.0-2_i386.deb

z600llpddk_2.0-2_i386.deb

Hope these drivers help, “Linux Wednesdays” back next week.


Cleaning up all those unnecessary junk files off Linux

Its Wednesday, Here is this week’s main artcle on Linux. I’m going to show you to today how to clean up your hard drive. I found these on the Ubuntu forums, by WackToMack.

Getting rid of Residual Config packages
In Synaptic Package Manger, there is a built-in feature that gets rid of old Residual Config packages. Residual Config packages are usually dependency packages that are left behind after you uninstall a package from your machine. To use this feature, go to System > Administration > Synaptic Package Manager. On the bottom left hand corner of the window, click the Status button. In the list above the Sections, Status, Search, and Custom buttons, you should see the following text: Installed, Installed (local or obsolete), Not installed, Residual config.

Click on the “Residual config” text. (If the “Residual config dialogue does not appear, that means you do not have any Residual Config packages on your machine). Do you see the packages that popped up in the window on the right? Those are the Residual Config packages. To get rid of these pests, click on the box to the left of the package name and select “Mark for Complete Removal”. After you have done that for all of the Residual Config packages, look at the top of the Synaptic Package Manger window. Do you see the green check mark with the text “Apply” right under it? Click that button, and it will get rid of the Residual Config packages


Getting rid of partial packages

This is yet another built-in feature, but this time it is not used in Synaptic Package Manager. It is used in the Terminal. Now, in the Terminal, key in the following command (or you can just copy and paste from here):

sudo apt-get autoclean

Enter your password when prompted and press Enter. See the package names that appeared in the Terminal? Those were partial packages that have just been deleted. Say goodbye! That’s it! This command deletes the not-so-fully-downloaded packages that you acquire when a package that is being downloaded is suddenly cancelled.

Getting rid of unnecessary locale data
For this tip, you need to download the “localepurge” package found in Synaptic Package Manager. “localepurge” is just a simple script to recover diskspace wasted for unneeded locale files and localized man pages. It will automagically be invoked upon completion of any apt installation run.

After opening up Synaptic Package Manager, click the Sections button on the bottom left hand corner of the window, if it is not already clicked. Next, at the top of the Synaptic Package Manager window, click the Search button. In the search window, key in the following text :

localepurge

Did the “localepurge” package popup in the package window? It probably did, unless you do not have the correct Repositories. Now, click on the box next to the “localepurge” package name. Click on Mark for Installation. Now click the Apply button at the top of the window and wait for the downloading and installing of the “localepurge” package to finish. Once it is done, a new window should popup that has a bunch of abbreviations on it. for example:

en
fr
po
sp
ka
etc…

You want to select the abbreviation of the language that you speak, or use with Ubuntu, ignoring the capitalized ones. For example, I speak english, so I would select the “en” abbreviation. A french speaker would select the “fr” abbreviation. So on and so forth… Then click next. All done!

Getting rid of “orphaned” packages
For this tip, you need to download the “deborphan” package found in Synaptic Package Manager. “deborphan” finds “orphaned” packages on your system. It determines which packages have no other packages depending on their installation, and shows you a list of these packages. It is most useful when finding libraries, but it can be used on packages in all sections…

To open Synaptic Package Manager, follow the instructions in Tip #1. After opening up Synaptic Package Manager, click the Sections button on the bottom left hand corner of the window, if it is not already clicked. Next, at the top of the Synaptic Package Manager window, click the Search button. In the search window, key in the following text :

deborphan

Did the “deborphan” package popup in the package window? It probably did, unless you do not have the correct Repositories. Now, click on the box next to the “deborphan” package name. Click on Mark for Installation. Now click the Apply button at the top of the window and wait for the downloading and installing of the “deborphan” package to finish. Once that is done, open up the Terminal.After you have gotten the Terminal open, key in the following command (or copy and paste from here):

sudo deborphan | xargs sudo apt-get -y remove –purge

Enter your password when prompted and press Enter. See the package names that appeared in the Terminal? Those were orphaned packages that have just been deleted.

Adding a “Find orphaned packages” to Synaptic Package Manager
This is not really much of a tip on how to get rid of junk files. It’s more like adding a “deborphan” shortcut to Synaptic Package Manager so that you don’t have to use the Terminal to find “orphaned” packages.

Please note: You must have the “deborphan” package installed or else this will not work.

To start this out, open up Synaptic Package Manager with the instructions from Tip #1. Now, at the top of the Synaptic Package Manager window, click the Settings button, followed by the Filters button. In the Filters window, on the bottom left hand corner, push the New button. You can name the new Filter if you like, but it is not necessary. I named mine “Orphaned”. With your new Filter selected, in the “Status” tab on the right, click the Deselect All button. Next, check the “Orphaned” option under the “Other” category. Then click the OK button.

To use this new filter, click the Custom button on the bottom left hand corner of the Synaptic Package Manager window. You should see the following text, or something similiar :

Broken
Marked Changes
(Whatever you named your “deborphan” Filter)
Package with Debconf
Search Filter

Click on the “(Whatever you named your “deborphan Filter)” text. Do you see the packages that popped up in the window on the right? Those are the “orphaned” packages. To get rid of these buggers, click on the box to the left of the package name and select “Mark for Complete Removal”. After you have done that for all of the “orphaned” packages, look at the top of the Synaptic Package Manger window. Do you see the green check mark with the text “Apply” right under it? Click that button, and you’ll get rid of all the “orphaned” packages

Thanks, WackToMack for these great tips. Hopes these tips helped you clear some space on your hard drive, it worked very well for me :)


Tweaking the Ati Radeon in Linux

Have not posted in about week, so I thought its about time I posted about an interesting application I found. Two weeks ago, I posted about getting 3D acceleration on the ATi Radeon Cards in Linux.

Today I was trying to find ways to get better performance out of my card. I eventually found a great application called DRIconf. This is the GUI configuration setting for the Direct Rendering which I had shown you two weeks ago.

driconf

click here for full-size image

You can install DRIconf from the Ubuntu repositories (sudo apt-get install driconf). Once you have install, loaded the application up. There is only one option you want to change. Its the last one in the screenshot, HyperZ. This needs to be set to ‘Yes’. HyperZ is graphics processing technique which was developed by ATi, it was first implemented with the R100 cards (Radeon 7000series). It has been proven to give around a 20% performance increase, I have also seen about a 20% performance increase as well.

So if you want to get a faster Radeon card on Linux, try out DRIconf.

DRIconf wiki link


Fixing ATi Radeon on Linux

The main problem with Linux is hardware compatibility. Manufactures produce drivers for Windows and Mac, but hardly ever for Linux. Luckily, the linux community create drivers for 1000s of different pieces of hardware. However, sometimes they don’t work great. One of the worst hardware manufactures for Linux is ATi. If you are using Linux or want to start using it, it is far better to use nVidia, all their cards have great support.

For years, the Linux community has had to make ATi drivers. However recently, ATi have create their own drivers for ATi Radeon 8500 & above. People, such as myself, who have older cards have to use the binary driver. They are generally good, but they have their issues. One of the big issues is 3D acceleration. For some reason, they only come with 2D support. Finally, I have got full 3D acceleration.

It is very simple to do. All you need to do is go to the terminal and type ’sudo aptitude install libgl1-mesa-dri’, and let your computer do the rest. Once done, type ‘glxinfo’ into the terminal, you will see that you have 3D acceleration enabled.

This will work with both ‘ati’ and ‘radeon’ binary drivers. Personally I recommend you use the radeon driver, it has better performance for the radeon cards. For people who have an 8500 or above, you may want to consider using the binary ‘radeon’ driver than the official ATi drivers, it has been proven that you can get a far greater performance using the ‘radeon’ driver than the official ATi drivers, as much as 20 to 30fps more.