mc (Midnight Commander) hangs on my desktop but not on my laptop. When I compared desktop and laptop configurations, I found the following differences:
I’d like to try changing the NETWORKMANAGER setting on the desktop to “yes” (after backing up /etc), but first I’d like to know where the extra nameserver records in resolv.conf came from. Could they be the reason why mc hangs?
I have one other problem symptom on the desktop: When I start xfce, I get the following message:
Could not look up internet address for x1-6-00-0c ...
The entries in /etc/resolv.conf most likely come from DHCP server and I think they are not the reason for mc hanging.
The entries might also come from the /etc/sysconfig/network/config file. There are two lines there :
>
> The entries in /etc/resolv.conf most likely come from DHCP server and I
> think they are not the reason for mc hanging.
> The entries might also come from the /etc/sysconfig/network/config
> file. There are two lines there :
>
> Code:
> --------------------
> #NETCONFIG_DNS_STATIC_SEARCHLIST=“”
> #NETCONFIG_DNS_STATIC_SERVERS=“”
>
> --------------------
> I’m really puzzled that your /etc/resolv.conf is empty on the laptop.
> What are You using to resolve DNS addresses on the Laptop ?
>
> The error you get when starting xfce is this the whole message ?
>
> Best regards,
> Greg
>
>
NonZ;
The entries in /etc/resolv.conf are just the entries for your DNS. These
were either assigned statically via YaST or assigned by your dhcp server.
There is no reason to be concerned about these. Moreover, they should have no
effect on mc or xfce.
Unless you are in the habit of moving your desktop around and connecting to
different wireless networks; I would recommend that you do not change it to
Network Manager and leave it using ifup. If your heart is set on changing
this you can use YaST. See this Howto for instructions:
I don’t think either of your problems with mc or xfce are related to your
network settings, but rather to some process that is trying to use the
network and, of course, failing when you are disconnected. Maybe an E-mail
client that is set to automatically get messages. If you use mc to manipulate
remote directories (nfs, samba or “file over shell”(fish)) it maybe looking
for those directories.
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
Thanks for the advice and the link to the helpful article.
I am still hoping that this desktop-only problem can be solved. I compared YaST network settings on the laptop with those on the desktop, and I found the following differences:
: Global Overview:
: laptop: User controlled with Network Manager
: desktop: Traditional method with ifup
: Overview:
: laptop has two entries:
: AR2413 802.11 bg NIC DHCP
: SiS900 PCI Fast Ethernet DHCP
: desktop has two entries:
: Atheros AR5001X+ Wireless Network Adapter Not Configured
: VT6102 [Rhine-II] DHCP
: Hostname/DNS
: laptop has:
: hostname linux-4xt8
: Write hostname to /etc/hosts
: desktop has:
: hostname linux-vnpi
: Change hostname via DHCP
: Write hostname to /etc/hosts
Samba:
: Both: Workgroup or domain name: WORKGROUP
: Both: Primary domain controller
: Both: Start-Up manually
(I checked Samba as well, because others who have reported this error say that mc’s Samba interface may be at fault – though that wouldn’t explain why xfce complains. The xfce message begins:
Could not look up internet address for x1-6-00-0c ...
The address in question is the MAC address for my eth0 NIC. Is xfce treating this as a 6-byte internet address?
If you use mc to manipulate remote directories (nfs, samba or “file over shell”(fish)) it maybe looking for those directories.
Thanks for the advice and the link to the helpful article.
I am still hoping that this desktop-only problem can be solved. I compared YaST network settings on the laptop with those on the desktop, and I found the following differences:
: Global Overview:
: laptop: User controlled with Network Manager
: desktop: Traditional method with ifup
: Overview:
: laptop has two entries:
: AR2413 802.11 bg NIC DHCP
: SiS900 PCI Fast Ethernet DHCP
: desktop has two entries:
: Atheros AR5001X+ Wireless Network Adapter Not Configured
: VT6102 [Rhine-II] DHCP
: Hostname/DNS
: laptop has:
: hostname linux-4xt8
: Write hostname to /etc/hosts
: desktop has:
: hostname linux-vnpi
: Change hostname via DHCP
: Write hostname to /etc/hosts
Samba:
: Both: Workgroup or domain name: WORKGROUP
: Both: Primary domain controller
: Both: Start-Up manually
(I don’t use mc for remote acess. Nonetheless, I checked Samba, because others who have reported this error say that mc’s Samba interface may be at fault – though that wouldn’t explain why xfce complains. The xfce message begins:
Could not look up internet address for x1-6-00-0c ...
The rest of the message advises me to add the address to /etc/hosts (as I recall). The address in question is the MAC address for my eth0 NIC. Is xfce treating this as a 6-byte internet address?
I think You might want to delete the settings in bold in order to not have the hostname changed by your DHCP server.
The computer is using those servers that are currently in /etc/resolv.conf file. So the way to do this is just print the contents of the file.
Another way to test is to use :
nslookup <some_domain_name>
or
dig <some_domain_name>
but I think dig is not installed by default. In the answer You should get the information about which server resolved your query for example :
>
> venzkep;2298430 Wrote:
>> On Fri March 4 2011 01:36 pm, glistwan wrote:
>>
>> >
<snip>
>
> Samba:
> : Both: Workgroup or domain name: WORKGROUP
> : Both: Primary domain controller
> : Both: Start-Up manually
>
> --------------------
>
>
> (I checked Samba as well, because others who have reported this error
> say that mc’s Samba interface may be at fault – though that wouldn’t
> explain why xfce complains. The xfce message begins:
>
>
> Code:
> --------------------
> Could not look up internet address for x1-6-00-0c …
> --------------------
>
>
> The address in question is the MAC address for my eth0 NIC. Is xfce
> treating this as a 6-byte internet address?
>
NonZ;
You can only have ONE PDC on a Samba3 or NT3 Domain. You need to change the
smb.conf on one of the machines. Do you really need a Domain or would a
simple workgroup setup suffice. What is your reason for using a Domain
model?
Unless you have a compelling reason to use a domain model, I suggest you
follow this Howto:
The desktop and laptop are not networked (to each other). Both connect directly to the internet. Maybe that is why each has a PDC.
I compared /etc/samba files for both and found only one differences: The desktop has a DHCP.conf file. However, the file contains only comments (#-lines).
Neither has a “local” entry. Neither has a “os level” entry.
I did “man inconfig” and found no “-a” option. I did find an “-a” (all) option with netstat.
I ran netstat with the eth0 cable plugged in (netstat.bef.txt), then ran it again with the cable unplugged.
The second netstat also seemed to hang on the desktop, but did eventually complete. On the laptop, netstat runs instantly, even when the eth0 cable is unplugged.
So the problem is not specific to mc!
The netstat output is too voluminous to post here. So I ran “diff -u netstat.bef.txt netstat.aft.txt” instead. Here is the result (with certain numbers X’d out for security reasons):
>
> Thank you for your interest, venzkep.
>
> The desktop and laptop are not networked (to each other). Both connect
> directly to the internet. Maybe that is why each has a PDC.
>
> I compared /etc/samba files for both and found only one differences:
> The desktop has a DHCP.conf file. However, the file contains only
> comments (#-lines).
>
> Neither has a “local” entry. Neither has a “os level” entry.
>
> I did “man inconfig” and found no “-a” option. I did find an “-a”
> (all) option with netstat.
>
<snip>
>
> --------------------
>
>
> Thanks for leading me to netstat. Now I have another important clue.
>
>
Nonz;
From man ifconfig
If no arguments are given, ifconfig displays the status of the currently
active interfaces. If a single interface argument is given, it displays the
status of the given interface only; if a single -a argument is given, it
displays the status of all interfaces, even those that are down. Other wise,
it configures an interface.
–
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
I was hoping to see at least the first few digits of the HWaddr (MAC) and
inet6 addr (IPv6). Can you confirm that “x1-6-00-0c …” is the first few
digits of the MAC address and that IPv6 is disabled both in YaST and
in /boot/grub/menu.lst. Although the later was written for 11.2, AFAIK it
also applies to 11.3.