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
 
LinkBack Search this Thread
Old 11-18-2004, 10:19 PM   #1
Mateo1041
Member
 
Registered: Nov 2004
Location: New Prague, MN
Posts: 80

Rep: Reputation: 15
Question How to edit /etc/modules.conf file?


I've read the /etc/modules.conf file needs to be modified in order to turn IPv6 off. I was going to give this a try to see if I can get my internet connection to work. But Linux won't let me edit the file via GNOME. And I can't seem to get this accomplished with VI. Do I need to boot into single user mode or something else prior to modifying this file?

Any help would be appreciated. Thanks.

- Matt.
 
Old 11-18-2004, 10:38 PM   #2
Berto
Member
 
Registered: Sep 2003
Location: Stevenson, WA, USA
Distribution: Slackware
Posts: 232

Rep: Reputation: 30
What distribution are you using? And what errors do you get when you try to edit it in Gnome?
 
Old 11-18-2004, 10:45 PM   #3
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,090

Rep: Reputation: 41
Re: How to edit /etc/modules.conf file?

Quote:
Originally posted by Mateo1041
I've read the /etc/modules.conf file needs to be modified in order to turn IPv6 off. I was going to give this a try to see if I can get my internet connection to work. But Linux won't let me edit the file via GNOME. And I can't seem to get this accomplished with VI. Do I need to boot into single user mode or something else prior to modifying this file?

Any help would be appreciated. Thanks.

- Matt.
for most distros, open the terminal.. type in "su" put in roots pass, then you can open the file with gedit or vi..

vi /etc/modules.com
or
gedit /etc/modules.conf

you should be able to edit and save the files at this point.
 
Old 11-19-2004, 12:08 PM   #4
Mateo1041
Member
 
Registered: Nov 2004
Location: New Prague, MN
Posts: 80

Original Poster
Rep: Reputation: 15
I am using Mandrake 10.0 and it wouldn't let me edit the file. There weren't necessarily any errors. It would only open as read only and I couldn't edit it. I did try VI when logged in as root, but either I couldn't modify it either with that program or I was not in the proper edit mode. Is it possible to log in as root into GNOME? I'll try gedit from the terminal next.
 
Old 11-19-2004, 12:18 PM   #5
Mateo1041
Member
 
Registered: Nov 2004
Location: New Prague, MN
Posts: 80

Original Poster
Rep: Reputation: 15
Ok, I was just able to edit the file in gedit when logged in as root via the terminal and added the following at the end to disable IPv6:

"alias net-pf-10 off"

Too bad my computer now doesn't start and gets stuck at the blue screen. Grrr...
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
edit a .conf file master Linux - General 7 10-13-2005 05:49 PM
/etc/modules.conf can not edit aus9 Mandriva 1 12-06-2004 06:14 AM
How to edit grub.conf file? hnash53 Linux - Software 1 12-12-2003 12:33 AM
How do I edit /etc/modules.conf file? GrapeApe Linux - Newbie 10 11-13-2003 07:54 PM
Edit modules.conf for sound, RH 8.0 gurre Linux - Hardware 4 12-29-2002 06:09 AM


All times are GMT -5. The time now is 02:00 PM.

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