[SOLVED] How to make Ubuntu the default OS in dual boot installation?
I faced the same problem initially. I prefer my computer to start in Ubuntu, but Windows XP being the preferred choice by default, many-a-times it would start Windows. Making Ubuntu the default option is very easy - you can do it from the terminal but I prefer the Windows approach.
Go to Control Panel -> System -> Advanced -> Startup and Recovery and press edit. You can choose Ubuntu to be
How to install Ubuntu in dual boot? Beginner's talk
A lot of my friends requested me to write on the process of installing Ubuntu OS. So, here I am.
The process is relatively simple if you want to install it from internet. Just download the Ubuntu version ISO file from the Ubuntu site
http://www.ubuntu.com/download/ubuntu/download
Generally we use a 32 bit machine - so choose that option. Now you have 11.10 released! Every 6 months Ubuntu
Install essential softwares in Ubuntu
Ubuntu 11.04 comes with a lot of default softwares but there are certain other really essential softwares that you may like to install. You can choose them from the Ubuntu Software Center or install it through the terminal.
The names of the essential softwares, a brief review and the installation codes are provided below:
VLC Media Player: The best media player available and much better
Mac theme for Ubuntu using Cairo Dock
I tried a couple of popular docks like Docky and Cairo dock; simply put I am very much impressed with the Cairo dock. Docky doesn't give the 3D view in my Asus netbook with Intel Atom processor. However, Cairo dock simply gives a mind blowing 3D view as you can see below.
Adding Cairo is very simple from the terminal. Just type the following commands sequentially:
1. sudo
Exploring Ubuntu: How to run Sify internet client on Ubuntu?
Very recently, in one of my old PCs, Windows crashed. I was left with only Windows XP SP1 bootable CD, which I got from HP when I bought my computer way back in 2003. And I had no office. Buying a new Windows and Office CD would be expensive to my pockets (if you are in India, you can appreciate that!). Moreover, my old PC hardware won't support Windows 7, even Office 2003 used to crawl in
How to obtain the flash videos in Firefox 4
Flash videos were stored in /tmp/FlashXXXX and i was able to copy them to another place like cp /tmp/FlashXXX ~/Desktop/new.video.mpeg.
Since Firefox 4 i thought for a moment that everything changed and my happy days were over but i was wrong, i remembered that with Linux there are no sad days.
How to obtain the flash videos with Firefox 4:
When the video already finished loading in the browser (being Youtube or any other), do this:
walter 20040 19812 9 11:52 ? 00:53:34 /usr/lib/firefox-3.6.17/plugin-container /home/walter/.mozilla/plugins/libflashplayer.so 19812 plugin true
Now, with the PID, inspect what it is opening:
root@talento:~# lsof -p 20040 | grep Flash
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/walter/.gvfs
Output information may be incomplete.
plugin-co 20040 walter 16u REG 8,2 1249930 21708868 /tmp/FlashXXQANNm2 (deleted)
root@talento:~#
You are interested in the file descriptor id, these are the file descriptors from that process:
root@talento:~# ls -la /proc/20040/fd/
total 0
dr-x------ 2 walter walter 0 2011-04-30 21:12 .
dr-xr-xr-x 7 walter walter 0 2011-04-30 21:06 ..
lr-x------ 1 walter walter 64 2011-04-30 21:12 0 -> /dev/null
lrwx------ 1 walter walter 64 2011-04-30 21:12 1 -> /home/walter/.xsession-errors
l-wx------ 1 walter walter 64 2011-04-30 21:12 10 -> pipe:[18679239]
lr-x------ 1 walter walter 64 2011-04-30 21:12 11 -> pipe:[18679240]
l-wx------ 1 walter walter 64 2011-04-30 21:12 12 -> pipe:[18679240]
lrwx------ 1 walter walter 64 2011-04-30 21:12 13 -> socket:[18679243]
lr-x------ 1 walter walter 64 2011-04-30 21:12 14 -> /home/walter/.mozilla/firefox/2te1hj2x.default/cert8.db
lr-x------ 1 walter walter 64 2011-04-30 21:12 15 -> /home/walter/.mozilla/firefox/2te1hj2x.default/key3.db
lrwx------ 1 walter walter 64 2011-04-30 21:15 16 -> /tmp/FlashXXQANNm2 (deleted)
lr-x------ 1 walter walter 64 2011-04-30 21:16 17 -> pipe:[19890054]
l-wx------ 1 walter walter 64 2011-04-30 21:16 18 -> pipe:[19890054]
lr-x------ 1 walter walter 64 2011-04-30 21:16 19 -> pipe:[19890055]
lrwx------ 1 walter walter 64 2011-04-30 21:12 2 -> /home/walter/.xsession-errors
l-wx------ 1 walter walter 64 2011-04-30 21:16 20 -> pipe:[19890055]
lrwx------ 1 walter walter 64 2011-04-30 21:16 21 -> socket:[19890059]
lrwx------ 1 walter walter 64 2011-04-30 21:12 22 -> socket:[19338003]
lr-x------ 1 walter walter 64 2011-04-30 21:12 23 -> anon_inode:inotify
lrwx------ 1 walter walter 64 2011-04-30 21:12 3 -> socket:[18679123]
lrwx------ 1 walter walter 64 2011-04-30 21:12 4 -> anon_inode:[eventpoll]
lrwx------ 1 walter walter 64 2011-04-30 21:12 42 -> socket:[18679124]
lrwx------ 1 walter walter 64 2011-04-30 21:12 5 -> socket:[18679236]
lrwx------ 1 walter walter 64 2011-04-30 21:12 6 -> socket:[18679237]
lr-x------ 1 walter walter 64 2011-04-30 21:12 7 -> pipe:[18679238]
l-wx------ 1 walter walter 64 2011-04-30 21:12 8 -> pipe:[18679238]
lr-x------ 1 walter walter 64 2011-04-30 21:12 9 -> pipe:[18679239]
What is of our interest if the Flash process, displayed in the previous lines.
Now, you can copy the file to a safe place, because, if you close Firefox, those files are released and lost.
cp /proc/20040/fd/16 ~/Desktop/A.Movie.mpeg
Now if you want to put everything in a script:
root@talento:~# cat saveflash.sh
#!/bin/bash
PID=`ps -ef | grep libflashplayer.so | grep -v grep | awk '{print $2}'`
FD=`lsof -p $PID | grep Flash | awk '{print $4}' | sed 's/u$//'`
cp /proc/$PID/fd/$FD "$1"
And remember, you can "invite me a coffee" :)
Since Firefox 4 i thought for a moment that everything changed and my happy days were over but i was wrong, i remembered that with Linux there are no sad days.
How to obtain the flash videos with Firefox 4:
When the video already finished loading in the browser (being Youtube or any other), do this:
ps -ef | grep libflashplayer.so | grep -v grep
walter 20040 19812 9 11:52 ? 00:53:34 /usr/lib/firefox-3.6.17/plugin-container /home/walter/.mozilla/plugins/libflashplayer.so 19812 plugin true
Now, with the PID, inspect what it is opening:
root@talento:~# lsof -p 20040 | grep Flash
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/walter/.gvfs
Output information may be incomplete.
plugin-co 20040 walter 16u REG 8,2 1249930 21708868 /tmp/FlashXXQANNm2 (deleted)
root@talento:~#
You are interested in the file descriptor id, these are the file descriptors from that process:
root@talento:~# ls -la /proc/20040/fd/
total 0
dr-x------ 2 walter walter 0 2011-04-30 21:12 .
dr-xr-xr-x 7 walter walter 0 2011-04-30 21:06 ..
lr-x------ 1 walter walter 64 2011-04-30 21:12 0 -> /dev/null
lrwx------ 1 walter walter 64 2011-04-30 21:12 1 -> /home/walter/.xsession-errors
l-wx------ 1 walter walter 64 2011-04-30 21:12 10 -> pipe:[18679239]
lr-x------ 1 walter walter 64 2011-04-30 21:12 11 -> pipe:[18679240]
l-wx------ 1 walter walter 64 2011-04-30 21:12 12 -> pipe:[18679240]
lrwx------ 1 walter walter 64 2011-04-30 21:12 13 -> socket:[18679243]
lr-x------ 1 walter walter 64 2011-04-30 21:12 14 -> /home/walter/.mozilla/firefox/2te1hj2x.default/cert8.db
lr-x------ 1 walter walter 64 2011-04-30 21:12 15 -> /home/walter/.mozilla/firefox/2te1hj2x.default/key3.db
lrwx------ 1 walter walter 64 2011-04-30 21:15 16 -> /tmp/FlashXXQANNm2 (deleted)
lr-x------ 1 walter walter 64 2011-04-30 21:16 17 -> pipe:[19890054]
l-wx------ 1 walter walter 64 2011-04-30 21:16 18 -> pipe:[19890054]
lr-x------ 1 walter walter 64 2011-04-30 21:16 19 -> pipe:[19890055]
lrwx------ 1 walter walter 64 2011-04-30 21:12 2 -> /home/walter/.xsession-errors
l-wx------ 1 walter walter 64 2011-04-30 21:16 20 -> pipe:[19890055]
lrwx------ 1 walter walter 64 2011-04-30 21:16 21 -> socket:[19890059]
lrwx------ 1 walter walter 64 2011-04-30 21:12 22 -> socket:[19338003]
lr-x------ 1 walter walter 64 2011-04-30 21:12 23 -> anon_inode:inotify
lrwx------ 1 walter walter 64 2011-04-30 21:12 3 -> socket:[18679123]
lrwx------ 1 walter walter 64 2011-04-30 21:12 4 -> anon_inode:[eventpoll]
lrwx------ 1 walter walter 64 2011-04-30 21:12 42 -> socket:[18679124]
lrwx------ 1 walter walter 64 2011-04-30 21:12 5 -> socket:[18679236]
lrwx------ 1 walter walter 64 2011-04-30 21:12 6 -> socket:[18679237]
lr-x------ 1 walter walter 64 2011-04-30 21:12 7 -> pipe:[18679238]
l-wx------ 1 walter walter 64 2011-04-30 21:12 8 -> pipe:[18679238]
lr-x------ 1 walter walter 64 2011-04-30 21:12 9 -> pipe:[18679239]
What is of our interest if the Flash process, displayed in the previous lines.
Now, you can copy the file to a safe place, because, if you close Firefox, those files are released and lost.
cp /proc/20040/fd/16 ~/Desktop/A.Movie.mpeg
Now if you want to put everything in a script:
root@talento:~# cat saveflash.sh
#!/bin/bash
PID=`ps -ef | grep libflashplayer.so | grep -v grep | awk '{print $2}'`
FD=`lsof -p $PID | grep Flash | awk '{print $4}' | sed 's/u$//'`
cp /proc/$PID/fd/$FD "$1"
And remember, you can "invite me a coffee" :)
Yahoo KDD Cup
In a few days starts the Yahoo KDD Cup, i'll participate in this one. It is an interesting task where the rate of users has to be predicted. The prediction task is based on previous users behaviour, finding patterns and common music/artists/genre and profiling new customers based on the music they do like. I hope i have fun during this competition and keep learning from these experiences.
If possible, i would keep doing all my mining/machine learning scripts in perl, so i will share the solutions for the problems i had to face during this experience.
I wanted to search an id inside an array, to do this i did:
open TODO, "todo" or die $!;
my @todo =;
close TODO;
@array = ();
foreach (@todo) {
my ($id, $type) = split(/\t/);
chop ($type);
$array[$id] = $type;
}
my @todo =
close TODO;
@array = ();
foreach (@todo) {
my ($id, $type) = split(/\t/);
chop ($type);
$array[$id] = $type;
}
my ($id, $rank, $day, $time) = split(/\t/, $linea);
Subscribe to:
Posts (Atom)
