connecting internet in command line

Taking care of your Linux box.

connecting internet in command line

Postby leolove » Sat Sep 20, 2003 6:46 pm

hi all
i m a new user of linux
linux is my aim
i want to know that how i connect internet through command line
in the desktopn envoironment i use alot of things
i have lot of question
1) how i can access my fat partiotion on linux
2) how i connect internet through commandline
3) how i see my network Pc's and shared resources
4) which the best source of studying linux...i mean any book? please tell me name
that's it for now....
before answering me you must be remember that i m a new user. i dont know about kernel and other some big things. please reply in easiest way
thank you
and please mail your answer to : syedali999@hotmail.com
leolove
Naik
 
Posts: 55
Joined: Tue Sep 16, 2003 7:06 pm
Website: http://www2.syedali999.com/linuxcom.html
WLM: syedali999@hotmail.com
Yahoo Messenger: asad_2_2000@yahoo.com

Postby farhanksa » Sat Sep 20, 2003 7:27 pm

aoa
welcome to the world of linux ! :)
i request u to pls search before posting as we had been posting the same things agian and again..never mind.....we had been doing and wil be doing again and again....np

to access fat u need to mount the partition on the directory
use the command fdisk -l to see the partition table...(info of ur partitions)
make directory by mkdir dirname

mount /dev/hd?# /dirname
? =a,b,c, or d a=primary master b=primary slave c=sec master d=sec slave
# is ur partition # on ur hd

2. to use internet from command line basically SHELL
u need to edit the /etc/wvdial.conf file and set stupiod mode=yes dont remember
kppp is recomended to connect internet...(keep in mind ur modem is configured well)
for shell browsing use lynx www.yahoo.com but it dont makes any difffernce in speed of browsing..

3.to share resourses pls read detail post about samba server configuration
4. best to study is the hard book....i prefer books over ebooks....just buy any good nook easily available
farhanksa
Subedar
 
Posts: 359
Joined: Sun Nov 03, 2002 6:40 am
ICQ: 116765501
WLM: farhan12@msn.com
Yahoo Messenger: commdsl@yahoo.com
Location: Lahore

LINUX FOR DUMMIES

Postby lemon » Sat Sep 20, 2003 10:08 pm

Yar a great book for newbies is Linux for Dummies by IDG books now available at any old books store a great book try it.
:D
Wasay Ahmed
B.E. CE SSUET
MBA IBA
lemon
Naik
 
Posts: 80
Joined: Wed Aug 07, 2002 8:00 pm
Website: http://www.geocities.com/cyrix_pk
WLM: wasayahmed@hotmail.com
Yahoo Messenger: cyrix_pk@yahoo.com
AOL: wasayinstead@netscape.net
Location: karachi

Postby Faraz.Fazil » Sat Sep 20, 2003 11:19 pm

To MOunt Fat/Fat32 Partitions in Linux:

ts very simple.

in terminal give the command fdisk -l

It will show all the partitions and their hda numbers.

Note the hda number of the fat32 drive u want to access in linux.

Then create a mount point in /mnt directory by issuing this command in terminal:

mkdir /mnt/windrive

or any dir of your choice

Then issue this command to mount the drive:

mount -t vfat /dev/HDANUMBER /mnt/windrive

e.g

mount -t vfat /dev/hda6 /mnt/winfdrive

Then browse to /mnt/windrive through terminal or the gui to access the drive.

Note: You kernel must have support for mounting fat/fat32 partitions.
By default most kernels on most distros have that support.
If you kernel does not have that support, you may need to recompile it to include that support.

To automatically mount partitions at boot time edit /etc/fstab and include the appropriate info like hdanumber and mount point of the partition which you want to be automatically mounted.

To connect to the internet

You can connect to the internet through many different types of connections.
Do u intend to use a dialup internet connection using modem and POint to point protocol (PPP) or do u want to access internet through an ethernet based connection like a desi cable net system?

And why do u want to accesss the net from command line...why not from the GUi IN X?

To access the net using dialup. u frist of all need to make sure tha PPP and your modem are set up and installed correctly in linux.

Then u can use a PPP connection tool like redhat-config-network (gui based in redhat)) or u can use kppp to connect to the internet.

KPPP is much better and is recommended.

TO browse the internet, you ofcourse need a good webbrowser.

Some good console based web browsers are lynx.
Some good gui based browsers are Opera 7.11 for linux or mozilla.

To set up yout network shares

first of all u need to set up your ethernet lan connection properly.For that first make sure that your ethernet card is installed, configured and working properly.

u use the samba server part to share stuff on your linux box....for windows clients to access....and u use samba client part to access shares stored on windows servers/boxes

To mount/access shares stored on windows machines, use the smbmount command.

Do a smbmount --help command in terminal for more info.

Linux Resources

There are excellent ebooks and magz available on linux on the internet for free.
Also there are print magazines and print books...but the print versions, they ofcourse are not free.

Check these threadS:

http://www.linuxpakistan.net/forum2x/vi ... light=free

and

http://www.linuxpakistan.net/forum2x/vi ... hlight=ptg
Faraz.Fazil
Major General
 
Posts: 1024
Joined: Thu Jul 04, 2002 5:31 pm
WLM: faraz7476@hotmail.com
Location: Karachi/Pakistan/Earth/Universe

Re:

Postby LinuxFreaK » Sun Sep 21, 2003 12:51 am

Dear All PLUCian's
Salam,

As Faraz.Fazil and farhanksa wrote and i think there is nothing more to tell ya. but for your convinence i would like to give you step by step information about your Questions.

1st Question : how i can access my fat partiotion on linux ?
Step 1:
simple make sure that you have directory /mnt/dos in your Linux Partision if you don't then create one with mkdir /mnt/dos command :)
# mkdir /mnt/dos
Step 2:
simple just edit your /etc/fstab or use command line to mount your windows partions with mount command.
# mount -t vfat /dev/hda1 /mnt/dos

Step 3:
you are done. check oout your paritions. with ls command.
# ls -al /mnt/dos

2nd Question : how i connect internet through command line ?

I prefer you to Read Linux PPP HOWTO and also prefer you the [url=devel-home.kde.org/~kppp/]KPPP[/url] a KDE PPP Dialer.

3rd Question : how i see my network Pc's and shared resources ?

Step 1 :
1st Make Sure you are on LAN and you have installed Samba Server.

Step 2 :
To share your network use smbmount command.
any way Refer to Faraz.Fazil Answer Bcoz Answers are same but we only can write for your conveninace.

4th Question : Linux Resources ?

Check out the LinuxPakistan.Net Forum and Google.com.pk is your Friend. search project at Freshmeat.Net, SourceForge.Net and Linux Documentation

Wish You Best of Luck.

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby Faraz.Fazil » Sun Sep 21, 2003 1:39 pm

Good luck leo!!

Do inform us of your progress.
Faraz.Fazil
Major General
 
Posts: 1024
Joined: Thu Jul 04, 2002 5:31 pm
WLM: faraz7476@hotmail.com
Location: Karachi/Pakistan/Earth/Universe

thankx alot for your corporation

Postby leolove » Mon Sep 22, 2003 2:19 am

thankx to all users
please do a work for me
when ever i post a new question please answer it and do it step by step
some users told me about kernel and some other big s*** i dont know about it....this is the first time i installed it....i m a network security administrator. i m currently using 2000 that is why i asking alot of things abou it




thanx again to all
leolove
Naik
 
Posts: 55
Joined: Tue Sep 16, 2003 7:06 pm
Website: http://www2.syedali999.com/linuxcom.html
WLM: syedali999@hotmail.com
Yahoo Messenger: asad_2_2000@yahoo.com

Re: thankx alot for your corporation

Postby Faraz.Fazil » Mon Sep 22, 2003 7:58 pm

Dont worry leo, youll learn with time.
Experience is the best teacher
good luck with your ventures.

leolove wrote:thankx to all users
please do a work for me
when ever i post a new question please answer it and do it step by step
some users told me about kernel and some other big sh*t i dont know about it....this is the first time i installed it....i m a network security administrator. i m currently using 2000 that is why i asking alot of things abou it




thanx again to all
Faraz.Fazil
Major General
 
Posts: 1024
Joined: Thu Jul 04, 2002 5:31 pm
WLM: faraz7476@hotmail.com
Location: Karachi/Pakistan/Earth/Universe


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron