LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-23-2004, 10:25 AM   #1
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 117

Rep: Reputation: 17
how do i connect to the internet without becoming su, and disconnect afterwards?


This is probably a silly question but i come from a windows environment....

how do i connect my pc to the internet when i want to use it (the internet) and then disconnect it when i'm finished?

at the moment i activate the mandrake control centre when i want to go online (like now), log on as root and connect. then i disconnect when i've done whatever it is i want to do online.

surely there must be an easier way ????

Q. robur
 
Old 03-23-2004, 10:29 AM   #2
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
How are you connecting?
Look into sudo
 
Old 03-24-2004, 04:43 AM   #3
lachlan
Member
 
Registered: Jan 2002
Location: New Zealand
Distribution: Mandrake 9.1,Suse 8.2
Posts: 139

Rep: Reputation: 15
Install and configure kppp,it's on one of your CD's.

Lachlan
 
Old 03-24-2004, 02:46 PM   #4
ghow961
LQ Newbie
 
Registered: Mar 2004
Posts: 14

Rep: Reputation: 0
If you are using adsl ....

You can use the commands adsl-start adsl-stop and adsl-status
To configure the connection use adsl-setup

They are installed with rp-pppoe package, and run as root
To allow any user connect/disconnect add these lines to /etc/sudoers
Code:
# Create ADSL alias for the adsl commands
Cmnd_Alias      ADSL = /usr/sbin/adsl-start, /usr/sbin/adsl-status, /usr/sbin/adsl-stop
# Allow all users run the adsl commands without a password
ALL     ALL = NOPASSWD: ADSL
Then any user can run the commands using sudo (run as root), eg "sudo adsl-start"
The simplest thing is to create aliases in your .bashrc such as these
Code:
alias adslstart='sudo adsl-start'
alias adslstatus='sudo adsl-status'
alias adslstop='sudo adsl-stop'
Then you can connect/disconnect with adslstart and adslstop
 
Old 03-30-2004, 12:38 AM   #5
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 117

Original Poster
Rep: Reputation: 17
Wink

i've done it, thatnks. i had to install kppp and now
it works fine

thanks a lot

Q. ruber

 
Old 07-30-2004, 02:34 PM   #6
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
Hello:

To connect to internet i did what ghow961 said but when i run the comand adslstop or adslstart i get this:
sudo: adsl-stop: command not found

I have read the sudo help but i can find where is the mistake
 
Old 07-30-2004, 02:44 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,128

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Santas, do you have a PPPoE client like rp-pppoe installed? The adsl-{start,stop,status} commands are part of that package.
 
Old 07-30-2004, 03:07 PM   #8
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
yes i can connect to the net but only as root i have installed pr-pppoe
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto detect disconnect / connect vb7prog Linux - Networking 1 11-18-2004 03:26 AM
dialing up in Fedora core 1 - how to connect/disconnect? carjumble Linux - Newbie 7 12-22-2003 06:19 AM
how to disconnect a client connect by proxy squid? echox Linux - Software 0 04-06-2003 08:35 PM
How to connect or disconnect adsl Mimicafe Linux - Networking 4 03-07-2003 10:48 AM
internet disconnect time fstreed Linux - Newbie 0 12-25-2002 10:20 AM


All times are GMT -5. The time now is 09:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration