Monthly Archives: January 2012

Running wuala in background with no gui

I have finally found a solution for my problem described in older post. Today I have found out that you can run Wuala without GUI. To do this you have to call wuala with the following parameter.

wuala -nogui

But only this is not enough. You have to also login to your account, because Wuala won’t auto login in this case. I have created a bash script which runs Wuala and as soon as it is initialized it logs you in.

#!/bin/sh

# Run Wuala with no GUI
wuala -nogui &

# Give Wuala some time to initialize
sleep 30

# Login
wuala login USERNAME PASSWORD

Change USERNAME and PASSWORD with your credentials and save this piece of code to /usr/bin/start-wuala.sh. Make it executable by calling sudo a+x /usr/bin/start-wuala.sh. After that you can put it to Startup Applications. But before you do that, you should setup your synchronization, because when Wuala starts in background you are not able to start another instance. To shutdown existing instance go to terminal and execute wuala shutdown.
You can also check status of the background process on the following address: http://127.0.0.1:33333/.

How to disable Cron e-mails in Webmin

Today I have setup some Cron job. The command is running under user nobody. After some minutes while this job has been running and executed I received e-mail with result of the job. This job was setup to run every 3 minutes, so I was getting those e-mails quite often.
After I have logged into Webmin to disable those e-mails I have noticed that there is no option to disable those e-mail notifications. Looks like it depends on the user under which the job is executed if he has some e-mail or not.
Anyway you can disable those e-mails by going to Scheduled Cron Jobs. On the page click on Create a new environment variable button. Select the same user as the one under which the job is running. As Variable name use MAILTO and do not fill anything into the Value field. Also make sure you leave Before all Cron jobs for user selected.
Finally you should not get any new e-mails 🙂

Use Visual Studio shortcuts in Eclipse

I am using Eclipse for PHP development. At work we use Visual Studio, so I am familiar with it’s keyboard shortcuts. In Eclipse I was quite frustrated when I was for example trying to find something in the opened document. Ctrl+F summoned Find dialog as other editors usually does, but pressing F3 to find next match in document did not work. F3 key is used by Open declaration functionality by default.
So I was looking for some way to change the keyboard scheme to look more like other editors. I found a possibility to use Mircosoft Visual Studio scheme. This scheme is available if C++ Development Tools  is installed in Eclipse. If you don’t have C++ Development Tools installed in Eclipse you have to install them first. To do that go to Help > Install New Software…

After you finish installation and restart Eclipse IDE go to Windows > Preferences and change scheme on the Keys page to Microsoft Visual Studio.