Raspberry Pi / Linux – Console/Terminal Server Access Point

Super easy out-of-band access to all your lab devices!

Wow!

Parts List

Install Raspbian (from linux)

Find drive letter:

 

Unmount (using sdb as example):

 

Extract image to SD card (takes a while):

 

Boot the SD then update:

 

Change hostname:

 

If file manager crashes:

 

Setup serial ports

Install ser2net:

 

Find out where USB to Serial is connected:

 

Edit the ser2net configuration:

 

File example:

 

Make sure Ser2Net starts up automatically:

 

Add the following above exit 0:

 

Create a log directory for ser2net sessions:

 

Make persistent names for the serial ports

View the attributes you can use:

 

Create and edit a rules file for persistant names:

 

Create your rules (matching via USB port location):

 

Setup as an AP

Install new software:

 

Stop new software:

 

Edit dhcpcd config:

 

Add to the end:

 

Restart dhcpcd:

 

Configure DHCP:

 

Add to file:

 

Reload dnsmasq to use the updated configuration:

 

Configure the host access point:

 

Add the information below to the configuration file.

 

We now need to tell the system where to find this configuration file:

 

Find the line with #DAEMON_CONF, and replace it with this:

 

Now enable and start hostapd:

 

Do a quick check of their status to ensure they are active and running:

 

Configure routing and masquerade:

 

Uncomment this line:

 

Add a masquerade for outbound traffic on eth0:

 

Save the iptables rule.

 

Edit /etc/rc.local:

 

Add this just above “exit 0” to install these rules on boot.

 

Reboot and check if it works. lol.

 

Enable SSH (and VNC)

  1. Enter sudo raspi-config in a terminal window
  2. Select Interfacing Options
  3. Navigate to and select SSH
  4. Choose Yes
  5. Select Ok
  6. Do the same for VNC if needed.
  7. Choose Finish

 

 

 

 

NOTE: Web GUI section below is still being worked.

 

Web GUI

install Node.js

Check ARM version:

 

Find the link to your appropriate download:
https://nodejs.org/en/download/

 

Download it:

 

Extract:

 

Copy to /usr/local:

 

Confirm node/npm:

 

Update:
npm install -g npm

<current snapshot end>

Make project folder:
sudo mkdir /srv/web-terminal

 

To be continued…..

Leave a Reply

Your email address will not be published. Required fields are marked *