Foss cell has been setup in our college by a group of Linux enthusists , This is a group of Open Source Software Enthusiasts from Govt. Engineering College, sreekrishnapuram . The main objective is to bring together students and users to explore, discuss and share knowledge on usage of open source software . As part of first activity of FOSS cell GEC Sreekrishnapuram , a class on linux installation was conducted by me, syamkrishnan and najeeb sir.This was made possible due to the immense support extended to us by our HOD and lab staff.The class started with the indroduction session on linux and unix ,its ethics,GPL license etc on 14th march 2011 . The next two sessions on 16th and 17th march were workshops on 'How to install linux successfully' . Installation CDs ware given to groups of 8 students each . 95% of the students succeeded in their first attempt itself.Linux commands were also taught in the second and third workshop.The response from students was really great.The students of all semesters participated in this . The class was very effective and many students described it as highly resourcefull .I saw many students installing linux on their laptops many number of times and were trying out different distributions of linux.So I assume that the students were highly motivated by these classes.The number of students has increased since then .We look upon it as a positive response. We welcome any kind of feedback on the classes ,it's pros and cons and how students would like us to improve upon it,
Thank you!
Monday, 21 March 2011
Wednesday, 8 September 2010
python
Python is simple real programming language. It's use comes mainly for automation purpuses as shell and pearl is being used. python is applicable to larger problem domain than in shell or pearl with the help of its build in flexible data structures.
python gives more structural support for large programs than bash and pearl.
python offers much more error checking than c.
python has more flexible data structures like flexible arrays and dictionaries.
python allows to split the program into several modules and these modules can be reused.
python has a collection of build in modules
python allows the programs to be written in a more readable form.
python saves the software development time as it is having the following features.
1)The high level data structure and the map-reduce operations allows you to do complex jobs in single lines.
2)Statement grouping is done by indentation instead of braces , this will make code more readable and saves a considerable amount of time when writing large programs.
3)No variable declaration is required as the type of the variable is found while its first assignment.
python is extensible(ie, if you known c coding you can write codes for new build in functions and modules.)
So what do you think , isn't python awesome .
To learn more you should read the online python tutorial and also write small programs along with it.
python gives more structural support for large programs than bash and pearl.
python offers much more error checking than c.
python has more flexible data structures like flexible arrays and dictionaries.
python allows to split the program into several modules and these modules can be reused.
python has a collection of build in modules
python allows the programs to be written in a more readable form.
python saves the software development time as it is having the following features.
1)The high level data structure and the map-reduce operations allows you to do complex jobs in single lines.
2)Statement grouping is done by indentation instead of braces , this will make code more readable and saves a considerable amount of time when writing large programs.
3)No variable declaration is required as the type of the variable is found while its first assignment.
python is extensible(ie, if you known c coding you can write codes for new build in functions and modules.)
So what do you think , isn't python awesome .
To learn more you should read the online python tutorial and also write small programs along with it.
Monday, 15 March 2010
Connect to internet via bluetooth
Connect to internet via bluetooth
----------------------------------
From linux systems you can connect to internet from
your phone through bluetooth. For this you need to edit
the configuration file
edit /etc/wvdial.conf as follows
***************************************************
[Dialer bluetooth]
Modem = /dev/rfcomm0
[Dialer usb]
Modem = /dev/ttyACM0
Modem Type = USB Modem
[Dialer Defaults]
Modem = /dev/ttyACM0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = yes
Modem Type = USB Modem
Phone = *99#
New PPPD = yes
nit6 = AT+CGDCONT=1,"IP","internet"
ISDN = 0
Username = b
Password = a
Baud = 460800
*****************************************************
now you need to type some commands in the teminal
i will demonstrate it in some steps
step1:
>hcitool scan
this command will give you Bluetooth device's address
for example the output looks like this
Scanning ...
00:1B:AF:F2:DE:1C Tòñý£íjøjôßë
00:1E:7D:4F:97:71 nibas
step2:
>rfcomm connect 0 00:1B:AF:F2:DE:1C
replace the bluetooth device address given above by yours
now pair the device
step3:
>wvdial bluetooth
now you will be connected
to check the connectivity try
>ping google.com
----------------------------------
From linux systems you can connect to internet from
your phone through bluetooth. For this you need to edit
the configuration file
edit /etc/wvdial.conf as follows
***************************************************
[Dialer bluetooth]
Modem = /dev/rfcomm0
[Dialer usb]
Modem = /dev/ttyACM0
Modem Type = USB Modem
[Dialer Defaults]
Modem = /dev/ttyACM0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = yes
Modem Type = USB Modem
Phone = *99#
New PPPD = yes
nit6 = AT+CGDCONT=1,"IP","internet"
ISDN = 0
Username = b
Password = a
Baud = 460800
*****************************************************
now you need to type some commands in the teminal
i will demonstrate it in some steps
step1:
>hcitool scan
this command will give you Bluetooth device's address
for example the output looks like this
Scanning ...
00:1B:AF:F2:DE:1C Tòñý£íjøjôßë
00:1E:7D:4F:97:71 nibas
step2:
>rfcomm connect 0 00:1B:AF:F2:DE:1C
replace the bluetooth device address given above by yours
now pair the device
step3:
>wvdial bluetooth
now you will be connected
to check the connectivity try
>ping google.com
Tuesday, 28 July 2009
compile linux kernel yourself
Download a kernel source code ,if it is a compressed source code decompress it and then enter the directory.
To configure your kernel according to your needs you can type any of the following commands
* make menuconfig (ncurses based )
* make config (text based)
* make Xconfig (X11 based)
* make gconfig (gui based).
After configuring the kernel u can type makedep (if u r using kernel source less than or equal to 2.4 else this step is not needed),
then type the command makebzImage (if u r using kernel source less than or equal to 2.4 else this step is not needed)then type make modules (if u r using kernel source less than or equal to 2.4 else this step is not needed) if you r using 2.6 kernel then you can avoid steps after make menuconfig
and just type make -j2 or j4 according to the no of processors
after this step just type the command make modules_install then make install
Now a kernel image will be formed in the /boot directory
if no initrdimg if formed for the new kernel just make it manualy by the command mkinitramfs /tmp/initrd[version].img [version]
now type cp /tmp/initrd[version].img /boot
Now we shall edit the grub as
title name of the kernel
root (hd0,X)#where x is the partition no of your root filesystem minus 1
kernel vmlinuz[version]
initrd intrd[version].img
To configure your kernel according to your needs you can type any of the following commands
* make menuconfig (ncurses based )
* make config (text based)
* make Xconfig (X11 based)
* make gconfig (gui based).
After configuring the kernel u can type makedep (if u r using kernel source less than or equal to 2.4 else this step is not needed),
then type the command makebzImage (if u r using kernel source less than or equal to 2.4 else this step is not needed)then type make modules (if u r using kernel source less than or equal to 2.4 else this step is not needed) if you r using 2.6 kernel then you can avoid steps after make menuconfig
and just type make -j2 or j4 according to the no of processors
after this step just type the command make modules_install then make install
Now a kernel image will be formed in the /boot directory
if no initrdimg if formed for the new kernel just make it manualy by the command mkinitramfs /tmp/initrd[version].img [version]
now type cp /tmp/initrd[version].img /boot
Now we shall edit the grub as
title name of the kernel
root (hd0,X)#where x is the partition no of your root filesystem minus 1
kernel vmlinuz[version]
initrd intrd[version].img
Sunday, 28 June 2009
how to restore your grub
methord 1
Insert your instalation cd or dvd to your drive
1)Now take a terminal by typing Alt+Ctl+F2
2)Find out the ext3 partition where you have installed your linux
this can be done by typing the cammand fdisk -l in the terminal,
for example
debian:/home/tonylijo# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x094e094d
Device Boot Start End Blocks Id System
/dev/sda2 * 1 19457 156288321 f W95 Ext'd (LBA)
/dev/sda5 4866 9730 39078081 7 HPFS/NTFS
/dev/sda6 9731 14595 39078081 83 Linux
/dev/sda7 1 4865 39078018 83 Linux
/dev/sda8 14596 15081 3903763+ 82 Linux swap / Solaris
/dev/sda9 15082 19457 35150188+ 83 Linux
3)now create a directory mkdir /linux
4)now mount the linux parrtition to this new directory
mount -t ext3 /dev/sda7 /linux
5)now make new root directory
chroot /linux
6)install grub to the master boot record
grub-install /dev/sda
methord 2:
Insert a live cd on your cdrom
boot linux from the live cd
now take a terminal or konsole
then type
grub in the terminal
then the screen will appear as
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub>
type root(hd0,x)
x=your linux partition no -1
after that type
setup(hd0)
now your grub will be re stored.....
Insert your instalation cd or dvd to your drive
1)Now take a terminal by typing Alt+Ctl+F2
2)Find out the ext3 partition where you have installed your linux
this can be done by typing the cammand fdisk -l in the terminal,
for example
debian:/home/tonylijo# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x094e094d
Device Boot Start End Blocks Id System
/dev/sda2 * 1 19457 156288321 f W95 Ext'd (LBA)
/dev/sda5 4866 9730 39078081 7 HPFS/NTFS
/dev/sda6 9731 14595 39078081 83 Linux
/dev/sda7 1 4865 39078018 83 Linux
/dev/sda8 14596 15081 3903763+ 82 Linux swap / Solaris
/dev/sda9 15082 19457 35150188+ 83 Linux
3)now create a directory mkdir /linux
4)now mount the linux parrtition to this new directory
mount -t ext3 /dev/sda7 /linux
5)now make new root directory
chroot /linux
6)install grub to the master boot record
grub-install /dev/sda
methord 2:
Insert a live cd on your cdrom
boot linux from the live cd
now take a terminal or konsole
then type
grub in the terminal
then the screen will appear as
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub>
type root(hd0,x)
x=your linux partition no -1
after that type
setup(hd0)
now your grub will be re stored.....
configure bsnl wll in linux
step1: First check that whether your modem is been detected
this can be done by typing the cammand wvdialconf
if yor modem is not been detected you have to register it to the kernel as in step 2.
step2:now you need to type the command lsusb
modprobe usbserial vendor=0×15eb product=0×0001
step3:modprobe ppp_generic
step4:wvdialconf
step5:now edit the file /etc/wvdial.conf
edit in the file as follows
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = at+crm=1;+cmux=1;+cps=33;+cta=0
Stupid Mode = yes
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = *777#
Modem = /dev/ttyACM0(this field may be diffrent for diffrent users)
Username = your phone no
Password = last 4 digits of your phone no
Baud = speed of your wll connection
save the file
step6:wvdial
step7:ping http://www.google.com
this can be done by typing the cammand wvdialconf
if yor modem is not been detected you have to register it to the kernel as in step 2.
step2:now you need to type the command lsusb
modprobe usbserial vendor=0×15eb product=0×0001
step3:modprobe ppp_generic
step4:wvdialconf
step5:now edit the file /etc/wvdial.conf
edit in the file as follows
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = at+crm=1;+cmux=1;+cps=33;+cta=0
Stupid Mode = yes
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = *777#
Modem = /dev/ttyACM0(this field may be diffrent for diffrent users)
Username = your phone no
Password = last 4 digits of your phone no
Baud = speed of your wll connection
save the file
step6:wvdial
step7:ping http://www.google.com
Subscribe to:
Posts (Atom)