Tip: Can Download Torrents But Cannot Browse

I have recently purchased a new home office router that connects two desktops and one laptop by wireless connection. Back at the store, I made my mind to purchase Linksys WRT54G over D-Link (I forgot the model) because there are a lot of good feedbacks on Linksys.

Everything was good the first two weeks we were using the router. The signal strength is good and my laptop can get decent W-Fi signal anywhere inside. Then the network became rather choppy, pings are intermittent, and worst, one desktop (particularly my desktop PC) cannot browse.

The weird thing I was able to download stuff using torrent, my Pidgin can sign in to my accounts on Yahoo and MSN Messenger and streaming video and music works. Everything works, except for the browser. I blamed the Linksys for this and contacted the support thrice, and I was given a lot of configurations that should be done in the router settings, none of which solved my problem.

Googling around got me some help and apparently, this weird symptoms are caused by the traffic from torrent downloads. To fix this, these settings must be done on the torrent client:

1. Reduce the download and upload speed of torrent client. Since I use the lightweight uTorrent Client, I can simply do this by right-clicking the uTorrent taskbar and selecting the download speed that I want. The procedure could be different depending on your client.

2. Disable DHT. DHT stands for Distributed Hash Tables and disabling this in torrent client effectively solved my problem with browsing. Again in uTorrent, this can be done by pressing CTRL+P to open the Preferences window and selecting the BitTorrent tab. Uncheck the DHT selections and click OK to save the new settings. Restarting the client helps too.

I did these two steps and this solved the issue of not being able to browse the Internet while downloading torrents.

Popularity: 7% [?]

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: 32% [?]

Tip: Using dig to Show Nameservers

If the need to scan a list of domains arises, be it one or one hundred, I have one handy Perl script that will list all nameservers of a domain. This script uses the command dig, and filters and lists the result. Do note that Perl must be installed to do this script.

# vi mx_checker.pl

#!/usr/bin/perl

$file=$ARGV[0];
chomp($file);

@list = `cat $file`;

foreach $domain(@list) {
chomp($domain);
$ns = `dig ns $domain +short`;
chomp($ns);
$ns =~s/\n/\t/g;
print “$domain\t$ns\n”;
}

To make the script executable, change the permissions:

# chmod 700 mx_checker.pl

Then build the list of domains by listing it on a text file, one domain per file.

# vi domains.txt

google.com
yahoo.com
usautoparts.com

Now that the script and domain list is ready, it is time to execute the script:

# ./mx_checker.pl domains.txt

The nameservers will then be listed and can be piped to a text file, which can be exported to a spreadsheet as tab-separated values.

# ./mx_checker.pl domains.txt >> nameservers.xls

Popularity: 9% [?]

Linux Tip: Reset Root Password

How to reset root password?

If you are as forgetful as I am, you have probably forgotten what password you have set for root user. Today, I am going to teach you a little tip on how to reset the root password.
Read the rest of this entry »

Popularity: 18% [?]

Google Cheat Sheets

If you are interested in Google domains, services or search operators, then get the Google Cheat Sheet. This PDF file contains the extensive list of thing that I am sure everyone wants to know.

Download the cheat sheet PDF here or view the screenshots:

Cheat Sheet Page 1

Cheat Sheet Page 2

Popularity: 23% [?]