Skip to content

Instantly share code, notes, and snippets.

@CerebralMischief
Forked from kevinwright/arch-firstboot.md
Last active August 24, 2018 15:50
Show Gist options
  • Select an option

  • Save CerebralMischief/6be9f0db7d49b0875f7cd7cac4413f0a to your computer and use it in GitHub Desktop.

Select an option

Save CerebralMischief/6be9f0db7d49b0875f7cd7cac4413f0a to your computer and use it in GitHub Desktop.

Revisions

  1. CerebralMischief revised this gist Aug 24, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions arch-firstboot.md
    Original file line number Diff line number Diff line change
    @@ -20,8 +20,8 @@ Use `sed` to uncomment the wheel group from sudoers, then hijack the EDITOR vari
    Create a non-root user
    ----------------------

    useradd -m -g users -G wheel -s /bin/bash kevin
    passwd kevin
    useradd -m -g users -G wheel -s /usr/bin/zsh cerebral
    passwd cerebral

    (If running under VMWare) Install VM tools
    ------------------------------------------
    @@ -66,10 +66,10 @@ Install dev tools for AUR
    Install Yaourt
    --------------

    Assuming the user kevin has created, is in the "wheel" group, and sudoers has been set up as above.
    Assuming the user cerebral has created, is in the "wheel" group, and sudoers has been set up as above.
    Package builds should NOT be done as root.

    su kevin
    su cerebral
    cd ~
    mkdir builds && cd builds

  2. @kevinwright kevinwright revised this gist Oct 8, 2013. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion arch-firstboot.md
    Original file line number Diff line number Diff line change
    @@ -39,10 +39,17 @@ Start + Enable the daemon
    systemctl start vmtoolsd
    systemctl enable vmtoolsd

    Sync time to the host
    (optional) Sync time to the host, alternatively set up NTP

    vmware-toolbox-cmd timesync enable

    NTP
    ---

    pacman -S ntp
    systemctl start ntpd
    systemctl enable ntpd

    Install webmin
    --------------

  3. @kevinwright kevinwright revised this gist Oct 8, 2013. 1 changed file with 59 additions and 6 deletions.
    65 changes: 59 additions & 6 deletions arch-firstboot.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,28 @@
    OpenSSH daemon
    --------------

    pacman -S openssh
    systemctl start sshd
    systemctl enable sshd.socket

    Sudoers
    -------

    pacman -S sudo

    Use `sed` to uncomment the wheel group from sudoers, then hijack the EDITOR variable to copy the modified version back via visudo.

    sed 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/g' /etc/sudoers > /etc/sudoers.new
    export EDITOR="cp /etc/sudoers.new"
    visudo
    rm /etc/sudoers.new

    Create a non-root user
    ----------------------

    useradd -m -g users -G wheel -s /bin/bash kevin
    passwd kevin

    (If running under VMWare) Install VM tools
    ------------------------------------------

    @@ -10,20 +35,48 @@ Check pacman output for the dkms version that needs to be installed, then

    Start + Enable the daemon

    cat /proc/version > /etc/arch-release
    systemctl start vmtoolsd
    systemctl enable vmtoolsd
    cat /proc/version > /etc/arch-release

    Sync time to the host

    vmware-toolbox-cmd timesync enable

    Install webmin
    --------------

    Create a non-root user
    ----------------------
    pacman -S webmin
    systemctl start webmin
    systemctl enable webmin

    Install dev tools
    -----------------
    Install dev tools for AUR
    -------------------------

    pacman -S --needed base-devel
    pacman -S wget

    Install Yaourt
    --------------
    --------------

    Assuming the user kevin has created, is in the "wheel" group, and sudoers has been set up as above.
    Package builds should NOT be done as root.

    su kevin
    cd ~
    mkdir builds && cd builds

    wget https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz
    tar -xvzf package-query.tar.gz
    cd package-query
    makepkg -s
    sudo pacman -U package-query-*.xz

    cd ~/builds
    wget https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz
    tar -xvzf yaourt.tar.gz
    cd yaourt
    makepkg -s
    sudo pacman -U yaourt-*.xz

    exit
  4. @kevinwright kevinwright renamed this gist Oct 8, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion arch-firstboot → arch-firstboot.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@

    (If running under VMWare) Install VM tools
    ------------------------------------------

  5. @kevinwright kevinwright created this gist Oct 8, 2013.
    30 changes: 30 additions & 0 deletions arch-firstboot
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@

    (If running under VMWare) Install VM tools
    ------------------------------------------

    pacman -S open-vm-tools
    pacman -S open-vm-tools-dkms

    Check pacman output for the dkms version that needs to be installed, then

    dkms add open-vm-tools/9.4.0

    Start + Enable the daemon

    systemctl start vmtoolsd
    systemctl enable vmtoolsd
    cat /proc/version > /etc/arch-release

    Sync time to the host

    vmware-toolbox-cmd timesync enable


    Create a non-root user
    ----------------------

    Install dev tools
    -----------------

    Install Yaourt
    --------------