Cockpit 2.x Samba Plugin einrichten

Drucken

Hier geht es darum ein Samba Plugin für Cockpit 2.x nach zu installieren.

 

zuerst legt man einen Unterordner im /usr/share/ckockpit/smb an

 

# mkdir /usr/share/ckockpit/smb

 

danach kopiert man auf dem gitserver liegende source-code in den samba-share vom cockpit:

 

# wget https://raw.githubusercontent.com/enira/cockpit-smb-plugin/2.x/index.html -O /usr/share/cockpit/smb/index.html 2>/dev/null || curl https://raw.githubusercontent.com/enira/cockpit-smb-plugin/2.x/index.html --output /usr/share/cockpit/smb/index.html

 

# wget https://raw.githubusercontent.com/enira/cockpit-smb-plugin/2.x/smb.js -O /usr/share/cockpit/smb/smb.js 2>/dev/null || curl https://raw.githubusercontent.com/enira/cockpit-smb-plugin/2.x/smb.js --output /usr/share/cockpit/smb/smb.js

 

# wget https://raw.githubusercontent.com/enira/cockpit-smb-plugin/2.x/manifest.json -O /usr/share/cockpit/smb/manifest.json 2>/dev/null || curl https://raw.githubusercontent.com/enira/cockpit-smb-plugin/2.x/manifest.json --output /usr/share/cockpit/smb/manifest.json

 

Wenn diese Befehle erfolgreich ausgeführt wurden macht man einen Restart von Cockpit und kann dann in der Oberfläche die Samba Mounts verwalten.

# systemctl restart cockpit

 

 

Viel Spass beim Nachbauen.

Euer Admin

 

 

 

Tags: , ,