Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [tty]

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

0
votes
2answers
20 views

How to page up and down in the Ctrl + Alt + F3 virtual terminal window? [duplicate]

I'm using Ubuntu 18.04 LTS. Every now and then, I like to escape the noise of windows by pressing Ctrl + Alt + F3 where I login using to one of the ready to use terminal windows. If I cat a file and ...
1
vote
1answer
21 views

How to use asciinema offline?

How can I record and play asciinema screen recordings in a LAN without internet connection? The tool uploads the recordings per default to the asciinema website but I want to keep it local and run ...
0
votes
0answers
16 views

How can we exclude results from users with tty=(none) in auditd?

Is there any way to exclude the event records having tty=(none) I have tried many ways of adding rule but nothing worked out. This is my current log file: > > type=SYSCALL msg=audit(...
0
votes
1answer
37 views

Read paths on stdin and spawn a new interactive shell for each line

Say I have the results of a long-running process, like this: $ find $HOME -perm 777 Now, I could get the results in a pager like this: $ find $HOME -perm 777 | less and then cd to the relevant ...
1
vote
1answer
51 views

ssh - Disable pseudo-terminal allocation

ssh client option "-T" is Disable pseudo-terminal allocation. If I turn on this option, the remote sshd will not allocate a pty to run remote command. How the output of remote command transfer back ...
0
votes
0answers
65 views

How to send input to process' STDIN from terminal without sending EOF?

I'm studying computer science and doing security exercises at https://ctf101.org/ and exploit exercises in my free time. I want to send input to a program's STDIN (i.e. the payload below) in a format-...
0
votes
1answer
71 views

What is tty within Linux? [duplicate]

My understanding of tty is is that its means "teletype writers" from the older days, where people had to get teletype writers in order to receive and input data into virtual terminals, my questions ...
6
votes
4answers
354 views

Run command in background with foreground terminal access

I am trying to create a function that can run an arbitrary command, interact with the child process (specifics omitted), and then wait for it to exit. If successful, typing run <command> will ...
0
votes
1answer
23 views

How secure is switching TTY sessions vs GNOME “Switch User”?

On my personal laptop I'm using Fedora 29 and have two user accounts for myself; let's call them "personal_admin" and "personal_user". My personal_admin account is strictly for administrative tasks (...
0
votes
0answers
56 views

How do I stop my terminal from clearing the command when I hit enter

I am using mintty under Cygwin on Windows 10. I don't know why this started happening but suddenly everytime I type a command and hit enter, the command and all the scrollback text is cleared. I don'...
0
votes
0answers
19 views

Create udev rules to run a shell script after insert an USB device

Actually, I have two lines of rules in my rules.d folder: SUBSYSTEM=="tty", ATTRS{idVendor}=="23b8", ATTRS{idProduct}=="0005", SYMLINK+="ttyACM-Daruma", MODE="0777" SUBSYSTEM=="tty", ATTRS{idVendor}==...
0
votes
0answers
89 views

flush tty device buffer from terminal

I have a serial device on /dev/ttyAMA0. I have program written in C that communicates with this device. But apart from the C program I sometimes need to input some configuration data from terminal, ...
1
vote
0answers
39 views

Problem with USB Driver VID and PID

I'm trying get data from an USB to my application. My device is a Power Frequency Inverter that have a Type B USB as output, in the another side have an USB type A plugged in the my computer. When I ...
2
votes
2answers
101 views

Serial port program to write file/read to file from tty?

i'm looking for some commandline program which I can use to send and receive data to/from serial port. I would like to automate my testing process - start test script which will send file to ttyPC, ...
0
votes
0answers
54 views

Redirecting input bash

I have a program, that runs on only one Raspberry Pi, but could be run from multiple other computers (through SSH). When I run my program on the Pi, it runs as expected. To be able to run from crontab ...
0
votes
1answer
90 views

How to set VirtualBox VM to use wanted resolution without needing to edit bootloader config or passing kernel parameters

I want to test many of liveCD distributions in VirtualBox (specifically, want to test their installers). Some linux distributions use curses based installers (not X11). By default VM's window is ...
0
votes
2answers
204 views

How to restart KDE Plasma from tty?

Answers in this question only work if one can type the commands inside active KDE session. In another tty, kstart complains that it can't open display. How to restart KDE from tty2? How does kstart ...
0
votes
0answers
172 views

TTY Login hangs after username input with constant newline

Problem: After a restart my Ubuntu Server 18.04 installation greets me as usual with the tty1 login prompt. The input of the username works as usual but after hitting enter the password prompt is ...
1
vote
0answers
70 views

Listen in to data read from file descriptor to ttyS

I have a serial device under /dev/ttyS0 and an application that is reading from the serial device (but not writing to it). I wanted to listen in to the data that is coming in on the serial device but ...
0
votes
0answers
425 views

Virtual terminal TTY always “hits enter” and does not let me type a password

When I change to a virtual terminal (e.g. tty3) by hitting Ctrl+Alt+F3 I can not log in. After entering my username and hitting Enter the terminal somehow starts "virtually hitting enter". It just ...
0
votes
2answers
51 views

Text from standard input not visible after program exits from a readline

I am facing an issue where the text from my stdin is not visible from on my terminal. My program does the following Sets a SIGALRM handler which exits a program when there is no input from the user ...
0
votes
1answer
592 views

Cannot open virtual console 7 (Permission Denied) when trying to start X on Gentoo

When I try to start X with i3 by typing startx /usr/bin/i3 I get the following error message: (EE) xf86OpenConsole: Cannot open virtual console 7 (Permission denied) Launching startx as root or ...
3
votes
2answers
145 views

To make a screenshot in console (without X)

My netbook have installed Debian linux without X.org. I need sometimes to make a screenshots-output of some scripts. I tried to use a framebuffer device for this purpose: # cat /dev/fb0 > ...
2
votes
0answers
255 views

Can't access tty using Ctrl+Alt+F1,F2,F3 etc

Here is what I have tried: $ xev KeyRelease event, serial 43, synthetic NO, window 0x4a00001, root 0x1db, subw 0x0, time 23449801, (434,-234), root:(1305,244), state 0x1c, keycode 67 (keysym ...
2
votes
1answer
81 views

Why doesn't ctrl+u send SIGKILL? stty says it should

I can interrupt a program by pressing ctrl+c in the shell. Often this kills the program but some programs trap the signal and keep running. I want to be able to kill such programs more aggressively ...
1
vote
1answer
61 views

Software for serial communications without speed limit

I have a serial to USB device which supports speeds of 8Mbaud and 12Mbaud (based on FT232H IC). I have tested it under Windows using HTerm, works just fine, but I had to resort to HTerm with hacked ...
1
vote
0answers
23 views

Reduce used display size for both X server and console

I have the situation that I have a LCD display that I would like to use but I want to have a "black unused frame" around the displayed content. Is there a kernel setting which controls the used ...
2
votes
0answers
48 views

Lock Virtual Terminals when resuming

Many screen lockers (mine is i3lock) do not block access to other Virtual Terminals. This means that, if I leave a session opened in some VT, then even when the desktop is locked (for example when ...
1
vote
0answers
595 views

Keep getting “standard in must be a tty” [closed]

I have searched on this error and have seen responses about requiretty adn visiblepw. I have verified and set using visudo that Defaults !requiretty is set. I have even commented out Defaults !...
2
votes
0answers
215 views

Why do I not get a console with systemd?

I'm trying to get a login prompt on an embedded system using Debian and systemd. The system is connected via a physical serial console to a host PC. If I start the kernel with the cmdline parameters ...
4
votes
1answer
112 views

Is linux kernel implemented tty always render data using UTF-8?

It seems so. I read IUTF8, but the document only said it allows you to handle input as UTF-8 when doing line-editing. But what about output? If you use a GUI Terminal, it usually allows you to ...
1
vote
0answers
190 views

PTY allocation request failed on channel 0

My remote vm server's password has expired, i cann't change password. [user@localhost ~]$ ssh root@x.x.x.x root@x.x.x.x's password: PTY allocation request failed on channel 0 WARNING: Your password ...
0
votes
1answer
56 views

Linux switches to mysterious Kernel Buffer view everytime a new dmesg arrives

There is a mysterious tty that only reacts to sysrq, not to any other keyboard input. It started after I engaged SysRQ+F and SysRq+i. Every 30 seconds or so, Linux switches away from the current tty ...
0
votes
1answer
111 views

Calling stty from a systemd service

I have an expect script that I want to run at startup. Among other things it configures a few serial ports. When I run it via systemd I get: couldn't read file "/dev/tty": no such device or address ...
2
votes
0answers
326 views

How to have local echo on with `screen` command?

I tried screen /dev/ttyUSB1 9600,echo but I still don't see what I type.
12
votes
2answers
2k views

What is `/dev/console` used for?

From this answer to Linux: Difference between /dev/console , /dev/tty and /dev/tty0 From the documentation: /dev/tty Current TTY device /dev/console System console /dev/tty0 Current ...
1
vote
1answer
96 views

Is `/dev/tty7` not directly accessible to Ubuntu users?

On Ubuntu, /dev/tty7 is the virtual console for desktop GUI. Is the only way to access /dev/tty7 to use chvt 7 or Ctrl+Alt+F7? Besides that, is /dev/tty7 not directly accessible to Ubuntu users, ...
0
votes
1answer
49 views

Is `/etc/tty0` in Ubuntu the file used by `init` and `getty`?

APUE says The BSD terminal login procedure has not changed much over the past 35 years. The system administrator creates a file, usually /etc/ttys, that has one line per terminal device. Each ...
3
votes
1answer
247 views

SSH to FreeBSD in UTF-8

I'm trying to ssh to FreeBSD-11.2-Release from my Windows machine using Mintty, but when I set LC_ALL to en_US.UTF-8 and try to enter/paste a non-ASCII character, connection got closed. I'm using ...
2
votes
0answers
41 views

How to prevent switching to a different tty when Xserver starts?

I am working with tty2 because Linux terminates all processes every 30 seconds and Xserver refuses to start. How can I keep tty2 in the foreground while the Xserver can go crazy in background?
1
vote
0answers
110 views

Make the TTY console ignore the /dev/input/event3 keyboard

I have a remote control IR USB receiver, but it acts just like a normal keyboard. I'm reading the input from /dev/input/event3 to handle events. Because of this I need a way for the TTY console to ...
0
votes
0answers
34 views

Laptop without X/GUI: Make screen go blank when lid closes [duplicate]

I have a rather uncommon setup. I use laptops internally as some kind of server. The laptops are stacked in a rack and hence should not create an unnecessary amount of heat. So I'd like to shutdown ...
0
votes
0answers
40 views

What baud rate should I set when using screen tty for bluetooth?

I'm paired up with an Xbox Controller and want to see the output coming from the xbox controller in order to figure out its protocol. I'm trying to do screen tty.Bluetooth-Incoming-Port 9600 on my ...
1
vote
2answers
89 views

What controls the mapping between Ctrl+Alt+F keys, TTYs and X sessions?

On my CentOS system, Ctrl+Alt+F1 shows the X Windows session known as :0, but on other systems Ctrl+Alt+F7 may do the same thing. What determines how Fn keys are mapped to X sessions and TTYs? ...
0
votes
1answer
75 views

How to prevent this service from starting at boot

This question is different from the possible candidate since here I am asking how to remove the service at startup I am using a Seeed ReSpeaker Core v2.0 board. I would like to use the UART ...
0
votes
1answer
53 views

UART to UART tcp/ip connection

Need to transmit and receive data(TCP/IP) between 2 raspberry through serial tx/rx pins (/ttyAMA0). Best way to do it? Better if this will be done from kernel space. Thanks!
1
vote
1answer
199 views

How do I use jpnevulator to capture and log the serial traffic between an application and hardware serial port?

OK, I've been googling for hours so I obviously have not been able to understand the answers to the various questions that have already been asked about this subject. I am hoping that, by asking the ...
2
votes
1answer
74 views

Audit file modifications over ssh in Linux

I wanted to monitor all the modifications made to file in Linux server On some research I found audit tool which I have installed and configured using following commands yum install audit # ...
0
votes
1answer
40 views

Rip-off (an ncurses term) single bottom line out of /dev/tty terminal, is it possible?

Ncurses allows to separate a single line from screen, at level of physical screen (curscr), to devote it to e.g. a title bar, thus also creating a logical screen (stdscr), devoted to application's ...
1
vote
0answers
72 views

Udev rule for disabling usb serial driver [duplicate]

I have an ANT+ USB dongle, and some software I wrote, which uses libusb to communicate with the device. On recent linux distributions (like Ubuntu 18.04) when I plug in the dongle, in my dmesg I see ...