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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
10-20-2003, 08:41 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2003
Location: Leeds, England.
Distribution: MDK 9.0
Posts: 11
Rep:
|
Making USB Internet Connection Permanent
Hi all,
following the advice given in the following excellent thread:
ww.linuxquestions.org/quest...&threadid=77412 ...
... I have managed to get my MDK 9.0 system installed and my NTL Cable modem is working (get in!!). The only problem is I have to open a console and type in a script every time I reboot - the thread advises modifying the text in the USB List of file /etc/rc.d/rc.modules, but that file doesn't have any USB List in it - on my system, it contains only the following:
#!/bin/sh
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>
# $Id: rc.modules,v 1.1.1.1 2000/07/30 05:07:38 chmouel Exp $
# description: launch modules specified in /etc/modules inspired by a
# Debian idea.
[ -f /etc/modules ] || exit 0
# Loop over every line in /etc/modules.
(cat /etc/modules; echo) | while read module args
do
case "$module" in
\#*|"") continue ;;
esac
initlog -s "Loading module: $module"
modprobe $module $args >/dev/null 2>&1
done
I am not blessed with the greatest mind in computin and no doubt I'm missing something obvious but any advice appreciated!
Cheers,
The Luddite.
|
|
|
|
10-20-2003, 09:19 AM
|
#2
|
|
Member
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Rep:
|
I'm guessing the script you run inserts modules ?
I just had a look at the thread you refer to
http://www.linuxquestions.org/questi...threadid=77412
and the way the /etc/rc.modules is described, each module is explicitly added in the script.
in your's, it's looping through rc.modules (a cleaner approach), which I think is where you'll need to add them - my rc.modules is like that too, and my /etc/modules only has 'scsi_hostadapter' on it's own line (it's the only uncommented line in the file).
I don't know what else you're doing in it, so I can't give any additional advice.
|
|
|
|
10-20-2003, 09:29 AM
|
#3
|
|
LQ Newbie
Registered: Oct 2003
Location: Leeds, England.
Distribution: MDK 9.0
Posts: 11
Original Poster
Rep:
|
Cheers Caysho.
Gotta be honest, I don't know! The script I'm typing in Xterm as root is:
rmmod acm
modprobe CECEther
ifconfig -a
...await output, then:
dhcpcd
ifconfig
...this allows me to access the web but I have to do the same thing every time I load up. My knowledge of Linux is practically zero - I really need to know specifically what I need to add/amend in the rc.modules file and whereabouts in the text to add it - don't want much, I know...
|
|
|
|
10-20-2003, 09:38 AM
|
#4
|
|
Member
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Rep:
|
ok, you're doing more than just adding a module...
I would recommend that you put the contents of that script you're running into the script that is run when the user logs in. I can never remember what it is though, so you'll have to search/ask around.
it might not be the best or smartest way to do it, but it's the only easy way I can think of.
|
|
|
|
10-20-2003, 12:03 PM
|
#5
|
|
Member
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170
Rep:
|
If you put the script you have to enter everytime in /etc/rc.local, it will be executed every time you boot.
|
|
|
|
10-27-2003, 09:55 AM
|
#6
|
|
LQ Newbie
Registered: Oct 2003
Location: Leeds, England.
Distribution: MDK 9.0
Posts: 11
Original Poster
Rep:
|
Cheers Wuck.
Have tried this but seems to be to no avail - is there a standard syntax I need to follow (i.e. do I need to put some sort of punctuation mark at the beginning/end of each line etc. etc.)?
Cheers again all - am starting to really like the Linux environment!
|
|
|
|
10-27-2003, 12:42 PM
|
#7
|
|
Member
Registered: Apr 2003
Location: Midlands, UK
Distribution: Lapwing-Linux 2009.1
Posts: 64
Rep:
|
Save a copy of the /etc/rc.local just in case i screw up the syntax
at the end of /etc/rc.local, type the following
/sbin/rmmod acm
/sbin/modprobe CDCEther
/sbin/ifconfig -a
/sbin/dhcpcd
/sbin/ifconfig
reboot and see if it works, im guessing you'll get a load of ifconfig output as before when doing it manually.
regards,
sam black
|
|
|
|
10-28-2003, 06:24 AM
|
#8
|
|
LQ Newbie
Registered: Oct 2003
Location: Leeds, England.
Distribution: MDK 9.0
Posts: 11
Original Poster
Rep:
|
Thank you all and thanks Sam - your tip works a treat and I don't get any console output - KDE loads as before but I can access t'internet straight away.
Cheers, I really appreciate the advice.
The Luddite.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:23 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|