LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-18-2013, 08:57 PM   #1
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Rep: Reputation: 32
midnight commander strange behavior


recently i was without internet for a week or so, and during that time mc would take a long time to start up. i did have the machine on a local network though. once i got internet again mc takes about a second to load.... at the same time, i see the message in the terminal window that says "no protocol specified" as mc loads. is mc trying to "phone home" or something? i'm guessing the two are related. where in the settings for mc would i look to change this behavior?
 
Old 12-18-2013, 10:13 PM   #2
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,086

Rep: Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262
Something similar has happened with Midnight Commander on my machine. If I open a terminal window, sign-in as root, and then try to run mc it either takes a very long time to start up or it doesn't start at all. Not a problem when I start mc in a terminal window as a user.
 
Old 07-14-2016, 12:18 PM   #3
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,086

Rep: Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262
Thirty Seconds to Start Midnight Commander.

This is still a problem and has been a consistent problem for quite a while.
I just opened a console, as user, and typed, mc, and hit enter. It took 30 seconds for the midnight commander to appear.
It would appear to have something to do with being online at the time.

Using 14.2-current and it doesn't matter if the desktop is Xfce or KDE, the result is the same.

Last edited by cwizardone; 07-14-2016 at 12:20 PM. Reason: Typo.
 
Old 07-15-2016, 06:23 AM   #4
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Had the exact same problem with both 14.1 and 14.2 packages.
I suggest rebuild with different flags if you don't have network.

Code:
CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --mandir=/usr/man \
  --localstatedir=/var \
  --docdir=/usr/doc/mc-$VERSION \
  --enable-charset \
  --enable-extcharset \
  --enable-vfs \
  --enable-vfs-tar \
  --enable-vfs-cpio \
  --enable-vfs-extfs \
  --enable-vfs-sfs \
  --disable-netcode \
  --disable-nls \
  --disable-vfs-fish \
  --disable-vfs-smb \
  --disable-vfs-ftp \
  --disable-vfs-sftp \
  --enable-background \
  --with-gpm-mouse \
  --with-x=yes \
  --build=$ARCH-slackware-linux || exit 1
 
1 members found this post helpful.
Old 07-15-2016, 08:47 AM   #5
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 973

Rep: Reputation: 238Reputation: 238Reputation: 238
I do not see this behavior with /var/log/packages/mc-4.8.16-x86_64-2 coming with Slackware, whether being on- or off-line.

I am on Xfce; with Wicd as networkmanager.

I have seen, though, problems with other filemanagers (Thunar especially) when I had distant file-shares mounted via cifs at the time the computer was sent to sleep (say at work, leaving for the station) and resuming outwith the previous network (say on the train home). The whole system became sluggish. The way around that was making sure that everything distant was unmounted before suspend. So something else related to your network could cause this. More info seems needed to find out whether it is really mc.

Laptop? What network (manager)??

Rob
 
1 members found this post helpful.
Old 07-15-2016, 09:04 AM   #6
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,086

Rep: Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262
@ elcore,
Thanks for the suggestion. I've give it a spin.


@ brobr,
Thanks for the reply.
The unit is a desktop and is using NetworkManager to connect to the Internet, but
not on a "network" per se.
 
Old 07-23-2016, 11:01 AM   #7
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
It's possible mc is trying to reach for DNS if certain conditions are met, in my case it only hangs if the interface is up but the gateway is down.
Maybe logging outgoing packets would help identify the cause, so that one can filter them with iptables and eliminate any delays.
Bringing down the interface every time the gateway is down, well that would probably fix it, but I'm fine with the current setup and I don't mind rebuilding the package since I only use it locally.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Midnight Commander displays strange fonts SharpyWarpy Linux - General 3 02-28-2013 11:54 PM
[SOLVED] Midnight Commander Woodsman Slackware 10 06-30-2011 07:44 PM
[SOLVED] Midnight-commander new2nagios Linux - Software 4 08-05-2009 10:55 AM
Midnight Commander help? masterross Linux - Software 3 01-22-2008 09:25 AM
midnight commander enigma1 Linux - Software 6 12-10-2003 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration