2022 Developer Survey is open! Take survey.

Questions tagged [tty]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

Why dmesg output displayed on /dev/tty1

This is still related to my yesterday thread, so there's alert or maybe it's just log that displayed on my terminal on /dev/tty1. Ofcourse it's annoying because it's displayed in my bash prompt, so ...
user avatar
0 votes
1 answer
28 views

why websocat or wscat in background with nohup, disown, bg, &, &! don't work

The question is about running a bash script in background with the ability to logout and the process to continue. The issue is that websocat and wscat don't like when I close the terminal or logout.......
user avatar
  • 115
1 vote
1 answer
32 views

canonical/non-canonical vs raw/cooked?

In the context of terminals, what is the difference between the two opposites canonical/non-canonical and cooked/raw? This thread says that they are synonym. But that's weird because one of the "...
user avatar
  • 264
0 votes
0 answers
10 views

Linux : Force keyboard interface at boot time

I own a Razer Cynosa Chroma. At boot time, coherent with what lsusb -v would tell, linux-5.4.x enumerates 2 USB HID keyboard interfaces. A/ on usb-0000:00:1d.2-2/input0 B/ on usb-0000:00:1d.2-2/input1 ...
user avatar
  • 2,151
0 votes
0 answers
32 views

How do I see what PID is accepting keys pressed

I'm currently troubleshooting media keys on my keyboard, I've already confirms that the keys are working and definitely sending input to the OS, however this still does not send any input to media in ...
user avatar
0 votes
0 answers
22 views

How can a process use a newly created pseudo-terminal if only root can open it?

I'm currently learning about the TTY system, and I want to create a demo application which opens /dev/pts/ptmx which will create a new terminal, and then have a process create a new session which will ...
user avatar
  • 264
0 votes
1 answer
29 views

Virtual Consoles in Ubuntu

In This link is mentioned that Linux GUI is installed on tty7, but when I change my consoles using Ctrl+Alt+F1-F7 and check it by the command tty, I see that I have a GUI on my tty1 and tty2. I'd like ...
user avatar
  • 101
0 votes
1 answer
21 views

Running a script on every tty

I have a shell script that i want to run on every tty echo "Hello!" i tried adding it to my .bashrc but it only works after you login and it executes even if the terminal isnt a tty
user avatar
0 votes
0 answers
49 views

Is /dev/ttyUSB0 a TTY?

I know the title of the question sounds a bit silly, but that's the best I could think of :) As far as I understand, if I have some serial device connected with USB - let's say I connect my Arduino to ...
user avatar
  • 264
1 vote
0 answers
103 views

F key doesn’t work in the tty

My “f” key doesn’t work in the tty. I already tried most of my other keys on the keyboard and all of them work fine, even symbols like Ü Ä Ö. The “f” works completely fine on the login screen and on ...
user avatar
1 vote
2 answers
31 views

Open a terminal from an external device?

I'm currently learning about terminals, pseudo-terminals, etc. and I'm curious - today we all use the pseudo-terminals such as xterm or gnome-terminal that are part of the Linux GUI, and less often ...
user avatar
  • 264
0 votes
0 answers
42 views

Linux login failed while username and password correct (tty interface)

Many times when I tried to log in Linux through tty. Although I've entered correct username and password. It showed "login failed" and didn't give more message. I checked the log. /var/log# ...
user avatar
0 votes
0 answers
26 views

What's the best way to embed a terminal emulator into my (ncurses) app

Ideally, this would be in the form of a library that gives access to a buffer of characters to display and allows injecting characters and signals via an or character stream. I am open to creating ...
user avatar
0 votes
0 answers
22 views

How to add cp437 support into Minicom?

I am using a Raspberry Pi (running Raspbian) to act as translator between SSH-over-Ethernet and an RS232 connection to a proprietary hardware box. This proprietary box seems to be using CP437 ...
user avatar
  • 101
0 votes
0 answers
95 views

Bash: echo command into tty

I've a service written in Python that can receive commands and does things, here is how it is built: print("\nWelcome!\n") for line in sys.stdin: cmd=line.rstrip() ...
user avatar
  • 701
1 vote
1 answer
584 views

/dev/ttyUSB0 is available but after try to call it's gone

If I connect my ESP32 to my Ubuntu ( 22.04 ) by USB it is available in /dev/ttyUSB0. If I run a call - for example sudo ampy --port /dev/ttyUSB0 ls the error message apears Traceback (most recent call ...
user avatar
0 votes
0 answers
19 views

How change login prompt for headless Linux to ask for more than just username/password?

We want to setup a headless Linux box but have it force users to enter in more than just a username and password. Is there a way to add our own custom questions and then grab/verify the info entered ...
user avatar
0 votes
2 answers
85 views

Why can fprintf(stderr, ....) output to screen when stderr doesn't refer to a terminal device?

Given that a simple program: /* ttyname.c */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <errno.h> int main(int argc, char **...
user avatar
1 vote
0 answers
28 views

How to monitor /dev/pts/X sessions?

I was trying to monitor some pts sessions I spawned using the Python pty module. Its a simple code like the following: import pty pty.spawn("/bin/bash") I can see in the /dev/pts/ directory ...
user avatar
  • 75
-1 votes
1 answer
776 views

Why "No such device or address" when open /dev/tty in the first process?

Given that a simple program, as following: #include <stdio.h> #include <fcntl.h> #include <unistd.h> int main(int argc, char **argv) { int fd = -1; if (access("/dev/tty&...
user avatar
0 votes
0 answers
62 views

How to write bytes to serial port's input buffer

I'm working on creating an emulator for a Captron button that is connected to a serial port /dev/ttyS0. I'm trying to mimic the on-press action by writing a byte array to the serial port by printf /...
user avatar
1 vote
1 answer
33 views

How to check which "/dev/pty/x" file my putty session is using?

I opened quite a few putty sessions to my remote Ubuntu machine. For each of the session, I got a /dev/pts/x file assigned to it. Like below: crw--w---- 1 xxx tty 136, 0 Feb 5 23:08 0 crw--w---- 1 ...
user avatar
  • 1,041
0 votes
0 answers
19 views

Full screen text mode stopped working with ssh.exe but not Putty

I used to use ssh.exe to access the Linux servers as I then can script tasks in Windows and run them from command line in a batch. Then full screen text mode stopped working a few days ago. That is, ...
user avatar
  • 2,685
0 votes
2 answers
81 views

.bashrc conflicting with Zsh

I used bash for a long time, now I want to use zsh, only one problem: .bashrc conflicts with zsh How it is supposed to look like: archcoolC# How it looks like with a bashrc: (with colors here, (echo $...
user avatar
0 votes
0 answers
32 views

Unable to switch TTYs under Xorg Qtile window manager

sudo chvt [1-7] works as intended and while on tty C-A-Fn[1-7] works fine. But while in my window manager i cannot change ttys... inferno in ~ ❯ sudo sv status agetty-tty1 run: agetty-tty1: (pid ...
user avatar
  • 23
0 votes
2 answers
37 views

Ctrl-C and ctrl-4 do not work after openvt

I am trying to start bash with openvt from init system. For this I wrote the following script #!/bin/bash openvt -c 8 -- /bin/bash It starts and runs, but the Ctrl-C and Ctrl-4 shortcuts don't work. ...
user avatar
0 votes
2 answers
96 views

what are tty files for?

Can someone explain me what are the tty files? I can't understand that, using the command : echo 1 > /dev/tty prints to my current terminal the output: 1, but if i try to use echo 1 > /dev/tty0 ...
user avatar
0 votes
1 answer
43 views

ssh pseudoterminal special character problems

So I have the following situation: I have a host that exhibits unexpected behavior when using ssh -t combined with tmux. If I call ssh -t my-problem-host tmux non-ascii characters (e.g. €) are ...
user avatar
0 votes
1 answer
79 views

Change Debian TTY/text terminal login OS version name

When I login to a TTY/text terminal, I get a prompt that looks something like: Debian GNU/Linux bookworm/sid ... login: I'm running testing, and purely for aesthetic purposes, I don't want it to say ...
user avatar
  • 157
0 votes
0 answers
50 views

Random log out of tty1 while typing

I experienced a sudden log out from tty1 where I run the i3 window manager. While typing stuff, the screen went black, and in a matter of seconds I was back to the login screen (I use no login manager)...
user avatar
  • 1,012
0 votes
1 answer
110 views

How to query USB serial device, capture output and exit?

I have several Arduino devices, connected to linux box. The only difference between them is what they answer on connect. They are not distinguisheable by lsusb command. Although I don't know how to ...
user avatar
  • 2,515
0 votes
1 answer
122 views

Clearing an occupied /dev/tty to start a service

I want to run a service with the output on a certain tty on a Ubuntu server, before any login prompt. I've already successfully made a service that runs htop on tty3: [Unit] Description=htop on tty3 [...
user avatar
1 vote
1 answer
43 views

How to set Number of Lines in tty terminals

I running Manjaro Linux (21.2) with KDE. I have a large ultra-wide screen monitor with ideal resolution of 3400x1440. KDE and Konsole appear to be running this resolution fine but when I switch to ...
user avatar
  • 111
0 votes
0 answers
146 views

can't login to arch permission denied

I'm getting an error when I'm trying to login to linux from a tty or ly it says "permission denied" and prompt me to enter credentials again, even with root account I'm getting the same ...
user avatar
0 votes
0 answers
31 views

How to set keybindings systemwide?

I am using bspwm in Arch Linux, without any Desktop Environment. I have swapped the escape and Capslock key for VIM, but the thing is, the keys only work in bspwm, i.e, if I change the tty then, the ...
user avatar
0 votes
1 answer
62 views

Emulate the Linux console

Is there a way of emulating the Linux virtual console inside X? I. e. an environment where /dev/tty for all practical purposes (ioctl_console(2)) acts exactly as the Linux console would but that runs ...
user avatar
0 votes
1 answer
93 views

ttylog: no device is set

I have two active ssh sessions: ~$ w 22:51:42 up 17 days, 6:11, 3 users, load average: 2,82, 2,38, 1,34 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user pts/0 192.168....
user avatar
  • 385
0 votes
0 answers
68 views

Delay between username and password during tty login

Recently, I noticed that when using tty to login to my computer, there was a delay (around 20 seconds) between the time I enter my username and the time I'm getting asked for my password. Where can it ...
user avatar
0 votes
0 answers
22 views

Debian Server: On boot local monitor displays log not a terminal but can log in and run commands but can't see it

So I installed a fresh version of debian server. But I don't seem to be able to login on the computer itself but can access and run commands via ssh. I tried typing in my username and password and I ...
user avatar
  • 1
0 votes
0 answers
70 views

Autostart Fbterm then Tmux in Arch Linux

i have installed Arch Linux and i want to use the OS without GUI. so i installed FBTERM and TMUX to assists my life in GUI-less OS. both programs running perfectly, so i want to make FBTERM and TMUX ...
user avatar
  • 1
2 votes
1 answer
289 views

Backspace in shell moves cursor to the right

There's this remote shell I login into that, when I try to delete a character, instead of visually showing the character being deleted, it remains there and the cursor moves to the right. This shell ...
user avatar
0 votes
0 answers
56 views

Serial port baud rate change - getting "unable to perform all requested operation"

I´m working under CentOS 7 distribution, I have worked with USB to serial converters and everithing works properly, but in this case I´m using a Versalogic MPEe-U2 board attached to a mini PCIe ...
user avatar
0 votes
1 answer
74 views

TTY pre-login in QWERTY instead of AZERTY

I am french and usually types with AZERTY layout. My TTYs virtual consoles (Ctrl+Alt+fN) are in QWERTY before and after login. It's painful, because I have to log each time in QWERTY. Once logged in I ...
user avatar
-1 votes
1 answer
49 views

How to calculate TTY-console size (how many characters) with given to display resolution (e.g. 480x320) and given font size (e.g. 14,15 or 16)?

I don't have this 3.5" display yet, so I couldn't just test it with tput cols and tput lines. I'd like to know how many characters fit in both axes, before I develop a software with curses.
user avatar
  • 97
2 votes
1 answer
73 views

Perplexity about TTY and PTY

I'm trying to understand this topic but, apparently, for my brain it is too hard. Terminal device entries normally reside in two directories: /dev and /dev/pts. The /dev directory contains entries ...
user avatar
1 vote
1 answer
67 views

Turn off/on laptop display from TTY without additional software

I have a laptop with Artix Linux on it that I'm using as a web server. I want to keep it minimalist, w/o graphical environment and only the absolute necessary software. My problem is I still don't ...
user avatar
0 votes
1 answer
178 views

How can I delay display-manager.service from starting until after my systemd unit's script has exited?

I'm writing a cloud sync script for Ubuntu 18+ that makes sure some critical files are pulled from the remote as part of the boot process. I'd like it to run after the Plymouth splash screen, but ...
user avatar
  • 35
5 votes
1 answer
200 views

On `tty <&1` vs `echo $(tty <&1)` vs `echo $(tty <&2)`

The key statements in the snippet below (i.e. other than those for printing labels and blank lines, for spacing) come in pairs. In each pair, the first and second statements have the forms tty... and ...
user avatar
  • 12.8k
1 vote
1 answer
469 views

Debian Bullseye - Disable Console TTY Login for Root

how does one restrict logging into the TTY consoles as 'root' in Debian 11 (bullseye)? In past versions I would empty the contents of /etc/securetty and that would prevent a direct login as 'root' ...
user avatar
0 votes
1 answer
121 views

Can you run a terminal emulator under a tty?

I would like to know if you can run a terminal emulator under a tty since I just started the program alacritty. If there is a way, no matter how hard it would seem, I would like to try it, a tty is so ...
user avatar
  • 1

1
2 3 4 5
18