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
1 answer
28 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 ...
user avatar
2 votes
0 answers
31 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 ...
user avatar
  • 121
1 vote
0 answers
18 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 ...
user avatar
0 votes
1 answer
26 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 ...
user avatar
  • 11
1 vote
2 answers
220 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 ...
user avatar
  • 123
0 votes
0 answers
16 views

swaywm crash, no output

Problem Recently, I installed sway. At first, it worked fine, however with a couple config changes, it displayed a grey screen. After removing /etc/sway and reinstalling sway/swaylock/swayidle, it now ...
user avatar
1 vote
0 answers
31 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 ...
user avatar
0 votes
1 answer
84 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 ...
user avatar
  • 675
1 vote
1 answer
37 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 ...
user avatar
1 vote
1 answer
148 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 ...
user avatar
0 votes
0 answers
34 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 ...
user avatar
-1 votes
1 answer
100 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 ...
user avatar
  • 87
0 votes
1 answer
495 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/...
user avatar
  • 26
0 votes
0 answers
52 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 ...
user avatar
0 votes
0 answers
252 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 ...
user avatar
  • 111
1 vote
1 answer
358 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 ,...
user avatar
0 votes
1 answer
151 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. ...
user avatar
  • 183
0 votes
2 answers
223 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 ...
user avatar
0 votes
1 answer
199 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 ...
user avatar
  • 5,890
0 votes
1 answer
377 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 ...
user avatar
  • 7,121
0 votes
1 answer
184 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 ...
user avatar
  • 774
1 vote
0 answers
68 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? ...
user avatar
0 votes
1 answer
324 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?
user avatar
0 votes
0 answers
2k 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 ...
user avatar
5 votes
1 answer
626 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 ...
user avatar
  • 4,456
0 votes
1 answer
148 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 ?
user avatar
  • 129
0 votes
1 answer
77 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, ...
user avatar
  • 298
0 votes
0 answers
459 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, ...
user avatar
1 vote
2 answers
271 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 (...
user avatar
1 vote
0 answers
577 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. ...
user avatar
0 votes
0 answers
29 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&...
user avatar
  • 479
1 vote
0 answers
23 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 ...
user avatar
  • 121
1 vote
0 answers
22 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 ...
user avatar
  • 11
1 vote
2 answers
2k 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/*....
user avatar
  • 231
0 votes
1 answer
347 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 ...
user avatar
3 votes
1 answer
2k 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 ...
user avatar
13 votes
1 answer
9k 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 ...
user avatar
0 votes
0 answers
48 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 ...
user avatar
0 votes
0 answers
151 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 ...
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 ...
user avatar
  • 143
1 vote
0 answers
286 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 ...
user avatar
0 votes
1 answer
309 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 ...
user avatar
0 votes
1 answer
4k 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 ...
user avatar
  • 3
0 votes
1 answer
1k 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 ...
user avatar
2 votes
1 answer
720 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 ...
user avatar
  • 21
1 vote
3 answers
219 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 ...
user avatar
  • 75
0 votes
1 answer
33 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 ...
user avatar
1 vote
1 answer
561 views

Setting the baud rate of pre login prompt and post login prompt differently for a serial console

On a DragonBoard 410, I have connected a serial console to UART0. If I want to see the kernel boot messages up to the login prompt, including LKs prints, I need to set a baud rate of 115200 on ...
user avatar
  • 113
1 vote
1 answer
121 views

How to launch more than 6 virtual terminals in void linux

I would like to have more virtual terminals start at startup. I want to be able to use runit and do ln -s /etc/sv/agetty-tty7 /var/service/agetty-tty7 ln -s /etc/sv/agetty-tty8 /var/service/agetty-...
user avatar
0 votes
1 answer
1k views

Linux virtual tty

I created my own Long Range RF USB. [USB device] -> [Raspberry PI] -> [myTxApp] -> [RF device *(not WiFi)] -> [RF device] -> [Laptop] -> [myRxApp] -> [Virtual device] I tested it on USB Webcam, and ...
user avatar