LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 04-08-2021, 10:29 AM   #1
brian-in-ohio
LQ Newbie
 
Registered: Feb 2019
Posts: 15

Rep: Reputation: Disabled
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
 
Old 04-08-2021, 10:47 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,229

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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.
 
Old 04-08-2021, 10:53 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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.
 
Old 04-09-2021, 07:32 AM   #4
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by brian-in-ohio View Post
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
Further to Emerson's advice...

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.
 
Old 04-11-2021, 04:09 PM   #5
brian-in-ohio
LQ Newbie
 
Registered: Feb 2019
Posts: 15

Original Poster
Rep: Reputation: Disabled
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...
 
Old 04-11-2021, 04:16 PM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,229

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Not sure why you are lost. Could you explain further.

Quote:
Is a router involved?
You need to tell is yes or no. Which is it?

Quote:
Can I put one end of the ethernet cable into the pi and the other the pc?
Yes you can. Most likely you do not need a cross-over cable. Old ethernet cards yes, newer cards made in the last 10 years no.
Quote:
ssh pi@static.ip.address. or something else?
Looks correct, assuming pi is the user name you have created on the pi. It should be username@fixed-ip-address of the pi.

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.

Last edited by camorri; 04-11-2021 at 04:19 PM.
 
Old 04-12-2021, 07:45 AM   #7
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
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.
 
Old 04-12-2021, 11:18 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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?
 
Old 04-12-2021, 05:37 PM   #9
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
Quote:
Originally Posted by Emerson View Post
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?
Yes you need to know the MAC address. It's not just soho routers that do this. It may even be easier to do so on larger setups. That is besides the point. You can see your MAC address by looking at ifconfig.

Code:
 /sbin/ifconfig eth0 | grep ether
Just change eth0 to the name of your network device.
 
Old 04-15-2021, 08:34 AM   #10
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by brian-in-ohio View Post
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...
You can do the install with our without a router. Without a router I'd suggest a crossover to be safe, I don't think I have any NICs which will auto detect, and then specify an IP for the Pi and your other system on the sane subnet. With a router then a normal cable is fine and either look at the router for new devices in use or specify a static IP in the cmdline.txt as Exaga noted. His SarPi site documents it well https://sarpi.penthux.net/index.php?p=preinstall

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.
 
Old 04-17-2021, 06:14 AM   #11
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by enine View Post
Without a router I'd suggest a crossover to be safe, I don't think I have any NICs which will auto detect, and then specify an IP for the Pi and your other system on the sane subnet.
All models of Raspberry Pi feature an auto-sensing Ethernet port. So, it doesn't matter which type of Ethernet cable is connected.
 
  


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
Redhat/Fedora 6 headless install jwillyuaz Linux - Newbie 2 03-02-2007 06:39 PM
SLES10 install issue on headless IA64 mmatamoros Linux - Enterprise 1 12-14-2006 12:35 PM
Headless Server Install steve4586 Linux - General 3 12-14-2006 06:13 AM
a distro for minimal headless install ? gideont Linux - Distributions 4 09-15-2005 08:49 PM

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

All times are GMT -5. The time now is 07:47 PM.

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