Questions tagged [tty]

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

1
vote
1answer
18 views

Crash when changing back to tty1

I'm using arch linux with mate-desktop. Whenever I press ctrl+alt+fk, where k=2,...,9 I switch to a tty. However when I want to return I do ctrl+alt+f1which results in a system crash. After that I can'...
22
votes
3answers
3k views

Can the empty spaces/background in a terminal be replaced with a random(but pretty) pattern of ASCII characters?

Context and Question There are many ways to colorize the terminal and shell environment. The output of individual commands, such as ls and grep, can also be colorized. Not directly related but ...
1
vote
0answers
23 views

What causes log output to the active console?

I'm running Manjaro ARM 64bit on a Raspberry Pi (more specific question there), but this question is more general: Which settings might cause log output to be always displayed on the active console? I ...
0
votes
0answers
20 views

List callable font names for /etc/vconsole.conf

Using arch-linux with KDE plasma. I would like to set my tty font to the ttf-hack font. I added FONT=ttf-hack to /etc/vconsol.conf And got no results. Actually I do not know what the right names ...
0
votes
0answers
16 views

Execute command on reaching tty

I am creating a custom Debian ISO with my script placed in /opt. The image has no desktop, so after booting it reaches the tty. I want at this point to automatically execute my script. Following ...
0
votes
0answers
17 views

Cannot access terminal, tty nor EXterm on Ubuntu 16.04

After shutting down my lenovo thinkpad earlier today, I can't access terminal, tty nor EXterm on my Ubuntu 16.04. Clicking on the terminal icon produces no result, and ctrl+alt+Fx doesn't bring up any ...
6
votes
3answers
8k views

Best way to set serial port speeds on boot?

I've got instruments hooked up to /dev/ttyS1 through ttyS9 on a machine running Debian Wheezy. The various instruments communicate at various speeds. Is there a better way to set the baud rates than ...
3
votes
1answer
26 views

Stop Xorg without changing to its TTY

If I change TTY to 2, then run startx, then change to TTY 1 and stop Xorg (by killing Xorg or the process I started with startx), TTY changes to 2. Can I stop Xorg without switching, i.e. stay on the ...
2
votes
3answers
33 views

How to capture output that's not to stdout or stderr (direct to tty) in QNX?

I have a utility foo that I want to grep output from, redirect, and otherwise do all the normal text manipulation stuff. But alas! Look at what it does... $ foo bar $ foo > /dev/null bar $ foo 2&...
0
votes
1answer
22 views

set kms specific resolution at boot time

i'm trying to set a specific resolution for kms, at boot time. by default kms choose the highest resolution available (2500x1600) which is a bit hard to read. i'd like to set 1440x900 instead. i ...
0
votes
1answer
35 views

Why does “if tty -s” work but “if [ tty -s ]” does not?

Note, I am using ksh and running in CentOS. I have a shell script where a logger function is set like: if tty -s then echo "${FOO}" | tee -a ${BAR_LOG_FILE} else echo "${FOO}" >> ${...
0
votes
1answer
15 views

Control physical tty over ssh - send enter key [duplicate]

I have a machine which is hooked up to a physical display and to which I have ssh & root access, but which does not have a mouse or keyboard. It does not have X installed. I would like to run ...
2
votes
2answers
954 views

How to change brightness from tty?

On Knsole(GUI) I executed xrandr --output HDMI1 --brightness 976 then the screen turned to almost a white board. I can't use GUI any more. Press ctrl+alt+F2, got a tty. I want to reset brightness, ...
0
votes
0answers
31 views

Problems after deleting ElementaryOS Desktop installed on Ubuntu

Today I just tried out Pa(n)theon DE (PDE of ElementaryOS) and it messed up a little bit. But the most important thing is, the PDE created its own terminal, and when I remove it (=PDE), I think it ...
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 /...
1
vote
2answers
2k views

Getting PuTTY to work properly with FreeBSD

I'm using FreeBSD 11 with PuTTY for SSH. The keyboard's key codes don't seem to be set up at all correctly - for example it beeps on up arrow and inserts '~' for most navigation keys including basics ...
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 ...
1
vote
0answers
34 views

What does it mean for the X server to live on a particular tty?

On Linux, how does the X server establish a relationship with a particular tty (such as tty7) so that the X server can receive input and draw on the screen only when that tty is in the foreground? How ...
0
votes
0answers
62 views

bash shell modes? how to pipe request to shell on remote server [migrated]

I have this tcp server in Node.js that will open a shell and pipe the request to the shell: const net = require('net'); const cp = require('child_process'); const server = net.createServer(s => { ...
0
votes
1answer
24 views

Docker exec bash interactively small terminal window

Suppose I have container that run bash interactively with one of the following way: docker run -it <image> /bin/bash. docker start <stopped_container> and then docker attach <container&...
18
votes
8answers
19k views

How can I run `watch` as a background job?

When I run: watch 'cmd >> output.txt' & the job gets suspended by the system: 3569 Stopped (tty output) Is there a workaround?
1
vote
0answers
80 views

Run GUI Application in a TTY Without Window Manager

What commands and variables need to be set up so I can run a GUI app on one the of the ttys without the Window Manager? Special Note: This question has been edited due to comments for testing and now ...
4
votes
2answers
159 views

What is the environment variable XDG_VTNR?

Almost every page I've found is about to automatically start Xorg after login wihout explianation, take ~/.bash_profile for example: if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then exec xinit ...
0
votes
1answer
87 views

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

Consider a command that searches the entire home directory for a file or directory with the wrong permissions: $ find $HOME -perm 777 This is just an example; the command might be listing broken ...
5
votes
2answers
73 views

What determines whether backspaces show up in a file created with cat?

I just noticed that I've seen different behavior across different systems when creating a quick test file (e.g. with sample input) via cat and redirection. Here are the steps to see what I'm talking ...
3
votes
7answers
2k views

Get display number for a given tty

How can I find out if X is running on a given TTY on a Debian machine and in that case retrieve the display number (value of DISPLAY)? Edit: The TTY may be an inactive console, not necessarily the ...
0
votes
1answer
19 views

How to get type=USER_TTY record in audit.log

What audit rule to be added to get USER_TTY record whether it will record all the executed commands under msg field?
2
votes
1answer
2k views

accessing stdin/stdout of a process started in another tty [duplicate]

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?
0
votes
1answer
56 views

Change tty respawn in Debian 9 (Stretch )

I try to change respawn tty to some other bin file , before that I configure that on /etc/inittab But now this file doesn’t exist ; how can I do that ? ( my goal is “ call my binary instead of tty ” )...
0
votes
1answer
759 views

What part(s) of the TTY subsystem control the active /dev/ttyN (TTY device driver N)? [closed]

The TTY subsystem contains the TTY driver, line discipline(s) and hardware drivers (keyboard driver, display driver). Let's say I use a virtual terminal/console. So, my current session uses ‍/dev/...
3
votes
1answer
1k views

How to connect to virtual /dev/ttyX from same machines pts terminal?

I want to get output/input from /dev/ttyX console (normally accessible directly using keys ctrl+alt+FNr, where Nr is number of /dev/ttyNr: ctrl+alt+f4 access /dev/tty4). I want to view and control ...
4
votes
2answers
83 views

Echoed escape sequences doesn't interpreted in Linux tty

Prerequisites The Linux virtual terminal (tty) is an emulation of VT102 - Virtual terminal subsystem source. The real VT100 (nearly the same as VT102) has the following behavior (I suppose): In the ...
3
votes
1answer
65 views

Lock Virtual Terminals when resuming

Many screen lockers (mine is i3lock) do not block access to other Virtual Terminals. This means that, if I leave a session opened in some VT, then even when the desktop is locked (for example when ...
1
vote
1answer
35 views

Prevent Xorg from suspending when changing tty

I'm running two applications on two different ttys. Say application A runs on ttyA and application B runs on ttyB. If I switch from ttyA to ttyB I get the following message x-daemon[544]: (II) AIGLX:...
2
votes
2answers
2k views

Can't monitor Kickstart post-install log

I'm installing Scientific Linux 7 (I've got no reason to this isn't the case with all RHEL forks though) with a Kickstart script that contains the following: %post --interpreter /bin/bash --log /root/...
6
votes
12answers
13k views

Enabling Numeric Keypad

I have trouble with the numeric keypad (NumLock keys) being unusable while typing. While I don't think it's GUI specific, this happens both in Gnome and KDE. Sometimes it works in TTY, other times it ...
2
votes
1answer
5k views

Is cat the only reliable command that can read data from serial?

I have a scale that continuously send data via serial port, 2 times per second. The only reliable way on reading this data happened to be cat command. The following works: cat /dev/ttyUSB0 But the ...
20
votes
4answers
11k views

Rebinding/disabling CTRL+ALT+F#

I have an application that binds CTRL+ALT+F7, but my linux machine seems to catch the keystroke. Is there a way to rebind/disable this key? A recompile of the kernel is an acceptable answer. The ...
0
votes
2answers
56 views

How to find unlocked tty in linux?

I just discovered that when I have an tty open in the background my lockscreen is useless. I sometimes use another tty to kill some process and then I forget the unlocked tty. That is why I want to ...
1
vote
0answers
30 views

Logged out when switching tty

I ugraded my Debian from Stretch to Buster. Now each time I switch the tty (by Ctrl-Alt-FX) from my graphical instance (F7) to something else (e.g. F1) and back, I have to login again. It seems that ...
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
509 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
311 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
32 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
19k 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
44 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
71 views

How can I find all the files whose name starts with “tty” in the /dev directory with all the file informations?

How do I find all the files whose name starts with tty in the /dev directory?
0
votes
2answers
54 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
48 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(...