Hot answers tagged

34

Unless you have changed the default key bindings, you can do Ctrl+a -> Ctrl+t, which will show the time, if you are in screen. This will work even if you have ssh:d away somewhere else, unlike the other suggestions.


27

While using a classical RJ45 jack, the connection on your Cisco router really is a RS232 serial connections. This means that, independently from the physical connector, your PC need to speek the same RS232 protocol. This is why do you need a DB9 (classic serial port connector) to RJ45 converter. The converter does not change the underlying protocol, rather ...


21

The caption command in the ~/.screenrc is a nice way to differentiate a screen session. I'm personally using this: $ cat ~/.screenrc caption always "%{= kc}Screen session on %H (system load: %l)%-28=%{= .m}%D %d.%m.%Y %0c" It adds a line like this one at the bottom of the screen: Screen session on gbook (system load: 1,75 1,74 1,68) Lun ...


14

With systemd things are different. See article Stop Clearing My God Damned Console. In short: mkdir /etc/systemd/system/getty@.service.d cat >/etc/systemd/system/getty@.service.d/noclear.conf <<EOF [Service] TTYVTDisallocate=no EOF systemctl daemon-reload Verify the result with systemctl cat getty@tty1.service


12

You should be able to connect the console port to the patch panel with a rollover cable. You must use a standard straight-through ethernet on the other end - NOT another rollover cable. If it's viable, it would be much simpler to configure the switch with a management IP and SSH/telnet access.


12

Use a straight through cable from the console port of the Cisco to the patch panel, and then a rollover from the port in the wall to your computer?


10

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 ...


9

The user account for GCE instance or Cloud Shell has access to elevate the privileges using sudo. The password for the user accounts is not configured out of the box. You can change user account password without providing the current one by running the command: $ sudo passwd $USER


8

I use a very clever trick (if I do say so). Answer is NO, putty can't do a find in the scroll back buffer. Here's my workaround: I enable putty session logging, and then have the session log open in GxTail, which is a text viewer that updates in real time. I have the windows open side by side (or one on each monitor), and when I issue a command in ...


6

I had a similar problem when trying to perform a text-only installation of CentOS. It all boils down to adding kernel arguments for specifying serial output console console=ttyS0 so that you can then connect to it when --graphics none or --nographics is used. From virt-install's manual: --graphics none No graphical console will be allocated for the ...


6

If you check the Event Log-->Application, you might get detailed info there. You should be able to find an error record with exception code 0xe0434352 which is the Hex value of 3762504530


6

I think that screen is an ideal solution for you. How it works - you connect to your VPS, type screen, then run your script and detach from the shell (either close your terminal window, or press ctrl+a followed by ctrl+d) Your script (and shell) will keep running in background. You can view the screen number by typing screen -ls. To restore your session and ...


6

assuming iDRAC IP is 10.64.31.76 download this file https://10.64.31.76:443/software/avctKVM.jar from your idrac run: java -cp Downloads/avctKVM.jar com.avocent.idrac.kvm.Main ip=10.64.31.76 kmport=5900 vport=5900 user=root passwd=calvin apcp=1 version=2 vmprivilege=true "helpurl=https://10.64.31.76:443/help/contents.html" user and root passwords ...


5

OK finally I found solution. The problem was that $PS1 didn't have color sequences enclosed with \[ and \]. Before correcting $PS1 was: export PS1='\e[1;32m\u@\h:\w$ \e[m' after fix: export PS1='\[\e[1;32m\]\u@\h:\w$ \[\e[m\]' I found solution here: https://stackoverflow.com/questions/2024884/commandline-overwrites-itself-when-the-commands-get-to-long


5

Use Putty or NoMachine, never had any of those issues described with either.


5

No. In example if you use a HP/Cisco DB-9 for a APC the UPS will restart direct. (as it will receive a signal on a pin reserved for a command) For other product most use the standard pinout, but be advised to watch yourselft on critical gear as it can produce un-wanted result.


4

The Linux login process is primarily ruled by PAM (Pluggable Authentication Modules for Linux) which is a suite of shared libraries that enable the local system administrator to choose how applications authenticate users. By default some PAM messages are already logged to syslog so by monitoring that you can trigger notifications. Specifically login events ...


4

Found a solution!! Windows Client resolution changes work by calling <ProgramDir>\VMware\VMware Tools\VMwareResolutionSet.exe. After I renamed that file, bingo no more resolution changes. Obviously this works until the next VMware tools update only, but it does the job for us. Since it is not easy to find, here is the reference for ...


3

You could use a USB-to-serial adapter. Devices using the Prolific PL2303 chip are known to work with OS X with the driver from the Prolific web site. Check out this site for more detail and pretty pictures: http://wlanbook.com/usb-to-serial-adapter-for-mac-os-x-lion-with-driver


3

I'm still looking for a linux terminal emulator with this feature, but for those reading this who are on macOS X: Get iTerm2 (you'll want this anyway if you're doing lots of command line work on OS X), go to "Settings > Profiles > Advanced" and then click "Edit" under "Triggers". There you can add a trigger with a regular expression like ^.*\[ERROR\].*$ ...


3

In Windows 10 Powershell use Ctrl+PgUp/PgDn to scroll by line. In Windows 10 cmd use Ctrl+↓/↑ to scroll by line.


3

While @rkthkr's answer worked for me, it has the unfortunate side-effect of changing my terminal window dimensions from what they were - which in some cases, I suppose this may also have been corrupted and also in need of a reset. With this in mind, I'm using: $ stty sane From man stty: sane same as cread -ignbrk brkint -inlcr -igncr icrnl -iutf8 -...


3

If you use multiple certificates behind the same IP address you have to use SNI (server name indication). While browsers do this by default and gnutls maybe too, the s_client does not and you have to use openssl s_client -servername sub.example.org -connect ...


3

The terminal isn't echoing the password or stars in place of the password. Try ignoring what you see and just enter the password. It is very common in unix to turn off echoing when entering passwords.


3

/dev/console is not your current session, it is the server console (the screen you see when attaching a monitor). What you see in your terminal are the emergency messages. I am not sure if you can restrict these messages per terminal, but you can restrict them to be sent only to specific users. A quick Google search revealed this link to be useful and it ...


3

Take a counter-example. We have some equipment that has a mini-USB serial port (or rather, a RS-232 signalling protocol carried over a Mini-USB socket/plug; thus not really USB per-se. This is a big pain in the proverbial, as trying to find a mini-USB adaptor was quite challenging (particularly on the local market). We ended up having to order the ...


3

It depends. You'll likely be able to use it on HP and Cisco gear, but there are some situations where the pinout is different or maybe you'll have a device with a DB-9->DB-9 requirement. If in doubt, use the manufacturer's cable.


3

What you want is not completely possible. Regarding the keyboard and the mouse you have these options: If you have VMware tools installed and an X-session is running the console will grab the mouse and the keyboard as soon as the mouse hovers over the console. If you don't have an X-session running you will have to click into the console, regardless if the ...


3

You might want to take a look at the expect utility. It can use used to automate scripts where input is required. Personally, I'd be trying to understand why the systems crash so frequently that this is needed and solving the real problem.


3

You're thinking about the standard file descriptors the wrong way. STDIN points to an input device. If you obtain the STDIN belonging to another process, you could use it to steal that process's input. You're not supposed to write to it, and if you do, there's no particular reason to expect that output to wind up being read by the target process; that ...


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