Archive for the 'ubuntu' Category

Desktop Linux distributions popularity 2007

Which Linux distros do we use on our home or office desktop system(s)?

2007-distributions-sm.jpg

More information is here.

Secure shell (ssh) session timeout

I’ve noticed that when I keep ssh sessions that I opened before untouched for some period of time (like 30 minutes) they become frozen and as a result I have to close ssh terminal and start a new connection. To prevent such situation I found several tips:

1) Start some utility updating the screen before leaving ssh session untouched. I usually use watch -n 1 ‘date’ that shows current date every second. Other simple way is to send icmp requests to some host, e.g. ping google.com.

2) Increase ssh session idle time by

echo “7200” > /proc/sys/net/ipv4/tcp_keepalive_time

I’ve checked these tips with Fedora Core, CentOS, Debian and Ubuntu but I’m completely sure that it applicable also for other Linux distributions. First tip (ping) can be used in Unix also.

 

Vmware Server at Ubuntu Feisty 7.04

This step-by-step manual provides instructions on how to install freely available VMWare Server at Ubuntu Feisty Fawn Linux (7.04).

First of all download installation package here and get free serial code. To get VMWare Server working at Ubuntu 7.04 I recommend to download this patch.

To make sure there are all necessary tools installed to get VMWare Server running, execute:
sudo aptitude install linux-headers-`uname -r` build-essentia xinetd

After it’s done unpack installation package and patch:
tar -xvzf VMware-server-1.0.3-44356.tar.gz
tar -xvzf vmware-any-any-update109.tar.gz

Then:
cd vmware-server-distrib
./vmware-install.pl

Choose defaults to questions until installer asks to run vmware-config.pl. Press no and install patch:
cd ../
cd vmware-any-any-update109
sudo ./runme.pl

Now it’s proper time to configure VMWare Server:
sudo vmware-config.pl

Just choose default values (it really worked for me).

When the installation is done, run
vmware

and proceed with using VMWare Server:

screenshot-viper-laptop-vmwareserverconsole.png

Fun: Bill Gates recommends Ubuntu :)

Picture found here.

Lingvo dictionaries with Stardict

I think that the best open source off-line dictionary is Stardict. It’s absolutely free, it’s very user friendly and, of course, it supports a huge amount of dictionaries which allow to translate words and phrases into many directions.

Few will deny that there is better Russian-English and English-Russian dictionary than Lingvo, but shame on it’s developers — it’s for Window$ only. This problem can be solved rather simply by using Lingvo dictionaries with Stardict… Here are links for EN-RU and RU-EN dictionaries:

http://rapidshare.com/files/45302592/Lingvo11_EN-RU.tar http://rapidshare.com/files/45303408/Lingvo11_RU-EN.tar

I use them by myself at my Ubuntu laptop and they are very easy to install: just unpack them into /usr/share/stardict/dic and restart Stardict. Here are results:

Stardict and Lingvo dictionaries

Automatic blog posts translation into many languages with Altavista’s Babelfish engine

I think everybody will agree with me that a blog translated into many different languages may attract a bit more visitors and traffic. The idea of such translation isn’t new, I’ve seen this somewhere over Internet (sorry, but I don’t remember where) and I’m sure it makes sense. In this post I’d like to share my observation regarding popular web page translation engine Babelfish

There are many posts in my blog which aren’t translated yet and it would take much time to make them translated in case I do it manually (go to babelfish’s site, copy/paste post’s contents, choose proper translation direction and etc.). That’s why I prefer automatic page translation which is done for me while I have cup of cofee, have sex or whatever instead of sitting in front of blue screen of the monitor and copying/pasting text into babelfish’s textareas.

All what we need is Linux or Unix distribution (Ubuntu rocks for me) and ‘wget’ utility which usually comes with any Linux, Unix distributions. The idea lies in downloading links to the posts from rss feed of the blog. I’ve chosen blogger service by google and that’s why my rss feed can be foud here. Any other blog engines provides feeds, I’m sure.

So, create shell script somewhere and make it be executable by commands:
echo “#!/bin/bash” > /tmp/auto_tr.sh
chmod +x /tmp/auto_tr.sh

My script looks as follows:

#!/bin/bash

\rm /tmp/tr_output -r
wget http://artiomix.blogspot.com/rss.xml -O /tmp/rss.xml
cat /tmp/rss.xml | sed “s/></>\n</g” | grep “<link>” | awk -F ‘<link>’ ‘{print$2}’ | awk -F ‘</link>’ ‘{print$1}’ | grep “2007” | while read link;do
mkdir /tmp/tr_output &> /dev/null
save=$(echo $link | awk -F ‘.html’ ‘{print$1}’ | awk -F ‘/’ ‘{print$6}’)
echo “Translating $save…”
mkdir /tmp/tr_output/$save
echo -e “nl\nfr\nde\nel\nit\nja\nko\npt\nru\nes” | while read lang;do
#echo $lang
wget “http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=en_$lang&url=$link&#8221; -U “Mozilla” –wait=10 -O /tmp/tr_output/$save/$save”.”$lang”.html”
sleep 600
done
done
\rm -f /tmp/rss.xml

This one downloads rss.xml file (don’t forget to change URL to rss feed), parses it and sends every post to Babelfish’s input, after translation script saves output to /tmp/tr_output directory, waits 10 minutes and proceeds with nex language. Translation is performed into 10 languages. 10 minutes waiting period is needed as babelfish may accuse your script as a bot and ban you.

After some time you’ll find pretty large amount of data in /tmp/tr_output which you can copy/paste to your blog seamlessly. I recommend not to publish these posts to main page and keep it only for googlebot 🙂

Good luck!

P.S. If anybody know how to perform automatic posts translation with “google translate” instead of babelfish, it would be very appreciated if you leave some comments regarding it. Thanks!

Google calendar and Linux Evolution sync

As we know Evolution is a default mail client program of Gnome Desktop manager. Here is a good article about how to sync Google Calendar with Evolution one.


Archive