As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [tty]

tty is a Unix command that prints on standard output file name connected to standard input. The program's name comes from teletypewriter, abbreviated "TTY".

Filter by
Sorted by
Tagged with
1 vote
0 answers
105 views

Run command on detached screen session attached to /dev/ttyUSB instance

I've been manually sending AT commands to a cellular modem connected over USB using screen by starting the session like so: screen /dev/ttyUSB0. I'd like to automate the commands I send to the device ...
nitrocoldbru's user avatar
1 vote
1 answer
76 views

How can you write to tty files

I want to use console API of beep to produce a tone because it has lower latency than the evdev API but doing so is not permitted in a graphical shell. Ctrl+Alt+F6 opens tty6 and after logging in I ...
Deoxal's user avatar
  • 113
2 votes
0 answers
77 views

Does tput automatically check color abilities when loading color codes?

When using tput setaf and tput sgr0, does it automatically output nothing if the session isn't tty-like or no color support is detected? So am I fine doing this? declare -r styleRed=$(tput setaf 1) ...
Jaid's user avatar
  • 21
0 votes
0 answers
45 views

Leaving the page tty and enter into gui

I entered the page when I installed Docker tty I got it and now I can't get out of it, help I installed tasksel I tried but I got the following errors: E : Failed to fetch http://ir.archive.ubuntu.com/...
S0A1E2's user avatar
  • 1
2 votes
1 answer
123 views

Does the slave pseudoterminal use the line discipline?

According to this article: the line discipline instance is not evoked when the TTY driver is sending user program output to PTY master and the accompanying diagram. However, according to a different ...
jackmiller's user avatar
2 votes
0 answers
363 views

How to tell Minicom to translate CP437 characters to Unicode equivalents?

I am using a Raspberry Pi (running Raspbian [based on debian]) to act as a sort of adapter between UTF-8/SSH over TCP/IP and CP437/TTY over RS232/DB9. The RS232 side is a black box that we cannot ...
Wisteso's user avatar
  • 121
1 vote
0 answers
56 views

ampy runs into an errror, ab ttyUSB0 is after then never available, till replugin the USB wire

On Ubuntu 20.04 it works very well, but after the upgrad to 22.04 it runs into an error. You can see it in the screen image. Plug in --> ttyUSB0 is available Run a ampy command --> "failed ...
michael-mammut's user avatar
1 vote
1 answer
157 views

Ubuntu changed to startx

Hello i switched from the standard graphical interface of ubuntu to boot into a tty so now i have to start i3 with startx instead of using the graphical one. But now i have some issues: Im using rofi ...
Nils's user avatar
  • 51
1 vote
2 answers
2k views

In Windows, how can I termiante an application if I can't get the task manager to the foreground?

Basically the question is what is the Windows equivalent to Linux' changing tty, login in and killing processes from there? Situation: Once in a while I switch back to Windows to play games when there ...
kaiya's user avatar
  • 123
1 vote
0 answers
108 views

Udev rule (Ubuntu 18)

I have a device that is required to bind to /dev/ttyACM0 specifically, so I created a udev rule to ensure that happens. Unfortunately I am seeing a condition in which the device disconnects and ...
Jayme Besse's user avatar
1 vote
1 answer
244 views

Force bash as shell used for serial console login

I am running Ubuntu Server 20.04 headlessly, and typically remote into it via SSH. However, it is also connected via serial RS232 to a terminal server (a Digi CM 16) for kernel console logging and as ...
staehle's user avatar
  • 685
1 vote
1 answer
521 views

Kill bash/terminal/tty window/session from another terminal

Linux ThinkPad-E480 5.8.0-50-generic #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux I have just encountered with the next situation: suspend command do nothing but ...
Давид Шико's user avatar
1 vote
1 answer
197 views

ttyUSBx data stalls, usbmon/wireshark shows data

I am working on developing a sensor platform based on a raspberry pi running raspbian and an analog/digital converter (ADC) connected via USB. The ADC should be providing data at 128Hz, and does so ...
Hardsnow's user avatar
1 vote
0 answers
274 views

How can I use a serial connection as an output for a shell?

I have a serial device (/dev/ttyACM0), which is connected to the serial port of a microcontroller. The microcontroller draws text that it gets on that serial connection to a screen. I want to use that ...
Jacob Garby's user avatar
-1 votes
1 answer
288 views

TTY bog-slow , upto a minute of lag in output

I got done installing yesterday. Throughout configuring it , I've been noticing that it has terrible delays in the tty , right from first boot (so this has nothing to do with anything I might have ...
An Ant's user avatar
  • 77
1 vote
1 answer
2k views

Custom Systemd service not finishing activation

This page on the Arch Wiki describes a systemd unit that can adjust the keyboard repeat rate in the tty, which I have written in my home directory and symlinked to the following directory: /etc/...
Fergus's user avatar
  • 36
1 vote
0 answers
222 views

Is there a technical reason why rebooting is required to use a Displayport-to-VGA adapter?

I manage servers and prefer to use VGA as graphics quality is unimportant and VGA is ubiquitous on crash carts. I'd prefer to have a single video cable on the carts, and I can think of no more common ...
Billy left SE for Codidact's user avatar
0 votes
1 answer
571 views

Minicom and screen in background

I would like to log serial port output in background. I use screen command for minicom to make sure minicom running on the background when I disconnect my ssh session. This actually works fine, but ...
Krisz's user avatar
  • 111
4 votes
3 answers
1k views

Tab completion in zsh makes duplicate characters

when using tab completion in zsh, using ohmyzsh, in a relatively fresh arch install, the first two characters will duplicate themselves and become not deletable. For instance, I type yay -S terminato ,...
imaducklol's user avatar
1 vote
1 answer
392 views

Ctrl-V in TTY not escaping Ctrl-C

For the record, this has nothing to do with copying and pasting, which is likely why it's so difficult to find an answer. I am attempting to insert a literal CTRL-C character into a stream from a TTY. ...
Caleb Stewart's user avatar
0 votes
2 answers
648 views

Why does GnuPG use a GUI and how can I customize/change it?

*By pass I meant pass for Unix, the standard password manager. I set up GnuPG to use pass and it works just fine. Whenever I need to enter my password, however, I have to enter it in a popup. This ...
KNOB Personal's user avatar
0 votes
1 answer
367 views

why isn't putty getting SSH_MSG_CHANNEL_EXTENDED_DATA packets when TTYs are enabled?

Quoting RFC4254 § 6.6. Session Data Transfer, Data transfer for a session is done using SSH_MSG_CHANNEL_DATA and SSH_MSG_CHANNEL_EXTENDED_DATA packets and the window mechanism. The extended data ...
neubert's user avatar
  • 6,653
0 votes
1 answer
2k views

Command clear is not clearing screen

Follow up on How to reset a broken TTY?, to fix the terminal after displaying a binary file, I've tried all solution there, as well as those from https://unix.stackexchange.com/questions/79684/ But my ...
xpt's user avatar
  • 8,081
0 votes
1 answer
421 views

How compatible between different terminal types ($TERM)?

For example, in putty I set TERM=xterm, then I login to a Linux server and in the command line I run export TERM=linux, and then I start gnu-screen with screen -T screen (means TERM=screen). It's ...
su.root's user avatar
  • 844
1 vote
0 answers
95 views

Can't see my desktop in KDE Neon

I did run some commands that caused corrupting my KDE Neon. It doesn't shows my desktop and it starts in the command. Can I do something so I can get back my desktop? or should I install the new one? ...
Mehrdad2020's user avatar
0 votes
1 answer
809 views

Using tty as debug screen without login... How to do it?

I need to cast some commands, like ping 8.8.8.8 on /dev/tty2 ... Is that posible? If so, can someone explain how to do that?
Mykola Kikets's user avatar
0 votes
0 answers
3k views

How can/should I exit a tty?

Occasionally I open a tty, using say ctrl + alt + f3 (usually because I've done something silly and need to kill a program or recover in some way). After I've done so, I can switch back to that tty ...
alan ocallaghan's user avatar
5 votes
1 answer
798 views

How do I speed up my text console on Ubuntu 18.04?

I just installed 18.04 on a Dell T310 server, and I'm noticing that the text console is unusably slow when scrolling text. To add some numbers to this, invoking dmesg immediately after boot over an ...
Karu's user avatar
  • 4,615
0 votes
1 answer
237 views

CentOS : Is it possible to take screenshot in command line from another tty

I am using centOS 7. Let's say I am in tty2 in a terminal. I want to screenshot via a command line what's going on in tty1. Is it possible and if yes how ?
M.Brbr's user avatar
  • 129
1 vote
1 answer
102 views

Shutdown after N invalid attempts (lockscreen + tty)

I've seen this question on AskUbuntu about monitoring lockscreen. However, imagine having an encrypted drive + home partition. Both are mounted and available while you are logged in. The thing is, ...
KeyWeeUsr's user avatar
  • 318
0 votes
0 answers
644 views

How to disable Raspberry Pi console output to monitor but keep rendering graphics

I'm building an application on Raspberry Pi that renders some GUI to the screen. I would like to keep rendering the GUI but get rid of all the "ugly" console logs during boot or when the GUI crashes, ...
Michal Artazov's user avatar
1 vote
2 answers
394 views

No /dev/tty when script is invoked as UDEV trigger

I have raspberry pi with stock raspbian installed. I have also installed RetroPI which works just fine. What I wanted to do, is to write small autostart script that would start emulationstation (...
Antoniossss's user avatar
1 vote
0 answers
745 views

Uninstalled python3 from Ubuntu 18.04, then reinstalled it. Now I can only log in to tty

I uninstalled python3 from Ubuntu 18.04, then reinstalled it. (I knew it was a bad idea). Hoping it would restore the ubuntu packages too. Now I can only log in to tty. I don't have network access. ...
NumbMonkE's user avatar
0 votes
0 answers
42 views

Serial console echoes back input

Modified /etc/default/grub as below and successfully setup serial console on Ubuntu 18.04 (Bionic) GRUB_CMDLINE_LINUX="console=tty1 console=ttyS0,115200" GRUB_TERMINAL="console serial&...
Senthil's user avatar
  • 499
1 vote
0 answers
24 views

Fail to use flowcontrol on tty

I am controlling the RTS and DTR signal of an FTDI USB to Serial adapter using pyserial. I succeed doing so on two machines (Windows 10 and Ubuntu 18.04), but fail to do so on an older device using ...
Salocin's user avatar
  • 121
1 vote
0 answers
35 views

Is it possible to copy files from text mode to gui mode or vice versa?

I use the xclip-copyfile <src-file> command to copy files, and use the xclip-pastefile <dst-file> command to paste the file, but I want to paste it into gui mode (browser) for a backup ...
Ullman's user avatar
  • 11
1 vote
2 answers
3k views

Setting up powerline-fonts in my text console: setfont works but setupcon doesn't

I'm trying to permanently set my text console font to use powerline fonts on Ubuntu 19.04 and I can't seem to get it to stick. I copied my fonts into the right dir like so: sudo cp -r Terminus/PSF/*....
aiguofer's user avatar
  • 261
0 votes
1 answer
433 views

agetty: unrecognized characters after login in buildroot (systemd)

I have a problem with agetty. when the login prompt gets the user name, then the password prompt or login shell shows unrecognized characters as below: [ OK ] Started Serial Getty on ttymxc4. [ OK ...
amin khozaei's user avatar
4 votes
1 answer
3k views

Run startx over SSH

This question has been asked several times, but the solutions I've found always solve the problem in a different way. On the remote machine (the one on which I want to run startx), I have already ...
lmat - Reinstate Monica's user avatar
23 votes
1 answer
14k views

How to simulate a shell without tty?

I'm facing trouble with a system which I'm maintaining via SSH. When I test commands which require a TTY they work, probably because of the SSH session. Under some unclear circumstances there's no TTY ...
Kalle Richter's user avatar
0 votes
0 answers
66 views

The /etc/issue file gets cut all the way through the 18th line

I have bought an SSD to replace my old HDD to get my laptop(lenovo thinkpad x220) faster, and made up a fresh installation of Arch Linux with an i3wm and no dm(tty only). I have had a nice ASCII art ...
Andrew f0s3 Kosenko's user avatar
0 votes
0 answers
199 views

Need to access tty console while running kiosk mode with fbcon (Raspberry Pi 3B+)

I am Running my application on Raspberry Pi 3B+ in kiosk mode. I successfully put my splash logo while it boots and display the boot messages by adding fbcon=map:2 in the file /boot/cmdline.txt. I ...
Adnanh's user avatar
  • 1
0 votes
1 answer
1k views

How to turn off the backlight of the screen when the lid of my laptop is closed?

I want to use an old laptop(Dell E5420) as a CentOS7 server in my home, so it is not required at all to operate it on the console, and certainly there is no X-server or other GUI on it. When it is ...
Leon's user avatar
  • 193
1 vote
0 answers
510 views

TTY keeps pressing enter

I can't login to my ttys. The following happens: I open any tty using Ctrl+Alt+Number I enter my username I press "enter" The password is skipped due to another "enter" After a few seconds the login ...
TrackerSB's user avatar
  • 111
1 vote
1 answer
428 views

split one tty verticaly

To see more from the command line history I came up with the idea to split the working-tty vertically. The working area would be on the right bottom corner of the window and the oldest visible command ...
Stephen St's user avatar
0 votes
1 answer
7k views

Exit code of 1 from SSH command

Why would the following return a 1: ssh -tt server_name "sudo grep 'something' /path/to/file || [ $? = 1 ]" The command in double quotes when run directly on server_name returns 0. Why is the ssh ...
Touch's user avatar
  • 3
0 votes
1 answer
2k views

plink - Password change required but no TTY available

I have 1000 servers to work with, but today all the server passwords expired.  I regularly use plink (PuTTY) to connect with 1000 servers.  Today I got error “Password change required but no TTY ...
Python Spark's user avatar
2 votes
1 answer
905 views

How to add more TTYs under UBUNTU 18.04?

In fact I have 2 questions> to get the TTYs for all F1..F12 keys. But how? Also they have to be with a text mode, not VGA. or atleast it should be switchable on the fly! The default font is very ...
alex's user avatar
  • 21
1 vote
3 answers
275 views

Keep TTY boot messages desktop background in X

During boot I see the usual messages on TTY. After that, when X starts, xfce & xfdesktop sets a solid color as background. I do not use the background, I do not have icons on my desktop. It would ...
sheß's user avatar
  • 75
0 votes
1 answer
36 views

Is it possible to have a server to offload usage whenever necessary? [closed]

Is it possible to have a central high powered machine, so that users from different lower powered computers, can use the resources of this machine whenever necessary? Like, if I wanted 2GB of Ram ...
Arun Rajasekar's user avatar