Wiki Wicket

Easy Step-by-Step Install: CheckGmail

by AndrzejL

Welcome to the Wiki Wicket, a column of the PCLinuxOS Magazine that features entries from the PCLinuxOS Wiki. This month, we are featuring an entry from the "Living Wiki" on MyPCLinuxOS. While there are a few different Firefox add-ons that allow you to check and monitor your Gmail accounts, the method highlighted in this article isn't tied specifically to Firefox. And, while the Firefox add-ons require that Firefox be running for you to check and monitor your Gmail accounts, this method works whether Firefox is running or not. If, however, you are using a shared computer, this method might sacrifice some email privacy. It is, however, excellent for use on a computer where you are the only user. -- Paul Arnote, Chief Editor.

Hi Everyone!

I will try to show you how to configure CheckGmail panel tray tool so it would inform you about new mail.

The things I love about CheckGmail:

  1. Checks your Gmail account at user-specified intervals (usually every few seconds).
  2. Notifies you about new mail with:
    1. Sound.
    2. Tiny and discreet pop-up window (appears for a few seconds and then disappears).
    3. Tray icon changes.
  3. Gives you direct access to your Gmail account by just clicking on the CheckGmail icon.
  4. Informs you about:
    1. How many unread messages you have.
    2. Who is the sender of the message.
    3. Subject of the messages.
    4. First line of the message content.
  5. It does not download or open any messages; it just informs you about them.

I will sometimes use the command line (CLI) in this how-to, but don't let that scare you; I will explain every single step.

The target audience for this tutorial is new users.

There are few things I assume you have done before following this tutorial:

  1. Installed PCLinuxOS.
  2. Configured your internet connection.
  3. Fully upgraded the system.
  4. Setup the graphical server (X Window System).
  5. Rebooted.

Once all those things are done, follow me with these simple steps.

I - Installing CheckGmail:

  1. Open a Konsole window and get root privileges:
    1. Type in su and press [ENTER].
    2. Type in root password and press [ENTER].
    3. Type in apt-get install --yes checkgmail and press [ENTER].
  2. Wait till the install process is finished.
  3. Once you have CheckGmail installed go back to normal user mode and close Konsole, by doing the following:
    1. Type in exit and press [ENTER]
    2. Close the Konsole window

graphics1

II - Creating icon for CheckGmail/Autostarting CheckGmail

  1. Create a CheckGmail shortcut icon:
    1. Right click on the Desktop.
    2. Choose Create New.

      graphics2

    3. Choose Link to Application.

      graphics3

    4. A new window will come up:
      1. Type in CheckGmail in the name box.
      2. Click on the blue gear icon.

        graphics4

      3. Type in "ema" (without the quotes) in the search box, then click on the email icon.

        graphics5

      4. Click on the Application tab and type checkgmail --no_cookies in the Command box.

        graphics6

      5. Click OK and notice that somewhere on the desktop your new checkgmail icon was created.
  2. Now, we need to set up checkgmail to automatically start whenever the KDE desktop is loaded:
    1. Right click on the new CheckGmail icon on your desktop and choose Cut from the menu.

      graphics7

    2. Open konqueror and in the address bar type in "/" (again, without the quotes).

      graphics8

    3. Click on the View button in Konqueror's menu bar.
    4. Make sure that Show Hidden Files option is ticked.

      graphics9

    5. Navigate to /home/user/.kde/Autostart (where user is your username).

      (Editor's Note: alternatively, you can simply bring up your /home directory. As long as the "Show Hidden Files" option is checked, as indicated above, you will find the .kde folder. Double click that folder, and navigate to the Autostart folder).

      graphics10

    6. Right click inside this folder and choose Paste File from the menu.

      graphics11

    7. Notice that your CheckGmail icon from desktop was moved to the Autostart folder.

      graphics12

    8. Open konsole, type in reboot and press [ENTER] - this will restart your computer.

      (Editor's Note: you can also do one of two other things here, should you not wish to reboot your computer. First, you can simply double-click the checkgmail icon in the ".kde/Autostart" folder, and this will launch checkgmail immediately. Your second additional option would be to hold down Ctrl + ALT + Backspace. This will restart KDE without completely rebooting your computer. Either of the alternative methods work equally well.)

graphics13

III - Configuring CheckGmail

  1. Notice that a new icon - the checkgmail icon - appears in the panel tray after KDE is loaded.

    graphics14

  2. Right click on this new icon and choose Preferences.

    graphics15

  3. The checkgmail Preferences dialog box will appear.
  4. Adjust the settings to suit your needs.

    graphics16

    1. Username : type in your Gmail login
    2. Password : type in your Gmail password
    3. Save password : tick this box
    4. Language : choose your language from the list
    5. Command on tray click: /usr/bin/mozilla-firefox %u
    6. Command on new mail: play -v 0.4 /path/to/wav/file/Gmail-Notify.wav
      1. play is a console media player,
      2. -v 0.4 is a volume of the played track,
      3. /path/to/wav/file/ is a path to the wav file (sound that you want to use as a Gmail notification sound),
      4. Gmail-Notify.wav is the music file with wav extention (the file name here will be whichever file you choose to use as your Gmail notification sound).
    7. Comand on no mail : didnt find anything that I could use in here.
    8. Check Gmail every : Gmail will be checked for new mail every XX seconds (5, 10, 30) type any value you want.
    9. 24 hour clock : Tick or untick it depending on what youre used to (11 am / 11 pm or 11 and 23 o'clock).
    10. Archive also marks : If you archive a message in your gmail account it wont be shown as unread.
    11. Custom icons : I wouldn't touch this... Can be messy.
    12. Show new mail pop-up : Here you can set how long a little window with a new mail info will be seen on your desktop.
    13. Set tray background : Match the background of the tray icon to the color of your panel; it won't be perfect, but at least it's not a white square.

    graphics17

  5. Click on the OK button in the CheckGmail preferences box.
  6. Click on the CheckGmail icon.
  7. Firefox should come up and log you straight into your Gmail account.
  8. Create new message and send it to yourself.
  9. Reboot your system to test the settings after startup.

    (Editor's Note: alternatively, you can simply restart KDE by pressing Ctrl + ALT + Backspace, should you not wish to reboot your computer. Also, I skipped this step when I tried it out, and everything works -- and continues to work -- just fine.)

graphics18

Top | Next