Scripts – Lots of Nautilus Scripts September 25, 2005Posted by Carthik in snippets, ubuntu.
Go take a loot at the g-scripts homepage, home of many nautilus scripts.
A nautilus script is a bash script that when placed in a special nautilus scripts directory will add menu items to the right click menu when you are using the nautilus file manager. Useful scripts include a script to add more scripts!
Seriously, though, you could add scripts that give you a way to open a terminal window from a specific directory in nautilus, to add selected audio files to the playlist queue in xmms, and more. Check it out.
While we are on the subject of scripts, also visit ShellDorado with scores of shell scripts to do all sorts of wacky things at the terminal.
Flash not displaying text properly on Ubuntu? September 17, 2005Posted by Carthik in snippets, ubuntu.
The solution is to install gsfonts-x11 and msttcorefonts by doing:
$ sudo apt-get install gsfonts-x11 msttcorefonts
The former allows the X server to use the Ghostscript fonts to display text on your screen and the latter installs some common, even essential, Microsoft core fonts, like Verdana.
This should lead to a smooter experience on flash.
What do you lose by doing this? Nothing. You lose a little clarity if you don’t install these, so do it
Script to Post Terminal Output To Pastebin September 12, 2005Posted by Carthik in applications, snippets, ubuntu.
A pastebin site is a site where users can post just about anything in text for others to look at. This is handy when it comes to requesting support at the #ubuntu support channel, for example. Suppose someone says “paste the output of lspci” you can use Dennis’ script to do the job for you and point the person to the pasted output from the terminal. If you use the neat little pastebin script, then you can redirect the output from the terminal and have it pasted in the pastebin of your choice without having to do the copying and pasting manually. Neat!
After you install the script, you can use it to
a) Paste standard output:
For example, to paste the output of lspci, do
$ lspci > pastebin
b) Paste output and error messages:
$command >pastebin 2>&1
where “command” is the name of the command for which you want the output and the error messages to be recorded.
and so on… it can make life a lot easier!
Code Snippets – Lots of Goodies September 12, 2005Posted by Carthik in commands, snippets, ubuntu.
1 comment so far
Peter Cooper has set up this neat website where people can submit and save code snippets so others can reuse them. Though not entirely dedicated to linux, or ubuntu, you still can find snippets that will be useful for your day to day needs – depending on what you use your computers for.