[Linux] xclip command

Copying The following command echo “foo” | xclip -selection clipboard will copy “foo” to you clipboard. Try pasting it elsewhere. The clipboard selection is the one used by Ctrl-C Ctrl-V commands. The default selection of xclip is the one used when you select text in linux (XA_PRIMARY). A shorter version would be: echo “foo” | […]

How to use cedilla on Ubuntu 11.04 with a macbook keyboard

Use the international keyboard. However, the only letter that will not display correctly is ‘ + c, which will display ć. Solution: sudo gedit /usr/lib/gtk-2.0/2.10.0/gtk.immodules Find the line: “cedilla” “Cedilla” “gtk20” “/usr/share/locale” “az:ca:co:fr:gv:oc:pt:sq:tr:wa” And change by this one: “cedilla” “Cedilla” “gtk20” “/usr/share/locale” “az:ca:co:fr:gv:oc:pt:sq:tr:wa:en”

Automatic backup with cron and rsync

Cron is a Unix scheduler, useful to automate tasks. Rsync is a tool to synchronize files and directories between from one location to another, even if in remote machines. It is smart enough to copy only files that were updated, making it suitable to perform automatic backup. Combining these tools, it’s very simple to perform […]

Error on mounting /dev on /root/dev

Today I received the following error when starting up ubuntu: mount: mounting /dev/disk/by-uuid/c3c4608e-fb99-4989-bfe2-ede4aec72b38 on /root failed: Invalid argument mount: mounting /dev on /root/dev failed: No such file or directory mount: mounting / sys/ on root/sys failed: No such file or directory mount: mounting /proc on /root/proc failed: No such file or dirctory Target filesystem doesn’t […]