Fedora Server with Cockpit, Docker, Portainer, ZFS, SMB

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

SecCon

Arkham Asylum Server Mgmt
May 26, 2022
280
55
28
I am not sure I know what I am doing.

Setup Fedora Server 38. Access it with Cockpit-Project ( Cockpit Project — Cockpit Project ). All is well.

Setup Docker, with a workaround for Fedora, that works:
Code:
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager \
    --add-repo \
    https://download.docker.com/linux/fedora/docker-ce.repo
sudo su -
cd /etc/yum.repos.d/
sed -i -e 's/\$releasever/37/g' docker-ce.repo
dnf makecache
exit
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
$ sudo systemctl start docker
$ docker info
Client:
Context:    default
Debug Mode: false
Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.10.4
$ dnf list --installed docker-*
Installed Packages
docker-buildx-plugin.x86_64             0.10.4-1.fc37          @docker-ce-stable
docker-ce.x86_64                        3:23.0.4-1.fc37        @docker-ce-stable
docker-ce-cli.x86_64                    1:23.0.4-1.fc37        @docker-ce-stable
docker-ce-rootless-extras.x86_64        23.0.4-1.fc37          @docker-ce-stable
docker-compose-plugin.x86_64            2.17.2-1.fc37          @docker-ce-stable

sudo systemctl start docker

I install support for ZFS from OpenZFS ( Fedora — OpenZFS documentation )

Code:
sudo dnf install -y https://github.com/zfsonlinux/zfsonlinux.github.com/blob/master/fedora/zfs-release-2-2.fc35.noarch.rpm
I have to install git, to handle below:

Code:
sudo dnf install git-all

Then I go to some plugins for Cockpit-Project to install ZFS-Manager (GitHub - 45Drives/cockpit-zfs-manager: Cockpit ZFS Manager is an interactive ZFS on Linux admin package for Cockpit.) and File Sharing (GitHub - 45Drives/cockpit-file-sharing: A Cockpit plugin to easily manage samba and NFS file sharing.) but somewhere along that I am doing an independent installation of SMB, since it was complaining about SMB not being there.

Code:
sudo dnf install samba samba-common samba-client
But then I realize I may have forgotten to define shares in samba configuration file. I think that is no big deal, since I am just installing what I need to set things up, don't have any shares yet.

So I create a test share, smb service hangs.

I do some dnf checks, everything seems fine. Yet I wonder, did I in all this install anything that may conflict?
 

gb00s

Well-Known Member
Jul 25, 2018
1,188
599
113
Poland
Correct credentials for Samba used? Ports open? Can you show the config and journalctl -xe and dmesg output? Does it have to be newest Fedora server?
 

SecCon

Arkham Asylum Server Mgmt
May 26, 2022
280
55
28
I reinstalled everything and got around some issues, but will keep you posted here.

It seems I may have mixed up the cockpit recommended plugins with adding independent functionality and not reading up properly on importing config to samba conf .


Once I revised the installation order, coming up with below sequence... things went better, from Applications — Cockpit Project

Code:
Install GIT
dnf install git-all

Install Make
sudo dnf install make

Install Navigator
sudo dnf install cockpit-navigator

Install ZFS manager
sudo git clone https://github.com/45drives/cockpit-zfs-manager.git
sudo cp -r cockpit-zfs-manager/zfs /usr/share/cockpit


Install Files-haring
sudo dnf install https://github.com/45Drives/cockpit-file-sharing/releases/download/v3.2.9/cockpit-file-sharing-3.2.9-2.el8.noarch.rpm
I realized I had installed Samba support twice, among other things, diff packages, some how.
Going to remove "make" since I see no use for it, it came down to how some was installed. Instructions are a bit of a jungle...
 
Last edited: