I log into a system via ssh (ubuntu). Recently, when I start up mc directly from the command prompt, it takes ages to start and finally present the familiar two-pane screen. Also, I can't drop to the command prompt subshell (using ctrl-o). If I start it under tmux, it starts up instantly, and ctrl-o works normally.   running strace on mc directly:    compared to strace on mc under tmux:     It seems some environment setting is causing a tremendous stall, but I can't pinpoint it. Can someone help, please?  Thanks, Jon
98052
Is there any way to prevent mc from taking 10-30 seconds to open?
31487
I've used a number of different *nix-based systems of the years, and it seems like every flavor of Bash I use has a different algorithm for deciding which startup scripts to run.  For the purposes of tasks like setting up environment variables and aliases and printing startup messages (e.g. MOTDs), which startup script is the appropriate place to do these?  What's the difference between putting things in .bashrc, .bash_profile, and .environment?  I've also seen other files such as .login, .bash_login, and .profile; are these ever relevant?  What are the differences in which ones get run when logging in physically, logging in remotely via ssh, and opening a new terminal window?  Are there any significant differences across platforms (including Mac OS X (and its Terminal.app) and Cygwin Bash)?
80365
Is there a way to unlock and lock screen from command line, via ssh? I know /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend command, but it doesn't seem to work via ssh. The perfect solution would be a command, that I could type logged via ssh and it would unlock the screen or lock it back again, so I don't need to tell anybody my password, if he wants to use it. Is there any builtin tool, that would provide such functionality?
8591
I'm writing a simple desktop initiation script which waits for disk idle, and then launches next external program (like Firefox, Skype or ) using &amp;, like:  ps cax | grep conky &gt; /dev/null if [ $? -eq 0 ]; then   echo "Conky is already running." else   wait-for-disk-idle sda   conky &amp; fi   That's easy.   The problem is that some programs spew a lot of debug output to the terminal, which gets mixed with the messages produced by my initialization script.  The question:  Is there any way to asynchronously launch an external program so that its standard output is discarded?   What I already tried:   conky &amp; &gt;/dev/null 2&gt;/dev/null  bash -c conky &amp;     The correct answer:  bash -c "conky &gt;/dev/null 2&gt;/dev/null &amp;"
54788
I'm doing some test-runs of long-running data migration scripts, over SSH. Let's say I start running a script around 4 PM; now, 6 PM rolls around, and I'm cursing myself for not doing this all in screen.  Is there any way to "retroactively" nohup a process, or do I need to leave my computer online all night? If it's not possible to attach screen to/nohup a process I've already started, then why? Something to do with how parent/child proceses interact? (I won't accept a "no" answer that doesn't at least address the question of 'why' -- sorry ;) )
100971
Not totally sure if this is the right place but here goes.  I understand that you are able to use X11 to ssh to GUI's and view them, without the server having a full on GUI system running/installed like gnome or something.  My end goal is to be able to "broadcast" my coding sessions online, so people can view them online.  Right now I have set it up so that a restricted tmux session will basically always be mirroring my own personal tmux coding session window.  So if you ssh onto the server on a restricted account, you can hop onto the restricted session and follow my coding.  However, I want to be able to let people watch this from their browser.  I suspect that the best way is to have some terminal emulator on x11 running on my server attached to the tmux session..and then somehow have the browser view that terminal emulator?  I'm not really too familiar with this domain, so does anyone know if this is possible?  Or is there a better approach I should be taking?  Note that I code entirely on a remote headless server that I ssh onto.
7089
I often find myself opening an SSH session to run the same single command. I have everything setup to login without entering a password (Via SSH Key-Based Auth), so I wondered if there was a way to create a shortcut or a batch file in Windows that would load PuTTY or a similar program, then fire off that command (and likely exit if result is good).
99567
I've installed emacsformacosx on my OSX box.  I'd like to shove my macmini in a data center and run it headless.  I've gotten x-windows working.  If I run xeyes, it displays on my Windows 7 client.  Emacs works from the command line on the osx box.  However, if I start up emacs from the windows client, it pops it up on the server instead of the client.  What am I doing wrong?
27663
I just ran this a few seconds ago. I managed to do Ctrl - C as soon as I realized what I started doing.  So far the only directory it's started going through is /bin.  I'm afraid to do anything else. So far I realized I can't use su as my normal user anymore.  Luckily I still have another root terminal open. What do I do?
96758
I asked this same question on my original account that I no longer have access to. Yesterday when I turned on my computer a tab opened that is just a blue screen called      C\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe    I got an answer saying to disable it from startup which did not work. I got a comment that said I probably installed something that wants to run a script at startup but it is unknown is it is malicious or not due to lack of information. I got another comment saying to run a program to tell me the process and copy and paste it so here is that:      "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"    I need to know if I should be worried about this happening every time I start my computer or if I will be fine and a solution to get rid of it would be very helpful.
121312
I'm trying to run the command ssh -o StrictHostKeyChecking=no but I'm a bit lost as to how to run it. I've tried running it from a shell script, but the output was the man page or settings that lists out all the parameters.   I then tried running that command from the shell (Cygwin) itself, but got the same man output. How do I run the command? Do I need to provide credentials or anything?
15366
I have a running program on a SSH shell. I want to pause it and be able to unpause its execution when I come back.  One way I thought of doing that was to transfer its ownership to a screen shell, thus keeping it running in there.  Is there a different way to proceed?
2855
When I start my PC, it boots into Windows (Windows 7 32-bit) quite happily, I login and the main Windows screen appears. At that point, however, the system is extremely unresponsive for up to 5 minutes - if I click on Firefox to start it, nothing appears to happen for a long time, etc, etc. The mouse and Windows UI is responsive, but programs take forever to start, webpages seem to hang (or at least load extremely slowly) and so on.  I imagine that the issue is with one or more programs that run on startup, but I don't know quite how to identify which one it might be. The event log shows nothing of any obvious interest. I can't see any high CPU activity in task manager or Process Explorer, and I can't hear any high disk activity.  I'd rather understand what's happening and then work out how to address it, than have to go for a blind "switch things off and see what helps" approach, but maybe that's being optimistic :-)  I suspect disk bottlenecks or network, but I don't know how I could set something up to diagnose this (and in particular, given that I can't get programs to start in a timely manner, I'd prefer something that automatically starts and logs data for later analysis than something like Process Explorer, which always leaves me worrying that by the time it started the problem had gone away :-)  I guess my ideal would be 2 things:   Something that gave me an overall "what are the current key bottlenecks in this system" summary (ideally, which could be set to run in the background and collect data for later analysis). Some means of starting a program (say, Firefox) and have it record what was going on in terms of waits and delays in the system.   Unfortunately, I've never really found anything like either of these.  I'm not a professional systems admin - my background is database admin - so if there are "obvious" tools to look at or try, then I'd be grateful to know of them (particularly if the information they give is easy for an amateur to analyze) :-)
113657
For running direct commands, there are two ways.   Either run in Terminal Or run from the "Run Command" dialogue (screen shown below) obtained from Alt+F2     Then, Is there any difference between them? (working same &amp; shell) or redirects to same?
9593
I set a command block to /tp. It was supposed to activate only if you had 0 time left, and to activate the command block with a hopper clock to keep giving it power.   But it is not checking if you have 0 time left, so it keeps teleporting me. I can't get close enough to the command block to break it, so I'm stuck in a neverending teleport loop.  Any ideas?
64413
When I press Ctrl+Alt+T the Terminal opens after around 30 seconds. That's pretty annoying. If I open it with Alt+F2 and enter gnome-terminal the window appears instantly as usual.  I'm using Ubuntu 16.04 with gnome3.  Thank you for your help in advance!
123941
My xorg session is on tty1 and if I want to issue a command from tty (because I cannot do it from xorg session for some reasons), I press Ctrl+Alt+F2, for example, and type a command. But I cannot start graphical applications from any tty except first since there is no xorg session in it. Then I am curious how can I switch to tty1 where xorg session is running and back to the session?