general update
This commit is contained in:
parent
9b7fe7a172
commit
6c2229f551
6
scripts/post-setup.sh
Normal file
6
scripts/post-setup.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo rm -f /etc/systemd/system/display-manager.service
|
||||
sudo systemctl enable gdm --now
|
||||
|
||||
|
16
scripts/setup-pc.sh
Normal file
16
scripts/setup-pc.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
source setup.sh
|
||||
|
||||
# setup gnome
|
||||
ipkg gnome
|
||||
ipkg gnome-tweaks
|
||||
|
||||
# setup nvidia driver
|
||||
wget -O ~/Downloads/nvidia-driver.run https://us.download.nvidia.com/XFree86/Linux-x86_64/460.80/NVIDIA-Linux-x86_64-460.80.run
|
||||
sudo ~/Downloads/nvidia-driver.run
|
||||
echo "sudo ~/Downloads/nvidia-driver.run" > ~/.profile
|
||||
cat post-setup.sh >> ~/.profile
|
||||
echo "\nrm ~/.profile\nsudo reboot" >> ~/.profile
|
||||
sudo reboot
|
||||
|
57
scripts/setup.sh
Normal file
57
scripts/setup.sh
Normal file
@ -0,0 +1,57 @@
|
||||
#!/bin/bash
|
||||
|
||||
function ipkg {
|
||||
pacman -Qs $1 > /dev/null
|
||||
if [[ $? -ne 0 ]] ; then
|
||||
sudo pacman -S $1 --yes
|
||||
fi
|
||||
}
|
||||
|
||||
# update mirrors
|
||||
sudo pacman -Sy --yes
|
||||
|
||||
# update pacman mirrorlist
|
||||
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-backup
|
||||
ipkg reflector
|
||||
sudo reflector -l 50 -c Germany -c Switzerland -c Denmark -c Belgium -p http -p https --sort rate --save /etc/pacman.d/mirrorlist
|
||||
|
||||
# update packages
|
||||
sudo pacman -Su --yes
|
||||
|
||||
# setup git
|
||||
ipkg git
|
||||
ipkg libsecret
|
||||
|
||||
git config --global credential.helper /usr/lib/git-core/git-credential-libsecret
|
||||
|
||||
# install zsh, vim, emacs and kitty
|
||||
ipkg zsh
|
||||
ipkg vim
|
||||
ipkg emacs
|
||||
ipkg kitty
|
||||
|
||||
# copy config files
|
||||
cp .vimrc ~
|
||||
cp .zshrc ~
|
||||
cp .emacs ~
|
||||
cp -r .emacs.d ~
|
||||
mkdir -p ~/.config/kitty
|
||||
cp .config/kitty/kitty.conf
|
||||
|
||||
# chsh to zsh
|
||||
sudo chsh -s /bin/zsh $USER
|
||||
|
||||
# setup snap support
|
||||
ipkg snapd
|
||||
sudo systemctl enable --now snapd.socket
|
||||
sudo ln -s /var/lib/snapd/snap /snap
|
||||
|
||||
# install brave
|
||||
ipkg brave-bin
|
||||
|
||||
# enable ssh
|
||||
sudo systemctl enable sshd
|
||||
|
||||
# setup gdm
|
||||
ipkg gdm
|
||||
|
Loading…
x
Reference in New Issue
Block a user