IMDB can detect the country you are from and it changes some movie titles according to that. I find it very annoying. To disable this feature, browse IMDB via http://akas.imdb.com. In this case, movie titles will be displayed in the original language.
This tip is from here.
I moved the Windows entry in
/boot/grub/menu.lst to the first position. When Ubuntu installed a new kernel, the Windows entry was wiped out :( How to get it back?
A Windows entry looks like this:
title MS Windows XP root (hd0,0) savedefault makeactive chainloader +1
The question is: how to figure out the numbers of the Windows partition (“
hd0,0” in this example)?
Execute the following command:
sudo fdisk -l
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS ...
My Windows is on “sda1″, i.e. on disk “sda”, on partition “1″. For GRUB, “sda” is “hd0″, while partition “1″ is “0″. That is, GRUB starts indexes with 0.
This post is based on this thread.
I installed the latest Vuze on an Ubuntu 10.04. I tried to execute the script “vuze” innocently, but I was attacked with the following error message:
... Caused by: java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM ... Azureus TERMINATED.
The problem is that the
swt.jar shipped with Vuze is a 64-bit version, thus it doesn’t run on my 32-bit machine. Why is Vuze shipped with a 64-bit library? No idea…
Solution: replace the
swt.jar file with a 32-bit version.
Visit http://www.eclipse.org/swt/ and download the stable Linux release. From the zip file extract
swt.jar and put it in the Vuze directory (by overwriting the 64-bit
In some countries PPP over Ethernet (PPPoE) is a common protocol for broadband (ADSL or cable) connections to an ISP (internet service provider).
(For instance, in Hungary DIGI is a very popular service provider. Their cable connection uses PPPoE.)
To configure Ubuntu with PPPoE, you have two solutions.
The easy way
Use a router :) In the configuration part of the router you will have to choose “PPPoE”, but once it’s done, you just have to connect your machine to the router.
The harder way
If you connect the cable directly to your machine, you will need to set up a PPPoE connection. Execute the following command:
This is an interactive configuration tool, just follow the instructions. You will have to provide the username and password that you got from your ISP. At the end it will ask if you want to start your network connection when you switch on your machine. Choose “yes”.
The network connection can be started manually with the command “
pon dsl-provider“; you can stop it with “
poff“. If you run the command “
ifconfig“, you should see the device “
I just figured out that you can upgrade an Ubuntu LTS to the next Ubuntu LTS release. This means that 8.04 can be upgraded directly to 10.04 for instance. There is no need to upgrade to 8.10, etc.
We have an old machine and I put Ubuntu 8.04 on it a long time ago. Since it reached its end of life in May 2011, I was glad to see that I could upgrade to 10.04 easily.
At the very end of the upgrade process I had a little problem: the updating stopped and a warning message notified me that the update process was not completed. It has already happened to me some times. At this point I opened a terminal and executed the
good_shape_safe.sh script (use the
*_safe.sh version). This script could correct the setup process and put my Ubuntu in a consistent state.
We have an old machine that I tried a few days ago. It has Ubuntu 8.04 on it with an integrated Intel graphic card. I remember I was using it with a resolution 1024×768 but now it started in 640×480. Under System -> Settings -> Screen Resolution there was only one option: 640×480. How to switch to 1024×768?
I checked the config file /etc/X11/xorg.conf but it only had one entry with 640×480. So I decided to regenerate this file from scratch.
# First, close all applications under Gnome. # Go to "deep console" with CTRL+ALT+F1. # Then stop the X: $ sudo /etc/init.d/gdm stop $ sudo Xorg -configure # it will create /root/xorg.conf.new # backup your current xorg.conf file: $ sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak # install the new config file: $ sudo mv /root/xorg.conf.new /etc/X11/xorg.conf
Here is the
xorg.conf.new file I got. As can be seen, resolutions are set “0 0″ everywhere, so I had to customize it a bit.
I wanted to use my monitor in color depths 16 or 24, so I modified these lines:
SubSection "Display" Viewport 1024 768 Depth 16 EndSubSection SubSection "Display" Viewport 1024 768 Depth 24 EndSubSection
Here is the new
xorg.conf config file.
Now restart X and the resolution should be 1024×768:
$ sudo /etc/init.d/gdm start
Vim is one of the best text editors (if not THE best…). You can learn the basics in 30 minutes. All you have to do is launch the following command:
Then follow the instructions.
Vim has a learning curve, I admit, but it’s logical and not complicated. You don’t have to learn all its tricks at once. Learn the basics with
vimtutor, read it over again if you need, then start using it. If you need some intermediate stuff that is not explained in the tutorial, look after it on the web.
Warning! Vim is highly addictive! Once you get used to it, you don’t want to use any other text editors. You’ve been warned! :)
You can find my
.vimrc settings here.
I wanted to submit a paper but they required the LaTeX source too, including the images. They accepted EPS images but not PDF! WTF? All my images are in PDF format. How to convert them to EPS?
pdftops -eps file.pdf
This tip is from here.
Here I had another difficulty: EPS images are not supported by
pdflatex. Great! So I had to switch back to the old
Compilation with pdflatex:
#!/bin/bash MAIN=main.tex pdflatex $MAIN.tex bibtex $MAIN pdflatex $MAIN.tex pdflatex $MAIN.tex \rm *.aux *.blg *.dvi *.log *.bbl *.flg *.idx *.ind *.lof *.lot *.toc *.glo *.gls *.ilg 2>/dev/null
Compilation with latex:
#!/bin/bash MAIN=main.tex LATEX=latex $LATEX $MAIN.tex bibtex $MAIN $LATEX $MAIN.tex $LATEX $MAIN.tex dvips $MAIN.dvi -o $MAIN.ps ps2pdf $MAIN.ps \rm $MAIN.ps *.aux *.blg *.dvi *.log *.bbl *.flg *.idx *.ind *.lof *.lot *.toc *.glo *.gls *.ilg 2>/dev/null
I installed Truecrypt from a
.deb package. Sometimes, when I copy lots of files to an encrypted volume, Truecrypt freezes. What’s worse, it freezes the whole machine and the only way to reboot is to press the power button. WTF?
Update: this damn thing still freezes :( If someone has a solution for this problem, let me know.