LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-14-2019, 03:27 AM   #1
MrBamse
LQ Newbie
 
Registered: Dec 2018
Posts: 15

Rep: Reputation: Disabled
Maintain Connection To Headless Debian Server During Reboot


Hi, I have a headless server running Debian and I only manage it using CLI over SSH and 99% of the time this is OK.
However, if something were to happen during boot sequence I would have to go down to the basement and get an old monitor (and keyboard) I keep just for this purpose (VGA) and it's all just a hassle.

My Question is: Is there a hardware where I can maintain connection to the server during reboots/etc by having VGA and USB connected on one side and network (preferably WiFi) on the other side. Maybe using telnet?

What I've done so far: Googled the subject an insane amount from time to time over the past year but I just can't seem to find the correct terminology for what I'm searching for.

Thank you all!
 
Old 04-14-2019, 04:11 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Perhaps it's built-in already? E.g. Proliants have iLO, Dell servers have DRAC etc. They allow you to view the console via the network.

If not, and if you can enable a serial console, use a Raspberry Pi or other small server. While the small server might not have a serial connector, you can either wire one using GPIO or use a USB-to-serial cable.

I found several tutorials, like this one https://networklessons.com/uncategor...console-server, by searching for raspberry console server.

Last edited by berndbausch; 04-14-2019 at 04:13 AM.
 
Old 04-14-2019, 04:25 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
There are KVM over IP devices that could be connected to a wireless extender. That would allow you to connect and see all the BIOS boot messages.

They are not cheap so it depends on what that 1% is worth...
 
Old 04-14-2019, 04:57 AM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by berndbausch View Post
If not, and if you can enable a serial console, use a Raspberry Pi or other small server. While the small server might not have a serial connector, you can either wire one using GPIO or use a USB-to-serial cable.
If it does not have a serial port built-in then it is not really a server.
 
Old 04-14-2019, 05:36 AM   #5
MrBamse
LQ Newbie
 
Registered: Dec 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
There are KVM over IP devices that could be connected to a wireless extender. That would allow you to connect and see all the BIOS boot messages.

They are not cheap so it depends on what that 1% is worth...
Aaah, that sounds like the solution I'm looking for. Although the price, as you say, might not be worth it from what I've found so far.
I wished there were something like this: https://www.aten.com/au/en/products/...sories/ka7570/
But where I could connect directly to the "KVM over IP-module" without the the need for a KVM-switch.
Do you know of something like that?




berndbausch & Turbocapitalist: Sorry I should have specified that the hardware ain't an enterprise server, it's just an ATX with lots of disks etc. No serial from what I can read on the specs.
 
Old 04-14-2019, 07:23 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I don't know how that particular device works.

Last edited by michaelk; 04-14-2019 at 07:45 AM.
 
Old 04-22-2019, 06:54 AM   #7
MrBamse
LQ Newbie
 
Registered: Dec 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks for your help everyone. It got me on the right track
 
Old 04-22-2019, 09:31 AM   #8
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by MrBamse View Post
Thanks for your help everyone. It got me on the right track
Please share your solution here once you figure it out. Thanks!
 
Old 04-22-2019, 11:25 AM   #9
MrBamse
LQ Newbie
 
Registered: Dec 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Sure thing, I'll see if I go about trying a solution. The current options seem to expensive.
 
Old 04-22-2019, 11:32 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,839

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
This is a page where explained how can you use the serial port with RPi:
https://www.packet6.com/configuring-...onsole-server/
 
Old 04-22-2019, 12:06 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
A remote system console would let you see the boot messages but not bootloader or BIOS messages. You didn't post what problems you encounter so it just depends.
 
Old 04-22-2019, 02:02 PM   #12
MrBamse
LQ Newbie
 
Registered: Dec 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
This is a page where explained how can you use the serial port with RPi:
https://www.packet6.com/configuring-...onsole-server/
Cool thanks
 
Old 04-22-2019, 02:07 PM   #13
MrBamse
LQ Newbie
 
Registered: Dec 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
A remote system console would let you see the boot messages but not bootloader or BIOS messages. You didn't post what problems you encounter so it just depends.
Sorry for not specifying further earlier. But the most "common" issues I've had have occured during OS boot (fstab errors etc, or sometimes it takes longer that usual and its probably running a diskcheck and it would be nice to see). Once it was an error with GRUB.

Sorry for being dumb, but what is a "remote system console"?
 
Old 04-22-2019, 03:43 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
The system console displays the boot and administrator messages and now days is attached to tty1 by default. There are 6 virtual terminals that you can switch between them by using the alt-F1 to alt-F6 keys and the desktop uses F7. In the old days before PCs all terminals were connected to the server using RS232 (serial) wiring and the system console was a special dedicated terminal.

You can still create a dedicated system console using RS-232 by adding a kernel boot option. The serial port is connected to another computer and the console accessed via a terminal application like PuTTy or minicom. In the link that pan64 posted the serial console is connected to a Raspberry Pi (USB RS-232 adapter) and then using a special service converts the RS232 data to ethernet. You can then access the system console by connecting to the Pi using that port.

While the link use telnet you can create a virtual tty port using socat and access the console using any application with a device ID.

https://techtinkering.com/2013/04/02...rt-over-tcpip/
 
Old 04-23-2019, 12:26 AM   #15
MrBamse
LQ Newbie
 
Registered: Dec 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by michaelk View Post
The system console displays the boot and administrator messages and now days is attached to tty1 by default. There are 6 virtual terminals that you can switch between them by using the alt-F1 to alt-F6 keys and the desktop uses F7. In the old days before PCs all terminals were connected to the server using RS232 (serial) wiring and the system console was a special dedicated terminal.

You can still create a dedicated system console using RS-232 by adding a kernel boot option. The serial port is connected to another computer and the console accessed via a terminal application like PuTTy or minicom. In the link that pan64 posted the serial console is connected to a Raspberry Pi (USB RS-232 adapter) and then using a special service converts the RS232 data to ethernet. You can then access the system console by connecting to the Pi using that port.

While the link use telnet you can create a virtual tty port using socat and access the console using any application with a device ID.

https://techtinkering.com/2013/04/02...rt-over-tcpip/
Cool! Can ser2net be started before SSHD and do you need a physical serial port?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't maintain my internet connection w/ WICD 1.6.2 Maxximiliann Linux - Networking 2 02-04-2010 10:04 AM
Suddenly, on Ubuntu I cannot maintain an internet connection. elocs Linux - Newbie 6 03-18-2009 11:26 AM
RTL8187 doesn't maintain connection rhys42 Linux - Wireless Networking 1 12-14-2007 10:12 AM
How do I admin/maintain a debian server? nicedreams Linux - Software 1 12-16-2005 03:04 AM
Maintain connection to internet d4d4n9 Mandriva 8 02-02-2004 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration