10 Things you didn't know you could do in Ubuntu

0 people talked about this
Stumble Upon Toolbar

Create website links that automatically install software

Sometimes if you’re trying to help somebody fix a problem, you’ll have to tell them how to install software. Yet for some Ubuntu newbies, even this can be confusing. The solution is to create a “software install” hyperlink within a web page (such as a forum posting), new email window, or Pidgin message window. To do this, simply click the “create link” button on the web page or within the email (the precise name of this will vary depending on the software/website used), and then type apt:packagename in the URL field, replacing packagename with the precise name of the package as listed in Synaptic.

Click to enlarge - CaseyTech

For example, let’s say you want to tell somebody how to install the thunar package, a lightweight file manager. If you’re creating an email with the instructions, ensure the new mail uses HTML (ensure HTML is checked on the Format menu), and then click Insert –> Link. In the URL field, delete what’s there, and type apt:thunar. Don’t worry about the Description field—leave it with the default contents that will probably mirror what’s in the URL field. Then click the Close button. Note that there’s a slight bug in Evolution that means, for some reason, the hyperlink won’t actually appear as a link until you type some more into the new mail window, or click the Send button.

Perhaps it goes without saying that should you ever receive such a link in an email, or see one on a website, you should be very wary (especially if there are also additional instructions telling you to add a new software repository). It would be easy to disguise a malicious link as something seemingly benign, although you will always be prompted to confirm the choice of software before installation.

Do stuff without touching the mouse

If you want to run an application, just hit Alt + F2 and then type the name of the program. If it needs to run with root privileges, just type gksu beforehand. For example, to run GNOME Terminal, you would type terminal. To run Gedit, type gedit. If the program is command line, check the Run In Terminal box (use the Tab key to move from field to field in the dialog box and hit the Space to select a field). This will then open a terminal window and run the command, but be aware that the terminal window will then close as soon as the command has finished, so you won’t be able to inspect the output. Want to browse to a file system location, but too lazy to grab the mouse and click the Places menu? Hit the forward slash (/), and then type the path into the dialog box that appears. Want to rename a file but don’t want to use the mouse? Just ensure the file is highlighted (use the cursor keys to highlight it if necessary) and hit F2. Then type the new filename. To change the file extension too (which isn’t highlighted for deletion by default), just hit Ctrl + a and then type the complete new filename.

Instantly Search Google for Any Word or Phrase

Have you ever been reading a document and wanted to look up something in Google? In Firefox you can just highlight the word or phrase, right-click it, and select Search Google. However, what if you’re reading, say, a PDF file? Or a man page in a terminal window? A very simple but effective solution is Googlizer, which you can install using Synaptic. Once installed, it’s added to the Applications –> Internet menu, so you’ll have to manually drag and drop it to a blank spot on the panel for quicker access. How it works is simple. Highlight any text, in any application, and then click Googlizer’s icon to instantly search Google. If a Firefox window is open, a new tab will be added showing the search results. Otherwise, Firefox will be started, and the search results shown. Give it a try. It’s one of those simple things that might just change the way you work forever. Googlizer can be personalized so that it searches the version of Google localized to your country, or even a non-Google search engine. To do this, you’ll need to discover the search URL for the engine you want to use. To do so, just perform a search using either the localized version of Google (for example, http://www.google.co.uk, if you live in the UK) or a different search engine. Then look at the URL for the part where your search term appears, and highlight/copy all that comes before. If I search for Ubuntu Kung Fu using http://www.google.co.uk, I get the following URL for the search results page:

http://www.google.co.uk/search?hl=en&q=Ubuntu+Kung+Fu&btnG=Google+
Search&meta=


…so I chop the end off, from the Ubuntu+Kung+Fu part onward, and I’m left with following, which I copy into the clipboard (highlight the text, and hit Ctrl + c ):



http://www.google.co.uk/search?hl=en&q=


Once you have the information, right-click the Googlizer panel icon, and select Properties. In the Command text field, add –url after googlizer, and then paste your Google URL. For example, I ended up with the following:



googlizer --url http://www.google.co.uk/search?hl=en&q=


You can also change the icon if you want by clicking the icon preview at the top left of the dialog box. When finished, click the Close button, and then test the new localized search. Here are some URLs that will make Googlizer use other search engines—just add these addresses after the –url part of the Command text field, as described earlier:



Yahoo.com: http://search.yahoo.com/search?p=
Ask.com: http://www.ask.com/web?q=
Microsoft Live: http://search.live.com/results.aspx?q=


Create a File Delete Command That Uses the Trash



The rm command doesn’t have a trash facility. Once files are deleted, they’re gone forever. However, you can create your own trash command, which, when used at the prompt, will move files and/or folders to Ubuntu’s standard trash folder. The files can then be recovered, if desired, or permanently deleted in the usual way by emptying the Trash folder. To add the new command, you’ll have to create an alias. You’ll need to edit the .bashrc file in your /home folder and add a line to the bottom, as follows:




  1. Open a terminal window, and type gedit ~/.bashrc.


  2. At the bottom of the file that appears, add the following new line:
    alias trash="mv -t ~/.local/share/Trash/files --backup=t"



  3. Save the file, close Gedit, and open a new terminal window to test your new command. To delete filename.doc, for example, you would type trash filename.doc. The new command will work on folders too, and multiple files/folders can be specified one after the other (for example, trash filename1.doc filename2.doc).



Repair Windows from Within Ubuntu



If Windows is refusing to boot, for whatever reason, you can try repairing the file system from within Ubuntu. Use Synaptic to search for the ntfsprogs package. Once it’s installed, unmount your Windows partition (if it’s mounted), and type sudo ntfsfix /dev/sda1 to check and fix the partition (assuming your Windows partition is /dev/sda1—likely if you installed Ubuntu in a dual-boot configuration on a computer already running Windows). This tip is also useful if you see the “Cannot mount volume” error when attempting to access your Windows partition from within Ubuntu.



Dump the Text on a Virtual Console to a File



If you’re trying to fix a problem, you might want to capture the output of a command for reproduction on a website forum, along with the command you typed to get the results. If you’re working in a terminal window, you can cut and paste, but what if you’re working at a virtual console? If you simply want to capture the result of a command, just redirect the output:



ls > output.txt 2>&1


This will send both the output and error output (if any) of the ls command to output.txt. If you want to capture the command you typed and any other command-line detritus (including output), use the screendump command. The following will send everything currently on the current screen (command-line prompts included) to a text file called output.txt:



sudo screendump > output.txt


The command has to be issued as root because of permission issues, but the resulting file will be owned by you.



Instantly Hide a File or Folder



Any file or folder whose name is preceded with a period (.) is hidden from view in Nautilus and also won’t appear in the list of shell commands such as ls, unless the user specifically chooses to view hidden files (ls -a, or clicking View –> Show Hidden Files in Nautilus). So to hide a file or folder, just rename it (select it and hit F2), and then put a period in front of the filename. Gone. If the file doesn’t vanish, hit F5 to refresh the file listing. To return the file to view, just remove the period. If you want to make a file disappear from Nautilus’ view of files (including the desktop) but still appear in command-line listings, add a tilde symbol (~) to the end. For example, to hide partypicture.jpg, change its filename to partypicture.jpg~. To hide text file, change its name to text file~.



Print at the Command Line



You can quickly send text or configuration files to the printer using the lp command. For example, to print the /etc/fstab configuration file, you would type lp /etc/fstab. The formatting of the printed page is rough (no margins, and non-proportional font used), but it’s OK for quick hard copy viewing. If you want you can set a top page margins using the -o page-top= command option. The following will print the same file with a one-inch (72 pica) margin at the top:



lp -o page-top=72 /etc/fstab


Note that for the lp command to work, you’ll need to first make your printer the system default (even if it’s the only one attached). To do so, click System –> Preferences –> Default Printer. Select your printer, and then click Set Default. Then click Close.



Listen to MP3s when no GUI is running



So you’ve tweaked Ubuntu into a state of disrepair. Any hope of a GUI is a pipe-dream, at least for the moment. While you hack away fixing things, wouldn’t it be nice to have some music to console you at the console? Just switch to an unused virtual console, login, and type sudo apt-get install vlc. VLC s a GUI media playback application normally used on the desktop, but it can also run with a text-mode interface—just start it with the -I ncurses command option (note that’s a capital I, not L). For example, to play back filename.mp3, I would type vlc -I ncurses filename.mp3. Multiple files can be specified one after the other, thus creating a playlist, or a wildcard can be used to playback all files in a particular folder (ie vlc -I ncurses ~/Music/*.mp3). Use the a and z keys to alter the volume. If playback is still too quiet (or too loud), switch to another virtual console and type alsamixer. Hey, presto—primitive but useful text-mode faders. Use the left and right cursor keys to move between faders. Use the up and down keys to change the values. Hit Escape to quit.



Turn your desktop into your /home folder



Do you use your desktop as a dumping ground for files, and pretty much ignore your actual /home folder, which is where you should store things? If so, you might be interested in this tweak, which effectively makes Ubuntu use your /home folder for the desktop, instead of the actual /home/username/Desktop folder. Anything saved to the desktop, such as files/folders dropped there, will be placed in your /home folder. Additionally, anything in your /home folder will appear on the desktop. To give this a try, start gconf-editor (hit Alt + F2 and type gconf-editor) and navigate to /apps/nautilus/preferences and put a check alongside desktop_is_home_dir. Then log out and back in again. Remember that the contents of your desktop haven’t vanished. They’re still in the Desktop folder in your /home folder.



BONUS TIP! Quickly Set Wallpaper with One Click



The easiest way of setting your own picture as a desktop wallpaper is to click and drag the image to the desktop using the middle mouse button (if the image is already on the desktop, then click and drag it a few inches to the left/right). On most modern mice, the middle mouse button is the scroll wheel, which also doubles as a third mouse button. On the menu that appears when you release the button, click Set as Background. If that sounds a little too unorthodox for you (it can be hard to use the middle mouse button), you can also use Synaptic to install the nautilus-wallpaper package, which adds a simple Set as Wallpaper option to the menu that appears when you right-click an image file. After installation, you’ll need to log out and then in again before the option becomes visible.
[Via www.ubuntukungfu.com]


Read more at caseytech.blogspot.com

Important Windows Folder Share Notice

0 people talked about this
Stumble Upon Toolbar

Last month I wrote a review of the great program Windows Folder Share. I have been using this program for about two months now and can't even express how wonderful the program has been. One thing I did discover is that when ever Windows Folder Share deletes a file, it doesn't send it to the recycling bin, but to it's own trash folder instead. This is hand because it lets you easily recover deleted files, but it can also fill up your hard drive. My trash folder was 29.4 gigabytes before I noticed that my space was disappearing.

To empty the trash folder, just right click your Windows Folder Share tray icon, select "More" then click Trash. When the trash window opens, just select everything (Ctrl+A, or edit select all) then delete it.

If you are a user of the freeware program, Ccleaner (if you're not then you should be, read more here), then add the location of Windows Folder Share's trash folder to Ccleaner's custom folder list. To do that just follow the steps in the picture!

Ccleaner - Click to enlarge - CaseyTech

Make sure you put a check in the box next to "Custom Files and Folders" in the advanced section of Ccleaner's main screen!


Read more CaseyTech.

Use Rainlendar With Sunbird

0 people talked about this
Stumble Upon Toolbar

Rainlendar is a great free desktop calendar program that is available for WindowsRainlendar, Neon Clock and Glass2k  - caseytech and Linux. It displays a fully functional calendar right on your desktop and has a load of features. One of its great features is the ability to read other calendar program's .ICS calendar file, this lets you have your entire schedule on you desktop, right at your finger tips. This is great for most calendar programs, put Mozilla's Sunbird program no longer uses the .ICS format for local storage, but it uses it for remote storage.

You can read how to get to Sunbird output it's calendars to .ics so it is compatible with rainlendar, as well as other programs, at the SleepingCats blog .

Linux "Registry Cleaner"

0 people talked about this
Stumble Upon Toolbar

Click to enlarge - caseytech

I just saw a download of Registry Booster 2 in the Linux section of TuCows.com. This is silly because Linux doesn't have a registry, it stores each programs configuration in a .conf file in the programs data folder. This lack of a central registry is what makes Linux based operating systems so secure, because everything is decentralized, and because of the file system permissions that Linux uses, it is very hard for virii and spyware to attack the operating system.

Linux alarm clock

0 people talked about this
Stumble Upon Toolbar

Some people have trouble waking up in the morning, here's a quick way to fix that.

Create the script wakeup.sh in your home directory:

#!/bin/bash

echo "Starting up"

mpg123 /path/to/nice/music/* &

for (( i = 1; i <= 100; i++ )) do
echo "Setting volume at $i"
setmixer vol $i
echo "Sleeping 10 seconds..."
sleep 10s
done


Add the following to your crontab:



 0 11 * * * /home/foobar/wakeup.sh 


Of course, you might want to get up before 11 am.



If you have trouble finding some nice wake-up music I recommend Enya, it's great for this purpose. I experimented with heavy metal music at first, thinking that I needed hard music to get me up, but I found that I would just leap out of bed, turn off the speakers and crawl back. A gentle awakening works much better.



If you want to be really clever, you could add a snooze function to this, so that you can just slam your hand down on a keyboard lying next to your bed and it will stop for 10 minutes, then restart the whole process.



[Via EuroHacker ]


Read more at Caseytech.blogspot.com

150 Free programs from Microsoft

0 people talked about this
Stumble Upon Toolbar

A lot of people know that Microsoft has lots for free programs on their web sites, but finding those programs has never been easy. Thankfully Blake Handler has put together a large list, with descriptions, of over 150 programs that are offered from Microsoft for free. Many of these programs add new functionality to Windows and fix problems that people have had over the years, and contains programs that will be of use to everybody!


Read more at Caseytech.blogspot.com

MSI Wind with 6 cell battery comes in September!

0 people talked about this
Stumble Upon Toolbar

MSI has quietly announced that this September theyMsi-Wind-B will be releasing a new model of their critically acclaimed netbook, the MSI Wind. The new addition to the Wind family will have the model numbers U100-036 (white model) and U100-053 (black model) and will sport a refreshingly long lasting 6 cell battery!

The double sized battery should boost the netbook's run time from ~2 hr to a more satisfying ~4-6 hr with Wifi on and the screen at full brightness. As of yet there is no word on if the battery will stick out of the back or the bottom of the laptop, however the dimensions of the 6 cell netbook on the product page are the same as the 3 cell ones.

Hopefully this major improvement will increase the netbook's popularity and will pave the way for future improvements like stronger Wifi, a more robust processor and a larger trackpad like the one on the OLPC.