Tag Info

New answers tagged

0

It seems like nvidia-349.16-1 is broken. When I remove that package tty's show up on both monitors again.


1

If your tty has the noflsh flag turned off - you can check with stty -a < /dev/pts/whatever | grep -e -noflsh from another tty, but the default is that it's turned off - then typing the interrupt, quit, or suspend character will flush the input queue. So if you type Ctrl-Z, then fg, it will suspend the currently running command, flush the input, then ...


0

Probably you should send SIGSTOP to bash in order to prevent it from doing anything, and after finishing your task send SIGKILL to bash. Note that SIGSTOP prevents bash from waiting for your task to be finished, and you'll get zombie. After SIGKILL init will reparent your task, and zombie will disappear.


0

Based on this response, I have done the following and it works. sudo nano /etc/gdm/gdm.conf In this file, I added the following line. FirstVT=7 In /etc/gdm/gdm.conf you can set what the 1st terminal should be the graphical interface. FirstVT=7 will make GDM check tty7 first (by the way: this could mean it ends up on tty8, tty9 if these are ...


0

Well, the obvious way is to connect the two ports to each other, using a serial cable, without the two USB/serial adapters. Since you're not doing that, I presume its because you want the computer to do something—for example, this would be a reasonably common setup for reverse-engineering the protocol between the two devices. Snooper is a program for just ...


1

I'm not familiar to picocom, so I can't give you an answer, but can give you an explanation for the behavior which you might find useful. When working with terminals, the input (keyboard) and the output (stuff sent to the terminal to be printed) have to clearly be distinguished from each other. As for the input, the keyboard's backspace key sends either ^H ...


0

Try this program https://packages.debian.org/sid/numlockx On my system works,fine,on X and tty


1

In my experience (which admittedly is from a number of years ago), physical line characteristics reset back to the defaults when the device is closed. So running stty ... < /dev/ttyUSB0 as a standalone command is frustratingly pointless because as soon as the command completes the device is closed and it resets back to its default. To resolve this one ...


1

Maybe I am over simplifying, but, can you just do this? ps -p <pid> -F tty Here is an example: $ ps -p 6947010 PID TTY TIME CMD 6947010 pts/0 0:00 ksh $ ps -p 6947010 -F tty= pts/0 Here is how you could determine to allow or deny access to a particular process: You first determine who owns the process and which pts device started ...


1

A UART is a Universal Asynchronous Receiver and Transmitter. It is a device which takes parallel bits of data, as found in the computer, and serializes them to send over a medium such as a wire or the airwaves. It also takes data in in serial form and assembles it into a parallel form to be used in the computer. Here is the Wikipedia article and here is ...


0

I tried all the solutions and this was the best: ssh host "sleep 99 < <(cat; kill -INT 0)" <&1 http://stackoverflow.com/questions/3235180/starting-a-process-over-ssh-using-bash-and-then-killing-it-on-sigint/25882610#25882610


0

OK, I've come up with a solution myself - it might not be optimal though, so and comments and advice appreciated. Following on from my 'slight edit', I wrote a script to monitor the rfcomm connection and if the bluetooth is disconnected but the tty is still attached, then kill the processes on the device: check_rfcomm rfcomm show /dev/rfcomm0 ...


1

Add the following after your GRUB_GFXMODE line in /etc/default/grub: GRUB_GFXPAYLOAD_LINUX=keep


0

----- command.sh #! /bin/sh trap 'trap - EXIT; kill 0; exit' EXIT (sleep 1000;echo f) & read ans ----- on local terminal sleep 864000 | ssh -T server command.sh > foo


4

In most terminal emulators, long command lines […] are wrapped to a new line before the user submits the command by pressing Enter. This is not a function of the terminal emulator. It is a function of your shell. Your shell is not a full-screen application, but it is doing cursor addressing. When you are editing a command line in a shell, ...


1

The terminal [emulator] is responsible for this. Moving to the first column of the next line is just what the terminal does after filling the last position on a line. You can easily see that it isn't the shell doing this just by entering cat and typing some long lines. Shells like bash and zsh do in fact track the cursor position and the number of columns ...


0

I had a similar problem bringing a USB cellular modem online with consistent numbering in a system along with other USB tty devices vying for /dev/ttyUSB* numbers. In my case it was a EuroTech ReliaCELL 10-20-32 with the Telit chipset. I solved the problem using some ideas from here, ending up with the following excerpt in my .rules: SUBSYSTEMS=="usb", ...


0

Assuming the kernel is configured to support the frame buffer console, You can specify which fb driver to output the console on via fbcon in the kernel args. For example: fbcon=map:1 You can find out which fb driver values are available using: cat /proc/fb In GRUB 2, the fbcon parameter can be appended to GRUB_CMDLINE_LINUX. For more information, ...


0

It fails, because sudo is trying to prompt on root password and there is no pseudo-tty allocated. You've to either log-in as root or set-up the following rules in your /etc/sudoers (or: sudo visudo): # Members of the admin group may gain root privileges. %admin ALL=(ALL) NOPASSWD:ALL Then make sure that your Jenkins user belongs to admin group (or ...


1

It's in kernel space. This article from Linux Device Drivers is a bit dated but still should generally apply: https://lwn.net/images/pdf/LDD3/ch18.pdf However, there is some effort recently towards replacing the kernel driver with a userspace console called "KMSCON" -- see that project's site for more: http://cgit.freedesktop.org/~dvdhrm/kmscon/tree/README



Top 50 recent answers are included