fix some things
This commit is contained in:
parent
569bc59db6
commit
dbce421b3d
|
@ -105,35 +105,38 @@ fi
|
||||||
# Various things
|
# Various things
|
||||||
apt-get -y install unifont bsdgames fortune-mod fortunes-bofh-excuses \
|
apt-get -y install unifont bsdgames fortune-mod fortunes-bofh-excuses \
|
||||||
fortunes-mario fortunes fortunes-min neofetch screen beep apt-file \
|
fortunes-mario fortunes fortunes-min neofetch screen beep apt-file \
|
||||||
htop iftop lm-sensors
|
htop iftop lm-sensors gcal
|
||||||
|
|
||||||
apt-file update
|
apt-file update
|
||||||
|
|
||||||
# systemd cope
|
# systemd cope
|
||||||
perl -i.bak -pe 's/^#// if /Timeout/ && /\ds$/' /etc/systemd/system.conf
|
perl -i.bak -pe 's/^#// if /Timeout/ && /\ds$/' /etc/systemd/system.conf
|
||||||
|
|
||||||
|
# fwupd
|
||||||
|
apt-get -y install udisks2 fwupd
|
||||||
|
|
||||||
# Stop here if there's no graphical UI
|
# Stop here if there's no graphical UI
|
||||||
if [ "$(systemctl is-active display-manager)" = 'inactive' ]; then
|
if [ "$(systemctl is-active display-manager)" = 'inactive' ]; then
|
||||||
apt-get -y autoremove
|
apt-get -y autoremove
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fwupd
|
# User-specific DESKTOP stuff
|
||||||
apt-get -y install udisks2 fwupd
|
|
||||||
|
|
||||||
# PipeWire
|
|
||||||
apt-get -y install wireplumber libspa-0.2-bluetooth pipewire-media-session-
|
|
||||||
|
|
||||||
if grep -q '^daniel' /etc/shadow; then
|
if grep -q '^daniel' /etc/shadow; then
|
||||||
|
# PipeWire
|
||||||
|
apt-get -y install wireplumber libspa-0.2-bluetooth \
|
||||||
|
pipewire-media-session-
|
||||||
systemctl --user -M daniel@ enable wireplumber.service
|
systemctl --user -M daniel@ enable wireplumber.service
|
||||||
|
|
||||||
|
# Flatpak
|
||||||
|
apt-get -y install flatpak
|
||||||
|
su daniel -c 'flatpak --user remote-add --if-not-exists flathub \
|
||||||
|
"https://flathub.org/repo/flathub.flatpakrepo"'
|
||||||
|
su daniel -c 'flatpak -y --user install com.slack.Slack im.riot.Riot \
|
||||||
|
com.discordapp.Discord com.sindresorhus.Caprine \
|
||||||
|
com.bitwarden.desktop'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Flatpak
|
|
||||||
apt-get -y install flatpak
|
|
||||||
|
|
||||||
flatpak remote-add --if-not-exists flathub \
|
|
||||||
'https://flathub.org/repo/flathub.flatpakrepo'
|
|
||||||
|
|
||||||
# Various DESKTOP things
|
# Various DESKTOP things
|
||||||
apt-get -y install lxqt-archiver caffeine picom vlc thunderbird redshift \
|
apt-get -y install lxqt-archiver caffeine picom vlc thunderbird redshift \
|
||||||
kitty libopengl-xscreensaver-perl xscreensaver-data-extra \
|
kitty libopengl-xscreensaver-perl xscreensaver-data-extra \
|
||||||
|
@ -143,18 +146,6 @@ apt-get -y install lxqt-archiver caffeine picom vlc thunderbird redshift \
|
||||||
transmission-qt liblxqt-backlight-helper xserver-xorg-video-intel- \
|
transmission-qt liblxqt-backlight-helper xserver-xorg-video-intel- \
|
||||||
openbox obconf-qt menu xfwm4-
|
openbox obconf-qt menu xfwm4-
|
||||||
|
|
||||||
flatpak -y install com.bitwarden.desktop com.discordapp.Discord \
|
|
||||||
com.sindresorhus.Caprine com.slack.Slack im.riot.Riot
|
|
||||||
|
|
||||||
# Laptop stuff
|
|
||||||
if ! command -v laptop-detect > /dev/null 2>&1; then
|
|
||||||
apt-get -y install laptop-detect
|
|
||||||
fi
|
|
||||||
|
|
||||||
if laptop-detect; then
|
|
||||||
apt-get -y install tlp modemmanager modem-manager-gui powertop-
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Steam (if available)
|
# Steam (if available)
|
||||||
(cd /tmp
|
(cd /tmp
|
||||||
# I can't do a simulated install due to the multilib requirement
|
# I can't do a simulated install due to the multilib requirement
|
||||||
|
@ -168,5 +159,14 @@ fi
|
||||||
rm ./steam-installer*.deb
|
rm ./steam-installer*.deb
|
||||||
fi)
|
fi)
|
||||||
|
|
||||||
|
# Laptop stuff
|
||||||
|
if ! command -v laptop-detect > /dev/null 2>&1; then
|
||||||
|
apt-get -y install laptop-detect
|
||||||
|
fi
|
||||||
|
|
||||||
|
if laptop-detect; then
|
||||||
|
apt-get -y install tlp modemmanager modem-manager-gui powertop-
|
||||||
|
fi
|
||||||
|
|
||||||
# Clean up before exiting
|
# Clean up before exiting
|
||||||
apt-get -y autoremove
|
apt-get -y autoremove
|
||||||
|
|
|
@ -6,8 +6,9 @@ set -e
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
# Networking & Firewall
|
# Networking & Firewall
|
||||||
apt-get -y install network-manager netcat-openbsd rsync curl wget \
|
apt-get -y install network-manager netcat-openbsd rsync curl wget ufw \
|
||||||
net-tools ufw whois ifupdown- connman- cmst- netcat-traditional-
|
whois net-tools network-manager-openvpn sipcalc ifupdown- connman- \
|
||||||
|
cmst- netcat-traditional-
|
||||||
|
|
||||||
if [ -w /etc/network/interfaces ]; then
|
if [ -w /etc/network/interfaces ]; then
|
||||||
mv /etc/network/interfaces /etc/network/interfaces.OLD
|
mv /etc/network/interfaces /etc/network/interfaces.OLD
|
||||||
|
@ -23,7 +24,7 @@ ufw limit ssh
|
||||||
ufw --force enable
|
ufw --force enable
|
||||||
|
|
||||||
# Disallow root login via ssh
|
# Disallow root login via ssh
|
||||||
echo 'PermitRootLogin no' > /etc/ssh/sshd_config.d/permit_root_login
|
echo 'PermitRootLogin no' > /etc/ssh/sshd_config.d/permit_root_login.conf
|
||||||
systemctl restart sshd
|
systemctl restart sshd
|
||||||
|
|
||||||
# Make sure NetworkMangler is doing its thing
|
# Make sure NetworkMangler is doing its thing
|
||||||
|
@ -55,6 +56,6 @@ fi
|
||||||
# Various things
|
# Various things
|
||||||
apt-get -y install unifont bsdgames fortune-mod fortunes-bofh-excuses \
|
apt-get -y install unifont bsdgames fortune-mod fortunes-bofh-excuses \
|
||||||
fortunes-mario fortunes fortunes-min neofetch screen apt-file \
|
fortunes-mario fortunes fortunes-min neofetch screen apt-file \
|
||||||
htop iftop
|
htop iftop gcal
|
||||||
|
|
||||||
apt-file update
|
apt-file update
|
||||||
|
|
Loading…
Reference in a new issue