From 08d0402c43b7f315f18af29990d553bb0600240e Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Wed, 15 Sep 2021 11:02:31 -0700 Subject: [PATCH] Updated Dayna Port SCSI Link (markdown) --- Dayna-Port-SCSI-Link.md | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/Dayna-Port-SCSI-Link.md b/Dayna-Port-SCSI-Link.md index a3d35d3..6df69b9 100644 --- a/Dayna-Port-SCSI-Link.md +++ b/Dayna-Port-SCSI-Link.md @@ -26,14 +26,19 @@ cd ~ sudo apt install git git clone https://github.com/akuker/RASCSI.git -# Then: +# Install or update RaSCSI: cd ~/RASCSI git checkout develop -./easyinstall.sh # Select option 0 if new install, 3 if updating +./easyinstall.sh # Select option 1 to install or update, or option 0 if you need a new drive image as well + +# Scripted network configuration: +./easyinstall.sh # Select option 5 to configure wired, and 6 to configure wireless bridge + +# Let the Pi reboot, and attach a DaynaPORT adapter to your RaSCSI as instructed in the script ``` ## Wired Raspberry Pi Setup -*Only use this section if your Raspberry Pi is connected to a wired network that uses DHCP to assign addresses* +*Only use this section if you didn't use easyinstall.sh to configure the bridge, and your Raspberry Pi is connected to a wired network that uses DHCP to assign addresses* In this section, we're going to reconfigure the network so that eth0 is just an interface to the outside world, but does not have any "Layer 3" functions. |Before | After | @@ -83,17 +88,12 @@ ExecStart=/usr/local/bin/rascsi -ID2 daynaport ## Wireless Raspberry Pi Setup -*Only use this section if your Raspberry Pi is connected to a wireless network or you want to use [Network Address Translation \(NAT\)](https://en.wikipedia.org/wiki/Network_address_translation)* +*Only use this section if you didn't use easyinstall.sh to configure the network bridge, and your Raspberry Pi is connected to a wireless network or you want to use [Network Address Translation \(NAT\)](https://en.wikipedia.org/wiki/Network_address_translation)* The goal of this section is to create the network bridge with a static IP address, and then configure NAT using iptables rules to share the connection with the DaynaPORT interface. - Set up your network on the Raspberry Pi. Make sure you can connect to the internet with a web browser, etc. -- Set up the rascsi_bridge interface and assign it a static IP address. By adding the following to /etc/rc.local before the exit line, the interface will be created on startup. - -``` -brctl addbr rascsi_bridge -ifconfig rascsi_bridge 10.10.20.1/24 up -``` +- Decide on network interface, IP addresses and netmask to use for your setup. This example assumes wlan0, base address 10.10.20.X and netmask 255.255.255.0 (24) - Edit /etc/sysctl.conf and uncomment ``` @@ -119,6 +119,11 @@ sudo apt-get install iptables-persistent Reboot the Pi +- **(Optional)** Modify your service startup script to automatically add the DaynaPort at startup. To do this, open `/etc/systemd/system/rascsi.service`. Modify the ExecStart line to add the ID and device. For example: +``` +rascsi -ID 6 -t scdp wlan0:10.10.20.1/24 +``` + On the Mac side, in the TCP/IP or MacTCP control panel choose Manual and input: * IP address 10.10.20.2 * Network mask 255.255.255.0