LinuxQuestions.org
Help answer threads with 0 replies.
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 12-26-2021, 09:48 PM   #16
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665

Quote:
Originally Posted by M0M0 View Post
If I understand Exaga correctly, I should also not be prompted to set the keyboard layout before I run setup... So something seems to be very wrong.

I attached two photos of my screen, one shows the keyboard layout prompt and the other one shows the actual problem. Maybe this helps to help me
When logging in locally the first thing you will see on the screen is the keyboard map selection prompt. When logging in remotely the first thing you will see is the command prompt without a keyboard map selection prompt. Nothing is very wrong because that's how it's supposed to work, and I apologise for not making it clearer to understand.

From your screenshots I'd say your TERM is messed up. Try setting the terminal emulator to 'linux' to see if it fixes your issue:
Code:
TERM=linux
Although this shouldn't be a problem, it won't hurt anything to do this.
 
Old 12-26-2021, 10:06 PM   #17
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by M0M0 View Post
How can I connect to the machine via ssh?
If you have DHCP enabled on your network, then add this to your /boot/cmdline.txt file:

Code:
kbd=de nic=auto:eth0:dhcp
If you do not have DHCP enabled on your network, then add this to your /boot/cmdline.txt file (where <IP_ADDRESS> is the one you specify and want to use - e.g. 192.168.1.23):

Code:
kbd=de nic=auto:eth0:static:<IP_ADDRESS>:24
Obviously you'll select an IP address that's suitable for your network. It's explained on this page, there's no need to Google for this information unless you want to. Hope this helps.

Last edited by Exaga; 12-26-2021 at 10:10 PM. Reason: typo
 
Old 12-27-2021, 03:05 AM   #18
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by mralk3 View Post
There are a lot of tutorials online that will help you out with OpenSSH.

Basically, connect the ethernet port of the Raspberry Pi 4 to a router and connect to your Raspberry Pi remotely using something like putty, or the ssh command. Once you are connected, there is no password required. You will be logged into your system and can run "setup".
So ssh is enabled and ports are open in the installer by default? If not, can you post a link to such a tutorial that explains how to enable it if I can't enter any command? If it is enabled and ports are open by default: how can I find out what the address I have to connect to is (without running any command)?

Edit: ignore this post. After reading Exaga's last post I got that I can enable it by changing the files on the SD card on another computer

Last edited by M0M0; 12-27-2021 at 03:12 AM.
 
Old 12-27-2021, 03:12 AM   #19
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,904

Rep: Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053
Quote:
Originally Posted by M0M0 View Post
So ssh is enabled and ports are open in the installer by default? If not, can you post a link to such a tutorial that explains how to enable it if I can't enter any command? If it is enabled and ports are open by default: how can I find out what the address I have to connect to is (without running any command)?
You can view the web panel on your home router / gateway and look for devices connected to the local network. If there is a network connection, the default host name is "Slackware". The Sarpi site has information about how to boot the installer with dhcp enabled. I am not 100% sure, but I believe the installer will launch a minimal SSH daemon you can connect to provided there is an active network connection.

I think this is the page: https://sarpi.penthux.net/index.php?p=preinstall
 
Old 12-27-2021, 04:04 AM   #20
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by M0M0 View Post
Edit: ignore this post. After reading Exaga's last post I got that I can enable it by changing the files on the SD card on another computer
Yes. That's pretty much what you do. Edit the /boot/cmdline.txt file on your SD card before booting the Raspberry Pi with it. Then you can set a keyboard map and configure eth0, etc. and it should just work. I'm still intrigued by your original problem. If you find out what the cause was and how you solved it please let me know.
 
Old 12-27-2021, 05:11 AM   #21
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
Ok, so changed the file (set the IP address to 192.168.1.23), connected an Ethernet cable, booted the installer and tried to connect:
Code:
➜  ~ ssh root@Slackware
ssh: Could not resolve hostname slackware: Name or service not known
➜  ~ ssh root@192.168.1.23
ssh: connect to host 192.168.1.23 port 22: Network is unreachable
 
Old 12-27-2021, 05:15 AM   #22
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
I will try to install raspberry pi os to figure out if something is wrong with the SD card or the machine itself.
 
Old 12-27-2021, 05:31 AM   #23
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by M0M0 View Post
Ok, so changed the file (set the IP address to 192.168.1.23), connected an Ethernet cable, booted the installer and tried to connect:
Code:
➜  ~ ssh root@Slackware
ssh: Could not resolve hostname slackware: Name or service not known
➜  ~ ssh root@192.168.1.23
ssh: connect to host 192.168.1.23 port 22: Network is unreachable
You'll need to set an IP address that falls within the range that your network is using. 192.168.1.23 was just an example and might not be appropriate for your particular setup. If you're using DHCP or you can set static IPs 'per device' on your router then this may be a better option. DHCP is the less time and effort method. So, if you are using DHCP then just use 'nic=auto:eth0:dhcp' in your /boot/cmdline.txt file. Then you can log in to your router to see which IP address it has assigned to the Raspberry Pi and use "ssh root@<IP_ADDRESS>" to log in to it.

'root@slackware' isn't going to work unless you have modified your /etc/hosts file to point 'slackware' to the IP of your Raspberry Pi. The system needs to know which IP address 'slackware' relates to. It's not automatic or something that will just work without setting it up first.

Incidentally, I wouldn't be able to use 192.168.1.23 on my home network because my router is set to work on a different IP range. You might want to log in to your router and check to see which range it is using in order to know which IP addresses are available. You usually have to set a static IP address on a router by using a device's MAC address - so it knows which IP to assign to it each time it's requested by the device when it boots. As I said, DHCP is the easier method and if it is available then use it just to save time.

Last edited by Exaga; 12-27-2021 at 05:35 AM.
 
Old 12-27-2021, 07:34 AM   #24
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
Thanks for the additional information!

In the meantime I have flashed "Raspberry Pi OS" to the SD card, and it works perfectly. So I don't think the SD card, machine or keyboard is the issue.
 
Old 12-27-2021, 08:40 AM   #25
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by M0M0 View Post
Thanks for the additional information!

In the meantime I have flashed "Raspberry Pi OS" to the SD card, and it works perfectly. So I don't think the SD card, machine or keyboard is the issue.
OK cool. Then you have eliminated these from being the cause, or part, of the issue(s).

It's unfortunate that I don't have a RPi4 8GB to play with or I would do some testing. It certainly works on the RPi4 4GB as expected. Perhaps you might want to test it by setting a max 4GB RAM value in your /boot/config.txt file before booting:

Code:
total_mem=4096
I doubt this will make any difference but it's worth verifying. Did you also set your TERM to 'linux' in case that was somehow messing things up?

Code:
root@slackware:~# export TERM=linux
Also, it might be prudent to find out what Raspberry Pi OS is using as settings and compare it with Slackware ARM. I often do this for various reasons.

Code:
root@slackware:~# echo $TERM
root@slackware:~# locale
 
Old 12-28-2021, 05:20 AM   #26
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
I haven't looked further into it so far. But got a few other questions:

"Raspberry Pi OS" is provided as an image that can be flashed to the SD card, no installation required. Is there a reason why "you/we" don't do the same for Slackware? It seems to be quite convenient.

Now that I have an OS running: is there an Option to install Slackware from that debian based OS? In theory, I would just need a working "installpkg" right? Then I could create a new Slackware root partition, install all packages to it, chroot into the new root and test it. If everything works, I could delete the old root partition and increase the new one.
 
Old 12-28-2021, 06:34 AM   #27
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,551

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
Quote:
Originally Posted by M0M0 View Post
"Raspberry Pi OS" is provided as an image that can be flashed to the SD card, no installation required. Is there a reason why "you/we" don't do the same for Slackware? It seems to be quite convenient.
This is because the Slackware Installer enables the proper and complete set up of the OS in such areas as file system type, partition layout. None of these can be done elegantly (or in some cases at all) with a prebuilt image.

As far as I can tell, most of the other distributions don't offer an installer because the installers for those OSs are GUI-based which isn't convenient for installing headless.

The official Slackware AArch64 installer works fine on the RPi4 installing using the virtual console (USB keyboard, HDMI monitor), over the UART/serial or SSH. If you want to put this on hold until January, drop mozes@slackware dot com an email and I'll give you the private repo access so you can test it out before it's made public.
 
1 members found this post helpful.
Old 12-28-2021, 06:42 AM   #28
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by M0M0 View Post
I haven't looked further into it so far. But got a few other questions:

"Raspberry Pi OS" is provided as an image that can be flashed to the SD card, no installation required. Is there a reason why "you/we" don't do the same for Slackware? It seems to be quite convenient.

The reason why Slackware is not distributed as a pre-built image is because the correct way to install it on any compatible computer hardware is via the Slackware installer, as it is intended by Pat and the Slackware Team - who are the developers and maintainers of the operating system software. You may find that some 3rd party distributors do provide pre-built images (especially on the ARM platform) but you will not find them from official sources, or the SARPi Project. Convenience is all well and good but Slackware is a distribution where “simplicity” is preferred over “convenience.”

Quote:
Originally Posted by M0M0 View Post
Now that I have an OS running: is there an Option to install Slackware from that debian based OS? In theory, I would just need a working "installpkg" right? Then I could create a new Slackware root partition, install all packages to it, chroot into the new root and test it. If everything works, I could delete the old root partition and increase the new one.
Yes, there is more than one way to get Slackware ARM running on the Raspberry Pi devices. Take a look at SlackDocs - Slackware ARM on a Raspberry Pi 4 page "Manual install method without a Raspbian image" section. That should give you enough pointers about what you're looking for.
 
Old 01-08-2022, 03:58 PM   #29
Brun0V_
LQ Newbie
 
Registered: Jan 2022
Posts: 6

Rep: Reputation: 5
In case you're interested the same thing happened to me today as I followed the "SARPi Project - Slackware ARM on a Raspberry Pi" instructions. I switched to virtual console 2 as a workaround (where the keyboard worked properly) so I could run setup.
 
Old 01-09-2022, 12:24 AM   #30
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by Brun0V_ View Post
In case you're interested the same thing happened to me today as I followed the "SARPi Project - Slackware ARM on a Raspberry Pi" instructions. I switched to virtual console 2 as a workaround (where the keyboard worked properly) so I could run setup.
I'm certainly interested in anything that may be broken or not working as expected. Could you elaborate on which 'same thing' happened and possibly offer a little more clarity? Thanks in advance.
 
  


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
LXer: Raspberry Pi: Combine a Raspberry Pi with up to 4 Raspberry Pi Zeros for less than US$50 with the Cluster HAT LXer Syndicated Linux News 0 07-05-2019 12:03 PM
[SOLVED] Wicd won't install correctly/run correctly (64-bit Slackware 13) bgraybr Slackware 3 04-01-2010 06:57 PM
MDCrack cracks key with pass but not pass with key?... lynx5 Linux - Security 1 02-02-2008 05:49 PM
Repeated "input: AT Translated Set 2 keyboard as /class/input/input" messages AcerKev Mandriva 2 09-16-2007 08:35 AM
What Does The UT2004 Installer Do Behind The Fancy GUI Installer? Tsuroerusu Linux - Games 2 09-09-2004 02:37 PM

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

All times are GMT -5. The time now is 09:57 AM.

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