LinuxQuestions.org
Visit Jeremy's Blog.
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 05-28-2004, 05:51 AM   #1
Y3k
LQ Newbie
 
Registered: May 2004
Location: Brescia!
Posts: 17

Rep: Reputation: 0
I have a problem! O_


Men it's the first time i install linux (Mandrake 9.2 free edition), my pc is:

ATHLON 2800+@3200+

RADEON 9700 PRO

512 MB RAM 400 Mhz

MB ABIT NF7-S

2 x HD 120 and 80.

On the 120 Hd, with partition magic i unassiegned about 20 gb, and when i installed linux i told him to use them. All ok. It installed perfectly. Now i'll explain you:

at my home, i have a pc with windows xp downstairs. He's got ADSL so it's always connected to internet. That pc is also connected to my home lan. With this lan each other pc in my room is connected to internet throught that pc. Now, with the pc i've installed linux on, if i use windows xp lan works perfectly, but if i use linux i can't install (i go to wizard, select lan, expert mode, he found the lan card on my pc, and after i click "go on" and it comes back to the selection screen...i think it's a bug no? can someone explain how to run a lan....this is a problem...). Maybe i can't connect to lan 2 pc who are using 2 different os? (i need 2 be connected 2 lan in order to use internet with this pc with linux). This is the first problem...the second problem that of course need to be solved BEFORE is this: Yesterday, while i was trying to make the lan working..i changed some firewall settings, and now, when i launch linux, the program kicks me to black screen (i think it's the console) where the only thing i can do is logging with user / pass.... PLS HELP ME!!!!
 
Old 05-28-2004, 06:54 AM   #2
Y3k
LQ Newbie
 
Registered: May 2004
Location: Brescia!
Posts: 17

Original Poster
Rep: Reputation: 0
up! (can i up yes?)
 
Old 05-28-2004, 07:07 AM   #3
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
From what I understand from yuor post
1) you have a XP box connected to net and lan and is configured for Internet connection sharing
2) you have a linux box which you want to connect to net through the XP

The steps you require is to
1) set up the Internet connection sharing on XP (which is done I guess)
2) setup the Linux box to use DHCP addresses provided by the XP box (if there are problems with the config wizard run netconfig from some terminal and when it asks for the ip address tell it to use the dynamic IP configuration)

I dont know how the firewall stuff is causing the problem you mentioned. (from your description I think you are going to runlevel 3 (since you mentioned you have to login as root). try loging in and try doing init 5
 
Old 05-28-2004, 07:45 AM   #4
Y3k
LQ Newbie
 
Registered: May 2004
Location: Brescia!
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by zeropash
From what I understand from yuor post
1) you have a XP box connected to net and lan and is configured for Internet connection sharing
2) you have a linux box which you want to connect to net through the XP

The steps you require is to
1) set up the Internet connection sharing on XP (which is done I guess)
2) setup the Linux box to use DHCP addresses provided by the XP box (if there are problems with the config wizard run netconfig from some terminal and when it asks for the ip address tell it to use the dynamic IP configuration)

I dont know how the firewall stuff is causing the problem you mentioned. (from your description I think you are going to runlevel 3 (since you mentioned you have to login as root). try loging in and try doing init 5
i tried your solution to make linux run: this all the log:

Code:
MANDRAKE LINUX RELEASE 9.2(FIVE STAR) FOR i586
KERNEL 2.4.22-10mdk on an i686/tty1
localhost login: y3k
password:
last login:Fri May 28 13:35:11 on vc/1
[y3k@localhost y3k]$ init 5
-bash: init: command not found
why???
 
Old 05-28-2004, 07:58 AM   #5
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
just try startx
 
Old 05-28-2004, 08:11 AM   #6
bureado
Member
 
Registered: Oct 2003
Location: Caracas
Distribution: Knoppix 3.3 (Debian sarge/sid)
Posts: 72

Rep: Reputation: 15
init 5 didn't work. Try doing:

/sbin/init 5

Or, if you are using Lilo (probably, if you're running Mandrake) select your OS at the boot and type init=5 and then enter key.

About the networking, it's not OS dependant. Two machines can be interconnected and sharing an ADSL connection via Ethernet or even via Ethernet/USB having two differents operating systems. Your problem might be with your networking interface eth0, which is the network adapter. This needs to be run with DHCP, a protocol which automatically retrieves an IP address from the modem. If you edit

/etc/sysconfig/network-scripts/ifcfg-eth0

You can add the following lines:

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

Then save the file and issue this commands:
ifdown eth0
ifup eth0

This is getting the interface down, then up with the new changes. Now try connecting.

Greetings,
 
Old 05-28-2004, 08:26 AM   #7
Y3k
LQ Newbie
 
Registered: May 2004
Location: Brescia!
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by bureado
init 5 didn't work. Try doing:

/sbin/init 5

Or, if you are using Lilo (probably, if you're running Mandrake) select your OS at the boot and type init=5 and then enter key.

About the networking, it's not OS dependant. Two machines can be interconnected and sharing an ADSL connection via Ethernet or even via Ethernet/USB having two differents operating systems. Your problem might be with your networking interface eth0, which is the network adapter. This needs to be run with DHCP, a protocol which automatically retrieves an IP address from the modem. If you edit

/etc/sysconfig/network-scripts/ifcfg-eth0

You can add the following lines:

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

Then save the file and issue this commands:
ifdown eth0
ifup eth0

This is getting the interface down, then up with the new changes. Now try connecting.

Greetings,

i tried what you said to make linux run: i log, and i type:

/sbin/init 5

it says: must be superuser

what should i do?
 
Old 05-28-2004, 08:48 AM   #8
bureado
Member
 
Registered: Oct 2003
Location: Caracas
Distribution: Knoppix 3.3 (Debian sarge/sid)
Posts: 72

Rep: Reputation: 15
You can do three possible things. All of them are logging you in as "root", the superuser. I would recommend that you exit that status after doing your administrative works, typing "exit":

a) As a normal user, type "su" and then your root password
b) As a normal user, type "login" and login as "root" with your root password
c) If you have a login screen, login as "root" with your root password

I would recommend you the first. When you're as superuser, you can type the /sbin... stuff again. Then "exit".
 
Old 05-28-2004, 09:01 AM   #9
Y3k
LQ Newbie
 
Registered: May 2004
Location: Brescia!
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by bureado
You can do three possible things. All of them are logging you in as "root", the superuser. I would recommend that you exit that status after doing your administrative works, typing "exit":

a) As a normal user, type "su" and then your root password
b) As a normal user, type "login" and login as "root" with your root password
c) If you have a login screen, login as "root" with your root password

I would recommend you the first. When you're as superuser, you can type the /sbin... stuff again. Then "exit".
ok, i tried what you said, i logged as "root", all ok, i typed /sbin/init 5, it doesn't gives errors but he does do nothing...he stands waiting for another command...i tried also typing only "init 5" but the same thing....he doesn't do nothing.....
 
Old 05-28-2004, 09:36 AM   #10
Y3k
LQ Newbie
 
Registered: May 2004
Location: Brescia!
Posts: 17

Original Poster
Rep: Reputation: 0
up =)
 
Old 05-28-2004, 10:21 AM   #11
Y3k
LQ Newbie
 
Registered: May 2004
Location: Brescia!
Posts: 17

Original Poster
Rep: Reputation: 0
my problem still not solved

Last edited by Y3k; 05-28-2004 at 11:17 AM.
 
Old 05-28-2004, 11:48 AM   #12
cprogrck
Member
 
Registered: May 2004
Posts: 91

Rep: Reputation: 15
OK since worse came to worse and i have no idea what going on in your comp right now i'd recommend a reinstall. Isn't there a Mandrake 10? Try using that what I found with redhat (the distro i use) is that updated distros use updated drivers. Another thing is that your network card may not have a driver for it. especially when it's integrated (is it?). Well, I'd recommend a netgear fa11 or a fa12. They are fairly cheap and supported by linux also.
 
Old 05-28-2004, 01:16 PM   #13
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
Ok my last attempt.
login as root.
type /sbin/runlevel
if this shows 5 then press alt+F7 do you get Xwindows? (also try alt+F8)
if still have problems then try /usr/bin/X11/startx
Cant think of anything else without any other info.
 
  


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
Mounting a floppy?!? O_o MainBrain Slackware 3 10-12-2004 09:04 PM
UT2004 little bug o_O Dais Linux - Games 1 07-15-2004 04:25 PM
ctrl-C not working o_O;; kiddo Linux - Newbie 2 06-12-2004 05:20 PM
smp but i only have 1 cpu o_O Longinus Linux - Newbie 4 12-06-2003 12:18 PM
ie6 on linux o_O?????? mie2 Linux - Software 0 11-21-2003 03:15 AM


All times are GMT -5. The time now is 08:39 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