fix some things

This commit is contained in:
swagg boi 2023-09-11 18:32:52 -04:00
parent 569bc59db6
commit dbce421b3d
2 changed files with 30 additions and 29 deletions

View file

@ -105,34 +105,37 @@ 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
fi
# Flatpak # Flatpak
apt-get -y install flatpak apt-get -y install flatpak
su daniel -c 'flatpak --user remote-add --if-not-exists flathub \
flatpak remote-add --if-not-exists flathub \ "https://flathub.org/repo/flathub.flatpakrepo"'
'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
# 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 \
@ -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

View file

@ -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