Friday, June 22, 2007

share files from one linux to other linux/windows

Sharing files between one linux system to other is easy :- All you need is the ip address of the system where you are accessing . I use NFS for sharing


IN YOUR SOURCE SYSTEM . ( system which shares files )

1. install nfs .
sudo apt-get install nfs-kernel-server .

2. open the nfs-exports file .

sudo vim /etc/exports

( this is the file which defines the shares )

just add a line like this one where /home/share_folder is the one folder on your system which you want to share with hostname1,hostname2 . The 'ro' says readonly and 'rw' says readwrite .

/home/share_folder hostname1(rw,sync) hostname2(ro,sync)


IN YOUR DESTINATION SYSTEM . ( system which uses the remote shared files )

just mount the network share onto your local folder and start using it !!

mount source_ip_address:/home/share_folder /mnt/nfs-mount

Now , the contents of folder in source system is available in destination system .


If your destination system is windows , go to mycomputer->tools->map a network drive. Then enter the \\source_ip\shared_folder . A network drive should be created. ( I havenot used this in windows though yet , You can try with samba doing the same )
If the windows share doesnot work , please refer to link

'http://2tap.com/2007/04/22/
sharing-files-between-a-windows-guest-and-
ubuntu-host-using-vmware-and-samba/'

it explains about sharing files between virtual windows and linux , but same thing will work in normal case too.

Thursday, June 21, 2007

ubuntu network support

I believe that the existence of humanity is impossible without internet . So one imp thing we look at is how ubuntu supports the ethernet cards or even wireless cards .

Normally the ethernet card or the wireless card vendors donot release the source code of their drivers or the linux version of the drivers which was a cause of panic for all linux users !!! and thanks to microsoft marketing , which makes sure everyone releases drivers for windows !

But now linux hackers have come up with a new thing called ndiswrapper - this just makes ur linux work for ur ethernet card or wireless card if u have a windows driver for it :) .

"This project implements Windows kernel API and NDIS (Network Driver Interface Specification) API within Linux kernel. A Windows driver for wireless network card is then linked to this implementation so that the driver runs natively, as though it is in Windows, without binary emulation." - http://ndiswrapper.sourceforge.net/joomla/

So ur ubuntu will be up with internet as soon as u boot . u donot need to worry at all . For me it has worked with both ethernet card and cheap wireless cards too !

If you want to configure the network settings , go to System->Administration->network .
It will display a list of all network interfaces you have . Then configure all parameters whether dhcp , static etc as in windows . For wireless cards , it displays the available networks too .

If you want to restart network services after changing any thing just use
/etc/init.d/network restart ( you actually donot need to do this , once u press 'ok' in the gui )
Alternatively you can edit the /etc/network/interfaces file to change settings .

install ubuntu

installing ubuntu is very easy .

visit http://www.ubuntu.com/getubuntu/download . the size is very small around 700MB . and installation takes just 15 minutes .

if you are a techie and interested to build it from source please visit archive.ubuntu.com and download ur favorite flavor of ubuntu

get started

use this link if you are just switchin to linux from windows ...!
http://www.pcmech.com/show/os/917/

am no linux expert yet ......
have been using continuously since around 1 yr and totally i have used it for 2 years .Thanks to one of my lecturers Mohanan who helped us get a feel of it early in my undergrad days :) so that my passion grown long !
but i am surely a big fan bez i like all things on earth which are smart and intelligent ! At the same time i wont be making any biassed comparison and its open to debates ..

why linux ?

i find the 3 important reasons linux is better than windows is

http://en.wikipedia.org/wiki/Comparison_of_Windows_and_Linux

1. security , till date 'File viruses have been written for Linux, none has yet propagated successfully ' ! tats the greatness ...... where as every day windows is attacked by viruses .

2. robustness . linux can run for years without even a reboot - the memory management is the best . Where as windows versions till ME were not considered stable and user was haunted with the notorious blue screen ! later versions are considered stable but requires reboot normally for any updates or installations . ( windows do has a techique of hot installation )

3. flexibility - since its open source and can recompile kernel itself or build a custom kernel itself .

first one

first1 of mine ............ life has been a very eventful journey so far n i m gonna keep it same way all through ! oh no , blogs are just blogs .... i write it for fun , eh! its dedicated to all linux users and the path for complete linux and freedom from the buggy windows ..