Questions tagged [tty]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

No password prompt for serial connection

I want to setup a password prompt (root user) when login through minicom (serial connection). After running passwd command (connected through ssh), i can setup a password for the root user. After that ...
2
votes
0answers
46 views

Controlling terminal of a display server

When I login on a Fedora 31 workstation and run the ps command, I see the below output; for an X session: PID TT CMD ... 1 ? /usr/lib/systemd/systemd --switched-root --system --deserialize ...
2
votes
1answer
37 views

Remap ESC to FN+ESC in Debian TTY

I've recently bought a tiny keyboard for my raspberry pi zero w (Raspbian, based on Debian Buster, "lite" edition). However, it has an annoying design, with no Function Keys (F1~F9), and the ESC key ...
0
votes
0answers
16 views

How do I Load a Command on a Specific TTY at Boot?

I am setting up a Dumb Terminal which will connect to my build for Aesthetics™. To use the Dumb Terminal, I will need to have a separate keyboard till I get my present keyboard working and setting up ...
0
votes
1answer
24 views

USB device not listed as tty*

I'm trying to get a ST-Link v2 programmer listed as a tty*. On OS: Arch Linux x86_64 Host: Inspiron 7580 Kernel: 5.5.2-arch1-1 Plugging the device in gives the following output for journalctl -a ...
2
votes
2answers
64 views

Why are there TTYs only on one GPU?

I recently installed Centos 7 on a Dell PowerEdge R740 with a Nvidia GPU added to it. After installation I was surprised to see that the iDRAC remote console capabilities was not working. Not even ...
-1
votes
1answer
28 views

When writing to a terminal, get the current column number you are writing to

In Node.js I can get the number of a columns of a terminal window using: const cols = process.stdout.columns; if the user shrinks the terminal during the process, the number of columns should shrink ...
-4
votes
0answers
52 views

WANTS GNU/LINUX TTY TO MAIN PAGE OF KALI LINUX [closed]

I did this but still facing same problem I don’t why I am unable to see desktop of Kali Linux main page. I have installed Kali Linux 32 bit on 32 bit window, 64 bit on 64 window more then 10 times. ...
1
vote
1answer
75 views

Can a process send keystrokes or read text to/from a tty that is running su/sudo?

I need some information regarding the possible attack vector on *nix platforms of running su/sudo. Can an malicious process wait for the user to run su or sudo and then exploit that root access ...
0
votes
0answers
28 views

tmux can't find TTY when run within read loop

I am trying to run tmux, from a sourced script (i.e., my .bashrc), within a while read loop. However, in doing this, tmux is unable to find the TTY and gives the following error: open terminal failed:...
0
votes
1answer
36 views

Login prompt's weird behaviour

In TTY, my login prompt has got a strange and annoying behaviour: with my arrow keys, I can move the cursor everywhere on the screen, including the prompt itself, the welcome message, etc. If I press ...
0
votes
2answers
37 views

How to determine which TTY channel is mapped to specific USB port

I have a very specific question. On my laptop with only USB and no RS232, I can see which bus & port I’m on but I haven’t been able to find the command that tells me which tty channel it is mapped ...
0
votes
3answers
171 views

What is responsible for connecting /dev/pts/10 with stdout/stdin/stderr?

When running a command on a tty in a terminal it returns /dev/pts/10. Besides that there are the files /dev/stdout /dev/stdin and /dev/stderr. Interacting with them directly shows results in the ...
0
votes
0answers
12 views

loadkeys cannot assign Control / CtrlL key

I try to use loadkeys to enable my preferred keymaps when I use tty1-tty6 on my laptop. I made loadkeys user-permission work by following the suggestion of this post: https://unix.stackexchange.com/a/...
0
votes
1answer
48 views

script doesn't execute commands without tty

I'm trying to use script as the entrypoint of a docker container to log everything that happens in that container to a file on a mounted volume. It works great if there is a tty: $ docker run -t --rm ...
0
votes
1answer
48 views

Send binary file to ttyUSB0 serially in linux

I have a binary file(obtained from assembly code). I need to transfer this file to an fpga serially via ttyUSB0. I read in some posts that using cat and echo data can be transferred to ttyS0. echo -...
0
votes
0answers
7 views

xfce4-session and related Xorg process are on different ttys, correct?

Having looked ps -ef | grep -e 'xfce4-session\|Xorg' I received this output root 1970 1969 1 Jan05 tty2 00:17:32 /usr/lib/xorg/Xorg -nolisten tcp :0 user1 1985 1975 0 Jan05 tty1 ...
0
votes
1answer
52 views

/etc/inittab: auto login on ttyS0

in my /etc/inittab, I have this line: T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 which gives me getty on serial console where I can log in. How can I specify that instead getty, I get ...
3
votes
1answer
82 views

Solaris: is possible to permit root login on some terms?

I have a server with some serial ports. One is /dev/console, another is /dev/term/b(the ttyS1 under linux and the COM2 under dos). I want root to login under /dev/term/b but.. myserver termb login: ...
1
vote
1answer
76 views

How do I get the `/dev/ttyUSB0` from `/dev/bus/usb/006/015`?

Short version: How, from device information such as /devices/pci0000:00/0000:00:13.1/usb6/6-3 and /dev/bus/usb/006/015, I get a path such as /dev/ttyUSB0 or /dev/serial/by-path/pci-0000:00:13.1-usb-0:...
0
votes
0answers
18 views

Configure user to automatically login on virtual console (tty1) for CentOS 8

We need two terminals/consoles per machine. One is connected with IPMI over Ethernet and the other is a software-based console that runs from the Intel BMC's web server. The IPMI terminal ( ttyS0 ) ...
2
votes
1answer
77 views

tty - Dual Monitors

I have a dual monitor setup running tty only. The primary monitor is the actual "laptop", the second monitor (Lilliput um-70) is connected through USB 2.0, using udl driver. Everything is working ...
0
votes
1answer
74 views

ttyACM0 connected but not showing received data

I have a STM32F4 microcontroller, with the USB interface, I connected it to the raspberry pi. When connected, it shows up as /dev/ttyACM0. I send some chars every second from the device. In windows, ...
0
votes
0answers
17 views

How to run startx from non-login (e.g. ssh) session on Linux? [duplicate]

I have a Linux system which has a monitor plugged into it, but no keyboard. I would like to ssh into it and run startx as if I had typed this at virtual terminal 1. I have set up autologin for a non-...
1
vote
1answer
35 views

Which services read the /etc/securetty configuration file?

Which programs / services are parsing contents of /etc/securetty configuration file?
1
vote
1answer
37 views

Determine which tty is in the “foreground” / “currently displayed”?

In linux I can use the key combinations Alt-Ctrl-F1,Alt-Ctrl-F2... to switch to different tty1 as I could use man chvt. using the command tty I also get displayed the teletype/linux virtual console I ...
2
votes
3answers
323 views

How to manually run/init/start a Xorg server on a different VT/TTY?

I want to start an Xorg server (which should only feature a minimal xterm terminal emulator from a newly created "pristine" tty). I have thought this to be as simple as issuing a xinit or maybe a ...
1
vote
1answer
31 views

How do I run an interactive script on tty1 before user log on?

I have a Raspberry Pi running Raspbian Buster (headless) and want to have the system run a script at boot that presents an interactive menu to the user, using either bash dialog or curses / ncurses. ...
2
votes
1answer
74 views

How to enable underlines and other formattings on a color tty?

I'm on Arch Linux (a 32 bits alternative version), and recently I've discovered that the blue lines I used to see in Vim with :set cursorline were supposed to be underlined, and not blue. That got me ...
0
votes
3answers
79 views

How can I disable F1 key in linux console (i.e. to prevent tty switching)?

pressing CTRL-ALT-F1 allows to switch to tty1. Being on another tty. I can change the keymap using loadkeys FILE. What would be a way to disable F1 key? Would that allow to prevent switching to the ...
0
votes
1answer
30 views

piping /dev/tty to ipython without losing formatting or tab completion

I want to insert code into the beginning of an ipython session, and then use ipython interactively. Let's say I run cat <(echo 'import itertools') /dev/tty | ipython. I get an interactive iPython ...
0
votes
1answer
78 views

log in to a desktop manager using commands typed on a different tty

Say a computer is booted to its desktop manager (SDDM, in this case) and you want to send a command over ssh to make that computer log in as a particular user as if they logged in with the keyboard at ...
7
votes
3answers
124 views

What does bash do in the background once it runs a program?

Does the terminal have its input routed through the bash process into the program currently being run, or is the terminal "disconnected" from the bash process and connected to the new program, ...
2
votes
2answers
174 views

What is `stty line NUMBER` even doing?

According to this page, this field describes the "line discipline", which determines what happens when a user presses backspace or ^C. Essentially, what happens when a program calls read(2). However,...
0
votes
1answer
47 views

When `stty tostop` is set, how come processes not in the same session can still write to the tty?

I have the following shell interaction: [OP@localhost linux]$ tty /dev/pts/7 [OP@localhost linux]$ stty tostop [OP@localhost linux]$ In another terminal, I type: [OP@localhost linux]$ echo hello &...
0
votes
0answers
33 views

How to switch keyboard language in vtty?

How to switch keyboard language in vtty? No X involved, I just booted as root bypassing everything, and need to deal with files in language other than English. I think it's Linux Mint but not sure, ...
1
vote
1answer
113 views

Virtualize in multiple TTY (VT*)

I want to get virtual machine in a TTY (VT*) in fullscreen like GDM3 can take a TTY (VT*) for the graphic part of linux I want DISPLAY (heard as the output of a graphic server, here the VMs) to be ...
0
votes
0answers
26 views

SSH tty session as a Here String

At my job, the only way that I can switch users is by doing the following: sudo su - *USER* In order to run multiple commands as the user (in a script or something), I use here strings and here docs:...
0
votes
0answers
40 views

Write on PTM Master Pseudoterminal

When we use the write() system call function to write on a ptm master, the pty_write() function will be triggered of because /dev/ptmx is a device file. The write() prototype is : ssize_t write(int ...
1
vote
0answers
88 views

How to TTY on Debian into Huawei e5573s

i want to establish serial connection com port to Huawei e5573s connected via USB, so i can send some AT commands at it as far as i understand, i need to establish a TTY connection to the device on ...
1
vote
1answer
46 views

How bash sets tty attributes before and after running a command?

Open xterm, run tty and see pseudo terminal slave file (let's say it is /dev/pts/0). Then open another xterm and run $ stty -F /dev/pts/0 speed 38400 baud; line = 0; lnext = <undef>; discard = &...
1
vote
2answers
81 views

How to sniff other user session in Linux?

Another user is connected to my machine by ssh and doing something (this is myself, running long command by ssh). How can I see in realtime, what is happening in his terminal session? I am root on a ...
1
vote
1answer
3k views

Error: Cannot perform an interactive login from a non TTY device

I am using Mobaxterm and starting a local bash terminal, and trying this command. But seeing an error. The same command is working from the cmd windows prompt or powershell. Any suggestions on ...
1
vote
1answer
181 views

Linux ioctl VT_GETSTATE fails if process is run manually

I'm using the ioctl syscall on Linux to get the current tty in a C program. I don't know why the ioctl fails if the program is run manually (as root) while it works as expected if the init.d script ...
0
votes
1answer
65 views

Assign static /dev/ttyACM[0-9] static

I have a couple of USB radios (one ZigBee, one Z-wave) that are currently located at /dev/ttyACM0 and /dev/ttyACM1, respectively. When I reboot, they are randomly assigned, rendering my home ...
2
votes
1answer
163 views

What is the difference between IXON and IXOFF tty attributes?

To be specific, let's speak in pseudo-terminal terms. Suppose we have file descriptors master and slave for a pseudo-terminal pair (suppose it is a controlling tty). Disabling IXON on master (or slave,...
0
votes
0answers
32 views

pureos tty terminal not rendering special characters

I'm running pureos (debian derivative) on an HP laptop. Certain characters don't render properly in tty terminal (ctl-alt-f#). As an example the character which I believe to be utf8 U+0091(alternate ...
-1
votes
1answer
234 views

booting in text mode by using boot parameter in kali linux

I'm following the recommendation from an earlier question, which tells me, Use boot parameter systemd.unit=multi-user.target to boot in text mode. How do I do this? I can't access GUI so I need to ...
11
votes
1answer
879 views

Bash attempts to write two shell prompts?

I am looking at the strace output of a running bash process connected to a terminal, for educational purposes. My bash process has PID 2883. I type [OP@localhost ~]$ strace -e trace=openat,read,...
0
votes
0answers
22 views

How does gnome-terminal receive information from the pseudo-teletype on X? [duplicate]

I have the following terminal session: [OP@localhost ~]$ tty /dev/pts/2 [OP@localhost ~]$ echo hello > /dev/pts/2 hello My question is how the application gnome-terminal, receives the string "...

1 2 3 4 5 15