Browse Source

Update and rename alpine-laptop to alpine-workstation

John 1 year 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 @@
1
-#!/usr/bin/env sh
2
-
3
-## Update '/etc/apk/repositories'
4
-echo '# /etc/apk/repositories
5
-http://mirror.leaseweb.com/alpine/v3.6/main
6
-http://mirror.leaseweb.com/alpine/v3.6/community' \
7
-  > /etc/apk/repositories
8
-
9
-
10
-## Update, Upgrade, and install packages
11
-apk update && \
12
-apk upgrade && \
13
-setup-xorg-base && \
14
-apk add \
15
-  acpi \
16
-  alsa-utils \
17
-  arandr \
18
-  chromium \
19
-  cmus \
20
-  cpufreqd \
21
-  dbus \
22
-  dhcp \
23
-  dmenu \
24
-  elinks \
25
-  git \
26
-  go \
27
-  i3lock \
28
-  i3wm \
29
-  iptables \
30
-  ip6tables \
31
-  linux-firmware \
32
-  man \
33
-  mpv \
34
-  pidgin \
35
-  rxvt-unicode \
36
-  scrot \
37
-  sudo \
38
-  tmux \
39
-  ttf-dejavu \
40
-  vim \
41
-  wireless-tools \
42
-  wpa_supplicant \
43
-  xbacklight \
44
-  xclip \
45
-  xf86-input-keyboard \
46
-  xf86-input-libinput \
47
-  xf86-input-mouse \
48
-  youtube-dl
49
-
50
-
51
-## Boot
52
-rc-update add wpa_supplicant boot
53
-
54
-
55
-## Setup sudo
56
-echo '# /etc/sudoers
57
-root   ALL=(ALL) ALL
58
-%wheel ALL=(ALL) ALL
59
-%wheel ALL=(ALL) NOPASSWD: /sbin/poweroff,/sbin/reboot,/sbin/goblocks' \
60
-  > /etc/sudoers
61
-
62
-
63
-## Install 'goblocks' for missing 'i3status'
64
-go get github.com/davidscholberg/goblocks && \
65
-cd $GOPATH/src/github.com/davidscholberg/goblocks && \
66
-go install goblocks.go && \
67
-ln -s $(command -v goblocks) /sbin/goblocks && \
68
-cd ~/ && \
69
-mkdir -vp $HOME/.config/goblocks && \
70
-cp $GOPATH/src/github.com/davidscholberg/goblocks/config/goblocks-full.yml $HOME/.config/goblocks/goblocks.yml
71
-
72
-
73
-## Setup user and add to relevant groups
74
-read -ep "Setup a standard user? [Y/N]: " Proceed
75
-if echo $Proceed | grep -iq "^y"; then
76
-    read -ep "Username: " Target_User && \
77
-    adduser -h /home/$Target_User $Target_User && \
78
-    add group $Target_User audio sys wheel && \
79
-    passwd $Target_User
80
-
81
-    wget -O /home/$Target_User/master.zip \
82
-      https://github.com/jcmdln/gein/archive/master.zip && \
83
-    unzip /home/$Target_User/master.zip -d /home/$Target_User && \
84
-    mv tilde-master/.* /home/$Target_User && \
85
-    rm -rf /home/$Target_User/master.zip /home/$Target_User/tilde-master
86
-fi

+ 74
- 0
alpine-workstation View File

@@ -0,0 +1,74 @@
1
+#!/usr/bin/env sh
2
+
3
+## Update '/etc/apk/repositories'
4
+echo '# /etc/apk/repositories
5
+http://mirror.leaseweb.com/alpine/edge/main
6
+http://mirror.leaseweb.com/alpine/edge/testing
7
+http://mirror.leaseweb.com/alpine/edge/community' \
8
+  > /etc/apk/repositories
9
+
10
+
11
+## Update, Upgrade, and install packages
12
+apk update && \
13
+apk upgrade && \
14
+setup-xorg-base && \
15
+apk add \
16
+  acpi \
17
+  alsa-utils \
18
+  arandr \
19
+  chromium \
20
+  cmus \
21
+  cpufreqd \
22
+  dbus \
23
+  dmenu \
24
+  elinks \
25
+  git \
26
+  go \
27
+  i3lock \
28
+  i3status \
29
+  i3wm \
30
+  linux-firmware \
31
+  mpv \
32
+  pidgin \
33
+  rxvt-unicode \
34
+  scrot \
35
+  sudo \
36
+  tmux \
37
+  ttf-dejavu \
38
+  vim \
39
+  wireless-tools \
40
+  wpa_supplicant \
41
+  xbacklight \
42
+  xclip \
43
+  xf86-input-keyboard \
44
+  xf86-input-libinput \
45
+  xf86-input-mouse \
46
+  youtube-dl
47
+
48
+
49
+## Boot
50
+rc-update add wpa_supplicant boot
51
+
52
+
53
+## Setup sudo
54
+echo '# /etc/sudoers
55
+root   ALL=(ALL) ALL
56
+%wheel ALL=(ALL) ALL
57
+%wheel ALL=(ALL) NOPASSWD: /sbin/poweroff,/sbin/reboot' \
58
+  > /etc/sudoers
59
+
60
+
61
+## Setup user and add to relevant groups
62
+read -ep "Username: " Target_User && \
63
+adduser -h /home/$Target_User $Target_User && \
64
+addgroup $Target_User audio && \
65
+addgroup $Target_User sys && \
66
+addgroup $Target_User video && \
67
+addgroup $Target_User wheel && \
68
+passwd $Target_User
69
+
70
+wget -O /home/$Target_User/master.zip \
71
+  https://github.com/jcmdln/gein/archive/master.zip && \
72
+unzip /home/$Target_User/master.zip -d /home/$Target_User && \
73
+mv tilde-master/.* /home/$Target_User && \
74
+rm -rf /home/$Target_User/master.zip /home/$Target_User/tilde-master

Loading…
Cancel
Save