mirror of
https://github.com/hak8or/proxmox_scripts.git
synced 2025-01-15 11:57:57 +00:00
aaa
This commit is contained in:
parent
b5cc99d39c
commit
2703c3eaa2
@ -8,6 +8,7 @@ set -e
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
# Enable and start sshd so we can ssh in here in the future.
|
# Enable and start sshd so we can ssh in here in the future.
|
||||||
|
echo "----> Enabling SSH"
|
||||||
systemctl enable sshd
|
systemctl enable sshd
|
||||||
systemctl start sshd
|
systemctl start sshd
|
||||||
|
|
||||||
@ -15,11 +16,13 @@ systemctl start sshd
|
|||||||
# ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1NDs/5sOUhwwrCl7vbwl4gwn7HA071bwyrBYKaVM1pMkEj2e6BEfvm9dWuGF3tEUH3RQN8L9dQIuFUO+tDp99IJPVpkzXnhhuqsQp7GtSklqLg4fnJ9oop/w5PbUnDjS1jPNDssB8tmVeY3L/j9n/omZ0WkncYgQ9vlWVokkxg6fe0lYqv5e6VesWlzd4nPk63k9JcSF2/F06jgLFdSZhmV/DXHFNy8e1s+HHAWA3lhfIuCTNCZH4vFoOMucBjv858rxfBa+06YJ69JKP6aOHvbun7o1NQ9TSkNvPpYa/vr+Wf7Eu3t5A322D7w7zEBkCrNAiKbIgapbJQnailyO45TldjtxnQV99i6NU3Hyt0nuDfLPMQjYocwqcjykmZm+sTOgfYwVYDO+CmKIiCLpA1P6seJ2g0BL969bN2VgmHKYbX3obhVmRPGncTTYy3QJ72r1j5I30BtJkZk6X2uaFsQUgnPQutHBd6dpmP+lsWA10s4mDMNGWHl/IkS1ZdTlWETXiQh2N0iLQryUHynJGXKEkyrYUMRwm4BAJopcJiXXoPybeenhbmjai4jwEIvOkLUvesKl8lYJOcop174e6fN/ERypZLPweW6eQNipPHxeSkqqDpiPvQzaZEaVjucr1n5LqBBIcWZ7VZcioRNve06rsFt4aonkyEbORKlKIyQ== hak8or@gmail.com
|
# ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1NDs/5sOUhwwrCl7vbwl4gwn7HA071bwyrBYKaVM1pMkEj2e6BEfvm9dWuGF3tEUH3RQN8L9dQIuFUO+tDp99IJPVpkzXnhhuqsQp7GtSklqLg4fnJ9oop/w5PbUnDjS1jPNDssB8tmVeY3L/j9n/omZ0WkncYgQ9vlWVokkxg6fe0lYqv5e6VesWlzd4nPk63k9JcSF2/F06jgLFdSZhmV/DXHFNy8e1s+HHAWA3lhfIuCTNCZH4vFoOMucBjv858rxfBa+06YJ69JKP6aOHvbun7o1NQ9TSkNvPpYa/vr+Wf7Eu3t5A322D7w7zEBkCrNAiKbIgapbJQnailyO45TldjtxnQV99i6NU3Hyt0nuDfLPMQjYocwqcjykmZm+sTOgfYwVYDO+CmKIiCLpA1P6seJ2g0BL969bN2VgmHKYbX3obhVmRPGncTTYy3QJ72r1j5I30BtJkZk6X2uaFsQUgnPQutHBd6dpmP+lsWA10s4mDMNGWHl/IkS1ZdTlWETXiQh2N0iLQryUHynJGXKEkyrYUMRwm4BAJopcJiXXoPybeenhbmjai4jwEIvOkLUvesKl8lYJOcop174e6fN/ERypZLPweW6eQNipPHxeSkqqDpiPvQzaZEaVjucr1n5LqBBIcWZ7VZcioRNve06rsFt4aonkyEbORKlKIyQ== hak8or@gmail.com
|
||||||
|
|
||||||
# Setup keys for pacman
|
# Setup keys for pacman
|
||||||
|
echo "----> Setting up keys for pacman"
|
||||||
pacman-key --init
|
pacman-key --init
|
||||||
pacman-key --populate archlinux
|
pacman-key --populate archlinux
|
||||||
|
|
||||||
# Setup mirrors, hardcoded for now. Could have been done with rankmirror
|
# Setup mirrors, hardcoded for now. Could have been done with rankmirror
|
||||||
# with USA and worldwide mirrors but eh.
|
# with USA and worldwide mirrors but eh.
|
||||||
|
echo "----> Setting up mirror list"
|
||||||
mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
|
mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
|
||||||
cat > /etc/pacman.d/mirrorlist <<-`EOM05594313219813`
|
cat > /etc/pacman.d/mirrorlist <<-`EOM05594313219813`
|
||||||
# Server list generated by rankmirrors on 2017-11-03
|
# Server list generated by rankmirrors on 2017-11-03
|
||||||
@ -38,36 +41,36 @@ cat > /etc/pacman.d/mirrorlist <<-`EOM05594313219813`
|
|||||||
`EOM05594313219813`
|
`EOM05594313219813`
|
||||||
|
|
||||||
# Do an update to make sure all is, well, updated!
|
# Do an update to make sure all is, well, updated!
|
||||||
|
echo "----> Updating"
|
||||||
pacman -Syu --noconfirm
|
pacman -Syu --noconfirm
|
||||||
|
|
||||||
# Install git and base-devel which includes gcc and jazz.
|
# Install git and base-devel which includes gcc and jazz.
|
||||||
|
echo "----> Installing base-devel and git"
|
||||||
pacman -S base-devel git --noconfirm
|
pacman -S base-devel git --noconfirm
|
||||||
|
|
||||||
# Create temp dirs for installing stuff
|
|
||||||
mkdir ~/tmp
|
|
||||||
cd ~/tmp
|
|
||||||
|
|
||||||
# Install Yaourt. Why yaourt instead of pacaur? Because pacaur doesn't allow
|
# Install Yaourt. Why yaourt instead of pacaur? Because pacaur doesn't allow
|
||||||
# itself to be ran as root, even though all we have is root in the container,
|
# itself to be ran as root, even though all we have is root in the container,
|
||||||
# and I don't want to bother fiddling with users just for this. Yaourt on the
|
# and I don't want to bother fiddling with users just for this. Yaourt on the
|
||||||
# other hand works fine for this.
|
# other hand works fine for this.
|
||||||
|
echo "----> Installing package-query and yaourt"
|
||||||
|
mkdir ~/tmp
|
||||||
|
cd ~/tmp
|
||||||
# ----------- package query for yaourt -----------
|
# ----------- package query for yaourt -----------
|
||||||
git clone https://aur.archlinux.org/package-query.git
|
git clone https://aur.archlinux.org/package-query.git
|
||||||
cd package-query
|
cd package-query
|
||||||
makepkg -si
|
makepkg -si
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# ----------- yaourt itself -----------
|
# ----------- yaourt itself -----------
|
||||||
git clone https://aur.archlinux.org/yaourt.git
|
git clone https://aur.archlinux.org/yaourt.git
|
||||||
cd yaourt
|
cd yaourt
|
||||||
makepkg -si
|
makepkg -si
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
rm -r -f ~/tmp
|
rm -r -f ~/tmp
|
||||||
|
|
||||||
# Install htop and cowsay cause they are awesome
|
# Install htop and cowsay cause they are awesome
|
||||||
yaourt -S htop cowsay
|
echo "----> Installing htop and cowsay"
|
||||||
|
yaourt -S htop cowsay --noconfirm
|
||||||
|
|
||||||
# And say what the IP address is to the terminal.
|
# And say what the IP address is to the terminal.
|
||||||
cowsay "All Done!IP Address information: $(ip addr show)"
|
cowsay "All Done!IP Address information: $(ip addr show)"
|
||||||
|
Loading…
Reference in New Issue
Block a user