Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there any way to prevent mc from taking 10-30 seconds to open? Never seen this with Debian.

share|improve this question
1  
Did you compile it with --enable-vfs-smb? Try disabling the feature. Seems to be a common problem with version 4.8.4: mc starting up very SLOW –  Marco Dec 3 '12 at 12:25
1  
Run strace -r -tt -o mc.strace mc to see where it's taking time. Upload the trace file if you need help interpreting it. Note that the trace file may contain private information (at least file names), take a look at it and sanitize it if necessary before uploading. –  Gilles Dec 3 '12 at 21:38

3 Answers 3

Check

host 'hostname'

get quick result MC use hostname at first to connect to internal service

In similar situation on Fedora 18 I add hostname to /etc/hosts and it help.

share|improve this answer

Actually editing /etc/hosts solved the problem for me.
My mc took 10 seconds to start due to the fact that during startup mc tries to resolve the local hostname to an IP address.
I added to /etc/hosts the following line (my hostname is FOO) 127.0.0.2 FOO.domain FOO That instantly solved the problem.

share|improve this answer

Try to delete line "search whatever.something" from /etc/resolv.conf

/etc/hosts should have the lines:

127.0.0.1 localhost

127.0.0.2 hostname.domain hostname

"hostname" is your hostname and "domain" is your domain.

share|improve this answer
    
That makes some sense only if the machine is never connected to the 'net. That file is filled in by DHCP (or when the Internet connection is configured). –  vonbrand Jan 26 '13 at 3:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.