Ubuntu Servers :: Get Console Output Over A Serial - COM - Port?
May 28, 2011
Is there a way to get console output over a serial (COM) port? I have a box that I use as a NAS, DNS, DHCP and mt-daapd server, I don't have a spare monitor and it is not worth buying one just to use it once or twice a year.
I found this guide [url] but it doesn't work with Natty
View 3 Replies
ADVERTISEMENT
Jan 13, 2010
I am trying to get two way serial communications going between a Windows XP system and a Linux system (RHEL 5).I have /sbin/agetty -L 9600 ttyS0
in /etc/inittab. I am using a generic USB to serial adaptor on Windows (Unitek) and a null modem cable. I have putty configured for 9600 baud, 8 bits, no parity, one stop bit, no flow control.I get the login prompt from agetty in the putty window but input does not work; I see weird characters in the putty screen. I can echo output into the device from windows and see it, but
cat < /dev/ttyS0. just prints out weird characters from what I type.
View 3 Replies
View Related
Dec 16, 2009
I am trying to connect to a cisco console port using the usb to serial converter. I am using minicom and I changed me setting to reflect the USB converter cable, but it isn't working. I have set my baud rate to 9600, 8 data bits and no parity. Minicom acts as if it is connected (it doesn't give any errors), but there is nothing on the screen and nothing happens when I type. Also, I use the tail command and it sees the usb connector connected when I unplug it and plug it back in.
View 10 Replies
View Related
Oct 4, 2010
I need to read some data from a web server and output to a serial port on the local machine. I was attempting to use the following command:
Code:
But the device attached to the serial port (a plate embosser) acts as though there is an extra newline after each line of data.
It parses the data sent according to it's own format, which includes a format string in <> followed by a data block containing one data field per line, with the whole block surrounded by <>,
For example:
Code:
seems to output as though it were:
Code:
I can verify that the web server is outputting the former (and it looks correct if I send the wget output to console).
View 2 Replies
View Related
Feb 23, 2011
I have installed KDE and all the software for it to run on my server through the serial console but when I go and run "startx" I get the following and KDE doesn't start running.
root@u15434060:~# startx
X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-28-server x86_64 Ubuntu
[Code].....
View 1 Replies
View Related
Jan 18, 2011
I am trying to connect to serial console, local one, just to verify than it works, is is possible?Well, I configure serial console
Code:
# ttyS0 - getty
#
# This service maintains a getty on ttyS0 from the point the system is
# started until it is shut down again.
[code]...
It is started, now I am trying to connect to the console via minicom, is it possible from machine where the console is running?If not, how could I check it remotely?
View 4 Replies
View Related
Mar 25, 2010
Can anyone one give me some pointers please, for talking to a serial port, if I use cutecom it always returns "could not open /dev /tty0 or 1 or 3 or 4, even tried ttys0 etc
View 7 Replies
View Related
Mar 23, 2010
We have a new machine with RedHat enterprise 5 on it. I need to connect a serial cable to the serial port and talk to another system (old alpha system) instead of using a VT connected to the alpha.Does RedHat come with anything like Keaterm/hyperterm/etc etc?
View 3 Replies
View Related
May 10, 2010
I'm trying to set rxtxSerial to work so a Java app has access to a serial port (via SiLabs CP210x driver, port /dev/ttyUSB0). When I use update-alternatives --config java, there are 3 alternatives which provide `java'. I have tried openJDK and Sun. Both fail but with completely different messages.
[Code].....
View 9 Replies
View Related
Jun 20, 2010
I am trying to pxe boot ubuntu 10.04.When it boot up,it doesn't show up login prompt from serial console ttyS0, Why ttyS0.conf job isn't invoked automatically ? is there anything wrong with configuration?
View 1 Replies
View Related
Jun 20, 2010
I am trying to pxe boot ubuntu 10.04
grub config:
Code:
title Linux NFS
dhcp
root (nd)
kernel /vmlinuz-2.6.34 console=ttyS0,9600 root=/dev/nfs nfsroot=192.168.1.1:/home/nfsroot ip=dhcp rw
initrd /initrd.img-2.6.34-pxenfs
[Code]....
Why ttyS0.conf job isn't invoked automatically ? is there anything wrong with configuration?
View 3 Replies
View Related
Feb 5, 2010
I am writing some application in C, which will access a serial port device (RS232). My application is working good. But if any other application is already opened the port, I couldn't able to identify that. In windows VB program, while accessing comport through mscomm control, i am receiving an error as "Port Already Opened". But in Linux environment, through C program how can i get that? I am accessing comport 1 as follows
fd = open("/dev/ttyS0", O_RDWR | O_NOCTTY | O_SYNC);
View 3 Replies
View Related
Oct 7, 2010
I've got a home server running ubuntu 10.0.4. It have no monitor or keyboard. So I want to access it from a serial console. (I use SSH currently but if something goes wrong, I need to be able to do something... so serial console seems a fine thing). OK, so on the server, I tell grub to output everything on ttyS0 and opened a getty on ttyS0. On the client side (Laptop running Ubuntu 10.0.4 with pl2303 USB to Serial adapter) I use Minicom.
Home server restart:I see grub menu, linux kernel messages, login prompt. But, I can't do anything:In grub or at the login prompt, no key press is recognized by the server.I've got write permission to /dev/ttyUSB0. I tried a different getty (mgetty)with no success.I stopped the getty on ttyS0 on the server. And run minicom.
From the server's minicom, if I type something, it appear on the client screen. From the client's minicom, if I type something, some garbage appear on the server screen :(One of this things for each char typed). If I short-circuit pin 2 and 3 of the client serial port, it echoed what I type. The two serial ports are connected with a nullmodem cable. (seems to be a full handshaking cable). Of course, same serial port config for both minicom, grub and getty. Hope I'm understandable enough. (English not my primary language). Can somebody help me make this *$*#! serial console working right ? I'm on it for 10 hours now with no success...
Edit : I nearly forgot to tell you I had to update the standard ubuntu kernel to 2.6.34-020634rc1-generic because there was a bug in the pl2303 driver in the stock kernel (2.6.32-25-generic) which prevented me from doing anything (even receiving).
View 8 Replies
View Related
Aug 21, 2015
I have a dell poweredge server. In the bios, it has the option to redirect the screen to the serial port. There is also the check box "redirection after boot" which from what I understand will let me to continue to use the serial port attached to a terminal as if it was the main VGA monitor with a keyboard attached.
When I start the machine up, everything goes as expected, I see the output from the bios on my serial terminal, until debian actually starts booting. It all goes blank. If i attach a monitor i can see it is indeed booted and waiting at the debian login prompt. What should I do from here? I was under the impression that if i enabled "console redirection after boot" that the os would be none the wiser and i could continue using the serial console as the main screen as needed, but that does not seem to be the case.
View 2 Replies
View Related
Jan 14, 2011
i was using a serial console program (not minicom) two weeks back but took a break and have no idea what it is! man, it was awesome, too. it had a nice gui, similar to hyperterminal...and from what i think i remember it came packaged with f14.
View 4 Replies
View Related
Apr 16, 2009
I configured the serial consol on centos5 as follows
# dmesg |grep tty
Kernel command line: ro root=/dev/VolGroup00/LogVol00 console=tty0 console=ttyS0,9600n8
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A[code]......
But I could not consol Centos server from my labtop (win xp) Is there missing or wrong configurations ?
View 3 Replies
View Related
Dec 22, 2009
I am looking for a solution to administer my remote server running SUSE LINUX 10.1 (X86-64) - Kernel 2.6.16.13-4-smp. I have made changes to server and is able to see the boot process and also able to login to system through serial console.
My question, will I be able to administer the server through serial console incase if my root partition is corrupted and system has gone to maintenance shell(or root shell).
Also is there way to go directly to maintenance shell from grub(not talking about single user mode). I want to go maintenance shell where / partition is not mounted.
View 9 Replies
View Related
Apr 27, 2011
ive been looking through several online documents and forum posts but i cant get a clearcut answer on how to set up serial port acces in ubuntu 10.04 (server).
View 7 Replies
View Related
Nov 29, 2010
I've made a LED gadget, which can light up LED patterns. It connects to serial port with RS232 protocol and receives messages which contain desired patterns. My friend wrote a python program which generates patterns and writes them to terminal. Everything is fine this far. I've made a bash script to run this program:
#!/bin/bash
python gen.py
and set it to autostart with:
chmod 755 scr.sh
mv scr.sh /etc/init.d/scr.sh
sudo update-rc.d scr.sh defaults
What I don't understand is - how do I redirect it's output to ttyS0 so that my device could catch generated data?
I've heard that in Linux every data stream can be redirected anywhere with '>>' in bash script. How do I do that? Can I, dunno, write something like this: python gen.py >> ttyS0 in shell script?
View 1 Replies
View Related
Jan 16, 2010
I'm writing a point-of-sale application in Perl/Tk, to run on Ubuntu. For cashier accounts, I plan to just use normal Linux accounts. Cashier login will be done by scanning a badge with a barcode ID on it. Our barcode scanners are older serial-port types. Thus, I'd like to login to the X (Gnome) desktop, yet read the username (and password) via a serial port such as /dev/ttyS0.
View 3 Replies
View Related
May 23, 2010
I am using a F232 USB to serial adapter for connecting my wireless modem to my laptop and I wrote a simple C code for reading data received by the modem transmitted by another modem installed on my target device.The problem is my code is simply giving 0.00000 (float data) output .When I use the same code with my desktop its running fine and I am getting relevant data.What may be the problem? I even changed the permission for my /dev/ttyUSB0 I am using Ubuntu 10.04 on both my laptop and desktop
below is my code
Code:
#include <stdlib.h>
#include <math.h>
#include <errno.h> /* Error number definitions */
#include <termios.h> /* POSIX terminal control definitions */
[code]....
View 5 Replies
View Related
Apr 5, 2011
I am trying to use one serial port simultaniously for two different programs. I have a two programs that use GPS information that I would like to run at the same time. At this time only one program at a time can access a serial port. I have found a way to emulate this in Windows so that I can have both running, now I'm trying to do the same in Ubuntu. Is it possible? If yes, How? The GPS receiver is connected via a USB port.
View 1 Replies
View Related
Apr 16, 2011
I would like to listen to a virtual serialport (dev/ttyACM0). I heard you can this with the terminal in Linux. But how? Does anyone know some commands?
View 2 Replies
View Related
Jan 19, 2011
i would like to connect to my cisco via a console port and i dont konw how
View 13 Replies
View Related
Apr 14, 2010
I have a laptop which has only one serial port.
I went into:
How do I know which of those "ttyS" refers to my serial port?
View 2 Replies
View Related
Aug 12, 2010
I have two usb2serial adapters connected to my PC with a null modem (I am doing some testing to learn serial comm for a particular application). I am writing to /dev/ttyUSB0 a trying to read /dev/ttyUSB1. I have used screen (screen /dev/ttyUSB1 115200) and am able to see the characters being written. I am also able to read and write with Python with the following code
Code: import serial,time,sys
ser1 = serial.Serial('/dev/ttyUSB0',baudrate=115200)
ser2 = serial.Serial('/dev/ttyUSB1',timeout=2,baudrate=115200)
ser1.open()
ser2.open()
[Code]....
View 3 Replies
View Related
Feb 6, 2010
How do I get syslog using serial port?
View 2 Replies
View Related
Jul 11, 2011
I can't communicate with and UPS (Eaton) via a serial port. The serial port is UP and have been tested under a Windows OS.I have set up the communication parameters and tried to establish a dialog with the UPS. Minicom is installed. Nothing appears ont the screen and the VT102 has an offline status. The OS is Red Hat Enterprise Linux 5 64bits.Is somebody have examples to debug the serial port ?
View 7 Replies
View Related
Jan 25, 2011
I need cause an interrupt on a serial port. If I put a single HIGH on the RX pin, will that cause one? I all ready use the 4 control lines for data.Hope I am making sense?
View 5 Replies
View Related
Apr 14, 2009
I need a to add a usb serial port adapter. Are they all basically the same? Do I need to find a Linux compatibility list before I go shopping?
View 1 Replies
View Related