LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-31-2005, 08:41 PM   #1
FlameKhan
LQ Newbie
 
Registered: Jan 2005
Location: Ohio,USA
Distribution: SuSE Linux 9.2
Posts: 10

Rep: Reputation: 0
DHCP Script


I run Suse 9.2. I have a DSL connection and I'm using DHCP to get my IP address for the internet from my router. This process is suppose to happen at boot but I can't figure out why it isn't. In any case I can run dhcpcd and get the internet working. I'm really new at Linux so I need to know how to do a few things. The first is to make dhcpcd usable by all users on the system, presently only root has access. I also need to wright a script that will run dhcp and get the internet working, case being that other users on the system don't know how and need something they can just click. If anyone can help on either subject it would be a great help. Knowing what the problem is at boot would be really good too. dhcp works sometimes at boot but at other times it fails. There is also a problem every time dhcp is run that seems to be concerned with ipv4 or something of that nature but it doesn't seem to hurt the internet connection or impair my firewall in any way. Thank you for your time!
 
Old 08-31-2005, 09:04 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Is your DSL router properly connected when dhcpcd is being run? In order for all users to run dhcpcd, you'll have to make it setuid, but this could pose a security risk (though unlikely). You could create a desktop icon that runs "dhcpcd eth0" or as needed for your system.
 
Old 08-31-2005, 09:44 PM   #3
Darvocet
Member
 
Registered: Feb 2003
Location: United States
Distribution: RHEL, Slackware, Gentoo, Fedora, CentOS, Ubuntu, Debian
Posts: 66

Rep: Reputation: 15
This is the problem here, why the hell would you make a desktop icon for it? This isn't windows. If you want an icon, install XP.

try adding dhcpcd eth0 to the /etc/rc.d/rc.local or one of the other files which runs programs on boot (not sure what suse uses) but that would make it start at boot.

If you want it to start at boot, then you add it to init scripts, not to your freakin desktop. You shouldnt have a desktop anyways, but to each his own.
 
Old 08-31-2005, 10:57 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by Darvocet
You shouldnt have a desktop anyways, but to each his own.
I am curious why you say this. I consider myself an experienced linux user of 7 years, and do prefer the command line myself. Are you arguing against GUIs or just Desktops?
 
Old 08-31-2005, 11:07 PM   #5
Darvocet
Member
 
Registered: Feb 2003
Location: United States
Distribution: RHEL, Slackware, Gentoo, Fedora, CentOS, Ubuntu, Debian
Posts: 66

Rep: Reputation: 15
Quote:
Originally posted by Matir
I am curious why you say this. I consider myself an experienced linux user of 7 years, and do prefer the command line myself. Are you arguing against GUIs or just Desktops?
Yes allow me to clarify, I am against GUI for linux. I realize that they now have some functionality, but I feel that if a user can't do it in command line they have no business in linux in the first place.
 
Old 09-01-2005, 09:30 AM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Well, I do not want to get into a debate here and drag this thread down, but I'll just say everyone has their own opinion.
 
Old 09-05-2005, 01:30 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by Darvocet
This is the problem here, why the hell would you make a desktop icon for it? This isn't windows. If you want an icon, install XP.

try adding dhcpcd eth0 to the /etc/rc.d/rc.local or one of the other files which runs programs on boot (not sure what suse uses) but that would make it start at boot.

If you want it to start at boot, then you add it to init scripts, not to your freakin desktop. You shouldnt have a desktop anyways, but to each his own.
Could you please tone this down a bit? You're not REALLY
helping him here, and for opinions there's General, or threads
that were started for that purpose. He did express that it is
being run, but that it sometimes fails to get a lease.


Cheers,
Tink
 
  


Reply



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
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 09:34 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
DHCP Problems - Script? Kane635 Linux - Software 3 09-18-2004 04:42 PM
firewall script. DHCP? e1000 Linux - Networking 1 11-08-2003 08:13 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:58 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration