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.
 |
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. |
|
 |
04-26-2012, 11:33 PM
|
#1
|
|
Member
Registered: Aug 2005
Location: Fountain Valley, CA / Thailand
Distribution: Slackware64® 14.0
Posts: 976
Rep:
|
-current changing hostname
Did a fresh install of -current today and have a weird situation.
During install I set the hostname to "2540p" and when I rebooted I noted that my hostname was changed back to the default "darkstar".
I ran netconfig and changed it back to "2540p" and rebooted, no dice, it was back to "darkstar" again.
Code:
sqdnguns @ darkstar ~ >> cat /etc/hosts
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#
# For loopbacking.
127.0.0.1 localhost
127.0.0.1 2540p.sqdnguns.com 2540p
# End of hosts.
sqdnguns @ darkstar ~ >> cat /etc/HOSTNAME
2540p.sqdnguns.com
sqdnguns @ darkstar ~ >>
Any idea as to what I am doing wrong?
|
|
|
|
|
Click here to see the post LQ members have rated as the most helpful post in this thread.
|
04-26-2012, 11:58 PM
|
#2
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,357
|
What is the output of the hostname command?
|
|
|
|
04-27-2012, 12:00 AM
|
#3
|
|
Member
Registered: Aug 2005
Location: Fountain Valley, CA / Thailand
Distribution: Slackware64® 14.0
Posts: 976
Original Poster
Rep:
|
Quote:
Originally Posted by catkin
What is the output of the hostname command?
|
darkstar
|
|
|
|
04-27-2012, 12:57 AM
|
#4
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,357
|
What is the output of the hostname command after you have run netconfig?
Maybe -current is different but 13.37 sets the hostname in /etc/rc.d/rc.S from the contents of /etc/HOSTNAME. Would you like to (make a backup of rc.S and) add some debugging to rc.S?
Code:
# Set the hostname.
if [ -r /etc/HOSTNAME ]; then
echo "/etc/HOSTNAME is readable and contains '$(cat /etc/HOSTNAME)'" >> /tmp/rc.S.log
echo "Input to hostname command: $(cat /etc/HOSTNAME | cut -f1 -d .)" >> /tmp/rc.S.log
/bin/hostname $(cat /etc/HOSTNAME | cut -f1 -d .)
else
# fall back on this old default:
echo "/etc/HOSTNAME is not readable: '$(ls -l /etc/HOSTNAME)'" >> /tmp/rc.S.log
echo "darkstar.example.net" > /etc/HOSTNAME
/bin/hostname darkstar
fi
|
|
|
|
04-27-2012, 11:57 AM
|
#5
|
|
Member
Registered: Aug 2005
Location: Fountain Valley, CA / Thailand
Distribution: Slackware64® 14.0
Posts: 976
Original Poster
Rep:
|
Found this:
Code:
# /etc/NetworkManager/NetworkManager.conf
#
# See NetworkManager.conf(5) for more information on this file
[main]
plugins=keyfile
dhcp=dhcpcd
[keyfile]
hostname=darkstar
I am not familiar with Network Manager so I need to read up on it.
Not related to original topic but I see that when I drop into Run Level 3, I lose my network connectivity.
Last edited by SqdnGuns; 04-27-2012 at 11:59 AM.
|
|
|
|
04-27-2012, 02:01 PM
|
#6
|
|
Member
Registered: Aug 2005
Location: Fountain Valley, CA / Thailand
Distribution: Slackware64® 14.0
Posts: 976
Original Poster
Rep:
|
It appears that it was NetworkManager.conf
I edited the hostname and it appears to have fixed it.
Is this a "bug" with Networkmanager?
I will not mark this as solved until it is determined to be end user error or an actual bug.
Last edited by SqdnGuns; 04-27-2012 at 02:06 PM.
|
|
|
|
04-27-2012, 03:57 PM
|
#7
|
|
Member
Registered: Dec 2008
Posts: 743
Rep: 
|
Quote:
Originally Posted by SqdnGuns
It appears that it was NetworkManager.conf
I edited the hostname and it appears to have fixed it.
Is this a "bug" with Networkmanager?
I will not mark this as solved until it is determined to be end user error or an actual bug.
|
Although developers may thing this is a feature, ...
|
|
|
|
05-05-2012, 01:25 AM
|
#8
|
|
Member
Registered: Aug 2005
Location: Fountain Valley, CA / Thailand
Distribution: Slackware64® 14.0
Posts: 976
Original Poster
Rep:
|
Marked as solved. Pat fixed this in the -current updates released tonight!
Code:
n/network-scripts-13.42-noarch-1.txz: Upgraded.
Add a 'NetworkManager' option to netconfig.
Copy the hostname into NetworkManager.conf. Thanks to SqdnGuns.
Last edited by SqdnGuns; 05-05-2012 at 01:33 AM.
|
|
|
2 members found this post helpful.
|
| 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 02:24 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
|
|