Category Archives: tools

Enable Windows 7 Aero Snap in Ubuntu

In Windows 7, you can click and drag a window to the left or right edge of the desktop and it will fill half of the screen, or snap a window to the top edge of the desktop and it will be maximized.

In Ubuntu, you can click and drag a window to the left, right or top edge of the desktop to achieve the same result.

In addition to CompizConfig Settings Manager, install WmCtrl if not added:
– go to Applications (or Main Menu) > Accessories > Terminal.
– enter sudo apt-get install wmctrl
– enter password when prompted.
– go To System > Preferences > CompizConfig Settings Manager.
– select “General” from the left panel and click “Commands”.
In Command line 0, 1 and 2, paste the following codes:

Command line 0, paste:

WIDTH=`xdpyinfo | grep ‘dimensions:’ | cut -f 2 -d ‘:’ | cut -f 1 -d ‘x’` && HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,0,0,$HALF,-1

Command line 1, paste:

WIDTH=`xdpyinfo | grep ‘dimensions:’ | cut -f 2 -d ‘:’ | cut -f 1 -d ‘x’` && HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,$HALF,0,$HALF,-1

Command line 2, paste:

wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz

In the same window, click “Edge Bindings” tab.
Change Run Command 0, 1 and 2 from “None” to “Left”, “Right” and “Top” respectively.
Click “Back” button and select “General Options”, change “Edge Trigger Delay” to about 500. AddThis mp3 link

Finding Files using – locate – on Linux

Many Linux users use the ‘find’ utility when searching for files using the command line on their system. They’ll do a simple:
find / -name ‘pattern’
Really though, the power of find isn’t just in finding names of files but rather specific details about those files. For example, if you wanted to find files which are writable by both their owner and their group:
find / -perm -444 -perm /222 ! -perm /111
or perhaps find any file that’s been altered in your Download directory in the past 24 hours:
find /home/user/Downloads/ -mtime 0
As you can see, the find command is very versatile and can be used to find an array of different attributes of files.  There are times though where I’m just looking for something and I don’t want to have to wait for the command to scan the entire directory tree in order to track it down.  That’s where locate comes in with quick and simple results.
Using the locate command can only be accomplished if you install the mlocate package.  Most major distributions have this available.  If not, head over to the mlocate homepage and install manually.  Once that is accomplished, you’ll need to manually run a command to index your filesystem with it…otherwise, you’ll have to wait for the command to run automatically as it registers with cron to do so on a system level.  Open a terminal and change to your root user, then execute the following:
updatedb &
This updates the mlocate database that indexes your files and forks it to the background (the ‘&’ forks it to the background).  You can now logout of the terminal as root and the process will quietly work in the background.
After the command completes, using mlocate is as easy as using the locate command:
locate firefox | less
The command above will look for all files with Firefox in the name and pipe the command through less so you can use the space bar or enter key to scroll the file buffer.  Of course, the reason we pipe it through less is because any file that resides in the ‘firefox’ directory will be reported in the output.  While this tool isn’t as granular as the find command, it is a quick way to track down paths, directories, and files you know should exist.  Since the data is indexed using the updatedb command (by cron) the results are very quick and the command does not have to scan through the filesystem to return the results.
There are plenty more advanced options via flags (such as following symbolic links, making search term case-sensitive, and even using regexp).  See the man page for details on how each of these options work.  Play around with locate and see what you can do!  It’s a powerful and quick search command! AddThis mp3 link

Advanced use of – Find -: a handy command line tool for Linux

This post is basically directed towards new users of Linux which are not much familiar with command prompt. This is a small but comprehensive article about ‘GNU find’ .
Find Your Lost Files!
Let’s start from a simple example:
Suppose you want to search for a file named ‘master.txt’ in your home directory.
Open the Terminal and issue the following command:
find . -name “master.txt”
‘find’ will immediately show the results.  If ‘find’ does not show any result, this means that the file, in our case, ‘master.txt’, does not exist.  It is not always the case that you want to find something in you home directory.  The lost/desired file may be anywhere in your computer.  Suppose you want to find a file named ‘space-01.jpg’ and you only know that is located somewhere in /usr directory. You can find it by issuing following command in Terminal:
find /usr -name “space-01.jpg”
and ‘find’ will tell you that this is located under /usr/share/backgrounds.
Using Wildcards
Maybe you want to search for a file but you don’t know its exact name?  Don’t worry!  You can still locate the file using ‘GNU find’ and wildcard will help you in this regard. Wildcards are a way of searching files when you don’t know much about your desired file.
One of the commonly used wildcard is asterisk (*).  Lets consider an example to better understand the things.
Suppose you want to search a file named ‘Jumping_Flowers’ but you only remember the ‘Jumping‘ part of the file name.  So issue the following command in Terminal:
find . -name “Jumping*”
And it will display all the files starting with the word ‘Jumping’.  You can use asterisk (*) anywhere with a file name.  For example:
find . -name “*Jumping*”
And it will display all the files which contain the word ‘Jumping’.
Here are some more examples of use of a wildcard:
find . -name “Jumping*Flowers*”
find . -name “*Jumping*Flowers.mp3”
Searching For Different File Types
Sometimes you are not looking for some specific file but you are looking for a group of files.  For example, you may be looking for all the .txt files in your home directory.  To find all the .txt files, you will give the following command in Terminal:
find . -name *.txt
In case of mp3 files, the above command will be:
find . -name *.mp3
When You Want to Search with Respect to Time
If you want to search for files by the last time they were accessed, you can use -amin flag with ‘find’.  In this case you have to put a minus (-) sign before the time.  The time here is in minutes.  In order to search for .doc files which were accessed in last 10 minutes, you will give the following command:
find . -amin -10 -name “*.doc”
Similarly, to search for .doc files which were modified in last 20 minutes, you will use -mmin option as follows:
find . -mmin -20 -name “*.doc”
Search For Files which are Eating Your Hard Disk
There may be files on your system which are not only huge in size but also located obscure places.  You may also may not know when they were last accessed.  You have to use -size option with ‘find’ to locate them.
Let’s see how we can do this:
find . -size +100M
It will list all those files which are greater than 100 Megabytes.  You can replace ‘M’ with ‘G’ (for Gigabyte) or with ‘k’ (for Kilobyte)
Copy, Move, or Delete Unwanted Files on the Fly
Copy – ‘find’ can also be used to copy or backup your files.  You can use ‘find’ to copy certain files from one location to other with one simple command.
Suppose you want copy all of your mp3 songs from your home directory to your Windows Partition.  Enter the following command in Terminal:
find . -name “*.mp3” -exec cp {} /path/to/Windows_Drive \;
And all of your mp3 files will be copied to the desired Drive/Folder.
Move – There may be situations that you quickly want to move all of your document files from your Hard Disk to your USB to keep them safe.  To move all of your documents from your home directory to your USB, you will issue the following command:
find . -name “*.doc” -exec cp {} /path/to/USB \;
Delete – Suppose there are a lot of .tmp files and you want to get rid of them at once.  Again ‘GNU find’ is at your service and does the work for you.  Issue the following in Terminal and all of the .tmp files are gone…
find . -name ‘*.tmp’ -exec rm {} \;
Which Files are Owned by You and Which Are Not?
There may be a situation when you want to know that which files in some other directories (or even in your home directory) are owned by some other user of your computer.
Suppose there is another user named ‘blackstar’ with whom you are sharing your PC.  Now you want to know that which .doc files in Windows Directory is owned by this user ‘blackstar’.  You can do this by issuing the following command:
find /path/to/Windows_Drive -user blackstar -name “*.doc”
Just replace ‘blackstar’ with your username to search on your system.
Direct the Output of ‘find’ to a File
You can save the results of your ‘find’ command to a text file which will allow you to examine the results in detail at some later time (or to create playlist of your songs).  For this purpose a greater than (>) sign is used (referred to as “piping the command”).
Suppose you want to save the list of all the mp3 songs in your home directory to a text file (which you can later share with your friend), you can do this by:
find . -name “*.mp3” > mp3.txt
It will save the complete path to all of your mp3 songs in the file named mp3.txt. AddThis mp3 link

Installing YamiPod on Linux: a multi-platform, very versatile iPod Manager

YamiPod is a freeware application to efficiently manage your iPod on Linux. It can be run directly from your iPod and needs no installation. It also has extra features such as rss news and podcast support, remove duplicates, easy notes editor (with multipage support), songs synchronization, playlists export, a built in music player and much more. It has been translated in 12 languages.

On Linux, the installation is really simple:

  • have at least one song on iPod
  • copy the libfmodex audio library to /usr/lib (you need root privileges). You’ll find this file in the package you’ve downloaded
  • mount your iPod somewhere inside /mnt or /media with read/write access
  • make sure you have the df command installed, which is usually part of any standard linux distribution.

To run YamiPod just double-click on YamiPod’s binary.

Using YamiPod is also so simple when you want to Copy  Music to iPod: Drag&drop files into the song listbox. You can even drag and drop folders, YamiPod will add all valid music files found in sub folders.

In the window that will appear you’ll be able to assign song information (title,album name, artist…) for each single file or setting them for every file ticking the All checkboxes.

In Playlist tab you can select:

  • Destination: select a playlist where to add all dragged songs.
  • Lyric filename: how lyric should be named.
  • Create playlist from folder: this will add all songs in a folder to a playlist named as the folder. For example if you dragged a folder called Music with 2 subfolders: 70’s and 80’s containing various files. Files in 70’s will be added to a newly created folder called 70’s. Files in the other folder will be added to a playlist called 80’s.

In Advanced tab you can select:

  • Auto capital first letter: will titlecase all song tags.
  • If duplicated: what to do if song exists on iPod.
  • Get song info by path and filename: if your song tags are missing but you named and placed your song following a particular order, you can tell YamiPod to get song tags out of filename a path.

Tips:
Holding SHIFT while dragging will add songs to currently selected playlist. If you’ve selected multiple songs to add you can quickly edit next (previous) song information by pressing ALT+down (up). AddThis mp3 link

Upload, store and download files with no limits! (up to 2GB single file, no space or time limitations)

Depositfiles is a very flexible online hosting service to upload files (up to 2GB) and share them with your colleagues and friends. There is no limit to the quantity of files you can store on Depositfiles and you can protect your files and folders with a password. Depositfiles has a gold plan with faster uploads and downloads but we obviously tried the free one. After the registration, you can start uploading your files. You can choose between a multiple or a single file upload and, if you prefer, it is also possible to use your favorite FTP client. The online interface is complex but intuitive and after few tests you will able to upload big files, create folders and annotate your online file links. The free plan upload is enough fast and smooth; e.g. we were able to upload an Ubuntu 10.10 iso image in almost 3 hours. In the Tools section you find the code for a flash uploader for your website and a files checker to be 100% sure your uploaded files are till active also after months. The Depositfiles Filemanager software is free and very useful add-on for your browser if you plan to download different diles at the same time. Moreover, Depositfiles has 4 different loyalty programs which allow you to earn points to use in pro features. AddThis mp3 link

How to repair the missing upper panel on Ubuntu 10.04 Netbook

After my last update I was not able to visualize my upper panel on Ubuntu 10.04 Netbook. After some internet searches and tests I found these two solutions which were useful to me:

Solution A

– right click on the background and choose Change Desktop Background

– go to Visual Effects and click on Normal

Solution B

– ALT + F2 and when in Terminal type

gnome-panel

If you want to save the configuration and visualize the upper panel for the next time you use Ubuntu, please type in terminal:

gnome-session-save

I am sure there are better ways to solve this problem, so if you have suggestion you are free to comment this post. Thanks.

AddThis mp3 link

A brief but useful video about using yahoo.com (and others) through WebMail on Thunderbird 3.1 (Windows version)

AddThis

How to read yahoo.com (and many others) email accounts on Thunderbird 3.1 (Ubuntu and Windows tips)

Many on line email providers don’t allow you to use their accounts with POP email clients such as Thunderbird 3.1. To solve this “matter” we have a couple of possible solutions: FreePOPs and WebMail. Today, we  will discuss about Webmail that we  tested on Ubuntu 10.04 LTS and Windows XP. WebMail is substantially a  Thunderbird’s add-ons but it is not  featured by Mozilla. Using this add-on you are able to manage Yahoo, Hotmail, mail.com, GMail, Libero, and AOL email accounts. The installation is similar in Ubuntu and Windows;  on both, you have to install the core WebMail add-on and restart Thunderbird then you can add all the other components (Yahoo, Hotmail, etc..) you prefer. Then you have to modify the Thunderbird server settings following the instructions provided by WebMail:

POP
Server Type : POP
Incoming Server: localhost
UserName : username@domain

SMTP
Server Name: localhost
UserName : username@domain

Do not forget to set the Connection Security to None.

Only on Ubuntu, you need also to manually modify the incoming and outgoing ports because when you use Thunderbird through WebMail on Ubuntu, you will have a “could not connect to server local host; the connection was refused” message.  This problem can be easily solved substituting the default ports on both WebMail add-on and Thunderbird ports:

– Thunderbird —> Edit —> Account Settings. Highlight the account you want to manage and go to Server Settings. There you can modify the POP Server Mail port setting it to a number bigger than 1000 (in my case I put 1250). Then go to Outgoing Servers and Edit the SMTP account you want to modify (I changed the default port to 1025).

– Thunderbird —> Tools —> Add-ons —> WebMail —> Preferences and put the same port numbers you have set on the previous step.

All this because ports below 1024 seems to be blocked on Ubuntu (if you know why, please post a comment).

For security, restart Thunderbird and it will immediately download and send your emails. Last but not least, if your on line email account is not supported by WebMail, do not forget to try FreePOPs. AddThis mp3 link

How to uninstall software on Ubuntu

UbuntuInstalling software on Ubuntu is really easy but sometimes we can have problems to uninstall it if we have not used the Package Manager (Synaptic till Ubuntu 9.04 and later through the Software Center) or a .deb package. To fastly uninstall all the software you do not need or you are not fond of, you can type in the Terminal:

sudo dpkg -r your_file

An alternative and powerful way is typing:

sudo apt-get remove your_file

(where your_file it is the name of the software you want to remove)

or, if you want to completely cancel also the configuration files:

sudo apt-get --purge remove your_file

If you want to check what software is installed on you Ubuntu you can use:

dpkg --list

and you will obtain a complete list of software and a very short summary for each package. AddThis mp3 link

Gmail Tips!

This week, in our Freeware Page, we posted a brief review about Gmail Tips, a terrific pdf printable guide with tons of useful information to better manage your gmail account. You can decide to read online the document at www.gmail.com/tips or download the printable pdf version. As for martial arts the tips you receive are related to your skills and are progressively more difficult. At the “white belt” level, I am sure, you will find some feature you have been using for years but when you become a “black belt” or a “Gmail master” you are able to deeply enjoy all the Gmail’s most useful “secret” features. For example you learn how to remotely sign out your Gmail account when you forget it open at the office or in an internet cafe’. Moreover, properly using the Gmail  filters, you will able to send automatic responses reducing the  time wasted in routine replies. We are sure that everyone will find other useful tips depending on what he/she is looking for. Useful! AddThis mp3 link