Slackware - ARM This forum is for the discussion of Slackware ARM. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-08-2021, 11:29 AM
|
#1
|
LQ Newbie
Registered: Feb 2019
Posts: 18
Rep: 
|
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
|
|
|
04-08-2021, 11:47 AM
|
#2
|
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,358
|
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.
|
|
|
04-08-2021, 11:53 AM
|
#3
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
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.
|
|
|
04-09-2021, 08:32 AM
|
#4
|
SARPi Maintainer
Registered: Nov 2012
Distribution: Slackware ARM, AArch64
Posts: 1,067
|
Quote:
Originally Posted by brian-in-ohio
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.
|
|
|
04-11-2021, 05:09 PM
|
#5
|
LQ Newbie
Registered: Feb 2019
Posts: 18
Original Poster
Rep: 
|
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...
|
|
|
04-11-2021, 05:16 PM
|
#6
|
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,358
|
Not sure why you are lost. Could you explain further.
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.
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 05:19 PM.
|
|
|
04-12-2021, 08:45 AM
|
#7
|
Slackware Contributor
Registered: May 2015
Distribution: Slackware
Posts: 1,926
|
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.
|
|
|
04-12-2021, 12:18 PM
|
#8
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
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?
|
|
|
04-12-2021, 06:37 PM
|
#9
|
Slackware Contributor
Registered: May 2015
Distribution: Slackware
Posts: 1,926
|
Quote:
Originally Posted by Emerson
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.
|
|
|
04-15-2021, 09:34 AM
|
#10
|
Senior Member
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,488
|
Quote:
Originally Posted by brian-in-ohio
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.
|
|
|
04-17-2021, 07:14 AM
|
#11
|
SARPi Maintainer
Registered: Nov 2012
Distribution: Slackware ARM, AArch64
Posts: 1,067
|
Quote:
Originally Posted by enine
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.
|
|
|
All times are GMT -5. The time now is 02:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|