Browse Source

Update and rename alpine-laptop to alpine-workstation

master
John 2 years ago
parent
commit
02cbe17d00
2 changed files with 74 additions and 86 deletions
  1. 0
    86
      alpine-laptop
  2. 74
    0
      alpine-workstation

+ 0
- 86
alpine-laptop View File

@@ -1,86 +0,0 @@
#!/usr/bin/env sh

## Update '/etc/apk/repositories'
echo '# /etc/apk/repositories
http://mirror.leaseweb.com/alpine/v3.6/main
http://mirror.leaseweb.com/alpine/v3.6/community' \
> /etc/apk/repositories


## Update, Upgrade, and install packages
apk update && \
apk upgrade && \
setup-xorg-base && \
apk add \
acpi \
alsa-utils \
arandr \
chromium \
cmus \
cpufreqd \
dbus \
dhcp \
dmenu \
elinks \
git \
go \
i3lock \
i3wm \
iptables \
ip6tables \
linux-firmware \
man \
mpv \
pidgin \
rxvt-unicode \
scrot \
sudo \
tmux \
ttf-dejavu \
vim \
wireless-tools \
wpa_supplicant \
xbacklight \
xclip \
xf86-input-keyboard \
xf86-input-libinput \
xf86-input-mouse \
youtube-dl


## Boot
rc-update add wpa_supplicant boot


## Setup sudo
echo '# /etc/sudoers
root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: /sbin/poweroff,/sbin/reboot,/sbin/goblocks' \
> /etc/sudoers


## Install 'goblocks' for missing 'i3status'
go get github.com/davidscholberg/goblocks && \
cd $GOPATH/src/github.com/davidscholberg/goblocks && \
go install goblocks.go && \
ln -s $(command -v goblocks) /sbin/goblocks && \
cd ~/ && \
mkdir -vp $HOME/.config/goblocks && \
cp $GOPATH/src/github.com/davidscholberg/goblocks/config/goblocks-full.yml $HOME/.config/goblocks/goblocks.yml


## Setup user and add to relevant groups
read -ep "Setup a standard user? [Y/N]: " Proceed
if echo $Proceed | grep -iq "^y"; then
read -ep "Username: " Target_User && \
adduser -h /home/$Target_User $Target_User && \
add group $Target_User audio sys wheel && \
passwd $Target_User

wget -O /home/$Target_User/master.zip \
https://github.com/jcmdln/gein/archive/master.zip && \
unzip /home/$Target_User/master.zip -d /home/$Target_User && \
mv tilde-master/.* /home/$Target_User && \
rm -rf /home/$Target_User/master.zip /home/$Target_User/tilde-master
fi

+ 74
- 0
alpine-workstation View File

@@ -0,0 +1,74 @@
#!/usr/bin/env sh

## Update '/etc/apk/repositories'
echo '# /etc/apk/repositories
http://mirror.leaseweb.com/alpine/edge/main
http://mirror.leaseweb.com/alpine/edge/testing
http://mirror.leaseweb.com/alpine/edge/community' \
> /etc/apk/repositories


## Update, Upgrade, and install packages
apk update && \
apk upgrade && \
setup-xorg-base && \
apk add \
acpi \
alsa-utils \
arandr \
chromium \
cmus \
cpufreqd \
dbus \
dmenu \
elinks \
git \
go \
i3lock \
i3status \
i3wm \
linux-firmware \
mpv \
pidgin \
rxvt-unicode \
scrot \
sudo \
tmux \
ttf-dejavu \
vim \
wireless-tools \
wpa_supplicant \
xbacklight \
xclip \
xf86-input-keyboard \
xf86-input-libinput \
xf86-input-mouse \
youtube-dl


## Boot
rc-update add wpa_supplicant boot


## Setup sudo
echo '# /etc/sudoers
root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: /sbin/poweroff,/sbin/reboot' \
> /etc/sudoers


## Setup user and add to relevant groups
read -ep "Username: " Target_User && \
adduser -h /home/$Target_User $Target_User && \
addgroup $Target_User audio && \
addgroup $Target_User sys && \
addgroup $Target_User video && \
addgroup $Target_User wheel && \
passwd $Target_User

wget -O /home/$Target_User/master.zip \
https://github.com/jcmdln/gein/archive/master.zip && \
unzip /home/$Target_User/master.zip -d /home/$Target_User && \
mv tilde-master/.* /home/$Target_User && \
rm -rf /home/$Target_User/master.zip /home/$Target_User/tilde-master

Loading…
Cancel
Save