The officially official Devuan Forum!

You are not logged in.

#1 2023-07-15 07:25:19

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 70  

[SOLVED] server can not be found

hi Devuan
i have a dual boot devuan / trisquel 11 install and wanted to use my devuan to install a server and selected the server from devuans download and installed the devuan server on a 15gb hhd partition sda5. Now it seems that I can't get in touch with the server, is there any good advice for a solution and is there any additional info I can gather to help with the problem

What I haw tried is this

root@devuan:~# systemctl status ssh
ERROR:systemctl:Unit ssh.service could not be found.

root@devuan:~# systemctl start ssh
ERROR:systemctl:Unit ssh.service could not be found.
root@devuan:~# systemctl enable ssh
ERROR:systemctl:Unit ssh.service could not be found.

and this

os-prober
/dev/sda4:Trisquel GNU/Linux 11.0, Aramo (11.0):Trisquel:linux
/dev/sda5:Devuan GNU/Linux 3 (beowulf):Devuan:linux

Last edited by devur (2023-07-15 07:28:14)


Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#2 2023-07-15 08:37:35

delgado
Member
Registered: 2022-07-14
Posts: 176  

Re: [SOLVED] server can not be found

Good morning. Not sure about the question, there is systemctl in devuan. I usually do

$ sudo apt install task-ssh-server

to have ssh server installed and running.

EDIT:
Ooops, I messed this up entirely:  "... there is no systemctl in my devuan" is correct.

Last edited by delgado (2023-07-15 20:39:22)

Offline

#3 2023-07-15 15:42:00

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 70  

Re: [SOLVED] server can not be found

hi and thanks for your answer
i install task-ssh-server and there is some result, but i am still a little confutes about the server
is there a good advice or a direction to a manual i can use?

her i what i haw tried so fare

root@devuan:~# systemctl start ssh
root@devuan:~# systemctl status ssh
ssh.service - OpenBSD Secure Shell server
    Loaded: loaded (/lib/systemd/system/ssh.service, enabled)
    Active: failed (failed)

and this dos not get me any were

root@devuan:~# ssh devuan
root@devuan's password:

after login i am om my pc


Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#4 2023-07-15 20:56:59

delgado
Member
Registered: 2022-07-14
Posts: 176  

Re: [SOLVED] server can not be found

Sorry, I messed up the fist answer rerspective systemctl ... just one missing "no" .
This is systemd stuff and does not apply to devuan. Scrpts like "ssh.service"  may exist but are not used here.

root login via ssh might be forbidden by default. Does a non-root-user can login via ssh?
To get the state of sshd:

$ /etc/init.d/ssh status

Last edited by delgado (2023-07-15 20:59:09)

Offline

#5 2023-07-16 05:23:38

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 70  

Re: [SOLVED] server can not be found

ok it didn't as well as I had hoped for, can i see if the server is install whit a error

the first  status

:~$ /etc/init.d/ssh status
sshd is running.

the login offer me to login to my regular user account and dos nor accept server login

:~$ ssh devuan
The authenticity of host 'devuan (127.0.1.1)' can't be established.
ECDSA key fingerprint is SHA256:6Wm8ewcU59F8aBj1BOljPL3gt2s9xxOCPQLX3H01pTk.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'devuan' (ECDSA) to the list of known hosts.
user@devuan's password: 
Permission denied, please try again.
user@devuan's password: 
Permission denied, please try again.
user@devuan's password: 
Connection closed by 127.0.1.1 port 22

is there any info i can provide you whit to help my self her. smile


Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#6 2023-07-16 07:54:16

delgado
Member
Registered: 2022-07-14
Posts: 176  

Re: [SOLVED] server can not be found

Just recognised:

root@devuan:~# ssh devuan  

is (herer) equal to

root@devuan:~# ssh root@devuan

To login with a non-roor-user:

root@devuan:~# ssh your-non-root-user@devuan

Does this work?

Offline

#7 2023-07-16 09:17:50

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 70  

Re: [SOLVED] server can not be found

hi and no i do not think that it is working but her is the result of my attempt

root@devuan:~# ssh your-non-root-hans85e7a@devuan
your-non-root-85e7a@devuan's password: 
Connection closed by 127.0.1.1 port 22

the root account 'ls' do not show anything

root@devuan:~# ls -a
.   .bash_history  .cache    .local    .ssh
..  .bashrc	   .emacs.d  .profile  .synaptic
root@devuan:~# systemctl status ssh
ssh.service - OpenBSD Secure Shell server
    Loaded: loaded (/lib/systemd/system/ssh.service, enabled)
    Active: inactive (dead)

and as regular user

@devuan:~$ ssh your-non-root-85e7a@devuan
your-non-root-85e7a@devuan's password: 
your-non-root-85e7a@devuan: Permission denied (publickey,password).

Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#8 2023-07-16 09:21:08

entropyagent
Member
Registered: 2020-05-15
Posts: 48  

Re: [SOLVED] server can not be found

Hi - please forgive me if this question is total nonsense, but:

1) How many computers and "installs" are involved here?

2) Are there any Virtual Machines (VM) or containers involved?

3) From which "install" do these commands run?

devur wrote:

i have a dual boot devuan / trisquel 11 install and wanted to use my devuan to install a server and selected the server from devuans download and installed the devuan server on a 15gb hhd partition sda5. Now it seems that I can't get in touch with the server, is there any good advice for a solution and is there any additional info I can gather to help with the problem

.
.

os-prober
/dev/sda4:Trisquel GNU/Linux 11.0, Aramo (11.0):Trisquel:linux
/dev/sda5:Devuan GNU/Linux 3 (beowulf):Devuan:linux

Do you have a single PC with 3 "installs": That is,
1)  "devuan" (which version?),
2) "trisquel 11" and
3) "devuan server" (which version?) installed on various partitions?

Or, did you install "devuan server" over the original "devuan", so you still have 2 "installs"?

I ask because when I install 2 or 3 distributions into their own partitions on 1 PC, I can only run one of them at a time. So, when I boot into one of them, the other(s) are sleeping quietly on disk, waiting for their chance to awaken. In this case, I would not be able to ssh into the others because they are not available.
Of course, this does not take VMs and containers and suchlike into account.

Offline

#9 2023-07-16 12:00:27

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 70  

Re: [SOLVED] server can not be found

it is a very relevant question, I have a PC with three installations, each on their own partition on the hard drive, my thought was that it is possible to run a local server and contact it from my devuan desktop installation. all commands are run from my main devian installation.and ther i no (WM).

the three installations is on these hdd

@devuan:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465,8G  0 disk 
├─sda1   8:1    0   512M  0 part /boot/efi
├─sda2   8:2    0 214,3G  0 part /  #devuan
├─sda3   8:3    0     8G  0 part       #swap
├─sda4   8:4    0   229G  0 part     #trisquel
└─sda5   8:5    0    14G  0 part      #devuan server
 

1) Devuan GNU/Linux 4 (chimaera)
2) Trisquel 11.0 Aramo
3) devuan_beowulf_3.1.1_amd64_server
4)

entropyagent wrote
Or, did you install "devuan server" over the original "devuan", so you still have 2 "installs"?

I think you may be right in your assumption, but how do I check it?


Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#10 2023-07-16 13:55:42

entropyagent
Member
Registered: 2020-05-15
Posts: 48  

Re: [SOLVED] server can not be found

Useful feedback, so here is my interpretation (Please note that I cannot claim to be an expert...there are many things I do not know, including EFI's workings):

I am not aware of any mechanism (other than some sort of virtualisation) which would allow you to run a local server "install" on the same hardware and at the same time as your "devuan desktop installation". My understanding would be that, on any particular PC, you boot into 1 install at a time. The others sleep. So you cannot ssh into them. Typically, I would expect that you make the choice about which one runs, at boot time, in the boot manager (Typically GRUB, perhaps LILO?).

Does your boot manager offer you choices? Sometimes it is hidden so as not to delay the boot process or confuse the user.

The lsblk "MOUNTPOINT" column suggests you have only 2 mounted partitions: /dev/sda1 (efi boot) and /dev/sda2 (the root partition).
The fact that this is mounted, suggests to me that this is the home of your main devuan desktop, which you report is Devuan 4 Chimaera.
The other partitions are not mounted, so they are not doing anything.

The "os-prober" you reported suggests that the boot manager setup detected 2 "foreign installs" :
/dev/sda4:Trisquel GNU/Linux 11.0, Aramo (11.0):Trisquel:linux
/dev/sda5:Devuan GNU/Linux 3 (beowulf):Devuan:linux

That suggest to me that the boot setup has tried to set these options up in the boot manager menu. Do you see them? 

Perhaps these also use the EFI partition....I suspect I will never understand this.

Less important:
I see no sign of a mounted SWAP partition.  If I had seen the text "[SWAP]" in the "MOUNTPOINT" column, that would point to a mounted swap partition.
Not a problem, just a comment. You might have a swap file in sda1 (unlikely) or sda2 (quite possible). I usually manage swap partitions in my /etc/fstab.

So, to check if the beowulf server is installed on sda5: Can you boot into it, from the boot manager menu?

Offline

#11 2023-07-16 16:19:47

chris2be8
Member
Registered: 2018-08-11
Posts: 273  

Re: [SOLVED] server can not be found

devur wrote:

the login offer me to login to my regular user account and dos nor accept server login

Try ssh -v devuan which should provide a lot of messages about the logon process. And look in /etc/ssh/sshd_config and /etc/ssh/sshd_config.d/ (grep -v '^#'  /etc/ssh/sshd_config to exclude comments should make it easier to see the relevant entries).

Post output from the commands here if you are still stuck.

Although I have had to resort to:
ps -ef | grep sshd
(assume that shows sshd is /usr/sbin/sshd.)
strings /usr/sbin/sshd | grep -i config

Just to be sure I was looking at the right config file. But that was working as a UNIX system admin when we had a wide range of OSes to look after.

Offline

#12 2023-07-16 22:30:53

entropyagent
Member
Registered: 2020-05-15
Posts: 48  

Re: [SOLVED] server can not be found

I may have the story all wrong, perhaps due to an overactive or underactive imagination, but:

@chris2be8:

I have developed a concern that devur is trying to ssh from an "active" installation on their multiboot PC to one of the "inactive" installations sleeping on the same PC.  That is, the target host is not actually running. Based on their responses, could that be the case?

@devur:

My understanding of the use of ssh is that it allows us to securely access one (running) host from another (running) host. That implies that there are 2 hosts, running at the same time. Can you confirm that you have these 2 simultaneously-running hosts ?

If my hypothesis is correct - I suspect that if you want to ssh from one computer to another, you are going to have to "magic" another computer out of thin air, or out of your pile of old computers (whichever works for you). Or investigate the mysterious world of Virtual Machines?

Sorry - I must leave you here.  I will try to check back later in the week, perhaps you will have sorted it out by then.

Offline

#13 2023-07-17 08:19:58

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 70  

Re: [SOLVED] server can not be found

hi chris2be8 and thanks for you joining in
i have a output from terminal for the commands you ask for

user@devuan:~$ ssh -v devuan
OpenSSH_8.4p1 Debian-5+deb11u1, OpenSSL 1.1.1n  15 Mar 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to devuan [127.0.1.1] port 22.
debug1: Connection established.
debug1: identity file /home/hans/.ssh/id_rsa type -1
debug1: identity file /home/hans/.ssh/id_rsa-cert type -1
debug1: identity file /home/user/.ssh/id_dsa type -1
debug1: identity file /home/user/.ssh/id_dsa-cert type -1
debug1: identity file /home/user/.ssh/id_ecdsa type -1
debug1: identity file /home/user/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/user/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/user/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/user/.ssh/id_ed25519 type -1
debug1: identity file /home/user/.ssh/id_ed25519-cert type -1
debug1: identity file /home/user/.ssh/id_ed25519_sk type -1
debug1: identity file /home/user/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/user/.ssh/id_xmss type -1
debug1: identity file /home/user/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.4p1 Debian-5+deb11u1
debug1: match: OpenSSH_8.4p1 Debian-5+deb11u1 pat OpenSSH* compat 0x04000000
debug1: Authenticating to devuan:22 as 'user'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:6Wm8ewcU59F8aBj1BOljPL3gt2s9xxOCPQLX3H01pTk
debug1: Host 'devuan' is known and matches the ECDSA host key.
debug1: Found key in /home/user/.ssh/known_hosts:1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/user/.ssh/id_rsa 
debug1: Will attempt key: /home/user/.ssh/id_dsa 
debug1: Will attempt key: /home/user/.ssh/id_ecdsa 
debug1: Will attempt key: /home/user/.ssh/id_ecdsa_sk 
debug1: Will attempt key: /home/user/.ssh/id_ed25519 
debug1: Will attempt key: /home/user/.ssh/id_ed25519_sk 
debug1: Will attempt key: /home/user/.ssh/id_xmss 
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/user/.ssh/id_rsa
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/user/.ssh/id_ed25519
debug1: Trying private key: /home/user/.ssh/id_ed25519_sk
debug1: Trying private key: /home/user/.ssh/id_xmss
debug1: Next authentication method: password
user@devuan's password: 
Connection closed by 127.0.1.1 port 22
user@devuan:~$ grep -v '^#'  /etc/ssh/sshd_config

Include /etc/ssh/sshd_config.d/*.conf

ChallengeResponseAuthentication no

UsePAM yes

X11Forwarding yes
PrintMotd no

AcceptEnv LANG LC_*

Subsystem	sftp	/usr/lib/openssh/sftp-server
user@devuan:~$ ps -ef | grep sshd
root      1922     1  0 09:20 ?        00:00:00 sshd: /usr/sbin/sshd [listener] 0 of 10-100 startups
user      3804  2324  0 10:00 pts/0    00:00:00 grep sshd
user@devuan:~$ strings /usr/sbin/sshd | grep -i config
bash: strings: command not found

Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#14 2023-07-17 10:42:39

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 70  

Re: [SOLVED] server can not be found

hi entropyagent there are many and good questions, I understand your point of view server and desktop cannot run at the same time
I have access to the boot manager and cannot see that server can be selected as boot
regarding swap, it seems to me that the error has occurred in connection with the installation of the server
i haw these from the terminal

root@devuan:~# free -h
               total        used        free      shared  buff/cache   available
Mem:           7,6Gi       1,4Gi       5,3Gi       268Mi       894Mi       5,7Gi
Swap:             0B          0B          0B
# swap was on /dev/sda3 during installation
UUID=506c607b-5d9b-4091-8ff3-1bff3da24852 none            swap    sw              0       0

it's a bit of a shame that there isn't an option to add a server to boot time and contact it via ssh or a login in another way, but when it can't be any other way then I have to admit my mistake and my attempt has failed. in addition, it seems that I have succeeded in destroying most of my installation and I will therefore start a new installation soon.


Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#15 2023-07-17 12:11:02

rolfie
Member
Registered: 2017-11-25
Posts: 1,105  

Re: [SOLVED] server can not be found

To swap: Well, the installation of the server most likely re-formatted the existing swap, causing a new UUID for the partition. You will need to check the uuid with blkid and correct the fstab to make it work again.

A server running in parallel to an existing installation can be achieved by using a virtual machine in your installation, e.g. Virtual Box, qemu.

Offline

#16 2023-07-17 14:09:41

entropyagent
Member
Registered: 2020-05-15
Posts: 48  

Re: [SOLVED] server can not be found

A reinstall cures many ills, and the experience of how easy it is to make a mess, can be valuable.

Before you do that, and if any valuable data is safely copied off, perhaps you could try to fix some things? That could also be valuable experience.
In many, many more words than rolfie:

Swap file:

The swap entry in your /etc/fstab , specifies UUID. A UUID can change, for example when a partition is resized or reformatted. Reformatting is something that is often offered during the install process. Perhaps this happened to your swap UUID? This can perhaps be fixed:

Your lsblk suggests that /dev/sda3 is your swap partition. From root id, the command

blkid /dev/sda3

might tell you if this partition is formatted with a swap filesystem? If I ran this on my PC (I use sudo to run root commands...):

$ sudo blkid /dev/sdb2
/dev/sdb2: UUID="f460228e-8511-4656-8536-c2d65a7e3fd5" TYPE="swap" PARTUUID="ff55585e-aced-344f-86df-02259684ca4d"

If I ran them from root, as you seem to do:

# blkid /dev/sdb2
/dev/sdb2: UUID="f460228e-8511-4656-8536-c2d65a7e3fd5" TYPE="swap" PARTUUID="ff55585e-aced-344f-86df-02259684ca4d"

The TYPE="swap" tells me this is a swap filesystem. If it was something like "ext4" or "LVM2_member" then we may have taken a wrong turning.

You should be able to (after making a backup copy of your /etc/fstab file) paste the *YOUR* UUID entry into your fstab. It does not seem to mind the "" quotes, so you can probably copy and paste.  Carefully compare the new fstab with the old one, to make sure that the UUID is the only thing that changed. You can post a diff here, if you can wait for feedback. For example, assuming your backup is /etc/fstab.bkp.20230716

diff /etc/fstab.bkp.20230716 /etc/fstab

should tell us that there is only a difference in the UUID for swap. I have sometimes made a mess of editing a critical system file and been saved by a nervous diff.

If you are happy that the change is correct, you could reboot and see if the change is picked up. However, a mistake in editing /etc/fstab could cause problems; Luckily, to avoid the risky reboot, there is a command (from root) that should verbosely try to activate any unused swap partitions listed in /etc/fstab:

swapon -av

If the planets align and it all works out, your next free -h will show an active swap? If not, you could post the output of the "diff", the before "free", the "swapon" and the afterwards "free".

Good Luck.

Offline

#17 2023-07-17 16:13:41

chris2be8
Member
Registered: 2018-08-11
Posts: 273  

Re: [SOLVED] server can not be found

@entropyagent - he is obviously trying to log onto the system that is running now via ssh. As the following output shows he managed to connect OK:

debug1: Connecting to devuan [127.0.1.1] port 22.
debug1: Connection established.

But I can't tell why it won't accept his password. The next place to look is in syslog, /var/log/messages should contain messages from sshd which might be revealing.

@devur - are there any special characters in your password on devuan that could get corrupted by different keyboard mappings? That's the only thing I can think of that could go wrong (I assume you are typing the *same* password as you use to log on to devuan)?

Setting up passwordless access should be possible. ls -al ~/.ssh/ should get something like:

$ ls -al ~/.ssh/
total 28
drwx------  2 chris chris 4096 Jun 19 20:22 .
drwxr-x--- 30 chris chris 4096 Jul 16 06:13 ..
-rw-rw-r--  1 chris chris 1959 Jun 19 20:22 authorized_keys
-rw-rw-r--  1 chris chris   43 Jun  5 21:12 config
-rw-------  1 chris chris 2602 Oct 30  2021 id_rsa
-rw-r--r--  1 chris chris  565 Oct 30  2021 id_rsa.pub
-rw-r--r--  1 chris chris 4092 Jun  5 19:52 known_hosts

If one of the lines in authorized_keys is a copy of id_rsa.pub then you should be able to log on without needing a password. Although ssh is touchy about permissions, debug output should tell you if they are wrong.

Offline

#18 2023-07-17 16:16:19

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 70  

Re: [SOLVED] server can not be found

YES
that look like it is working
diff

@devuan:~$ diff /etc/fstab.bak /etc/fstab
16c16
< UUID=506c607b-5d9b-4091-8ff3-1bff3da24852 none            swap    sw              0       0
---
> UUID=e473a17d-7436-49c8-ad08-790b10319f96 none            swap    sw              0       0

blkid

root@devuan:~# blkid /dev/sda3
/dev/sda3: UUID="e473a17d-7436-49c8-ad08-790b10319f96" TYPE="swap" PARTUUID="e9b8702d-cb03-4ea3-8a39-99a580294395"

swapon

oot@devuan:~# swapon -a
root@devuan:~# swapon --show
NAME      TYPE      SIZE USED PRIO
/dev/sda3 partition   8G   0B   -2

so far so good
but what do i do with the server i could format the /dev/sda5 and use it for a shared drive on my pc


Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#19 2023-07-17 17:13:13

rolfie
Member
Registered: 2017-11-25
Posts: 1,105  

Re: [SOLVED] server can not be found

Look at post #15

Offline

#20 2023-07-17 18:51:56

entropyagent
Member
Registered: 2020-05-15
Posts: 48  

Re: [SOLVED] server can not be found

Glad that swap worked out.

I am not at my computer, for a few hours, so can be of limited help. However, I can comment:

Regarding your idea about the server, a shared drive is a useful idea.

However, I wonder if you might be interested in trying see if the sda5 install can boot up? (even though it is not feasible to ssh into it from Chimaera on the same PC) .  I can think of 2 things you can try

1. Some live linuxen have an option in the boot screen "Switch to GRUB bootloader/Boot Rescue Menus/GRUB menus".  I have recently seen this on (I think) antiX 22 runit core iso, I did not see it on my recent Devuan 5 download. I think this option searches your drives and partitions for bootable installs, and presents you with some options - I used it last year and the memories have faded. Perhaps it could find your sda5 Beowulf?

2. If you are brave, perhaps you could install or reinstall the boot manager in your current Chimaera? I am assuming that this is your "go-to" install, from which all your reports here were made. I am also assuming that your boot manager is GRUB 2 ( and not alternatives like LILO or Legacy GRUB.)

From root:

 # grub-install /dev/sda

This *should* be able to navigate the UEFI situation and use os-prober to find all the bootable installs on other disks. There are things that could get in the way of success. It is possible that os-prober will not run or will not add the other installs because it could be interpreted as a security risk, allowing one OS to dig into the booting arrangement of another OS. This might show the message

Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry

.

I am told this can be managed by editing a parameter file
/etc/default/grub to add: GRUB_DISABLE_OS_PROBER=false and running (as root)

# update-grub

Worth a try, even if it is just an learning experience? If your luck holds, when you reboot you might have that beowulf server in your options, and also that swap partition working. Good Luck.

Offline

#21 2023-07-18 07:53:40

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 70  

Re: [SOLVED] server can not be found

Hello again
I can't tell if I have grob2 installed but have tried the following

grub install version

root@devuan:~# grub-install -v
grub-install: info: setting EFI variable Boot0019.
grub-install: info: setting EFI variable BootOrder.
Installation finished. No error reported.
root@devuan:~# grub-install -V
grub-install (GRUB) 2.06-3~deb11u5
root@devuan:~# grub-install --version
grub-install (GRUB) 2.06-3~deb11u5

the new grub

root@devuan:~# grub-install /dev/sda
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@devuan:~# update-grub
Generating grub configuration file ...
Found background image: splash.png
Found linux image: /boot/vmlinuz-5.10.0-23-amd64
Found initrd image: /boot/initrd.img-5.10.0-23-amd64
Found linux image: /boot/vmlinuz-5.10.0-9-amd64
Found initrd image: /boot/initrd.img-5.10.0-9-amd64
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Trisquel GNU/Linux 11.0, Aramo (11.0) on /dev/sda4
Found Devuan GNU/Linux 3 (beowulf) on /dev/sda5
Adding boot menu entry for UEFI Firmware Settings ...
done

after reboot 'boot splash screen'

reboot 
from boot meny
Devuan GNU/Linux
Advanced options for Devuan
Trisquel GNU/Linux
Advanced option for Trisquel
*Devuan GNU/Linux 3 (beowulf)
Advanced option for Devuan 3
UEFI Firmware settings

reboot and login

oot@devuan:~# efibootmgr -v
BootCurrent: 0019
Timeout: 4 seconds
BootOrder: 0019,0000,0001,0002,0003,0007,0008,0009,000A,000B,000C,000D,000E,000F,0010,0011,0012
Boot0000  Setup	FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0001  Boot Menu	FvFile(126a762d-5758-4fca-8531-201a7f57f850)
Boot0002  Diagnostic Splash Screen	FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0003  Lenovo Diagnostics	FvFile(3f7e615b-0d45-4f80-88dc-26b234958560)
Boot0004  Startup Interrupt Menu	FvFile(f46ee6f4-4785-43a3-923d-7f786c3c8479)
Boot0005  ME Configuration Menu	FvFile(82988420-7467-4490-9059-feb448dd1963)
Boot0006  Rescue and Recovery	FvFile(665d3f60-ad3e-4cad-8e26-db46eee9f1b5)
Boot0007* USB CD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot0008* USB FDD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0009* ATAPI CD0	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a35401)
Boot000A* ATA HDD0	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
Boot000B* ATA HDD1	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601)
Boot000C* ATA HDD2	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f602)
Boot000D* USB HDD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot000E* PCI LAN	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot000F* ATAPI CD1	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a35404)
Boot0010  Other CD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a35406)
Boot0011* ATA HDD3	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f604)
Boot0012  Other HDD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f606)
Boot0013* IDER BOOT CDROM	PciRoot(0x0)/Pci(0x16,0x2)/Ata(0,1,0)
Boot0014* IDER BOOT Floppy	PciRoot(0x0)/Pci(0x16,0x2)/Ata(0,0,0)
Boot0015* ATA HDD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f6)
Boot0016* ATAPI CD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
Boot0017* PCI LAN	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot0018  OEM Hot Key	FvFile(0b5a75d0-2793-4efa-bfa7-74689122fa55)
Boot0019* debian	HD(1,GPT,1971f062-1b31-4b32-8701-5f46c5c9a6c4,0x800,0x100000)/File(\EFI\debian\shimx64.efi)

i don't see Devuan 3 server /dev/sda5 or boot for trisquel ,under 'efibootmgr -v' but the are under the boot splash screen
but it looks fine and everything seems to work
I am open for new challenges, for example what can I do with a server I cannot contact or manage from my desktop
I can however login to the server as user and as root


Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

#22 2023-07-18 10:33:45

entropyagent
Member
Registered: 2020-05-15
Posts: 48  

Re: [SOLVED] server can not be found

That sounds like quite good news. Even if it is not worth opening the champagne, perhaps it's worth a lick of the condensation from the bottle.

As you  and others have observed, to achieve the goal of contacting or managing a server from your desktop, you need both a) a server and b) a desktop. You seem to have both, but not at the same time. It seems a bit like an ancient fable or parable, and you have to decide which of your babies to sacrifice.

It might be time to for your project to move into an acquisition phase.  To get closer to the goal, you probably need another Machine, either 

  • 1) Real Machine - that is, another computer.  Options at this stage include, but are not limited to, beg, borrow, steal, rent, dig out of your pile of old hardware, dig out of someone else's old pile of hardware, or, as a last resort, buy? We know nothing of your situation, or ambitions for the server.  Amazon competitor? Pi-Hole? Bare ssh server on a dead-battery 256Mb 800 MHz P3 laptop so you can boast "I ssh'd into my server today" ? All valid ideals.

  • 2) Virtual Machine (as rolfie suggested.)  Many (Most?) modern PCs can handle this, it's not too complicated to check the hardware. Your PC seems to have a 500Gb disk, 8Gb RAM, UEFI....so that looks promising? My Chimaera 1C2T Celeron seems (barely) usable with qemu/kvm, at least.    There are other unreal computing options, such as containers, but that's a bit out of my range, and no-one else has so far leapt in to suggest it, so that might be more of a struggle to get help here.

Good luck with your decision-making and strategising.

Offline

#23 2023-07-18 13:11:53

devur
Member
From: Denmark
Registered: 2017-05-29
Posts: 70  

Re: [SOLVED] server can not be found

hi and thank for all the help! smile and smile produces smile


Laptop lenovo
Desktop XFCE
Os Devuan GNU/Linux

Offline

Board footer