LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-07-2016, 04:30 PM   #1
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,070

Rep: Reputation: Disabled
Access to Slackware and/or to the Slackware installer through a serial line, anyone?


Does anyone access one's Slackware system through a serial line (from a "real" terminal if that still exists, a Braille display, another type of device or another computer)?
  • Is it enough to uncomment the lines beginning with ttyS{0,1} in /etc/inittab and (re)boot?
  • Same question for starting the Slackware installer (in this case unpack the initramfs, make the change and repack it, I assume).
  • Other question: as I do not have such hardware, how should I set one or two VMs to test and try?
Thanks in advance for reporting from your experience and for any clue or advice.

Last edited by Didier Spaier; 02-07-2016 at 04:47 PM.
 
Old 02-07-2016, 04:52 PM   #2
stoa
Member
 
Registered: Dec 2013
Posts: 54

Rep: Reputation: Disabled
Have you looked at this[1]?

[1] http://docs.slackware.com/howtos:gen...serial_console
 
2 members found this post helpful.
Old 02-07-2016, 05:07 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,070

Original Poster
Rep: Reputation: Disabled
Err, no, thanks. Still eager to receive responses to questions 2 & 3, as well as advices and caveats.

Last edited by Didier Spaier; 02-07-2016 at 05:37 PM.
 
Old 02-07-2016, 05:28 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Didier Spaier View Post
Does anyone access one's Slackware system through a serial line (from a "real" terminal if that still exists, a Braille display, another type of device or another computer)?
  1. Is it enough to uncomment the lines beginning with ttyS{0,1} in /etc/inittab and (re)boot?
  2. Same question for starting the Slackware installer (in this case unpack the initramfs, make the change and repack it, I assume).
  3. Other question: as I do not have such hardware, how should I set one or two VMs to test and try?
Thanks in advance for reporting from your experience and for any clue or advice.
I'll see what I can do for #3. I haven't had to deal with serial ports for communication is a while.
 
Old 02-07-2016, 08:21 PM   #5
Gerardo Zamudio
Member
 
Registered: Jan 2011
Distribution: Slackware
Posts: 128

Rep: Reputation: 112Reputation: 112
For #3: I use a combination of virt-manager , libvirt and qemu+KVM for virtual machines. Create a new virtual machine, add a virtual console to your domain's XML file either through command line or using the virt-manager UI, and follow the guide posted by stoa to enable it in Slackware as well. You can then do:

Code:
root@omega:~ # virsh list
 Id    Name                           State
----------------------------------------------------
 1     mumble.localdomain             running
 2     kanboard.localdomain           running

root@omega:~ # virsh console kanboard.localdomain
Connected to domain kanboard.localdomain
Escape character is ^]


Welcome to Linux 3.10.17 (ttyS0)

kanboard login:
 
2 members found this post helpful.
Old 02-09-2016, 03:29 AM   #6
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,551

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
Quote:
Originally Posted by Didier Spaier View Post
Does anyone access one's Slackware system through a serial line (from a "real" terminal if that still exists, a Braille display, another type of device or another computer)?
  • Is it enough to uncomment the lines beginning with ttyS{0,1} in /etc/inittab and (re)boot?
  • Same question for starting the Slackware installer (in this case unpack the initramfs, make the change and repack it, I assume).
  • Other question: as I do not have such hardware, how should I set one or two VMs to test and try?
Thanks in advance for reporting from your experience and for any clue or advice.
Yes the Slackware installer on ARM runs via the serial console. All of the installation documents explain how it's done. I think all of the changes I made were sent back to the x86 branch, so the x86 one should also work as-is.


/etc/inittab from the 'a/etc/' package also needs to have ttyS0 uncommenting so that you can login once the OS boots:
Code:
sed -i 's?^#ttyS0?ttyS0?' etc/securetty.new

Last edited by drmozes; 02-09-2016 at 04:13 AM.
 
3 members found this post helpful.
Old 02-29-2016, 05:47 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,070

Original Poster
Rep: Reputation: Disabled
Eventually I used a VirtualBox VM, set up as in the attached pic.

I built and installed 'socat' from http://slackbuilds.org, then started the Slackware installer in the VM appending "console=ttyS0" to the command line as suggested... by our BDFL as the first item of the installation FAQ (do I feel ashamed not to have looked there at first? Yes I do!).

Then I issued this command from an xterm:
Code:
 socat UNIX-CONNECT:/tmp/myvbox STDIO,rawer
and ... Bingo! I saw the messages from the installer in the xterm.

I need to make some tuning (e.g. the dialog boxes are black and white and I do not know yet how to switch to tty{2,3,4}), but I mark this thread as [SOLVED]
Attached Thumbnails
Click image for larger version

Name:	VirtualBoxSerialPort.jpg
Views:	31
Size:	44.9 KB
ID:	20985   Click image for larger version

Name:	Booting.jpg
Views:	34
Size:	110.8 KB
ID:	20986   Click image for larger version

Name:	Login.jpg
Views:	31
Size:	200.7 KB
ID:	20987   Click image for larger version

Name:	setup.jpg
Views:	36
Size:	186.0 KB
ID:	20988  

Last edited by Didier Spaier; 03-01-2016 at 01:42 AM. Reason: s/in the fisrt place/at first/
 
1 members found this post helpful.
  


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
slackware 12.2 installer SiRoel Slackware 1 06-12-2009 01:13 AM
How a kernel module can access to a serial line (/dev/ttySn) Frederic PAUT Linux - Newbie 2 11-18-2008 06:55 AM
Disk Access from the Command Line in the Debian3.1 Installer j@ckrabbit Debian 5 08-19-2005 04:45 PM
Slackware installer cosiek Slackware 3 09-28-2003 01:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:45 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