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

learn more… | top users | synonyms

4
votes
2answers
48 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
14 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
29 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
33 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
48 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
23 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
23 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
29 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
115 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
38 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
88 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
81 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
0answers
41 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
59 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
19 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
46 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
43 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
32 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
38 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
891 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
68 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
50 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
165 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
356 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
92 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
67 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
0answers
52 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
92 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
70 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 ...
2
votes
1answer
72 views

Replay a screen log file incrementally

I have run some commands in gnu screen and used the C-a H command to record the output to a screenlog.0 file. However now I want to view it. There are loads of terminal escape sequences, so just ...
2
votes
1answer
79 views

How can I make a psf font for the console from a otf one?

I want to use the Inconsolata font in the tty console, but I need to generate a psf font for that. I found that there are two tools that should help me otf2bdf and bdf2psf. But everytime I try to use ...
2
votes
1answer
2k views

Call sudo from Jenkins

I have one build machine which has a user abc which is has limited sudo access. When I check out the source code and run my build script, it works fine. The build script contains sudo calls for which ...
0
votes
0answers
124 views

How to make switching virtual terminals instant?

I've configured kdm (editing /usr/share/config/kdm/kdmrc) to automatically open two displays: StaticServers=:0,:1. When I switch between them with Ctrl+Alt+F7-8 there is a delay of about 2 seconds ...
0
votes
0answers
65 views

systemd with 10 ttys and Desktop on Ctrl+Alt+F5

I am running systemd on ArchLinux. I have read various posts of doing this but it seems impossible (i.e. I am incompetent in implementing this:)) ). I want to disable the on-demand tty spawning of ...
2
votes
1answer
257 views

Use sudo with ssh command and capturing stdout

I'm trying to run a command as root (via sudo) on a remote server, and capture stdout (but not stderr) into a file. eg. Something like this: ssh user@remote "cat /root/file.tar | gzip" > ...
3
votes
2answers
211 views

leaking memory with shell script and tty [closed]

I'm running a shell script on a raspberry pi to communicate with a arduino. Every hour my ram gets used up by about 50 megabytes more. The script itself just connects to ttyACM0 (the arduino's usb ...
4
votes
1answer
67 views

Make program in a pipe to think it has tty

Test environment: $ mkdir testdir $ cd testdir $ echo | tee "file name" Now, ls will print file?name (under Ubuntu GNU bash, at least), while ls | cat will print file and name in separate lines. ...
3
votes
2answers
2k views

Why are my virtual consoles completely blank?

When I go from my graphical session to a virtual console by Ctrl + Alt + F i (with i in 1 - 7 and 9-12) I see a completely black screen. Only on F8 I see the GUI. Not even a blinking coursor on the ...
0
votes
1answer
1k views

ERROR: init: ttyS0 (/dev/ttyS0) main process (1612) terminated with status 1

I'm getting the following errors every 10-30 seconds on a virtual Red Hat Enterprise Linux 6.5 2 Server on Amazons EC2. Sep 23 09:57:05 ServerName init: ttyS0 (/dev/ttyS0) main process (1612) ...
2
votes
0answers
56 views

How to use secondary VGA device for TTYs

I have a machine (a virtual XEN DomU, but I don't think it matters) with two video cards. I would like to display the TTYs on the monitor connected to the secondary video card (i.e., not the display ...
1
vote
2answers
76 views

Connect two ttySx devices on the same machine

I'm just wondering, whether it is possible to connect /dev/ttyS0 with a virtual device node (e.g. a created with mknod /dev/ttyTest) so that the output from ttyS0 is sent to ttyTest. I would like to ...
0
votes
1answer
426 views

Xorg with Kernel Mode Settings won't work with other tty

Using intel video drivers with kms and i915 on arch linux I haven't been able to start Xorg in a different tty than from the calling one logged as root. By example: Logged as root on tty1 X vt7 :0 ...
4
votes
1answer
312 views

look up the device from its tty file?

Here is from my Ubuntu $ ls /dev/*tty* /dev/tty /dev/tty17 /dev/tty26 /dev/tty35 /dev/tty44 /dev/tty53 /dev/tty62 /dev/ttyS12 /dev/ttyS21 /dev/ttyS30 /dev/tty0 /dev/tty18 /dev/tty27 ...
2
votes
1answer
385 views

How to enable/disable a serial port?

I need to disable and then enable a serial port for testing purposes on a Java program. Since the man page of setserial is stating: "Using UART type none will disable the port.", I use sudo setserial ...
4
votes
4answers
537 views

Multiple terminals at once without an X server

There is a way to visualize multiple terminals at the same time without running a Xorg session ? I have a really low profile machine that could be great for some basic stuff but has an horrible ...
0
votes
1answer
36 views

How can I automatically interrupt what I'm doing to input something?

As per Nick Winter's The Motivation Hacker, I want to measure my happiness. I know that I'm bad at remembering things or responding to reminders, so I'd like to set up a daemon that, at random ...
7
votes
1answer
515 views

What exactly is 'scrollback' and 'scrollback buffer'?

What are "scrollback" and "scrollback buffer" in programs like bash and screen, and how do they relate to the tty, the programs being run, and stdin/ stdout/ stderr? Here is the only definition of ...