Skip to main content

Posts

Remote desktop from windows 7 to ubuntu

If you are an ardent fan of Windows Remote Desktop and want to use it to login to a box running Ubuntu, this post is for you. To allow incoming Remote desktop connections, we need rdesktop running on ubuntu box. Instructions To install “ xrdp ” click on “ Applications ” and “ Ubuntu Software Center “. On the Ubuntu Software Center window, enter “ xrdp ” in the search field and press the  “ enter ” key; once it finds it, click on the “ install ” button. When installation finishes on Ubuntu, go to your Windows computer and open the “ Remote Desktop Connection “,  enter the IP address of the Ubuntu computer  and click the “ Connect ” button. Immediately you will see the screen of the remote computer. Enter the  username  and  password  for the remote Ubuntu computer and click “ OK ” to continue. And that is all, now you should be able to see and control your remote Ubuntu machine from your Windows computer. Final Thoughts Many people in the Linux world do...

Murphy's Bus Laws

I had been a bus traveller ever since I started working. And its been 2.5 months! Travelling by bus has its own prenup. So I archived a few of my personal experiences along with some more taken from internet in what I call the Murphy's Bus Laws! If its raining, or cold or both the bus will be late If you're early the bus is late If you're late the bus was early The other people at the bus stop are waiting for the bus that has just pulled in If you have no change then the bus driver won't have any either Two buses for the same place will always pull in together Corollary : multiple buses for corporation will come when you are looking for a Pune Station bus. The sign at the front of the bus is merely for decoration it is not the destination of the bus Waiting for a bus seems to be longer than the journey The bus you plan to take always leaves five minutes before you reach the bus stop. The first bus from your route will always appear first in the opposite directi...

Engineers v/s managers

A woman in a hot air balloon realized she was lost. She reduced altitude and spotted a man below. She descended a bit more and shouted, "Excuse me, can you help me? I promised a friend I would meet him an hour ago but I don't know where I am." The man below replied "You're in a hot air balloon hovering approximately 30 feet above the ground. You're between 40 and 41 degrees north latitude and between 59 and 60 degrees west longitude." "You must be an engineer," said the balloonist. "I am", replied the man, "but how did you know?" "Well, answered the balloonist, "everything you told me is technically correct, but I've no idea what to make of your information, and the fact is I'm still lost. Frankly, you've not been much help at all. If anything, you've delayed my trip even more." The man below responded, "You must be in management." "I am," replied the balloonist, ...

कुछ बातें

हर कदम हर राह पे, बिता कुछ पल ही सही, सहारे तो मिल ही जायेंगे मगर तू ठेहेरना नहीं! रख वफ़ा बाजुओं पे ए राही, किनारे मिलेंगे जरूर, डूबते तो वे हैं जिनकी कश्तियों में माझी ही नहीं!

If life were a periodic function of time!

As the crystal rays of sunlight enter into my room, through the tiny perforation in my newly constructed window, and fall on my face, I open my eyes. I open them gently, and pulling myself up, I think. I think if this morning bears any resemblance to any of those memorable ones at AIT. Thinking that against all the odds, against all the contraries this morning be slight like the old fashioned ones. The ones in 304E, the ones in 004C, those in 005C or the ones in 213A! The mornings when I would wake up first only to see my roommates enjoying their sweet sleep and I would jump onto my bed again and moments later I would hear Sood screaming " GET UP ASSHOLE...CLASSES START AT 9.15 !" and minutes later, I would find myself in my class...studyng! Times have changed! They certainly have! I have office to go to. I have a bus to catch. Have work to do. Books to read. I hate to wake up early. I hate to get ready on time! If time could just reverse direction. If life were a periodic...
Following the article on http://mydebian.blogdns.org/?p=148 to setup SSH onto a local virtual machine, I got the following error message when tried to start the machine : Configuration error: Failed to get the "MAC" value. VBox status code: -2103 (VERR_CFGM_VALUE_NOT_FOUND). Just update the network device name "PCNET" and restart the machine. it'll work.
Following the article on  http://mydebian.blogdns.org/?p=148  , i configu the Guest will no longer start with the following error:   Configuration error: Failed to get the "MAC" value.   VBox status code: -2103 (VERR_CFGM_VALUE_NOT_FOUND).  

Rsync multiple files, folders

Needed to rsync the 3 folders. So the script to do that is as follows ("rsync_backup") It requires the key named "23.pub" to be appended in "~/.ssh/authorized_keys" and in crontab -e "*/1 * * * * /var/www/repositories/rsync_backup" It will backup every minute /*********************************************************************/ #!/bin/sh RSYNC=/usr/bin/rsync SSH=/usr/bin/ssh KEY=/home/quickstart/.ssh/23 RUSER=quickstart RHOST=172.20.1.139 RPATH1=/var/www/repositories/ LPATH1=/var/www/repositories/repos/ RPATH2=/var/www/icode/ LPATH2=/var/www/repositories/icode/ RPATH3=/home/git/repositories/ LPATH3=/var/www/repositories/git/ $RSYNC -az -e "$SSH -i $KEY" $RUSER@$RHOST:$RPATH1 $LPATH1 $RSYNC -az -e "$SSH -i $KEY" $RUSER@$RHOST:$RPATH2 $LPATH2 $RSYNC -az -e "$SSH -i $KEY" $RUSER@$RHOST:$RPATH3 $LPATH3

automatic repo commit

The whole idea of computing is that the computer should work more than the man. I realized this when I had to manually add origin and commit, push every repository that I downloaded. So here's the script that does the job for me. <?php  echo exec('git init');  echo exec('touch readme');  echo exec('git remote rm origin');  echo exec('git add .');  echo exec('git remote add origin git@localhost:'.$argv[1].'.git');   echo exec('git commit -a -m "some message"');  echo exec('git push origin master');  ?>

Copying a MySQL table with schema and keys, but not data!

I wanted to clone the schema of my table "aitossne-icode.sshkey" into a new table "kaydir.keytab". Here's what I did : mysql> use keydir Database changed mysql> CREATE table keytab LIKE aitossne_icode.sshkey; Query OK, 0 rows affected (0.06 sec) mysql> show tables     -> ; +------------------+ | Tables_in_keydir | +------------------+ | keytab           | +------------------+ 1 row in set (0.00 sec)