Questions tagged [tty]

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

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

Prevent SSH from echoing STDIN when forcing pseudo-TTY

I'm running a command like this: ssh -tt server "/bin/bash -c \"trap 'kill -HUP 0' EXIT && awk '{print; exit}' > test.txt && ./test.sh\"" <<< "TEST&...
0
votes
0answers
17 views

TTY size with dual monitors

I have two monitors connected with different resolutions (and aspect ratios): 1820x1080 (1.68) 3840x2160 (1.77) When switching to TTY it's shown on both screens at the same time, with the size (...
0
votes
0answers
12 views

How can i export the output of journalctl -xb while in Emergency mode?

Let's say my linux system is stuck on emergency mode and as per advise, i'm advised to "look at all the red entries" in this log. I don't wanna pain myself by manually typing out all of the ...
1
vote
2answers
44 views

zshrc export GPG_TTY=$(tty) says not a tty

I am trying to set up git commit signing using gpg. I have correctly set up everything. The only problem that I have is when I put export GPG_TTY=$(tty) in my .zshrc and restart a new Konsole window ...
0
votes
1answer
20 views

When I log in, on a tty instance it immediately asks for my sudo password

So I am attempting to log in on a tty, and it looks something like this : Arch Linux (tty1) hostname login: _ Password: _ Last Login at (Date) on (tty1) [sudo] password for user: _ And I think ...
0
votes
0answers
21 views

What termios settings cause endpoint to get garbled serial?

I have two endpoints. One is Windows Subsystem for Linux (Ubuntu) and the other is a small AR9331 router (running OpenWRT and has 16550 chip). They are connected over a USB-to-Serial connection. ...
4
votes
2answers
114 views

program output is different in console and in virtual terminal

when I execute command foo in console (ie tty1), the output is sent to the console. daemon foo started successfully When I execute the same command in virtual terminal (terminator), I see no output ...
12
votes
2answers
722 views

extra \x0D appended when echo \0x0A

I am trying to send some hex values to a tty port /dev/ttyS2. When I use echo or printf \x0A it will print an extra \x0D before the \x0A. i=1 a=$(printf "\xAA\xEE\x0A\x%02x" $i) echo -ne &...
0
votes
0answers
21 views

How do I configure my vconsole to use multiple fonts?

After logging into a virtual console, I can set multiple fonts by using setfont font1 font2 and setfont sets a union of both fonts. This is useful, for instance, when using the console-braille fonts ...
0
votes
0answers
20 views

/dev/ttyS0 doesn't give back prompt after mount

I created a file system and after the mount command i don't get back the prompt in serial port. I connected to the system also via SSH and i see the mount has been finished. the serial port continue ...
1
vote
0answers
6 views

How to monitor conflicts at serial/CPU level between usb sensors, serial transmission and UDP streaming

I have a ARM64 board running Ubuntu 18. The board runs a Python script that does the following: acquire data from a USB camera and a USB microphone process the data and send the result to an external ...
0
votes
0answers
25 views

Serial tty not working due to wrong DEVPATH

I am currently using a Banana Pi M2 Zero. I am having a bad time trying to make the UART work (no console, just serial communication.). ttyS0 is the console port (UART0), and it works OK through ttyS0....
0
votes
0answers
11 views

Authentication token manipulation error when not using a tty on recovery mode

I've recently upgraded my dekstop running Pop OS! on the latest LTS version. After the upgrade the system booted to the login screen, not directly to the desktop as it previously was set up to. When I ...
0
votes
0answers
41 views

Difficulty getting gammu for SMS gateway to recognize iphone connected with USB

I'm attempting to set up an SMS gateway as shown in this link: http://xaintech.blogspot.com/2010/05/build-your-own-sms-gateway-with-ubuntu.html I am trying to configure gammu to connect to my iPhone ...
1
vote
1answer
100 views

Default username when using TTY login

I'm a single user on my laptop and I want username to be automatically entered when trying to login to TTY1. I use Arch Linux. For example: Turn on computer Linux boots I enter password I'm logged in ...
0
votes
0answers
20 views

Expose Linux screen session via SSH

I have a box with multiple serial consoles attached, which are listed under /dev/ttyUSB*. I'm currently accessing these locally using screen. e.g. screen -c ~/.screenrc -m -d -S "USB0" -t &...
1
vote
1answer
63 views

How to set a different ZSH theme when using TTY?

I'm using agnoster theme on my terminal and it looks pretty bad when I need to use a tty. Already tried this https://unix.stackexchange.com/a/581171 without sucess, case $TERM in urxvt*) ...
1
vote
1answer
85 views

How to redirect output from /dev/tty to /dev/null?

I have an executable script hello containing the following code, #!/bin/bash echo "hello" > /dev/tty I want to redirect it's output to /dev/null. ./hello > /dev/null 2>&1 ...
0
votes
0answers
30 views

Garbled serial console output even with correct baud rate

I'm trying to connect to a headless NAS box via serial console, and have reached a wall that even Google can't seem to help with. I have a USB to 3.5mm serial cable, with the USB end going into my ...
2
votes
2answers
636 views

How does piping affect stdin?

I want to write a C program, and I need to parse stdin. If I type cat file.txt | grep -v match, how does stdout from cat resolve with -v match? Are they concatenated? Are they two different strings? I ...
0
votes
1answer
24 views

What permission does the “lock” group in /etc/group grant?

I'm running Fedora. $ ls -l /dev/ttyACM0 crw-rw----. 1 root dialout 166, 0 Jul 4 10:50 /dev/ttyACM0 I was not able to access /dev/tty/ACM0 (dynamic usb serial with an Arduino on the other end), ...
1
vote
1answer
172 views

How to direct /dev/hidraw output to python application and not terminal

I have a USB barcode scanner and am running a python script that collects data from /dev/hidraw0 and inputs the data into a database. The issue is that every time the scanner collects a code it ...
3
votes
1answer
77 views

Linux Mint 20 TTY 1-6 blinking cursor, GUI at tty7 works normally

I have a custom PC build (AMD Ryzen 3800x, ASUS TUF GAMING X570-PLUS mobo, Nvidia 1660 TI, 16GB ddr4 3200mhz RAM) running Linux Mint 20 (recently released), kernel 5.4.0-39-generic. While it works ...
1
vote
1answer
50 views

Run QEMU with graphical output from Tty

I found out that you can run MacOS from Linux with QEMU and that worked already with my main Linux install but I want a second install that only has Tty "running" in the background (so I can ...
5
votes
1answer
60 views

How to active the second console to a FreeBSD guest running in bhyve?

Background I'm running FreeBSD 12.1-RELEASE as a host for bhyve virtual machines. I have a FreeBSD 12.1-RELEASE guest running inside a VM. I would like to have two TTY-class devices configured for it. ...
2
votes
1answer
38 views

identify process sending a signal to a shell script

I've written a shell script that uses the trap feature to output its progress when it receives a SIGUSR1 signal, but I don't see how to have the script be able to output the progress to the STDOUT of ...
2
votes
1answer
104 views

How can I make a custom terminal cursor shape?

I want to change the shape of the cursor in my various (emulated) terminals. The shape that I want is ⼕ (sorry if it doesn't render). It's a three sided box that opens to the right. This way I could ...
0
votes
0answers
12 views

Can tty use per-monitor resolution?

I have a laptop and an external monitor. The monitor has lower resolution than the laptop display, but it is the only screen I use at home. However, when I switch to tty, I have to look also at the ...
0
votes
0answers
32 views

How to read output on one terminal from another terminal in Linux

I am running below command in one terminal: python -m speech_recognition and i am providing voice input and then it convert voice into text displays the text on terminal. Below is sample output : A ...
0
votes
1answer
33 views

script -c '…' does NOT print colors

edit: I was in EternalTerminal session, and that was the source of the difference. In a regular ssh, it works. I need to get commands in a pipe to believe they are in a PTY and emit colorized output. ...
0
votes
1answer
67 views

Under Ubuntu 16/18, ttyACM sends unwanted AT commands on connection - how to stop this?

I have some external hardware running embedded Linux (a relatively old version of the kernel), loosely based off the old DaVinci DA850 development board. It communicates with the host PC over a USB ...
0
votes
1answer
34 views

How to enter message in serial communication using screen

I use screen \dev\ttyUSB0 command to connect to virtual serial port. It prints out the incoming communication, but I dont know how to send message back to the connected device. Thanks for answers ...
0
votes
0answers
29 views

tty1 stuck on showing systemd instead of login prompt

I was booting Debian 10.4, and it worked fine. Now I have found out, that tty1 is hanging on showing systemd and doesn't move to login prompt. ttys 2-7 work like normal. systemctl enable getty@tty1....
0
votes
1answer
53 views

Prevent the terminal changing size for a program that understands terminal size changes over SSH

We are using a text based program through SSH. The session is started with a login script, which does a bit of setup then starts the program without a shell. It works well in putty. We are trying to ...
0
votes
0answers
23 views

enforcing an envirnomental variable to a terminal/tty [duplicate]

I am running few remote ssh sessions # ls /dev/pts/ 0 1 2 ptmx One of the sessions running a live program, which depends on some environment variable(e.g. $CATALINA_OPTS). I want to change the ...
0
votes
0answers
18 views

is it possible to get running application UI information

This is a difficult question to even ask. Lets say I spawn a nano or vi instance in a shell/screen/tmux is there anyway to retrieve the applications UI in a raw format? So for example if I am running ...
1
vote
1answer
24 views

How to bufferize a PTS?

I'm building a system using LXC containers trough libvirt, and I'm trying to record/forward the container's stdout. When creating a new domain, a pseudo-TTY is created in /dev/pts/* and I'm able to ...
0
votes
0answers
18 views

Using ser2net for a USB device mounted as /dev/bus/usb/005/002

I have a Z-Wave Sigma USB stick that I would like to share to another host on my network, but not entirely sure if this is possible. The host to which I am connecting the USB device is running ...
0
votes
0answers
33 views

How does serial driver get attached to a tty port

I am looking at Linus sample UART driver code here https://github.com/martinezjavier/ldd3/blob/master/tty/tiny_serial.c Below is snipped from the code where UART driver is sending data to the tty ...
0
votes
0answers
92 views

/dev/ttyACM0 lost after sleep - How to redetect / restart / rescan for ttyACM0?

I posted this question in Ubuntu, but was told that it didn't belong there since my installation is Mint 18.2 and needed to be moved here instead (I don't know how to move it). I have a Ubuntu 16.04 ...
-1
votes
1answer
40 views

How to draw bright color background in linux tty?

I'm using ubuntu18.04 /dev/tty3(ctrl-alt-f3). tput colors -------- 8 I can draw bright foreground red: tput bold; tput setaf 1; echo 'xxxxxx' echo -e '\e[91mxxxxxx' But it doesn't work for ...
0
votes
0answers
14 views

Change text console resolution

I am running Linux in VMWare. The resolution on the text consoles is too high. The text is very small and I have to scroll horizontally and vertically to see all the text. How can I change the ...
0
votes
1answer
26 views

TTY switch with one external hardware button (cycle)

Is there any method to use a script that can be activated from external button to switch betwen TTY's? I have a small home controll Raspberry with LCD screen on it, i dont have a keyboard or mouse ...
1
vote
0answers
48 views

Completely disown background process

I have a bg process disowned like so: (idea "$code_home/jenkins-jobs" ) & disown The problem is it will start writing its stdout/stderr to the terminal from which I launched it. I would have ...
0
votes
1answer
18 views

Closing/Restarting ssh session kills programs running on that session?

I am using the web console to ssh to an aws instance. I then start an xrdp session BUT the session does not go over ssh. However, when I restart or stop this ssh session everything I have run within ...
0
votes
0answers
12 views

Lines not being wrapped properly during shutdown

Whenver I shutdown my log lines don't appear to wrap properly, and there appear to be no new lines for the first few logs. I'm not sure where the shutdown log is saved. I've looked at journalctl -b -...
0
votes
0answers
27 views

Stuck on mint loading screen

Linux mint 19.2 Long story short; timeshift ate up all the memory-ended up in login loop-had to delete some stuffs with recovery mode terminal , in the process , some packages got deleted, including ...
0
votes
0answers
17 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? ...
0
votes
0answers
28 views

how to restore an active x-server session?

I accidentally lost my active session by some special key combination which return me to a login screen. That session contain my works for 6 hours. I am using linux-mint 18.3 with kernel 4.15.0-76-...
1
vote
0answers
37 views

How to use host PTY in container?

I'm learning about container technologies of Linux and wrote a minimal container implementation on my own. I'm currently confused about consoles / terminals for container processes, as I'm "reusing" ...

1
2 3 4 5
16