LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-21-2009, 12:48 AM   #1
njoydavid
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 0
How to configure DNS settings from init 3 in Fedora 10


I have Fedora 10 installed and have been running it a few months. DNS settings are wiped on reboot as others here have mentioned.
It was a slight nuisance to reset them each time.
Someone suggested that I remove the line

auth required pam_succeed_if.so user != root quiet

from /etc/pam.d/gdm.

Bad mistake!

Now I cannot log into the desktop. I have used terminal single user mode to replace the missing line, but still am not able to log into desktop.

I need to know how to config DNS settings from init 3 su mode.

I want to reinstall yum and gdm from that space, but I can't get out to the internet.

I can ping around my lan but not outside.

So how do I configure dns from init 3 su mode?

I am seriously new to linux

Last edited by njoydavid; 04-21-2009 at 12:49 AM.
 
Old 04-21-2009, 07:53 AM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 307

Rep: Reputation: 38
Hi

By putting that back in and rebooting you should have been ok.

If you have a network behind a standard router/modem that is running DHCP you should be ok by just doing:

sudo dhclient eth0


The reason why you can't get out will be because either the DNS resolution isn't working correctly (please give me the output of /etc/resolv.conf) or the Router isn't set as the Default Route. Again, type `sudo route` and post the output for more help
 
Old 04-21-2009, 01:30 PM   #3
njoydavid
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reply arckane,

sudo dhclient eth1 did not work. I'm unable to use eth0. it's on-board and never worked properly. So I've been connecting through a card.

/etc/resolv.conf is empty.

I added a nameserver and was able to get out on the net and do some reinstalls, so you've helped with the problem at hand.

Still, something else is amiss, so it's off to explore ways to resolve those problems.

I'm looking at this site for reference, in case anyone else out there is having my problem.

http://projects.gnome.org/gdm/docs/2.18/gdm.html

I really like this site. I think linux is going to be a great adventure.

It's quite a challenge.
 
Old 04-21-2009, 08:51 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
For the gnome desktop etc, you could try
Code:
yum groupinstall "GNOME Desktop Environment"
if you've got yum working.
For listing all avail groups its
Code:
yum grouplist
 
Old 04-22-2009, 12:35 AM   #5
njoydavid
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I'm back up and able to log in as usual. In fact I'm browsing from my linux box, thank you very much.

The solution I found was to log in as single user

single user

init 3

login as root

yum remove gdm
yum install gdm
reboot

Seems that I created lots of inconsistencies with trying to edit without knowing what I was doing.

Best route is to have the system remove the corruptions and reinstall clean.

It's been a good learning session.

Thanks to all for your help.
 
  


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
Fedora 10 won't remember DNS settings on reboot Laserjock Linux - Newbie 6 03-31-2009 10:29 AM
how to configure master dns in windows2003 server and its slave dns in rhel5 suneellinux Linux - Newbie 1 04-11-2008 06:13 PM
How do I configure DNS suffix in Fedora Core 6 dperryr Linux - Newbie 1 11-01-2007 07:52 AM
Network settings / DNS Server settings uid0sd Linux - Newbie 3 02-22-2007 04:39 PM
init level settings rufius Linux - General 1 04-29-2003 07:57 PM


All times are GMT -5. The time now is 03:50 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration