Page 1 of 1
MC and Internet Connection
Posted: 11. Oct 2013, 03:30
by Atip
I just had for over 24 hours no Internet connection. ifconfig showed that eth0 was up,
however, pinging gave 100 % packet loss.
Here are some observations with "mc" (midnight commander)
During this period "mc" opened very slowly in Salix-14.0.1. It would take more than one
minute to show.
In Slackel "mc" wouldn't open at all!
On a separate HD I have a copy of root / of Salix-14.0.1 for testing. There I have
kernel 3.10.9-smp installed taken from slackel. /home and /usr/local are same as in
my Salix working box. Now during this no Int. Con. period "mc" would pop-up in a split
second in this testing box.
In VL-7.1-Beta another slackware derivate "mc" too just pops-up instantly irregardless of
Int. Con..
As I have reported in another post in Salix normally the speed of opening "mc" depends
a lot on the speed of my Internet Connection. I think I got no good explanation for it.
If I have a slow Int. Con. and "mc" opens slowly and I stop rc.inet1, "mc" just pops-up.
Since 98 % of time I am using "mc" as my FM this issue is quite important for me.
Re: MC and Internet Connection
Posted: 11. Oct 2013, 07:27
by gapan
Re: MC and Internet Connection
Posted: 12. Oct 2013, 01:20
by Atip
Thanks! It makes no difference. I tried in Slackel the worst offender. It still took 40 sec to open "mc".
Just wonder where could be the hitch or switch for "mc" for such different behavior.
Re: MC and Internet Connection
Posted: 12. Oct 2013, 07:53
by djemos
deps for mc on slackware current/slackel are glib2,gpm,ncurces,slang
Check if you have all these installed.
also delete these files
Code: Select all
rm -rf ~/.config/mc/
rm -rf ~/.local/share/mc/
they will created when you run mc
open a terminal konsole or sakura and type there
and look what messages are returned since mc it will not open at all.
Re: MC and Internet Connection
Posted: 13. Oct 2013, 03:33
by Atip
Those programs are all in place.
Removed the directories as suggested.
Starting "mc" from terminal gives no messages even when it takes 40 sec. to open.
Here are some further observation:
In my Salix working box and in Slackel when a website is being opened like
http://www.slackel.gr
which seems to open continuously then "mc" takes up to 40 sec to open. If the website stops
"mc" opens reasonably fast on good Internet connection.
However, in my Salix test box with kernel-3.10.9 and in VL-7.1-Beta "mc" opens instantly
regardless if a website is opening.
Installed kernel-3.10.9 in Salix working box it does not change the behavior of "mc" unlike
in my test box (if really the cause is the kernel) plus I get muzzled sound as with all kernels >3.8.*. That's another story.
Edit:
Shortly after writing above the Internet conked-out once more, that is eth0 up but
100% packet loss. "mc" started from terminal would not open in Salix for 90 sec and
no messages showing at all. Switched to Salix test box and "mc" just popped-up in < 1 sec.
Re: MC and Internet Connection
Posted: 18. Oct 2013, 06:24
by Atip
I now copied the entire /etc from my test Salix to my Salix working box (both 14.0.1 versions)
and surprise, surprise "mc" springs to live in a split second now as well in my working box.

.
May be now someone could figure out what in particular in /etc could cause the problem
of "mc" not opeing and now opening. Then that whatever could be appIied to slackel.
I have a back-up of the original /etc.
Re: MC and Internet Connection
Posted: 19. Oct 2013, 06:46
by djemos
This is a dns resolution error... mc starts, when all timeouts are passed
it was the /etc/resolv.conf and /etc/hosts file
Try this
delete line "search whatever.something" from /etc/resolv.conf
edit file /etc/hosts
and put there your name machine
e.g.
127.0.0.1 localhost
127.0.0.1 hostname.domain hostname
or
127.0.0.1 localhost
192.168.1.64 hostname.domain hostname
"hostname" is your hostname and "domain" is your domain.
e.g.
127.0.0.1 salix.example.net salix
reboot
Re: MC and Internet Connection
Posted: 23. Oct 2013, 01:25
by Atip
As far as I know it makes no difference what is in /etc/hosts for "mc' to work properly.
The same goes for /etc/resolv.conf which is created new at every boot. There is a file
in /etc where that can be put off, I forgot which one. Again to do that is not needed for "mc"
to work correctly. I got "mc" working now in Salix and Slackel without yet really knowing why.