In Google, you can use the search term “
define:word” to get the definition of a given word. Google can also pronounce the word.
------------------------------------------ Jabba's Interactive Mini Dictionary v0.1.0 q - quit | c - clear ------------------------------------------ >>> barkeeper ===Definition=== (noun) A person who owns or operates a bar for the sale of alcoholic beverages. ===Examples=== (1) Aaron called the barkeeper over and asked for a beer. (2) The barkeeper was the only human in the establishment; all of the patrons were stout, broad-faced halflings. >>>
It’s not visible here, but the script pronounces the given word too.
This post is based on a comment of one of my readers called gourgi.
You want to launch a graphical application with administrator privileges. Shall I use “sudo”?
No. In the case of graphical applications, you should use “gksudo” instead. “You should never use normal
sudo to start graphical applications as root. You should use
kdesudo on Kubuntu) to run such programs.
HOME=~root, and copies
.Xauthority to a
tmp directory. This prevents files in your home directory becoming owned by root.” 
You want to download a file from a given site with your favourite wget utility but you get a “
403 Forbidden” error in your face. Of course, everything works from your browser. What to do?
If it works from the browser but it fails with wget, then the site must check your user-agent. If it sees “
User-Agent: Wget/1.12 (linux-gnu)” (version may vary), then it simply blocks you.
But don’t fear for a second. Simply fake a different user agent with wget and continue downloading.
wget --user-agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" http://host/file.jpg
If you don’t want to provide a user agent each time, put the following your
# custom .wgetrc file user_agent = Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0
Amit Agarwal has a nice post entitled “Download the Audio Pronunciation of Words from Google“.
Take the following template URL:
And replace WORD with the word you want to hear pronounced. With mplayer and vlc I couldn’t play them directly, first I had to download them with wget.
This is implemented in my jabbapylib library, see here.
RUIN – An animated short set in a post-apocalyptic universe.
Thanks Jeszy for the link.
With mc, you want to copy lots of small files to an NTFS partition. However, for every file it drops a warning: “cannot chmod target file”. Either you switch to root or you sit next to the keyboard and press Skip for every single file. WTF?
When you press F5, untick the option “Preserve attributes“. Done.
“Minitube is a YouTube desktop application. With it you can watch YouTube videos in a new way: you type a keyword, Minitube gives you an endless video stream. Minitube is not about cloning the original YouTube web interface, it aims to create a new TV-like experience.“
sudo apt-get install minitube
Canonical started to integrate everything in the Ubuntu Software Center. Software Sources is available from this, but how to launch it from the command-line?
Updated according to the comment of gourki.
You have a guest operating system in Virtualbox and you want to exchange some data between the host and the guest. For this purpose you want to use a shared folder. The shared folder should be writeable in the guest too.
In my case I had two Ubuntu systems as host and guest.
- create a shared folder on the host (e.g.
- create a shared folder on the guest (it can have the same path, e.g.
- install guest additions under the guest (Devices -> Install Guest Additions…), then restart the guest
- under the guest, go to Devices -> Shared Folders… Under Shared Folders, add the path of your shared folder (here
/opt/shared.folder.vbox). You can tick Auto-mount and Make Permanent if you want. Note that in my case, although I selected these two options, the shared folder was not mounted automatically.
Make the shared folder writeable
On the guest, you can manually mount the shared folder with the following command:
sudo mount -t vboxsf shared.folder.vbox /opt/shared.folder.vbox
As I figured out, only root can mount a shared folder.
However, it mounts the folder in read-only mode! To make it writeable, I had to add the following line(s) to
/etc/fstab under the guest:
# shared folder shared.folder.vbox /opt/shared.folder.vbox vboxsf defaults,rw,auto,uid=1000,gid=1000 0 0
I use the system as a normal user called jabba, and 1000 is its user id and group id. It can be found in
/etc/passwd (columns 3 and 4):
$ cat /etc/passwd | grep jabba jabba:x:1000:1000:Jabba Laci,,,:/home/jabba:/bin/bash
After a reboot, this folder is still not auto-mounted :( You can mount it with:
sudo mount /opt/shared.folder.vbox
But now it should be writeable…
Auto-mount shared folder at each boot
Now let’s put the dot on the “i” :) If you want your shared folder auto-mounted at each boot, add this line to
/etc/rc.local on the guest:
Make sure that it comes before the line “