Powered By Blogger

Monday, October 31, 2011

learn Pearl

hi,
"Perl" is one of the powerful programming language. So I thought of giving a series of posts for my users. From now on I'll be constantly posting about perl. Windows users can use cyg-win program for installing and using perl. I am using ubuntu to learn perl. As usual, the first program in any programming language is "Hello, World!" program.
open a terminal
$ perl
print "Hello, World!\n"    // enter this command and press CTLR+D to execute
Hello, World!
$

Sunday, September 25, 2011

installin ruby on rails in ubuntu

first we need to install ruby
enter into terminal and enter the following command

itsme@itsme-laptop:~$ sudo apt-get install ruby
itsme@itsme-laptop:~$ sudo apt-get install rails
for more information look into http://rubyonrails.org/download

Saturday, August 20, 2011

GIMP rocks!!!

hi all....
Recently i came across an idea of painting clouds in gimp.This is my first try... so wanna share it with all.
I first painted the screen with blue and used smudge tool and drew this picture digitally...

Saturday, April 9, 2011

copying buffered videos in ubuntu 10.04

hi all
 I was easily copying the buffered videos in previous versions of ubuntu from the /tmp folder but now(ubuntu 10.04) it seems the video is not stored in that directory.So i googled it and found out that it is stored in RAM.
I wanna share that to everybody
type the following command in the terminal

$pgrep -f flashplayer
1896
you'll get the id ,in my case its 1896

get into the directory
$cd /proc/1896/fd

$ls -l

you'll have a file named Flash.....(like)

6 Flash(say)

enter the command to copy it to the home directory

$cp 6 /home/itsme/Videos

Monday, March 14, 2011

playing DOS games in ubuntu

Are you fed up with working long hours on linux system... .Cheer up!!! and take a break by playing games to refresh yourself
type the following instructions to get DOS games working on your Ubuntu machine.
- For playing DOS games on linux i suggest you to install "DOSBOX"
- Open the terminal and type

$sudo apt-get install dosbox

-After installation create a folder in your home directory for the game ... for eg:

$mkdir /home/itsme/games

-Save your favourite games in that directory

-Invoke the dosbox

$dosbox

-The dosbox window will open in a seperate window.If you want it in full screen,press  alt+enter

Z:\>mount c /home/itsme/games

-Change to c directory

Z:\>c: (press enter)

C:\>cd triplane  (folder into which the game is stored)

C:\>triplane.exe

that's  it enjoy!!!!!!!!!!!

(info: If the game runs too fast or slow don't worry.Dosbox provides ways to control the cpu cycles.Try ctrl+f7,ctrl+f8,ctrl+f11 and ctrl+f12)

Wednesday, March 9, 2011

connecting internet through mobile phone(bluetooth) Samsung GT S3310

please open this file using gedit or vim in ubuntu....

To be done on your samsung mobile

set the brower profile to

TATA.DOCOMO.INTERNET if Tata docomo
vodafonemobileconnect if Vodafone
for other networks please search on the internet or ask the service provider



To be done on your ubuntu machine....

steps for dial-up connection

1.enter the following command in the terminal(i've executed the commands on my system so that it ll be easy for you to understand)

itsme@itsme-laptop:~$ hcitool scan
Scanning ...
    44:4E:1A:B3:75:EF    ITSME                                  //it'll show you the mac address of your bluetooth device

2.copy the above mac address,and execute the following command.The command 'll show you the services available and their corresponding channel number for your mobile device.look out for the "Service Name:Dial-up Networking" and note down the channel number.

itsme@itsme-laptop:~$ sdptool browse
Inquiring ...
Browsing 44:4E:1A:B3:75:EF ...
Service RecHandle: 0x10000
Service Class ID List:
  "PnP Information" (0x1200)

Service Name: HSP Audio Gateway
Service RecHandle: 0x10001
Service Class ID List:
  "Headset Audio Gateway" (0x1112)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Profile Descriptor List:
  "Headset" (0x1108)
    Version: 0x0100

Service Name: HFP Audio Gateway
Service RecHandle: 0x10002
Service Class ID List:
  "Handsfree Audio Gateway" (0x111f)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 2
Profile Descriptor List:
  "Handsfree" (0x111e)
    Version: 0x0105

Service Name: Dial-up Networking
Service RecHandle: 0x10003
Service Class ID List:
  "Dialup Networking" (0x1103)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 3                             //here is the Dial-up Networking channel.mine is '3'.note down yours
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100

Service Name: Serial Port
Service RecHandle: 0x10004
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 4

Service Name: FTP Server
Service RecHandle: 0x10005
Service Class ID List:
  "OBEX File Transfer" (0x1106)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 5
  "OBEX" (0x0008)
Profile Descriptor List:
  "OBEX File Transfer" (0x1106)
    Version: 0x0100

Service Name: PBAP PCE
Service RecHandle: 0x10006
Service Class ID List:
  "Phonebook Access - PCE" (0x112e)
Profile Descriptor List:
  "Phonebook Access - PCE" (0x112e)
    Version: 0x0100

Service Name: Object Push
Service RecHandle: 0x10007
Service Class ID List:
  "OBEX Object Push" (0x1105)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 6
  "OBEX" (0x0008)
Profile Descriptor List:
  "OBEX Object Push" (0x1105)
    Version: 0x0100

Service RecHandle: 0x10008
Service Class ID List:
  "AV Remote Target" (0x110c)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 23
  "AVCTP" (0x0017)
    uint16: 0x102
Profile Descriptor List:
  "AV Remote" (0x110e)
    Version: 0x0103

Service Name: Advanced audio source
Service RecHandle: 0x10009
Service Class ID List:
  "Audio Source" (0x110a)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 25
  "AVDTP" (0x0019)
    uint16: 0x100
Profile Descriptor List:
  "Advanced Audio" (0x110d)
    Version: 0x0100

3.Enter the following command to edit the bluetooth configuration file.After making changes save the file....

itsme@itsme-laptop:~$ sudo gedit /etc/bluetooth/rfcomm.conf
#
# RFCOMM configuration file.
#

#rfcomm0 {
#    # Automatically bind the device at startup
bind yes;
#itsme@itsme-laptop:~$ sudo gedit /etc/bluetooth/rfcomm.conf

#    # Bluetooth address of the device
device
44:4E:1A:B3:75:EF;                    //copy the mac address of your device here
#
#    # RFCOMM channel for the connection
channel    3;                        //copy the channel number here
#
#    # Description of the connection
comment "Dial-Up Networking";                //put your own description of the connection
#}

4.Now we have to edit the wvdial.conf file for dialing up(note:if there is no such file you've to create one)

itsme@itsme-laptop:~$ sudo gedit /etc/wvdial.conf
[Dialer Defaults]
Init = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","TATA.DOCOMO.INTERNET"        //here my access point is TATA.DOCOMO.INTERNET.... if you are using a different one... ask your
Modem = /dev/rfcomm0                    //service provider
Phone = *99***1#                    //this is the dial number for tata docomo... if different as your service provider
Username = ''                        //tata docomo does not requires username and password,i don't know about other networks
Password = ''
New PPPD = yes
ISDN = no
BAUD = 115200
Stupid Mode = yes
Carrier Check = yes
Auto Reconnect = yes
lcp-echo-interval = 30
lcp-echo-failure = 4

5.All the steps are completed.Now we've to bind our bluetooth device with the system.

itsme@itsme-laptop:~$ sudo rfcomm bind 0 44:4E:1A:B3:75:EF 3         //here give your device's mac address and channel number.

6.Dialing.... (you have to accept the connection through phone.... it'll ask for DUN connection(Dial-UP Network))

itsme@itsme-laptop:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","TATA.DOCOMO.INTERNET"
AT+CGDCONT=1,"IP","TATA.DOCOMO.INTERNET"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Feb 16 11:41:52 2011
--> Pid of pppd: 2971
--> Using interface ppp0
--> pppd: 0d
--> pppd: 0d
--> pppd: 0d
--> pppd: 0d
--> pppd: 0d
--> local  IP address 14.194.173.100
--> pppd: 0d
--> remote IP address 0.194.173.100
--> pppd: 0d
--> primary   DNS address 121.242.190.181
--> pppd: 0d
--> secondary DNS address 121.242.190.210
--> pppd: 0d

7.now your system is connected to the internet.

8.If you encounter any problem you 've to edit a file.Move to the directory  /etc/peers/options
comment the line

# lcp-echo-intervel = 10

and another line

# lcp-echo-failure = 4



important!!!!!!!!

please don't forget to save each file after editing.

Friday, March 4, 2011

using WGET in windows

WGET is one of the prominent downloader.One can download webpages,files etc,. using wget.
steps
1.Download wget.exe
2.Open windows command prompt and browse into the directory where wget.exe is there.
3.enter the command -> wget "your web link(location of the file you are going to download)"
4.Don't worry if your download is stopped or terminated in between
use the option -c
5.If you want to learn more options, look into the wget manual

for example c:\>wget -c http://www.ubuntu.com/ubuntu 11.04.iso