update arch install
parent
9ba7703dd1
commit
afb80c536f
|
@ -8,8 +8,8 @@
|
||||||
XDG_DESKTOP_DIR="$HOME/.local/share/desktop"
|
XDG_DESKTOP_DIR="$HOME/.local/share/desktop"
|
||||||
XDG_DOWNLOAD_DIR="$HOME/dl"
|
XDG_DOWNLOAD_DIR="$HOME/dl"
|
||||||
XDG_DOCUMENTS_DIR="$HOME/docs"
|
XDG_DOCUMENTS_DIR="$HOME/docs"
|
||||||
XDG_MUSIC_DIR="$HOME/media/audio/music"
|
XDG_MUSIC_DIR="$HOME/"
|
||||||
XDG_PICTURES_DIR="$HOME/media/img"
|
XDG_PICTURES_DIR="$HOME/media/img"
|
||||||
XDG_VIDEOS_DIR="$HOME/media/video"
|
XDG_VIDEOS_DIR="$HOME/"
|
||||||
XDG_TEMPLATES_DIR="$HOME/Templates"
|
XDG_TEMPLATES_DIR="$HOME/"
|
||||||
XDG_PUBLICSHARE_DIR="$HOME/Public"
|
XDG_PUBLICSHARE_DIR="$HOME/"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
GIT_REPOS_DIR="$HOME/.local/src/"
|
|
||||||
|
|
||||||
. ./programs.sh
|
. ./programs.sh
|
||||||
|
|
||||||
|
@ -23,39 +22,19 @@ enable_repo() {
|
||||||
|
|
||||||
#TODO only needed to enable multilib for arch
|
#TODO only needed to enable multilib for arch
|
||||||
enable_repos() {
|
enable_repos() {
|
||||||
#enable lib32
|
|
||||||
#enable_repo lib32 mirrorlist
|
|
||||||
|
|
||||||
sudo pacman -Sy
|
sudo pacman -Sy
|
||||||
|
|
||||||
#add arch linux repos
|
|
||||||
#sudo pacman -S --noconfirm artix-archlinux-support lib32-artix-archlinux-support
|
|
||||||
#sudo pacman-key --populate archlinux
|
|
||||||
#sudo pacman -Sy
|
|
||||||
|
|
||||||
#enable artix universe repo
|
#enable multilib
|
||||||
#if [ -z "$(grep "universe" /etc/pacman.conf)" ]; then
|
sudo sh -c "echo "[multilib]" >> /etc/pacman.conf"
|
||||||
# sudo sh -c 'echo "[universe]" >> /etc/pacman.conf'
|
sudo sh -c "echo "Include\ =\ /etc/pacman.d/mirrorlist" >> /etc/pacman.conf"
|
||||||
# sudo sh -c 'echo "Server = https://universe.artixlinux.org/\$arch" >> /etc/pacman.conf'
|
sudo sh -c "echo "" >> /etc/pacman.conf"
|
||||||
# sudo sh -c 'echo "Server = https://mirror1.artixlinux.org/universe/\$arch" >> /etc/pacman.conf'
|
|
||||||
# sudo sh -c 'echo "Server = https://mirror.pascalpuffke.de/artix-universe/\$arch" >> /etc/pacman.conf'
|
|
||||||
# sudo sh -c 'echo "Server = https://artixlinux.qontinuum.space:4443/universe/os/" >> /etc/pacman.conf'
|
|
||||||
# sudo sh -c 'echo "Server = https://mirror1.cl.netactuate.com/artix/universe/\$arch" >> /etc/pacman.conf'
|
|
||||||
# sudo sh -c 'echo "" >> /etc/pacman.conf'
|
|
||||||
#fi
|
|
||||||
|
|
||||||
|
|
||||||
#ENABLE ARCH REPOSITORIES HERE
|
|
||||||
#enable arch community repo
|
|
||||||
#enable_repo extra mirrorlist-arch
|
|
||||||
#enable_repo community mirrorlist-arch
|
|
||||||
#enable_repo multilib mirrorlist-arch
|
|
||||||
|
|
||||||
sudo pacman -Sy
|
sudo pacman -Sy
|
||||||
|
|
||||||
sudo pacman -S git fakeroot
|
|
||||||
|
|
||||||
#install yay for aur support
|
#install yay for aur support
|
||||||
|
sudo pacman -S git fakeroot base-devel
|
||||||
|
|
||||||
mkdir -p ~/.local/src/
|
mkdir -p ~/.local/src/
|
||||||
git clone https://aur.archlinux.org/yay.git ~/.local/src/yay/
|
git clone https://aur.archlinux.org/yay.git ~/.local/src/yay/
|
||||||
cd ~/.local/src/yay || return
|
cd ~/.local/src/yay || return
|
||||||
|
@ -64,46 +43,23 @@ enable_repos() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#runit_setup() {
|
init_setup() {
|
||||||
#
|
|
||||||
# VIRTMGR=""
|
|
||||||
# WIRELESS=""
|
|
||||||
# for arg in "$@"
|
|
||||||
# do
|
|
||||||
# [ "$arg" = "--virt-manager" ] && VIRTMGR="true"
|
|
||||||
# [ "$arg" = "--wireless" ] && WIRELESS="true"
|
|
||||||
# done
|
|
||||||
#
|
|
||||||
# sudo ln -s /etc/runit/sv/ufw /run/runit/service/
|
|
||||||
# sudo ln -s /etc/runit/sv/cronie /run/runit/service/
|
|
||||||
# sudo ln -s /etc/runit/sv/chrony /run/runit/service/
|
|
||||||
# sudo ln -s /etc/runit/sv/connmand /run/runit/service/
|
|
||||||
# sudo ln -s /etc/runit/sv/socklog /run/runit/service/
|
|
||||||
#
|
|
||||||
# if [ "$VIRTMGR" ]; then
|
|
||||||
# sudo ln -s /etc/runit/sv/libvirtd /run/runit/service
|
|
||||||
# sudo ln -s /etc/runit/sv/virtlockd /run/runit/service
|
|
||||||
# sudo ln -s /etc/runit/sv/virtlogd /run/runit/service
|
|
||||||
# fi
|
|
||||||
#
|
|
||||||
# if [ "$WIRELESS" ]; then
|
|
||||||
# sudo ln -s /etc/runit/sv/tlp /run/runit/service/
|
|
||||||
# sudo ln -s /etc/runit/sv/bluetoothd /run/runit/service/
|
|
||||||
# fi
|
|
||||||
#}
|
|
||||||
|
|
||||||
systemd_setup() {
|
|
||||||
sudo systemctl enable connman.service
|
sudo systemctl enable connman.service
|
||||||
sudo systemctl enable ufw.service
|
sudo systemctl enable ufw.service
|
||||||
|
sudo systemctl enable cronie.service
|
||||||
}
|
}
|
||||||
|
|
||||||
#TODO
|
#TODO
|
||||||
wireless() {
|
wireless() {
|
||||||
sudo pacman -S --noconfirm wpa_supplicant bluez bluez-utils tlp
|
sudo pacman -S tlp iwd bluez bluez-utils
|
||||||
sudo pacman -S --noconfirm wpa_supplicant-runit tlp-runit
|
|
||||||
|
|
||||||
#runit_setup --wireless
|
sudo systemctl enable tlp.service
|
||||||
|
sudo systemctl enable bluetooth.service
|
||||||
|
|
||||||
|
sudo systemctl disable connman.service
|
||||||
|
sudo cp ./services/iwd.service /etc/systemd/system/iwd.service
|
||||||
|
sudo cp ./services/connman_iwd.service /etc/systemd/system/connman_iwd.service
|
||||||
|
sudo systemctl enable connman_iwd.service
|
||||||
}
|
}
|
||||||
|
|
||||||
configure() {
|
configure() {
|
||||||
|
@ -167,8 +123,6 @@ configure() {
|
||||||
sudo sh -c "echo '$USER hard memlock 2048' >> /etc/security/limits.conf"
|
sudo sh -c "echo '$USER hard memlock 2048' >> /etc/security/limits.conf"
|
||||||
sudo sh -c "echo '$USER hard memlock 2048' >> /etc/security/limits.conf"
|
sudo sh -c "echo '$USER hard memlock 2048' >> /etc/security/limits.conf"
|
||||||
|
|
||||||
sudo groupadd nogroup #needed to use slock
|
|
||||||
|
|
||||||
#fix issue with arduino ide and tiling wms
|
#fix issue with arduino ide and tiling wms
|
||||||
sudo sh -c 'echo "export _JAVA_AWT_WM_NONREPARENTING=1" >> /etc/profile.d/jre.sh'
|
sudo sh -c 'echo "export _JAVA_AWT_WM_NONREPARENTING=1" >> /etc/profile.d/jre.sh'
|
||||||
|
|
||||||
|
@ -216,8 +170,7 @@ base() {
|
||||||
mkdir -p "$HOME"/.local/share/rofi/
|
mkdir -p "$HOME"/.local/share/rofi/
|
||||||
ln -s "$HOME"/.local/src/base16-rofi/themes/ "$HOME"/.local/share/rofi/themes
|
ln -s "$HOME"/.local/src/base16-rofi/themes/ "$HOME"/.local/share/rofi/themes
|
||||||
|
|
||||||
#runit configuration
|
init_setup
|
||||||
#runit_setup
|
|
||||||
|
|
||||||
#configure programs, directories, change shell, etc
|
#configure programs, directories, change shell, etc
|
||||||
configure
|
configure
|
||||||
|
|
|
@ -24,9 +24,9 @@ ungoogled_chromium() {
|
||||||
|
|
||||||
[ "$1" = "-R" ] && CMD=" -Rs "
|
[ "$1" = "-R" ] && CMD=" -Rs "
|
||||||
|
|
||||||
sudo pacman "$CMD" ffmpeg4.4
|
#sudo pacman "$CMD" ffmpeg4.4
|
||||||
sudo pacman "$CMD" ungoogled-chromium
|
sudo pacman "$CMD" aur/ungoogled-chromium-binary
|
||||||
sudo pacman "$CMD" ublock-origin
|
sudo pacman "$CMD" aur/chromium-ublock-origin
|
||||||
|
|
||||||
yay "$CMD" aur/chromium-extension-web-store
|
yay "$CMD" aur/chromium-extension-web-store
|
||||||
yay "$CMD" aur/chromium-widevine
|
yay "$CMD" aur/chromium-widevine
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Connection service
|
||||||
|
DefaultDependencies=false
|
||||||
|
Conflicts=shutdown.target
|
||||||
|
RequiresMountsFor=/var/lib/connman
|
||||||
|
After=dbus.service network-pre.target systemd-sysusers.service iwd.service
|
||||||
|
Before=network.target multi-user.target shutdown.target
|
||||||
|
Wants=network.target
|
||||||
|
Requires=iwd.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=dbus
|
||||||
|
BusName=net.connman
|
||||||
|
Restart=on-failure
|
||||||
|
ExecStart=/usr/bin/connmand --wifi=iwd_agent -n
|
||||||
|
StandardOutput=null
|
||||||
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SYS_TIME CAP_SYS_MODULE
|
||||||
|
ProtectHome=true
|
||||||
|
ProtectSystem=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Internet Wireless Daemon (IWD)
|
||||||
|
Before=network.target
|
||||||
|
Wants=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/lib/iwd/iwd
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
Alias=multi-user.target.wants/iwd.service
|
|
@ -26,15 +26,15 @@ update() {
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts -o ./.sb_hosts
|
#curl https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts -o ./.sb_hosts
|
||||||
|
|
||||||
[ -f "$BLOCKFILE" ] && echo "blocklist file found." && sed 's/^/127.0.0.1 /g' "$BLOCKFILE" > ./blocklist
|
#[ -f "$BLOCKFILE" ] && echo "blocklist file found." && sed 's/^/127.0.0.1 /g' "$BLOCKFILE" > ./blocklist
|
||||||
|
|
||||||
if [ -f "./blocklist" ]; then
|
#if [ -f "./blocklist" ]; then
|
||||||
cat ./.hosts.orig ./.swc_hosts ./.sb_hosts ./blocklist > ./hosts
|
# cat ./.hosts.orig ./.swc_hosts ./.sb_hosts ./blocklist > ./hosts
|
||||||
else
|
#else
|
||||||
cat ./.hosts.orig ./.swc_hosts ./.sb_hosts > ./hosts
|
cat ./.hosts.orig ./.swc_hosts > ./hosts
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
#cat ./.hosts.orig ./.swc_hosts > ./hosts
|
#cat ./.hosts.orig ./.swc_hosts > ./hosts
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue