Questions tagged [tty]
74 questions
3
votes
2 answers
Running sudo commands in cloud-init script
I'm developing an automatic bootstrapper for some servers as we are using Amazon EC2 for our infrastructure.
What I do is: run a Fabric script which connects to EC2 and initializes a new instance, putting in user-data a cloud-init script. This…

victorcampos
- 185
- 1
- 6
3
votes
2 answers
Can changing the tty improve compilation speed?
When I do large compilations (anywhere, but my question assumes Linux), many messages are often output to the screen. My question is, do these messages slow down the process? And if they do, does switching to a different tty so they aren't displayed…

Michael Lowman
- 3,604
- 20
- 36
3
votes
2 answers
Getty flooding syslog after kernel upgrade with "cannot open as standard input"
I just updated my kernel on an Ubuntu 9.10 system from 2.6.32.1 to 2.6.33.5, and everything seemed to go well, except now my system log is getting flooded with errors from getty:
Jul 25 11:01:54 kobol getty[2414]: /dev/tty4: cannot open as standard…

EvanK
- 247
- 3
- 7
- 13
2
votes
2 answers
Using pseudo tty with ssh and control master results in warning
I am setting up the following for some of my users.
Machine A, running OpenSSH_6.6.1p1, OpenSSL 1.0.1e-fips
Machine B, running OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8, OpenSSL 1.0.1f
Both servers are Linux, and I administer the latter.
Users have…

Davide
- 151
- 8
2
votes
1 answer
rsync: connection unexpectedly closed - No tty present
I'm having issues trying to rsync files over from a build server to a web server.
the command im running is
rsync -e "ssh -i ${HOME}/.ssh/id_rsa" --rsync-path="sudo rsync" -avh --chown=nobody:webdev --chmod=Dg+s,ug+w --delete…

James Kirkby
- 168
- 2
- 9
2
votes
0 answers
Share serial port between linux containers
I have a requirement to share a single serial port between two or more linux containers. The LXCs are spawned by the host linux.
I explored the option of socat, wherein the host will open a TCP connection to which the guest containers will connect…

networknovice
- 21
- 1
2
votes
2 answers
how to disable serial console after successful boot (systemd/grub2)
I enable the serial console during the boot process on centos7 which uses grub2 and systemd (instead of inittab)
I would like to undo that serial input/output at the very end of the boot, after a completely successful start, for security…

ck_
- 459
- 1
- 7
- 20
2
votes
1 answer
"sudo: no tty present" for munin plugin using password-less sudo
I am writing a plugin for munin to monitor something on our Ubuntu Linux server (which is on Amazon EC2). The plugin requires running a programme /usr/sbin/rabbitmqctl via sudo.
I have the following line in /etc/sudoers:
munin ALL = NOPASSWD:…

Amandasaurus
- 31,471
- 65
- 192
- 253
2
votes
2 answers
CentOS 5.8 - Can't login to tty1 as root after updates?
I've ran a yum update on my CentOS 5.8 box and now I am unable to log into the console as root. Basically what happens is I receive the login prompt, enter the correct username and password, and am immediately spit back to the login prompt. If I…

cjones26
- 276
- 1
- 6
- 18
2
votes
1 answer
How to add a serial COM port to Windows server 2008 using Linux + KVM + Qemu?
We are using Linux + KVM + Qemu with libvirt on our servers to manage virtual WIndows 2008 Servers. The Host is Ubuntu 11.04.
The point is on one of our Windows server 2008 guest, we need to connect a dial-up modem. After connecting the modem to the…

Sebastien
- 21
- 1
- 4
2
votes
0 answers
Communicate between Windows and Linux subsystem using Virtual COM Port
I have a Windows program that connects to a COM port to send and receive data. The the other end is another program that is running on a remote Linux machine that also uses the COM port to communicate. I am trying to come up with the simplest way to…

Jason O
- 159
- 1
- 2
- 8
1
vote
1 answer
How do I tell KVM to connect to a pfSense guest text terminal?
Intro
I'm new to KVM. I'm preparing an instance of pfSense in KVM; running this gets me close but is not completely working:
virt-install \
--name pfsense \
--os-variant freebsd11.2 \
--virt-type kvm \
--hvm \
--vcpus 2 \
…

Reinderien
- 212
- 3
- 14
1
vote
1 answer
Ubuntu Server 16.04 tty console is out of bounds
After booting there are leftovers of boot logs in the console. It is always a fixed number of lines.
In console mode with the resolution of 640*480 it covers the whole screen leaving the console prompt completely out of bounds and I'm forced to use…

St0rmC4st3r
- 11
- 2
1
vote
2 answers
How to tunnel the serial port from a remote machine?
I'm trying to access a remote serial console (a tty port on a remote machine) as if it's on a local machine. This is necessary for a serial-port only application to work on my machine. The remote tty is not directly accessible. It is behind an…

crististm
- 141
- 1
- 5
1
vote
1 answer
SSH'ing with force pseudo-tty allocation doesn't print my MOTD
I know that -t option in ssh allocate pseudo-tty. I'm using -t to "jump" to different directory on login, something like this:
ssh -t my-server "cd /path/to/my/directory; bash --login".
Why if I log in without it (normally) /etc/motd is printed and…

sobi3ch
- 873
- 1
- 7
- 11