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

learn more… | top users | synonyms

1
vote
2answers
32 views

Remove data from the STDIN stream buffer of another TTY session

I encountered a problem the other day while running multiple tty sessions in separate terminal windows. I was running a expensive disk access command and was waiting for it to return. Meanwhile I was ...
0
votes
1answer
33 views

Why does GDM start in TTY2 and TTY7

I have Ubuntu 15.04 and GNOME 3.16 installed. This PPAs are enabled: deb http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu vivid main deb http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu ...
0
votes
1answer
21 views

Linking two hardware serial ports

I have two micro-controllers which are connected to my computer(ubuntu 12.04) through serial-USB cables. One of the controllers (ttyUSB0) is programmed such that it sends data serially and another ...
1
vote
0answers
12 views

Setting custom baud rate on console

Just for aesthetics I would like to have my text on my console be displayed at a lower speed. I've tried using things like screen with custom baud rates of /dev/tty1 but it wouldn't work, input from ...
1
vote
1answer
21 views

tty problem: binary mess instead of “text good data”

I am trying to use a GPS over moxa Uport 1110 usb-to-serial device. The driver of UPort was installed OK, and GPS sends NMEA (text) data. However, when I issue command cat /dev/ttyUSB0 my terminal ...
0
votes
1answer
25 views

What is a UART port

I have a .fex file for Cubietruck. Supposedly, the bluetooth pins are defined in the uart_para2. With the current config, I have uart0 and uart2 enabled, and everything else is disabled. Bluetooth ...
1
vote
2answers
73 views

How are long command lines ( > $COLUMNS ) automatically wrapped to a new line?

There are several points where I/O is passed through, some of which (to my knowledge) are the shell, pty, tty, termios, terminal emulator application. In most terminal emulators, long command lines ...
1
vote
1answer
21 views

_Robust_ bluetooth serial port console/tty

I've managed to create and connect to a console via bluetooth, as is described in many Q&A's FAQs Guides etc found via a google search. Briefly, in sudo mode, /usr/sbin/hciconfig hci0 piscan ...
1
vote
1answer
41 views

How do I change which monitor the TTY shows up on?

When I boot, or when I press CtrlAltF*, I am taken to a physical terminal/TTY. The problem is that the TTY shows up on my HDMI monitor, which is actually not even in the same room as me. Is it ...
0
votes
0answers
32 views

echo `“hello terminal” > /dev/terminal` - works for /dev/tty[2-5] but not for /dev/pts/n

I'm trying to get to know the input output systems of unix/linux systems better. Since terminals and devices are implemented to interface as ordinary files, I assumed I could on any desired terminal ...
0
votes
1answer
29 views

Is the PTTY inside the Kernel or Userspace?

I read, that drivers are a way to expand the Kernels abilities to communicate with hardware devices, since there are so many and will be even more the Kernel has to be expandable. In order to ...
2
votes
0answers
59 views

cat /dev/ttyS0 Input/output error

I created infrared receiver as in LIRC manual (http://www.lirc.org/receivers.html). And tested it on windows using program called Terminal. When I switched on RTS pin DCD pin was also switched on ...
0
votes
0answers
19 views

Does udev only check for matches on the first remove event?

ACTION=="add|remove",SUBSYSTEM=="tty", ATTRS{idVendor}=="XXXX", ATTRS{idProduct}=="XXXX",SYMLINK+="device", RUN+="/home/alvin/udev/test.sh" This is the command that works on add ...
1
vote
1answer
57 views

What decides where TTY and boot messages are displayed?

I recently switched from Fedora 21 to Arch Linux, and one thing that bothers me is that Arch does not put boot messages and TTYs' on all available outputs like Fedora does, but only on the primary ...
1
vote
2answers
64 views

Redirect script output to /dev/tty1 and also capture output to file

I want to display text output on the console that is always displayed on a small screen on my Raspberry Pi. The following code works for showing that text output: cd ...
1
vote
1answer
38 views

Saving colored output regardless of the source

How can I save colored output to a file regardless of the source when the sources turn coloring off if they detect their stdout isn't a terminal?
0
votes
0answers
30 views

how to copy files using TTY teminal from one pc to another connected through same home network

In my academic lab my friend copied files from one computer to another that were serially connected using the tty4. How could he have done this if there was no internet and he didn't install any new ...
1
vote
0answers
76 views

Fedora 21 VT Change Hangs

On Fedora 21, I have LightDM and i3 installed. When I switch to tty2 and do a bit of work then switch back, my laptop hangs. I am using Intel HD Graphics 4600. Thanks UPDATE now it sometimes ...
4
votes
2answers
79 views

How to get the real name of the controlling terminal?

How can one get the real name of the controlling terminal (if there is one, else an error) as a pathname? By "real name", I mean not /dev/tty, which cannot be used by other arbitrary processes to ...
0
votes
0answers
33 views

Kernel loglevel and console manipulation

I want to have two console kernel arguments, one /dev/tty2 for screen and one /dev/ttyAM0 for serial debugging. I can achieve that simply with: console=ttyAM0,115200 console=tty2 I want /dev/ttyAM0 ...
1
vote
1answer
32 views

Stop interface name iteration?

I have a device that comes up as ttyACM0, however every time it is reset it iterates, so next time it will come up as ttyACM1 etc. Where might this lock be located so that I can remove it? I'd like ...
1
vote
1answer
55 views

Detect how much of Unicode my terminal supports, even through screen

Here's the problem: I want to be able to discern if my terminal is capable of decent unicode or not, in order to use some characters or not, much like glances does, that sometimes uses colors and ...
0
votes
1answer
87 views

Exit /dev/tty after error message

I run this bash function when a button is pressed, it calls my mobile, however when the call ends or I reject the call, it hangs in /dev/tty and does not return to the main program call.sh ...
0
votes
1answer
29 views

RHEL Serial TTY

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Technical_Notes/deployment.html According to this, /etc/inittab has been deprecated. As suggested from this I created a ...
0
votes
0answers
44 views

Serial port locked by random process

I have an issue with trying to open a USB device's serial port with pyserial. It seems that as fast as I connect the device, /dev/ttyACM0 is used by some random process. ModemMana 851 root 8u ...
1
vote
1answer
44 views

Why does tapping a TTY device only capture every other character?

So, I came across the ttyname function (unistd.h) and had to test it out. #include <unistd.h> #include <stdio.h> int main(void) { printf("%s\n", ttyname(0)); return 0; } On my ...
1
vote
1answer
170 views

Is it possible to open a terminal with specified tty/pty

(I am using Ubuntu.) In my understanding tty is just a kind of port. You input something and it should output something. And a terminal (emulator) is a software handle those input and output. ...
0
votes
0answers
73 views

linux + what are the messages bad tty under /var/log/messages file

under /var/log/messages I see the following messages "bad tty" what the meaning of these messages? second is it caused because some application that called - owstd ? as we can see from the log? ...
3
votes
1answer
123 views

How do I come by this pty and what can I do with it?

It seems that a simple shell redirect from /dev/ptmx gets me a new pseudo-terminal. $ ls /dev/pts; ls /dev/pts </dev/ptmx 0 1 2 ptmx 0 1 2 3 ptmx It disappears as soon as the process that ...
3
votes
0answers
111 views

How to prevent kernel or any broadcast messages from flooding the TTYs?

Because of some hot-plugging issue, similar to what talked of here, the TTY displays show a continuous stream of messages (which are also logged in the /var/log directory). Every text I key in flows ...
2
votes
1answer
76 views

Determine the owner of the session of a process

I am trying to implement a way to determine which user is owner of some process's session, in a way that's as cross-platform as possible. In Linux I can trace the process's pty by following the link ...
1
vote
2answers
87 views

Replace user shell from dash to bash [duplicate]

Everytime I use my terminal, I am always put into the dash shell instead of bash. Is there any way to change this even just for my user only? Tried apt-alternatives but setting the default shell can't ...
0
votes
0answers
20 views

No video on tty after sleep

I have Debian 3.2.63. After I push 'Sleep' button and come back my TTY do not work, only X11. Anybody know how restore video parameters after suspend?
0
votes
0answers
18 views

Reading from /dev/tty [duplicate]

How do I read what is being typed on a different virtual terminal? For example, I was trying to read from /dev/tty0: I did cat < /dev/tty0 and read < /dev/tty0 But nothing is being sent ...
0
votes
1answer
42 views

Make own graphical server [closed]

I had experience to work with framebuffer and found it pretty well to make own graphical applications. But the problem is that framebuffer is too slow. My goal: 1) Make a new tty which will work for ...
1
vote
1answer
51 views

Controlling the terminal while in the middle of a pipe [duplicate]

Say I have 3 commands linked through pipes: A | B | C I would like B to output error messages to stderr and some progress to the terminal. If stderr is the same as the terminal, then that is easy: ...
1
vote
0answers
62 views

Switching to alternate tty device does not give command prompt [closed]

I am trying to install a graphics driver and need to terminate X in order to do so. However, when I switch to an alternate tty device using CTL-ALT-Fx I am met with only a black screen. It appears as ...
1
vote
0answers
48 views

How to avoid session login failure with ecryptfs

After encrypting my /home directory with the migrate-home ecryptfs-utils script I can't log in to an XFCE session on my Manjaro system from the normal login screen. If I try to, the session is ...
1
vote
2answers
43 views

Use/Grab the only keyboard with no user logged locally

I have a raspberry pi running some software (I have the source) that needs user interaction and has a special (USB) keyboard with only 3 keys. The program runs on framebuffer (SDL) and is launched ...
13
votes
3answers
2k views

Start a process on a different tty

After about an hour of Googling this, I can't believe nobody has actually asked this question before... So I've got a script running on TTY1. How do I make that script launch some arbitrary program ...
4
votes
2answers
85 views

Save scratch emacs file without access to terminal

I'm trying to save the contents of an Emacs scratch buffer, which I can't access any more due to an inaccessible terminal. On my Linux box I've ssh'ed to a server, and started Emacs. My Linux box has ...
2
votes
3answers
62 views

(In)significance of [… ] and tty root processes

A colleague of mine assigned me to perform a root-cause analysis of an enterprise security server sometime ago. We knew the problem resided in one of the processes run by root but did not know which ...
0
votes
2answers
256 views

How to switch between tty and xorg session

My xorg session is on tty1 and if I want to issue a command from tty (because I cannot do it from xorg session for some reasons), I press Ctrl+Alt+F2, for example, and type a command. But I cannot ...
-2
votes
2answers
413 views

Corresponding 7zip command for unzip -p -a

I have a question regarding unzip command in Unix. As of now my Unix command unzip -p -a is able to zip the file which are lesser in size. But if the file size is larger then the command is not able ...
0
votes
0answers
123 views

How to switch between the virtual consoles ttyv1, ttyv2 10 on FreeBSD?

The CTRL+ALT+F1..F12 keybinding does not work. I'm using kde interface.
4
votes
1answer
85 views

Is it possible to merge two screen sessions chained?

Let us imagine I have only one terminal. To overcome this trouble I use screen, so happy! However, I need to connect to another computer over ssh, to prevent to open several connections I want to run ...
1
vote
1answer
66 views

Echoing Backspace Characters in the Terminal

I'm working with picocom running inside gnome-terminal. I have local echo switched on inside picocom using the -e option, and when I backspace I can see that caret moves backwards, however the ...
0
votes
0answers
118 views

System not responding and ttyS0 (ttyS0) main process (1627) killed by INT signal

The system is not responding(Unable to do SSH or Telnet, even scheduled cron job is not running) if it runs for more than 5 days. The scenario is "the ssh session is opened and console is opened from ...
1
vote
1answer
11 views

Locating the terminal currently in use

I need to write a script to test if im using the correct terminal and then print a message This is what i have so far if(???? == dev/pts/1) echo Access Granted. Welcome. endif I dont know how to ...
0
votes
2answers
95 views

User messages can't be switched on Fedora

A non-root user X cannot message a user Y. This is despite both users having successfully run mesg y. I've tried following advice for similar problems on Ubuntu described in this question. No luck. A ...