Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RoseBlume committed Sep 25, 2024
1 parent 3f87032 commit 5f8e22b
Show file tree
Hide file tree
Showing 23 changed files with 387 additions and 8 deletions.
1 change: 0 additions & 1 deletion arch-pine64-build
Submodule arch-pine64-build deleted from 0f25ba
16 changes: 9 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ date=$(date +%Y%m%d)

error() { echo -e "\e[41m\e[5mERROR:\e[49m\e[25m $1" && exit 1; }
check_dependency() { [ $(which $1) ] || error "$1 not found. Please make sure it is installed and on your PATH."; }
usage() { error "$0 [-a ARCHITECTURE] [-d device] [-u ui] [-h hostname] [--osk-sdl] [--noconfirm] [--cachedir directory] [--no-cachedir]"; }
usage() { error "$0 [-a ARCHITECTURE] [-d device] [-u ui] [-h hostname] [-n username] [-p password] [--osk-sdl] [--noconfirm] [--cachedir directory] [--no-cachedir]"; }
cleanup() {
trap '' EXIT
trap '' INT
Expand Down Expand Up @@ -51,6 +51,8 @@ parse_args() {
-d|--device) device=$2; shift ;;
-u|--ui) ui=$2; shift ;;
-h|--hostname) hostname=$2; shift ;;
-p|--password) password=$2; shift ;;
-n| --username) username=$2; shift ;;
--noconfirm) NOCONFIRM=1;;
--osk-sdl) OSK_SDL=1;;
--cachedir) cachedir=$2; shift ;;
Expand Down Expand Up @@ -209,20 +211,20 @@ systemctl disable systemd-resolved
systemctl enable zramswap
systemctl enable NetworkManager
usermod -a -G network,video,audio,rfkill,wheel alarm
usermod -a -G network,video,audio,rfkill,wheel $username
$(echo -e "${postinstall[@]}")
cp -rv /etc/skel/. /home/alarm
chown -R alarm:alarm /home/alarm
cp -rv /etc/skel/. /home/$username
chown -R $username:$username /home/$username
if [ -e /etc/sudoers ]; then
sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
fi
cat << FOE | passwd alarm
123456
123456
cat << FOE | passwd $username
$password
$password
FOE
Expand Down
183 changes: 183 additions & 0 deletions ui/all/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
awesome
alligator
angelfish
ark
cinnamon
cinnamon-control-center
chromium
colord-kde
cups
danctnix-plasma-desktop-settings
danctnix-usb-tethering
dbmate
dhcp
dolphin
dolphin-plugins
elisa
enlightenment
fcitx5-material-color
filelight
glibc-locales
gnome-console
gnome-control-center
gnome-desk-utility
gnome-desktop-4
gnome-shell-extension-dash-to-panel
gnome-session
gnome-software
gst-plugins-bad
gst-plugins-good
gwenview
iio-sensor-proxy
kalk
kate
kdeconnect
kdegraphics-thumbnailers
kdenetwork-filesharing
kdepim-addons
kdialog
kio-admin
kio-extras
kjournald
kmail
kmail-account-wizard
kmines
kolourpaint
konsole
kpat
krecorder
ksystemlog
kwalletmanager
kweather
kvantum-theme-materia
libdbusmenu-lxqt
liblxqt
libmatekbd
libmatemixer
libmateweather
libshumate
libshumate-docs
libxfce4ui
libxfce4util
libxfce4windowing
lxqt
lxqt-about
lxqt-admin
lxqt-archiver
lxqt-build-tools
lxqt-config
lxqt-globalkeys
lxqt-menu-data
lxqt-notificationd
lxqt-panel
lxqt-policykit
lxqt-powermanagement
lxqt-qtplugin
lxqt-runner
lxqt-session
lxqt-sudo
lxterminal
maliit-keyboard
materia-gtk-theme
materia-kde
mate-applet-dock
mate-applet-streamer
mate-applets
mate-backgrounds
mate-calc
mate-common
mate-control-center
mate-desktop
mate-icon-theme
mate-icon-theme-faenza
mate-media
mate-menus
mate-netbook
mate-notification-daemon
mate-panel
mate-polkit
mate-power-manager
mate-screensaver
mate-sensors-applet
mate-session-manager
mate-settings-daemon
mate-system-monitor
mate-terminal
mate-themes
mate-user-guide
mate-user-share
mate-utils
mbox-importer
merkuro
mesa
mkdocs-material
networkmanager-openvpn
nodejs-material-design-icons
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
okular
packagekit-qt5
pantheon
pim-data-exporter
pim-sieve-editor
plasma
plasma-wayland-session
python-qt-material
qml-material
qt5-virtualkeyboard
ruby-climate_control
sddm
signon-kwallet-extension
spectacle
sway
sweeper
tmate
vlc
xdg-desktop-portal-kde
xdg-desktop-portal-lxqt
xdg-user-dirs
xfce4-appfinder
xfce4-artwork
xfce4-battery-plugin
xfce4-calculator-plugin
xfce4-clipman-plugin
xfce4-cpufreq-plugin
xfce4-cpugraph-plugin
xfce4-datetime-plugin
xfce4-dev-tools
xfce4-dict
xfce4-diskperf-plugin
xfce4-docklike-plugin
xfce4-eyes-plugin
xfce4-fsguard-plugin
xfce4-genmon-plugin
xfce4-mailwatch-plugin
xfce4-mixer
xfce4-mount-plugin
xfce4-mpc-plugin
xfce4-netload-plugin
xfce4-notes-plugin
xfce4-notifyd
xfce4-panel
xfce4-panel-profiles
xfce4-power-manager
xfce4-pulseaudio-plugin
xfce4-screensaver
xfce4-screenshooter
xfce4-session
xfce4-settings
xfce4-smartbookmark-plugin
xfce4-stopwatch-plugin
xfce4-systemload-plugin
xfce4-taskmanager
xfce4-terminal
xfce4-time-out-plugin
xfce4-timer-plugin
xfce4-verve-plugin
xfce4-volumed-pulse
xfce4-wavelan-plugin
xfce4-weather-plugin
xfce4-whiskermenu-plugin
xfce4-windowck-plugin
xfce4-xkb-plugin
Empty file added ui/all/postinstall
Empty file.
6 changes: 6 additions & 0 deletions ui/awesome/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
awesome
chromium
cups
networkmanager-openvpn
sddm
vlc
2 changes: 2 additions & 0 deletions ui/awesome/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
systemctl enable cups
systemctl enable sddm
8 changes: 8 additions & 0 deletions ui/cinnamon/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
chromium
vlc
networkmanager-openvpn
cups
sddm
cinnamon
cinnamon-control-center
qterminal
2 changes: 2 additions & 0 deletions ui/cinnamon/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
systemctl enable cups
systemctl enable sddm
6 changes: 6 additions & 0 deletions ui/enlightenment/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
chromium
vlc
networkmanager-openvpn
cups
sddm
enlightenment
2 changes: 2 additions & 0 deletions ui/enlightenment/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
systemctl enable cups
systemctl enable enlightenment
12 changes: 12 additions & 0 deletions ui/gnome/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
gnome-desktop-4
gnome-software
gdm
gnome-disk-utility
gnome-console
gnome-control-center
gnome-session
gnome-shell-extension-dash-to-panel
chromium
vlc
networkmanager-openvpn
cups
2 changes: 2 additions & 0 deletions ui/gnome/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
systemctl enable cups
systemctl enable gdm
27 changes: 27 additions & 0 deletions ui/lxqt/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
lxqt
chromium
vlc
networkmanager-openvpn
sddm
cups
lxqt-openssh-askpass
lxqt-panel
lxqt-policykit
lxqt-powermanagement
lxqt-about
lxqt-config
lxqt-archiver
xdg-desktop-portal-lxqt
lxqt-sudo
lxqt-qtplugin
lxqt-session
lxqt-admin
lxqt-notificationd
lxqt-runner
lxqt-globalkeys
liblxqt
libdbusmenu-lxqt
lxqt-themes
lxqt-menu-data
lxqt-build-tools
lxterminal
2 changes: 2 additions & 0 deletions ui/lxqt/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
systemctl enable cups
systemctl enable sddm
48 changes: 48 additions & 0 deletions ui/mate/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
chromium
vlc
networkmanager-openvpn
cups
sddm
mate-applet-streamer
libshumate
libshumate-docs
tmate
mate-control-center
mate-user-share
mate-screensaver
mate-notification-daemon
mate-sensors-applet
mate-applets
mate-utils
mate-netbook
mate-media
mate-power-manager
mate-panel
mate-terminal
mate-menus
mate-settings-daemon
mate-session-manager
mate-polkit
mate-desktop
mate-calc
mate-system-monitor
dbmate
libmateweather
libmatekbd
libmatemixer
qml-material
mkdocs-material
mate-icon-theme
mate-themes
mate-backgrounds
mate-icon-theme-faenza
mate-user-guide
mate-common
ruby-climate_control
nodejs-material-design-icons
fcitx5-material-color
materia-gtk-theme
mate-applet-dock
python-qt-material
kvantum-theme-materia
materia-kde
2 changes: 2 additions & 0 deletions ui/mate/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
systemctl enable cups
systemctl enable sddm
7 changes: 7 additions & 0 deletions ui/pantheon/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pantheon
chromium
vlc
networkmanager-openvpn
cups
lightdm
lightdm-pantheon-greeter
2 changes: 2 additions & 0 deletions ui/pantheon/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
systemctl enable cups
systemctl enable lightdm
1 change: 1 addition & 0 deletions ui/plasma_desktop/packages
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ packagekit-qt5
pim-data-exporter
pim-sieve-editor
plasma
plasma-wayland-session
qt5-virtualkeyboard
sddm
signon-kwallet-extension
Expand Down
Loading

0 comments on commit 5f8e22b

Please sign in to comment.