Slackware This Forum is for the discussion of Slackware Linux.
|
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-13-2006, 12:47 PM
|
#1
|
Member
Registered: Aug 2005
Distribution: Slackware, Fedora, CentOS
Posts: 42
Rep:
|
Netconfig gives a syntax error!
Okay, I might be a newbie, but I'm getting there!
I needed to change the IP address for this rig, and every time I try "netconfig", I get "expr: syntax error" just scrolling down the screen. And yes, I'm trying to run this as root. Any idea what happened?
|
|
|
04-13-2006, 12:49 PM
|
#2
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Post the whole ouput.
|
|
|
04-13-2006, 12:56 PM
|
#3
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Do you have ncurses installed?
Change manually in /etc/hosts.
|
|
|
04-13-2006, 01:15 PM
|
#4
|
Member
Registered: Aug 2005
Distribution: Slackware, Fedora, CentOS
Posts: 42
Original Poster
Rep:
|
Quote:
Originally Posted by Alien_Hominid
Do you have ncurses installed?
Change manually in /etc/hosts.
|
Yes, I do have ncurses installed. And I tried changing it manually in the hosts file, but as soon as I rebooted, it went back.
Trying to get the code up here for you. But without net access on that rig, it's proving rather difficult.
|
|
|
04-13-2006, 01:17 PM
|
#5
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
What window manager are you using? It might be changing your settings.
|
|
|
04-13-2006, 01:20 PM
|
#6
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
What do you want to change, your IP address, your hostname? The IP is taken from /etc/rc.d/rc.inet1.conf and the hostname from /etc/HOSTNAME.
|
|
|
04-13-2006, 01:37 PM
|
#7
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Sorry, gbonvehi is right, I made a mistake.
|
|
|
04-13-2006, 02:27 PM
|
#8
|
Member
Registered: Aug 2005
Distribution: Slackware, Fedora, CentOS
Posts: 42
Original Poster
Rep:
|
Quote:
Originally Posted by Alien_Hominid
What window manager are you using? It might be changing your settings.
|
I'm just trying to use the regular terminal, though I do have KDE installed.
For a recap now, I added new virtual terminals to my rig (tty7 through tty11). Also tried adding the lisa daemon to rc.local file (that didn't work, but I'm not worried right now). Removed those thinking I might have made a mistake, but still having the same issue.
Right now, I am getting a login of "root@/sbin/netconfig" instead of "root@Darkstar". Here is the last bit of code from when this server thought it was /sbin/netconfig:
Code:
Apr 13 13:13:33 /sbin/netconfig: logger: SIOCADDRT: Network is unreachable
Apr 13 13:13:33 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/ifconfig eth0 192.168.1.200 broadcast 192.168.1.255 netmask 255.255.255.0
Apr 13 13:13:33 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/route add default gw 192.168.1.1 metric 1
Apr 13 13:13:48 /sbin/netconfig: logger: /etc/rc.d/rc.hotplug start (exiting script)
Apr 13 13:47:56 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/route del default
Apr 13 13:47:56 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/ifconfig eth0 down
Apr 13 13:47:56 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/ifconfig eth1 down
Apr 13 13:47:56 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/ifconfig lo down
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/ifconfig lo 127.0.0.1
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/route add default gw 192.168.0.1 metric 1
Apr 13 13:49:21 /sbin/netconfig: logger: SIOCADDRT: Network is unreachable
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.hotplug start (entering script)
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/route add default gw 192.168.0.1 metric 1
Apr 13 13:49:21 /sbin/netconfig: logger: SIOCADDRT: Network is unreachable
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/ifconfig eth0 192.168.0.200 broadcast 192.168.0.255 netmask 255.255.255.0
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/route add default gw 192.168.0.1 metric 1
Apr 13 13:49:36 /sbin/netconfig: logger: /etc/rc.d/rc.hotplug start (exiting script)
Apr 13 13:55:19 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/route del default
Apr 13 13:55:19 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/ifconfig eth0 down
Apr 13 13:55:19 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/ifconfig eth1 down
Apr 13 13:55:19 /sbin/netconfig: logger: /etc/rc.d/rc.inet1: /sbin/ifconfig lo down
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.inet1: /sbin/ifconfig lo 127.0.0.1
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.inet1: /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.inet1: /sbin/route add default gw 192.168.0.1 metric 1
Apr 13 13:58:40 Atlantis logger: SIOCADDRT: Network is unreachable
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.hotplug start (entering script)
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.inet1: /sbin/route add default
gw 192.168.0.1 metric 1 Apr 13 13:58:40 Atlantis logger: SIOCADDRT: Network is unreachable
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.inet1: /sbin/ifconfig eth0 192.168.0.200 broadcast 192.168.0.255 netmask 255.255.255.0
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.inet1: /sbin/route add default gw 192.168.0.1 metric 1
Apr 13 13:58:55 Atlantis logger: /etc/rc.d/rc.hotplug start (exiting script)
I used gbonvehi's information (thank you very much BTW) before the 13:58 reboot. Now the server thinks its Atlantis again at least. But I am afraid to run netconfig again EVER unless I can figure out what happened and how to avoid it in the future....
Again, thank you for all your help!
|
|
|
04-13-2006, 03:02 PM
|
#9
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Most probably your rc.inet1.conf got messed up. Did you try to edit it by hand?
|
|
|
04-13-2006, 04:12 PM
|
#10
|
Member
Registered: Aug 2005
Distribution: Slackware, Fedora, CentOS
Posts: 42
Original Poster
Rep:
|
Quote:
Originally Posted by Alien_Hominid
Most probably your rc.inet1.conf got messed up. Did you try to edit it by hand?
|
After looking at the file, no. I've looked through so many things I really had to look back and see. But apparently I really did mess things up somewhere. Just tried to run pine and no dice. Very odd....
|
|
|
All times are GMT -5. The time now is 01:14 AM.
|
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
|
|