Tag Info

Hot answers tagged

51

There is a "secret" keyboard shortcut to force an exit :~) From the frozen session, hit these keys in order: Enter~. The tilde (only after a newline) is recognized as an escape sequence by the ssh client, and the period tells the client to terminate it's business without further ado. The long-hang behavior on communication issues is not a bug, the SSH ...


21

The console-tools package allows console options to be controlled. To turn off screen blanking and powerdown, set BLANK_TIME and POWERDOWN_TIME to 0 in /etc/console-tools/config. If you'd prefer not to modify the config file, the same effect can be achieved by creating a new file in /etc/console-tools/config.d containing the following: BLANK_TIME=0 ...


15

In ESXi 5 (and 4.1), this is referred to as "Tech Support Mode." It's an explicit option in the ESXi console interface. See the following article from VMWare on how to enter it.


15

This is similar to what happens when you delete a file that another system has open on a NFS mount. The problem is that the file has been removed from the filesystem while its "link count" was >1, meaning that other processes are still holding it open. Log in to the system where the file physically resides. (no network mount) Execute lsof ...


13

You should check out Windows Powershell. http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx You could also try Cygwin if you're partial to Linux. http://www.cygwin.com/


12

You could try using the "screen" command. This will allow you to run a multiuser session which 2 users can connect and share. First you'll need to set the suid bit. screen comes with it turned off, and it is necessary for multiuser mode: sudo chmod +s /usr/bin/screen sudo chmod 755 /var/run/screen The first user connect, running screen -S shared The ...


9

If your server has a serial port you can connect through it easily enough. Let us assume the simplest case; 1 server and a cart pc or laptop. Add an entry to your /etc/inittab file similar to: s0:12345:respawn:/sbin/agetty 19200 ttyS0 vt100 That will tell the server to listen on ttyS0, the first serial port, for terminal like behavior. Plug a cable ...


9

You can look at the $TERM variable. echo $TERM If it's a screen session, the term variable should return "screen". root@deore:/volumes# echo $TERM screen Ctrl-a -d (to exit screen) root@deore:/volumes# echo $TERM xterm Also check: http://stackoverflow.com/questions/3472287/how-do-you-tell-if-the-current-terminal-session-is-in-gnu-screen


9

Wen you run a command without any prefix then Unix systems look up the command within PATH. For example if you type ls then Unix will walk all paths listed in PATH to find the ls binary. For example let's assume your PATH is set to /bin:/usr/bin:/usr/local/bin then just typing ls will make your shell find the command at /bin/ls and execute it. Unix systems ...


9

Many network devices use the Yost RJ45 pinout for RS-232 console communications. Cisco is probably the best known, but certainly not the only. The switch should have come with a DB9 to RJ45 blue cable. You can just pickup any USB-DB9 Serial adapter (though I highly recommend getting one with a Prolific PL2303HX Rev D Chipset, as they "just work" and are ...


8

I've configured serial consoles in the past, and have found them particularly useful for network gear. In the case of network gear. sometimes a serial console is the only way to remotely manage the appliance. am curious as to the benefits of serial consoles versus the ILO/ILOM/DRAC technologies available on modern servers. I'm having this exact ...


8

The parameter is controlled via the kernel command line, using setterm merely alters the runtime settings. To disable it system wide you can alter your kernel boot command line by appending it with "consoleblank=0" in your boot configuration (grub/lilo). If something during boot setterm's it then it will override the value.


7

Ignoring your "I'd like it to be textual" comment for a moment, the obvious answer is remote desktop. Now, not ignoring that answer, we've had good success with PSExec from sysinternals (now part of microsoft). It allows you to exec a command on the remote box. Remember though, many things you're going to want to do expect to have a graphical shell. Also, ...


7

Well if you're after a better command line, you could use powershell instead. It gives you a lot of power, including the functionality of the .NET framework at the command line


6

I have this line in /etc/inittab on a server I run that has a serial console: T0:23:respawn:/sbin/getty -L ttyS0 57600 vt100 ttyS0 is the serial port. That's all there is to it, at least here. Edit: You'll probably want something like this in your grub.conf: serial --unit=0 --speed=57600 terminal --timeout=10 serial console And then with each kernel: ...


6

For Windows, Use Process Explorer. Once PE is running, go to the View menu and select the Select Columns item. On that dialog, check the Command Line checkbox and click ok. You should see command line arguments for each process in Process Explorer now. For most Unix or OS X systems, doing ps auxw will print all processes on the system along with the ...


6

Do yourself a favor and purchase a USB to serial adapter. You never know when you may need it in addition to connecting to your Dell switch.


6

Maybe you can try modifying a System Deployment Properties file? Short version of usage below: You need to create a file named deployment.config and put it in either %SystemRoot%\Sun\Java\Deployment or your JRE's \lib\ directory. The deployment.config contains a pointer to a deployment.properties file, as below: ...


6

Whereas an SSH connection transmits keystrokes, an HP ILO connection transmits key states. Each time you press a key, the server receives separate KeyDown and KeyUp events. The repeated keystrokes result when the KeyUp event is received late. The two most likely reasons for the KeyUp event to be received late are: Network congestion/performance issues. ...


6

You can connect to the Console through the console port with a console cable. The Eth ports are just 10/100 Ethernet ports, they support both incoming and outgoing traffic. Depending on what version of IOS (or PixOS, you don't mention what model router you have) it's running you can also access the console via Telnet and SSH. What you should do after you ...


5

(based on @MichaelHampton's answer) The Linux kernel sets the display mode, apparently, even before the init process runs. Now, the kernel takes parameters from the boot loader - so the thing to do is to set the parameter telling it not to switch display mode. However, this is not the whole story: After the display mode has been set, there's also a setting ...


5

The ability appears to exist in systems running SMASH 1.04, but not in older versions such as SMASH 1.00 or busybox. My experience is this: I was able to add SOL capability to a X8DTL by upgrading the firmware from version 2.23 to 2.43 with images downloaded from http://www.supermicro.com/support/bios/firmware0.aspx and uploading it to the HTTP interface of ...


5

.bash_profile is only supposed to be run once, by the login shell. .bashrc is the file that's run for each child. Try logging out and logging in again, then see if your .bash_profile changes are picked up. Just for the sake of chapter and verse, this is from bash's man page: When bash is invoked as an interactive login shell, or as a non-interÔÇÉ ...


5

I believe that return code is a generic .NET console app crashed code. The way the job is set up in Task Scheduler is not causing this issue. Check the Application event log on the server for any errors that occurred near the time the job 'completed'. Those events should give you more information as to why the job exited abnormally, so you have some idea ...


5

The typical solution for console logging is to configure your VM with a virtual serial console. This document appears to exactly address your scenario; it discusses how to enable and serial console output under Xen. If you're using a VPS managed by someone else you may not be able to make the necessary changes to put this configuration in place (although ...


5

In addition to the other answers, I'd suggest looking here: http://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/ Specifically, the GRUB section so that you can get the boot menu too (not just the OS once it begins to load): http://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/configure-kernel-grub.html


5

i like ifstat: brzoza:~# ifstat -b 1 eth0 eth1 eth2 Kbps in Kbps out Kbps in Kbps out Kbps in Kbps out 7870.11 27165.49 24776.69 7626.12 0.00 0.00 8738.48 27760.18 26787.02 7851.60 0.00 0.00 8532.13 28028.55 26122.37 7850.08 0.00 0.00 9029.12 25981.44 ...


5

GNU Screen will do this as well. You just provide the argument of whatever device you are using, for example: screen /dev/ttyUSB0 screen /dev/ttyS0 Like any other file, you will need read write privileges for the /dev/tty* devices. See the 'Window Types' section of man screen to see how to specify the baud rate etc, but screen can usually figure this ...


5

Many server hardware vendors offer some kind of remote console, like IBM's RSA (System x) or Dell's DRAC (PowerEdge) and HP's iLO. This will still be over the network, and a good practice is to put that on a management VLAN that you otherwise don't mess with. Newer server models might not actually have a serial port available to connect a serial console to ...


4

Yes, it is possible. In "Terminal > Preferences > Settings", create a setting for each connection. In each of these, configure the appearance of the window (color scheme, etc) and specify the connection with "Shell > Startup > Run command". After you have created these settings, open whatever mix of windows and tabs that you want. You do ...



Only top voted, non community-wiki answers of a minimum length are eligible