Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tty]

A representation of a device that asynchronously transmits and receives serial data.

2
votes
1answer
2k views

Ubuntu server 16.04 tty not working

I have upgraded my office server to Ubuntu server 16.04, but I have a problem with virtual terminals: they don't open. The system boot correctly, also ssh works, but if I want to use the console by ...
0
votes
2answers
507 views

User messages can't be switched on Fedora

A non-root user X cannot message a user Y. This is despite both users having successfully run mesg y. I've tried following advice for similar problems on Ubuntu described in this question. No luck. A ...
2
votes
1answer
292 views

when in X11: how to disable switching tty with Ctrl-Fn and Alt-Fn

It's super annoying that when I'm in X11 session Ctrl-F[1-12] and Alt-F[1-12] switches Linux virtual tty. How to disable it? (Ctrl-Alt-F[1-12] should work). I'm using startx to start X11 session with ...
0
votes
2answers
21 views

How to page up and down in the Ctrl + Alt + F3 virtual terminal window? [duplicate]

I'm using Ubuntu 18.04 LTS. Every now and then, I like to escape the noise of windows by pressing Ctrl + Alt + F3 where I login using to one of the ready to use terminal windows. If I cat a file and ...
4
votes
1answer
5k views

How can you get console backgrounds for Arch Linux?

I have tested out openSUSE and found that the tty1 is a bit different from other systems as the tty has got a background. I know that Knoppix has a tux penguin for each core the computer has, but I'm ...
6
votes
2answers
18k views

How to start plasma-desktop from SSH-console on desktop session?

I killed KDE's plasma-desktop on a openSUSE 11.2 machine, because it was eating too much CPU. How can I restart it via SSH or another tty session? On the affected computer there is only shown a ...
1
vote
1answer
25 views

How to use asciinema offline?

How can I record and play asciinema screen recordings in a LAN without internet connection? The tool uploads the recordings per default to the asciinema website but I want to keep it local and run ...
1
vote
2answers
67 views
0
votes
2answers
51 views

Text from standard input not visible after program exits from a readline

I am facing an issue where the text from my stdin is not visible from on my terminal. My program does the following Sets a SIGALRM handler which exits a program when there is no input from the user ...
0
votes
0answers
18 views

How can we exclude results from users with tty=(none) in auditd?

Is there any way to exclude the event records having tty=(none) I have tried many ways of adding rule but nothing worked out. This is my current log file: > > type=SYSCALL msg=audit(...
0
votes
2answers
774 views

Set tty1 as default

Here are the details of my system: vinoth@vinoth:~$ uname -a Linux vinoth 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 GNU/Linux` When my system boots, I am getting tty7(GUI) by default. ...
3
votes
1answer
550 views

tty and grub boot unreadable with nvidia K1100M on zbook 15 g2 with intel

I have a zbook 15 g2 workstation with intel HD 4000 discrete card and a NVidia GK107GLM [Quadro K1100M]. I am running Archlinux uname -a Linux zbookarch 4.7.1-1-ARCH #1 SMP PREEMPT Wed Aug 17 08:13:...
1
vote
1answer
557 views

systemd with 10 ttys and Desktop on Ctrl+Alt+F5

I am running systemd on ArchLinux. I have read various posts of doing this but it seems impossible (i.e. I am incompetent in implementing this:)) ). I want to disable the on-demand tty spawning of ...
6
votes
4answers
374 views

Run command in background with foreground terminal access

I am trying to create a function that can run an arbitrary command, interact with the child process (specifics omitted), and then wait for it to exit. If successful, typing run <command> will ...
0
votes
1answer
37 views

Read paths on stdin and spawn a new interactive shell for each line

Say I have the results of a long-running process, like this: $ find $HOME -perm 777 Now, I could get the results in a pager like this: $ find $HOME -perm 777 | less and then cd to the relevant ...
2
votes
1answer
972 views

Is there a way to reptyr a make process or any process with subprocesses?

Consider the following Makefile. all: yes If I run make and suspend using Ctrl-Z, and then start screen or tmux, followed by an attempt to reptyr, I get the following error. $ reptyr 5328 [-] ...
1
vote
1answer
59 views

ssh - Disable pseudo-terminal allocation

ssh client option "-T" is Disable pseudo-terminal allocation. If I turn on this option, the remote sshd will not allocate a pty to run remote command. How the output of remote command transfer back ...
0
votes
0answers
78 views

How to send input to process' STDIN from terminal without sending EOF?

I'm studying computer science and doing security exercises at https://ctf101.org/ and exploit exercises in my free time. I want to send input to a program's STDIN (i.e. the payload below) in a format-...
0
votes
1answer
74 views

What is tty within Linux? [duplicate]

My understanding of tty is is that its means "teletype writers" from the older days, where people had to get teletype writers in order to receive and input data into virtual terminals, my questions ...
6
votes
2answers
1k views

My process was killed but I cannot understand the kernel notice

I have a custom application running on an embedded x86 setup (built using buildroot and uClibc). The application has been running fine but this morning when I returned to work I discovered my process ...
0
votes
1answer
23 views

How secure is switching TTY sessions vs GNOME “Switch User”?

On my personal laptop I'm using Fedora 29 and have two user accounts for myself; let's call them "personal_admin" and "personal_user". My personal_admin account is strictly for administrative tasks (...
0
votes
0answers
56 views

How do I stop my terminal from clearing the command when I hit enter

I am using mintty under Cygwin on Windows 10. I don't know why this started happening but suddenly everytime I type a command and hit enter, the command and all the scrollback text is cleared. I don'...
0
votes
0answers
20 views

Create udev rules to run a shell script after insert an USB device

Actually, I have two lines of rules in my rules.d folder: SUBSYSTEM=="tty", ATTRS{idVendor}=="23b8", ATTRS{idProduct}=="0005", SYMLINK+="ttyACM-Daruma", MODE="0777" SUBSYSTEM=="tty", ATTRS{idVendor}==...
1165
votes
9answers
305k views

What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'?

I think these terms almost refer to the same thing, when used loosely: terminal shell tty console What exactly does each of these terms refer to?
11
votes
2answers
3k views

How to get the real name of the controlling terminal?

How can one get the real name of the controlling terminal (if there is one, else an error) as a pathname? By "real name", I mean not /dev/tty, which cannot be used by other arbitrary processes to ...
13
votes
4answers
4k views

Construct a command by putting a string into a tty

I managed to do this echo -n "command" > /dev/tty1 The letters appear, and the cursor moves, but they are "ghosts" – if you hit Enter, nothing happens (they are not in stdin). Edit: In the ...
6
votes
3answers
2k views

How to open tty or execute some script when the shortcut Ctrl+Alt+F[1-6] doesn't work and X11 is partially frozen but system is still working?

I'm using Ubuntu 10.10 with Gnome on Acer Aspire One netbook. The X11 or just some parts of Gnome like panels and partially windows (details described below) are frozen which doesn't allow to do ...
0
votes
0answers
97 views

flush tty device buffer from terminal

I have a serial device on /dev/ttyAMA0. I have program written in C that communicates with this device. But apart from the C program I sometimes need to input some configuration data from terminal, ...
2
votes
2answers
1k views

Changing tty resolution without reboot?

I'm on a linux machine without display manager. I can only login to tty session as standard user. I'm not the administrator of the machine. Reboot and use grub commands or kernel parameters is not ...
79
votes
14answers
365k views

How to connect to a serial port as simple as using SSH?

Is there a way to connect to a serial terminal just as you would do with SSH? There must be a simpler way than tools such as Minicom, like this $ serial /dev/ttyS0 I know I can cat the output from ...
1
vote
0answers
40 views

Problem with USB Driver VID and PID

I'm trying get data from an USB to my application. My device is a Power Frequency Inverter that have a Type B USB as output, in the another side have an USB type A plugged in the my computer. When I ...
2
votes
2answers
113 views

Serial port program to write file/read to file from tty?

i'm looking for some commandline program which I can use to send and receive data to/from serial port. I would like to automate my testing process - start test script which will send file to ttyPC, ...
0
votes
2answers
233 views

How to restart KDE Plasma from tty?

Answers in this question only work if one can type the commands inside active KDE session. In another tty, kstart complains that it can't open display. How to restart KDE from tty2? How does kstart ...
0
votes
0answers
55 views

Redirecting input bash

I have a program, that runs on only one Raspberry Pi, but could be run from multiple other computers (through SSH). When I run my program on the Pi, it runs as expected. To be able to run from crontab ...
0
votes
1answer
96 views

How to set VirtualBox VM to use wanted resolution without needing to edit bootloader config or passing kernel parameters

I want to test many of liveCD distributions in VirtualBox (specifically, want to test their installers). Some linux distributions use curses based installers (not X11). By default VM's window is ...
1
vote
1answer
1k views

_Robust_ bluetooth serial port console/tty

I've managed to create and connect to a console via bluetooth, as is described in many Q&A's FAQs Guides etc found via a google search. Briefly, in sudo mode, /usr/sbin/hciconfig hci0 piscan /...
9
votes
2answers
4k views

How to get pinentry-curses to start on the correct tty?

I use gpg-agent for managing both PGP e SSH identities. The agent is started with a script like this gpg_agent_env="$XDG_CACHE_HOME/gpg-agent.env" export GPG_TTY="$(tty)" if ! ps -U "$USER" -o ...
7
votes
2answers
2k views

Command wraps around same line after 80 characters

I have an annoying problem with minicom connected to a serial console to a Yocto Linux machine. The command that I enter wraps around on the same line after 80th character. This becomes very ...
0
votes
0answers
177 views

TTY Login hangs after username input with constant newline

Problem: After a restart my Ubuntu Server 18.04 installation greets me as usual with the tty1 login prompt. The input of the username works as usual but after hitting enter the password prompt is ...
1
vote
0answers
73 views

Listen in to data read from file descriptor to ttyS

I have a serial device under /dev/ttyS0 and an application that is reading from the serial device (but not writing to it). I wanted to listen in to the data that is coming in on the serial device but ...
0
votes
0answers
441 views

Virtual terminal TTY always “hits enter” and does not let me type a password

When I change to a virtual terminal (e.g. tty3) by hitting Ctrl+Alt+F3 I can not log in. After entering my username and hitting Enter the terminal somehow starts "virtually hitting enter". It just ...
4
votes
1answer
2k views

udevadm rule works using “udevadm test” but not with “udevadm trigger”

I have created a simple rule called "99-usb.rules" that simply names a tty port of a specific device KERNEL=="ttyACM*", ATTRS{idVendor}=="2341", NAME="mydevice" This rule works fine when I run a ...
0
votes
1answer
648 views

Cannot open virtual console 7 (Permission Denied) when trying to start X on Gentoo

When I try to start X with i3 by typing startx /usr/bin/i3 I get the following error message: (EE) xf86OpenConsole: Cannot open virtual console 7 (Permission denied) Launching startx as root or ...
43
votes
8answers
84k views

How can I hook on to one terminal's output from another terminal?

I need to hook onto output of currently running terminal (tty1) from virtual terminal and capture it (running X server).
3
votes
2answers
147 views

To make a screenshot in console (without X)

My netbook have installed Debian linux without X.org. I need sometimes to make a screenshots-output of some scripts. I tried to use a framebuffer device for this purpose: # cat /dev/fb0 > ...
2
votes
1answer
1k views

accessing stdin/stdout of a process started in another tty

I logged in to my linux physically(say tty1) and started a process that watches stdin for commands and has some stdout-put. How can I access/use this process from a SSH session?
3
votes
1answer
642 views

Linux VT Emacs in tmux, breaks color and cursor

TERM is set to screen. I tried with screen-256color, but then the colors went really nuts. I also tried xterm, linux, and some others (that I could think of, not really thinking) but screen is the ...
3
votes
1answer
771 views

How to get tty to display on another monitor (using nvidia drivers)

I am trying to have the tty (at boot) to display on a secondary monitor than what it currently starts on, or even better - to have multiple tty's running at once on different displays, as is described ...
3
votes
1answer
1k views

Configuring Login Prompt with agetty

I'm playing around, and trying to streamline/harden my tty login prompt to display a minimum of system information. I modified my /etc/issue and /etc/motd to be empty, and touched ~/.hushlogin. That ...
3
votes
4answers
10k views

Accessing Console Of Ubuntu 16.04 KVM Guest

When I added Debian 8 to my KVM management tool, I found that I could not access the console unless I added console=ttyS0 to the grub boot configuration. It wasn't great but it worked. I am in the ...