Wednesday, August 31, 2011

Solution for Fan Problems in Ubuntu Running on a Toshiba Laptop

I have been running Ubuntu on my Toshiba Satellite laptop since I bought it. One pesky problem I have is that the fans run full speed. Here is the solution I found that fixes this problem for me.

After a lot of searching I found that I needed to add the acpi_osi kernel boot parameter in order to make the fans work properly. First, I tried it temporarily by manually editing the boot parameters in grub.
-Boot to the grub menu
-Use the arrow keys to select the default Ubuntu entry (usually the first one)
-Press "e" to edit the boot parameters
-Arrow down to the line that begins with: linux /boot...
-Go to the end of this line and add a space and then add:
-Press CTRL-X to boot

The above change only lasts for the current session. The change is lost on a reboot.

If this works, we can make this change permanent.
-Use your text editor of choice to open /etc/default/grub. You will need to run it with (gk)sudo, e.g.

-Look for the line beginning with GRUB_CMDLINE_LINUX_DEFAULT
-At the end of the line add: acpi_osi=\"Linux\" (note that since the parameters after the equals sign are enclosed in quotes, we need to escape the quotes around "Linux" with backslashes)
-The line should look similar to this: 
-Generate a new grub config file:


Now the default Ubuntu boot selection will include the change and hopefully the fans will work properly.

Tuesday, August 23, 2011

Foray into 4G

I traded in my 3G USB modem that I use for internet access for a 4G mobile hotspot. The speed difference is quite noticeable. I went from about 700 kbps/400 kbps (down/up) to 5 Mbps/1.5 Mbps. I'm right on the edge of the 4G coverage area but so far I've only seen it drop down to 3G briefly a couple of times.

This change required me to rethink my network layout. With the 3G modem, I had all of my devices connected to my wireless router. I then used the wireless connection on my laptop as the shared connection from the router to the 3G modem. So, can I connect my router to the hotspot? No, at least not running the factory firmware. Enter dd-wrt.

Dd-wrt is firmware that can be flashed onto some routers and opens up functions that are disabled by the factory firmware. I read that dd-wrt can be used in client mode, in which it can connect to another access point like any other wireless device. I have a D-Link DIR-615 Rev C router for which there is a version of dd-wrt, so I thought I would give it a try.

I flashed my router with dd-wrt (that little adventure might be another blog post) and set up client mode. The router is still running DHCP to serve IP addresses to my wired devices. And as expected, it connects to the hotspot just like any other wireless device.

So far client mode is working like a charm and 4G life is great. I still don't see a need for a 4G phone, but for my primary internet access it is definitely an improvement. Dd-wrt is a great project. Check it out if you want to unleash your router's full potential.

Friday, August 12, 2011

YUMI Multiboot USB Creator

My brother asked me to clean up his Acer Aspire One netbook. It had some viruses and was locking up. All of my tools that I use for this sort of thing are on boot CDs. Alas, the netbook doesn't have a CD/DVD drive. So I had to move my tools to USB thumb drives.

It seemed a waste of time and space to have to use a separate USB drive for each of my CDs. I started looking for a way to combine my tools onto a single drive. After some searching I came across YUMI. It is a Windows program that allows you to install multiple operating systems, system tools, antivirus programs, etc. onto a single USB drive. Perfect.

YUMI takes an iso file and copies its contents to the USB drive and creates the appropriate menu entries. YUMI has a list of certain software that it can work with, but if your tool isn't in the list it also has an option to try booting an unknown ISO image.

There is no installation process for YUMI, just download and run. After you agree to the license, the main dialog is displayed.
Select the drive letter that corresponds to your USB drive. You want to make sure you choose the correct drive.

Next choose the software you want to add from the list.
Next, browse to the ISO file and select it. YUMI looks for particular filenames, so if you have a different version than what is expected, you can browse to the folder containing the ISO and then enter *.iso in the filename box in order to find the ISO file.
After selecting the ISO the filename will change from red to green. Notice I used *.iso to select a different filename than what was expected.
Click Create and YUMI will put everything into place. Continue adding tools as needed.

With the price of USB thumb drives these days, YUMI is great for consolidating all your tools and live CDs onto a single USB drive. I now have all of my most used tools on one 8GB USB drive. This is exactly what I was looking for.

Tuesday, August 9, 2011

Internet Connection Sharing in Ubuntu 11.04 using Firestarter

Unfortunately, my only option for internet access is to use a 3G modem. I need to share this connection with my Bluray player and, more importantly, my Xbox. Firestarter makes this easy to do.

Firestarter is a GUI firewall for Linux that can enable Internet Connection Sharing and has lots of nice features.

I am assuming the network interfaces are already set up and working in Ubuntu. Install Firestarter from the Ubuntu Software Center or from a terminal:
sudo apt-get install firestarter

Start Firestarter which will open a wizard. Click Forward at the Welcome screen. On the Network Device Setup screen, select the interface that connects to the internet. Mine is ppp0 since I'm using a 3G modem. Click Forward.


On the Internet Connection Sharing screen, enable sharing and select the interface connected to your internal network. Mine is wlan0 for my wireless connection. If you want Firestarter to act as a DHCP server for the local network, enable this feature. The default DHCP server settings should be OK. If you have a router on the local network, it is probably already acting as a DHCP server so you won't need to enable it in Firestarter. Click Forward.


On the last screen, click Save to save your settings and start the firewall.


Notes for Xbox Live:
You have to forward some ports that Xbox Live uses. Otherwise the Xbox network test will report a NAT type of Moderate (the goal is type Open). I never had any problems using Xbox Live with a Moderate NAT, but I wanted to set it to the recommendation of Open. Click the Policy tab and open ports 3074 and 88. There are other ports that Microsoft recommends to forward, but these two gave me Open status.

Monday, August 8, 2011

Guake - The ever-present terminal

I use the terminal window a lot. One of the first things I do when I log in to my system is open a terminal window. Occasionally I have two or three open at a time.

Then I came across Guake. It is a top-down terminal for Gnome in the spirit of the console in the game Quake. Press F12 and you have instant access to a terminal window. Press F12 again to hide it. Or if you're a mouse type person, click the tray icon to view/hide the window.

If you're a terminal junkie, it might be worth a look. I'm using it on my Ubuntu 11.04 system without any problems.