Ubuntu

Laptops and Ubuntu

You must have the following essential stuff installed for power scaling in laptops to work:

sudo apt-get install cpufrequtils
sudo apt-get install laptop-mode-tools
sudo apt-get install pm-utils

Source: http://forum.notebookreview.com/linux-compatibility-software/257220-m133...

Installing Gtk2::Sexy on Ubuntu

First error message and fix

Can't locate ExtUtils/Depends.pm in @INC

sudo perl -MCPAN -e 'install ExtUtils::Depends'

Second error message and fix

Can't locate ExtUtils/PkgConfig.pm in @INC

sudo perl -MCPAN -e 'install ExtUtils::PkgConfig'

Third error message and fix

Package libsexy was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsexy.pc'
to the PKG_CONFIG_PATH environment variable

sudo apt-get install libsexy-dev

CheckGmail fails with "Error: Incorrect username or password"

For all the gory details, visit Updating CheckGmail to Fix Login Errors.

For the lazy, just do this:

svn co https://checkgmail.svn.sourceforge.net/svnroot/checkgmail /tmp/checkgmail
sudo cp /tmp/checkgmail/checkgmail /usr/bin
rm -rf /tmp/checkgmail

Voila, fixed.


Troubleshooting

The first time I did this, I got the following error:


Changing timezones in Ubuntu

GUI

  • Right click on the clock that displays in your taskbar.
  • Choose "Adjust Date & Time"
  • If the resulting window is greyed out, click "Unlock" at the bottom and enter your password.
  • Choose your timezone.

Command-line

sudo dpkg-reconfigure tzdata

Flashing a BIOS with an exe in Ubuntu

For step-by-step instructions, go read the mastermind\'s article, from which this is derived. This is mostly for my future reference. I was given an exe (M1330A12.EXE) by Dell and told to flash my BIOS with it. Right. Then I was given the world\'s most incomprehensible instructions on how to supposedly get it working with linux. Thank god for the aforementioned article -- the following worked like a charm.

Unresolved: <Ctrl>Tab for gnome-terminal

Firefox uses <Ctrl>Tab and <Ctrl><Shift>Tab for switching between tabs. Eclipse at least lets you assign these same keybindings to its tabs. Wouldn't it be nice if gnome-terminal would allow the same thing? No such luck.

The symptom, as described by Daniel DiPaolo:

Don't clear out /tmp on boot

Yes, /tmp is for temporary files... but cleaning it out on every boot? Whose bright idea was that?

Here's how to fix it. In /etc/default/rcS, locate this line:

TMPTIME=0

This is where the number of days old a file needs to be for it to be deleted on boot is supposed to go. Notice the offending 0. That means delete everything, every time. Change this value to something sensible like 15 or 30.

Other distros use cron to clean out /tmp, and the default for those is 720 hours (30 days).

Installing fonts

This is the quickest way I've found to install fonts. I'm sure there's an equally easy system-wide method, but I haven't stumbled upon it yet... this is working for now.

  • Create a directory called .fonts in your home directory
  • Copy .ttf files into ~/.fonts
  • Done

Bringing eth1 (wireless network card) up/down on Ubuntu

For reasons that elude me, the normal way of handling this does not work for wireless interfaces:

sudo ifdown eth1
sudo ifup eth1
sudo dhclient

...but this does work:

sudo ifconfig eth1 down
sudo ifconfig eth1 up
sudo dhclient

Thanks to Lih for figuring this one out...

Internal web browser in Eclipse

I was getting this error:

Embedded browser not available

java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3346 or swt-mozilla-gtk in swt.library.path...

Apparently the xulrunner package is needed:

sudo apt-get install xulrunner

...then close and reopen eclipse. Works like a charm.

#
Syndicate content