LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-13-2009, 03:49 PM   #16
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899

open a terminal and type
Code:
su
then the root password
 
Old 04-13-2009, 03:57 PM   #17
ct_hamster
Member
 
Registered: Apr 2009
Posts: 47

Original Poster
Rep: Reputation: 15
there is nothing saved on the computer with fedora 10 and i have permission to reformat. do you think i should reformat the computer so i can setup a root user/password that i can use for the sudo commands?
 
Old 04-13-2009, 04:03 PM   #18
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
did you tried su ?
an other option
press CTL_ALT_F1
and login as root
 
Old 04-14-2009, 09:31 AM   #19
ct_hamster
Member
 
Registered: Apr 2009
Posts: 47

Original Poster
Rep: Reputation: 15
i am signed in under the "root" sign-in now but when i try the syntax:

"sudo route add default gw <My Router IP>"

or

"route add default gw <My Router IP>"

i get the error:

SIOCADDRT: No such process
 
Old 04-14-2009, 11:51 AM   #20
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
route add default gw <My Router IP>
you did replaced <My Router IP> with the real ip of the router, right ?
something like
10.0.0.1
or whatever the ip is from the router.

Code:
route add default gw 10.0.0.1
 
Old 04-14-2009, 12:41 PM   #21
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
Quote:
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
USERCTL=no
PEERDNS=yes
IPV6INIT=no
TYPE=Ethernet
DEVICE=eth0:1
BOOTPROTO=none
IPADDR=192.168.0.60
ONPARENT=no
NM_CONTROLLED=no
NETMASK=192.168.1.254
GATEWAY=192.168.1.254
I had told you about the Network Manager bug...


I think other friends are not considering your above output with attention..



Code:
your NETMASK=192.168.1.254
which should be usually

Code:
NETMASK=255.255.255.0
it can differ from your net to net..

just vim you /etc/sysconfig/networking/network-scripts/ifcfg-eth0

and manually edit netmask.


I hope this would solve your problem

and then do update through yum

Cheers!!


vim
 
Old 04-14-2009, 12:44 PM   #22
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
Sudo is disabled by default in Fedora. I don't know why are you using sudo command being root??

Once you are loggedin with root account then you don't need sudo..


Cheers!!
 
Old 04-14-2009, 03:55 PM   #23
ct_hamster
Member
 
Registered: Apr 2009
Posts: 47

Original Poster
Rep: Reputation: 15
I replaced <My Router IP> with my ip address and that error had occured...



-----------------------

the settings in the "/usr/share/doc/initscripts-*/sysconfig.txt" file is displayed as:

USERCTL= yes|no
PEERDNS= yes|no
IPV6INIT= yes|no
TYPE= Not Listed
DEVICE= Not Listed
BOOTPROTO= none|bootp|dhcp
IPADDR= (Empty)
ONPARENT= yes|no
NM_CONTROLLED= Not Listed
NETMASK= (Empty)
GATEWAY= (Empty)

should there be default values or do I need to enter them?
 
Old 04-14-2009, 03:58 PM   #24
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
try to enter them.
Look at the post from
baig #21
 
Old 04-14-2009, 03:59 PM   #25
ct_hamster
Member
 
Registered: Apr 2009
Posts: 47

Original Poster
Rep: Reputation: 15
ok. will try
 
Old 04-15-2009, 09:36 AM   #26
ct_hamster
Member
 
Registered: Apr 2009
Posts: 47

Original Poster
Rep: Reputation: 15
when i try to save, i get an error saying that i don't have the correct permissions
 
Old 04-15-2009, 09:42 AM   #27
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
you need to be root
 
Old 04-15-2009, 09:59 AM   #28
ct_hamster
Member
 
Registered: Apr 2009
Posts: 47

Original Poster
Rep: Reputation: 15
i tried is as root and it allowed me to save. i am now getting a box saying "Connection Established" but i still can not access the internet and can not connect to the network.
 
Old 04-15-2009, 10:17 AM   #29
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
can you ping 192.168.1.254

Gie the output from
ifconfig and route -n
 
Old 04-15-2009, 10:32 AM   #30
ct_hamster
Member
 
Registered: Apr 2009
Posts: 47

Original Poster
Rep: Reputation: 15
PING:

Network is Unreachable

------------------------
IFCONFIG:

eth0 Link encap:Ethernet HWaddr 00:16:76:87:A6F
inet addr:192.168.1.60 Bcast:192.168.1.61 Mask:255.255.255.254
inet6 addr: fe80::216:76ff:fe87:a6df/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1768 errors:0 dropped:0 overruns:0 frame:0
TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:158049 (154.3 KiB) TX bytes:24144 (23.5 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:300 errors:0 dropped:0 overruns:0 frame:0
TX packets:300 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25000 (24.4 KiB) TX bytes:25000 (24.4 KiB)


------------------------------
ROUTE -n:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
 
  


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
cannot set up network with suse vmware using bridged network config. lxvor SUSE / openSUSE 1 02-08-2009 03:50 PM
How to set up network permissions for user accounts. Restrict network access. r00tb33r Linux - Networking 7 02-04-2007 09:10 PM
Is this a secure way to set up a home network (with network storage) ? phildacey Linux - Security 2 08-24-2006 04:25 AM
How do I set up a network connection to OSX? CyberLord_7 Linux - Newbie 3 03-07-2006 03:29 PM
How do i install a network card/drivers or set up internet connection sharing? Daz155HGT Linux - Newbie 1 04-20-2004 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:33 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
Open Source Consulting | Domain Registration