Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-03-2009, 10:10 AM
|
#1
|
Member
Registered: Feb 2009
Posts: 151
Rep:
|
System without video card but with serial cable console?
Is it possible to make Linux box which uses serial cable as it's only terminal?
|
|
|
06-03-2009, 10:18 AM
|
#2
|
Member
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267
Rep:
|
|
|
|
06-03-2009, 10:23 AM
|
#3
|
Member
Registered: Feb 2009
Posts: 151
Original Poster
Rep:
|
My distro is Fedora 9.
Reading the following
http://www.vanemery.com/Linux/Serial...l-console.html
I see, that not all things are applicable, since my inittab is said to configure only default runlevel.
|
|
|
06-03-2009, 10:38 AM
|
#4
|
Member
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267
Rep:
|
Fedora 9 is an upstart system and you will find all the runlevel codes in /etc/rc.d and the rc.sysinit starts it up.
Running a /chkconfig --list/ should tell all what you have on in runlevel 3. Check google for an HOW-TO that may be more complete.
Dave.
|
|
|
06-05-2009, 05:09 AM
|
#5
|
Member
Registered: Feb 2009
Posts: 151
Original Poster
Rep:
|
I have success adding the following
console=tty0 console=ttyS0,115200n8
to the end of kernel parameters line in GRUB configuration.
But I have completely black and white text in result (no ANSI coloring). How to fix this?
I am using the same program (PUTTY) to see both COM1 line and SSH, so, the setup of this program may be irrelevant. Looks like linux itself sends text without escape sequences.
How to check this? If this is so, then how to make linux to use escape sequences?
Thanks.
|
|
|
06-05-2009, 06:15 AM
|
#6
|
Member
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267
Rep:
|
Dims, I used a serial line console for a couple of years but used SSH to actually control the server. I couldn't get the machine to boot without a console and I used the console only to boot. I don't remember ever seeing color (or needing it) as I was just bringing up a server on our local net. I'm pleased you were able to sort it all out. Perhaps the termcap or terminfo docs will be of assistance for color. google is our friend.
Dave
PS Click on the thumbs up icon if a post helps you as it is all we ever get for answering these posts. Don't click if it is not helpful. :-)
|
|
|
06-06-2009, 02:32 PM
|
#7
|
Member
Registered: Feb 2009
Posts: 151
Original Poster
Rep:
|
So, I have successfully set up serial console on Fedora.
But the problem is that it does not boot if I remove graphics card. I have turned off X11, but may be something is still requires graphics card?
How to make kernel not to use graphics at all?
|
|
|
06-06-2009, 03:23 PM
|
#8
|
Member
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611
|
Does the machine even post when turned on with no video card?
Some BIOSes will not post without a video controller . . . some have an option to disable this check.
I don't believe that the kernel itself requires a video controller to be present when booting, as my old 486 DNS has not had a video card in it for like nine years.
|
|
|
06-06-2009, 08:56 PM
|
#9
|
Member
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267
Rep:
|
Most machines will not survive the POST (power on self test) if certain facilities are not present. You will normally hear a beep code from the motherboard that will decode what is keeping it from starting. Unless you have a setting for bypassing the graphics test in the bios, the motherboard will stop. The easiest fix is to put in the cheapest old graphics card (doesn't matter what kind since you will not be using it) you can find and just go forward with the boot sequence.
Dave
|
|
|
06-07-2009, 12:35 AM
|
#10
|
Member
Registered: Feb 2009
Posts: 151
Original Poster
Rep:
|
Initially I was also thinking, that this was the POST problem -- i.e. system might not loading due to graphics card absence.
But this suggestion was discarded.
I have removed all familiar (for me) graphics options, including GRUB menu, and got boot messages via serial link. I see, that kernel is loading, hence BIOS is configured correctly and computer IS able to boot withoug graphics card.
But the loading process is still hangs now, although this happens later.
Last edited by Dims; 06-07-2009 at 12:37 AM.
|
|
|
06-07-2009, 01:05 AM
|
#11
|
Member
Registered: Feb 2009
Posts: 151
Original Poster
Rep:
|
What about font changing utility? When booting, I see the moment, when the font (in text mode) slightly changes. This means that font controlling utility loads.
What happen at this stage if graphics card absent?
|
|
|
06-07-2009, 05:30 AM
|
#12
|
Member
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267
Rep:
|
Assuming it dies in the /etc/rc.sysinit stage, you could follow its progress through the process. Assuming your default runlevel is 3, run a / ls -al /etc/rc.d/rc3.d / to see just what is called and when. rc.sysinit calls them in order; first the Knn (Kills) and then the Snn (Starts) You can compare the point where it dies with this schedule and see when and what process made it die.
What are your kernel parameters in the GRUB configuration?
Dave
|
|
|
06-07-2009, 06:02 AM
|
#13
|
Member
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267
Rep:
|
Dims, the reason I asked about the GRUB kernel parameters is that I don't know how your serial console intreprets the boot process. info grub, in Section 7, addresses the serial console and you may need the --dumb option to describe your terminal. I'm sorry -- its been quite a while since I used the serial console terminal and I just don't remember how I had it all set up. I did keep a graphics card installed as it wouldn't boot without it. But maybe it wasn't required. Getting old is hell on my memory but it does have some good effects also; I also forgot the disappointments we all experience in life.
Dave
|
|
|
06-07-2009, 06:28 AM
|
#14
|
Member
Registered: Feb 2009
Posts: 151
Original Poster
Rep:
|
Will have more details later.
|
|
|
06-07-2009, 12:49 PM
|
#15
|
Member
Registered: Feb 2009
Posts: 151
Original Poster
Rep:
|
My grub.conf is follows:
Code:
default=0
timeout=5
#splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console
title Fedora (2.6.27.24-78.2.53.fc9.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.27.24-78.2.53.fc9.x86_64 ro root=/dev/VolGroup00/LogVol00 console=tty0 console=ttyS0,115200n8
initrd /initrd-2.6.27.24-78.2.53.fc9.x86_64.img
title Fedora (2.6.25-14.fc9.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.25-14.fc9.x86_64 ro root=UUID=5ae17ef1-5d77-46e0-9f34-8f9f935159c8
initrd /initrd-2.6.25-14.fc9.x86_64.img
|
|
|
All times are GMT -5. The time now is 11:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|