OpenMediaVault

From Chorke Wiki
Revision as of 06:35, 11 December 2020 by Shahed (talk | contribs) (→‎Awareness)
Jump to navigation Jump to search
cat <<EOF >> /etc/apt/sources.list.d/openmediavault.list
deb https://packages.openmediavault.org/public usul main
# deb https://downloads.sourceforge.net/project/openmediavault/packages usul main
## Uncomment the following line to add software from the proposed repository.
# deb https://packages.openmediavault.org/public usul-proposed main
# deb https://downloads.sourceforge.net/project/openmediavault/packages usul-proposed main
## This software is not part of OpenMediaVault, but is offered by third-party
## developers as a service to OpenMediaVault users.
# deb https://packages.openmediavault.org/public usul partner
# deb https://downloads.sourceforge.net/project/openmediavault/packages usul partner
EOF

Install

export LANG=C.UTF-8
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
wget -qO - https://packages.openmediavault.org/public/archive.key | apt-key add -

apt update
apt list --upgradable

apt --yes \
--auto-remove \
--show-upgraded \
--allow-downgrades \
--allow-change-held-packages \
--no-install-recommends \
--option Dpkg::Options::="--force-confdef" \
--option DPkg::Options::="--force-confold" \
install openmediavault-keyring openmediavault

# populate the database
omv-confdbadm populate

# login information
cat /etc/issue
adduser pi ssh

Warning

Password Issue:
─┬────────────────────────────────────
 ├─ 1. Access Rights Management
 ├─ 2. User     » Select » Edit
 ├─ 3. Password » Confirm
 └─ 4. Save     » Apply
SSH Access:
─┬────────────────────────────────────
 ├─ 1. Access Rights Management
 ├─ 2. User     » Select » Edit
 ├─ 3. Groups   » ssh    » checked
 └─ 4. Save     » Apply

Admin

cat /etc/issue
http://cid.chorke.org

user: admin
pass: openmediavault

Exception

: <<'END_COMMENT'
      ID: configure_netplan_ethernet_eth0
Function: file.managed
    Name: /etc/netplan/20-openmediavault-eth0.yaml
  Result: False
 Comment: Unable to manage file: Jinja error: hostname: The value 'pi03.dev.shahed.biz' is not a valid hostname.
          Traceback (most recent call last):
          --more-skipped--
            File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 419, in _check_format
              name, "The value '%s' is not a valid hostname." % value
          openmediavault.json.schema.SchemaValidationException: hostname: The value 'pi03.dev.shahed.biz' is not a valid hostname.
          --more-skipped--
 Started: 12:12:05.781514
Duration: 87.883 ms
 Changes:
END_COMMENT

: <<'END_COMMENT'
      ID: configure_netplan_wifi_wlan0
Function: file.managed
    Name: /etc/netplan/30-openmediavault-wlan0.yaml
  Result: False
 Comment: Unable to manage file: Jinja error: hostname: The value 'pi03.dev.shahed.biz' is not a valid hostname.
          Traceback (most recent call last):
          --more-skipped--
            File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 419, in _check_format
              name, "The value '%s' is not a valid hostname." % value
          openmediavault.json.schema.SchemaValidationException: hostname: The value 'pi03.dev.shahed.biz' is not a valid hostname.
          --more-skipped--
 Started: 12:12:05.869744
Duration: 68.04 ms
 Changes:
END_COMMENT

Good To Know

df -h
apt update
apt upgrade
apt list --upgradable
vcgencmd measure_temp

ls -lah /etc/apt/trusted.gpg.d/
ls -lah /etc/apt/sources.list.d/

rsync -avuzb --exclude '*~' samba:sourcedir/ targetdir/
rsync -av --exclude={'*.txt','dir3','dir4'} sourcedir/ targetdir/
rsync -av --exclude-from={'/chorke/academia/ignore/rsync.txt'} sourcedir/ targetdir/

rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
wget -qO - https://pkg.jenkins.io/debian-stable/jenkins.io.key | apt-key add -

curl -sSL https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash
wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash

References