headless install
I am trying my first headless install on a raspberry pi (I have done the monitor/mouse/keyboard plugged in way many times) but I'm stuck. Can I plug the ethernet cable directly to my laptop or are the instructions on the sarpi site expecting that I would plug the pi into a router than access the pi using ssh that way? If I plug the pi directly into my pc (running 64bit slackware current) what do I need to do on the laptop side for the pi to get an ip address? I would appreciate any help just steer me to a bit of documentation, duckduckgo searches all lead to things that start with 'open my network on windows10' with pictures of park benches or use systemctl blah blah.
Thanks |
The easy way to give your pi ( which model ? ) an address, it to run as root, netconfig, and fill in the details. I would suggest a fixed IP address and not use dhcp. Do that with the keyboard and monitor attached. Then connect the ethernet cable to your router.
It sounds to me as if you have not done much network configuring. How have you got your router set up? I have 16 ip addresses for dhcp, and the rest for fixed addressing. This way, my desktops including my Pi 3 have fixed addresses, and the mobile machines use dhcp for getting addresses. You could plug your ethernet cable directly to another system, however, you have to set up a point to point connection since no router is involved. More difficult that using a router. You would have to set up static routing for the Pi on both ends. I have never tried it, in theory it can work. Been running my Pi 3 for about a year without problems, other than my lack of knowledge. Hope this helps. |
After you put the image to SD card (or USB stick) edit its networking configuration, set static address, then you will know how to find it on LAN. And make sure SSH daemon will start.
|
Quote:
You can set the static IP in your '/boot/cmdline.txt' file prior to booting the device and running the Slackware ARM installer. Details can be found on this page: https://sarpi.penthux.net/index.php?p=preinstall Bascially, you edit the '/boot/cmdline.txt' file and put something like "kbd=us nic=auto:eth0:static:192.168.1.100:24" somewhere in there - NB: 192.168.1.100:24 is an example IP address with a 24-bit netmask. |
Is a router involved? Can I put one end of the ethernet cable into the pi and the other the pc? Do I need a cross over cable? Is it ssh pi@static.ip.address. or something else? I'm lost...
|
Not sure why you are lost. Could you explain further.
Quote:
Quote:
Quote:
Try a ping command and see if you have IP connectivity. If you go straight to the pi, you need to set up static routes between the pi and pc. Using a router looks after that, both devices need to be in the same sub-net. |
It is much easier to set up a DHCP reservation than to do static routes. Most modern home routers have a way to set an IP address reservation for every networked device in the web interface.
|
I haven't used SoHo routers for longest time, how do you know which is your Pi in router setup? Don't you need to know MAC address for this?
|
Quote:
Code:
/sbin/ifconfig eth0 | grep ether |
Quote:
When you boot off the SarPi installed with the you will connect as root to the IP specified to do the install, this is the same as if you do a Slackware install with a keyboard and monitor, your connecting to a simple system as root to install only. Once you complete the install you can either add anew user before the final reboot or re-connect as root afterward. Also remember after the final reboot its now using the network settings specified during the install which could be a different IP. |
Quote:
|
All times are GMT -5. The time now is 11:58 AM. |