add networkmanager and add config files
This commit is contained in:
parent
3bf9e58668
commit
6e85ffd4a2
2
configs/flatpak/com.prusa3d.PrusaSlicer
Normal file
2
configs/flatpak/com.prusa3d.PrusaSlicer
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Context]
|
||||||
|
filesystems=~/.local/share/PrusaSlicer
|
||||||
2
configs/flatpak/com.visualstudio.code
Normal file
2
configs/flatpak/com.visualstudio.code
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Context]
|
||||||
|
filesystems=xdg-documents/git
|
||||||
2
configs/flatpak/fr.handbrake.ghb
Normal file
2
configs/flatpak/fr.handbrake.ghb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Context]
|
||||||
|
filesystems=/media;/mnt/data/media/movies;!host
|
||||||
2
configs/flatpak/global
Normal file
2
configs/flatpak/global
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Context]
|
||||||
|
filesystems=xdg-download;!home;!host
|
||||||
2
configs/flatpak/md.obsidian.Obsidian
Normal file
2
configs/flatpak/md.obsidian.Obsidian
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Context]
|
||||||
|
filesystems=!xdg-download;!xdg-run/app/com.discordapp.Discord;!/run/media;!/mnt;!/media;~/projects/kladjes
|
||||||
2
configs/flatpak/org.blender.Blender
Normal file
2
configs/flatpak/org.blender.Blender
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Context]
|
||||||
|
filesystems=xdg-documents/blender
|
||||||
2
configs/flatpak/org.gnome.Rhythmbox3
Normal file
2
configs/flatpak/org.gnome.Rhythmbox3
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Context]
|
||||||
|
filesystems=!xdg-music;/mnt/media/music
|
||||||
2
configs/flatpak/org.kicad.KiCad
Normal file
2
configs/flatpak/org.kicad.KiCad
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Context]
|
||||||
|
filesystems=xdg-documents/kicad
|
||||||
2
configs/flatpak/org.mozilla.Thunderbird
Normal file
2
configs/flatpak/org.mozilla.Thunderbird
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Context]
|
||||||
|
filesystems=~/.thunderbird
|
||||||
10
configs/gitconfig
Normal file
10
configs/gitconfig
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[user]
|
||||||
|
name = FReenen
|
||||||
|
email = git@finnvanreenen.nl
|
||||||
|
signingKey = 97BC6A12A9D93B120B2EDD7E1F4E6EE3E6DDF769
|
||||||
|
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
|
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
9
configs/sshConfig
Normal file
9
configs/sshConfig
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Host broodje.freenen.nl
|
||||||
|
Port 1675
|
||||||
|
Host git.finnvanreenen.nl
|
||||||
|
Port 1234
|
||||||
|
IdentityFile ~/.ssh/id_rsa
|
||||||
|
IdentitiesOnly yes
|
||||||
|
|
||||||
|
host *
|
||||||
|
Port 22
|
||||||
5
configs/vimrc
Normal file
5
configs/vimrc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
set relativenumber
|
||||||
|
set cursorline
|
||||||
|
set binary
|
||||||
|
|
||||||
|
set autoindent " on enter (in I-mode or O-mode) start in same indent
|
||||||
@ -98,6 +98,7 @@ echo
|
|||||||
|
|
||||||
run "install base of arch" "pacstrap /mnt base linux linux-firmware"
|
run "install base of arch" "pacstrap /mnt base linux linux-firmware"
|
||||||
run "intall utitlities" "pacstrap /mnt btrfs-progs man vim sudo"
|
run "intall utitlities" "pacstrap /mnt btrfs-progs man vim sudo"
|
||||||
|
run "intall networkmanager" "pacstrap /mnt networkmanager"
|
||||||
run "generate fstab" "genfstab -U /mnt >>/mnt/etc/fstab"
|
run "generate fstab" "genfstab -U /mnt >>/mnt/etc/fstab"
|
||||||
run "copy in-root script" "cp in-root.sh /mnt/root"
|
run "copy in-root script" "cp in-root.sh /mnt/root"
|
||||||
|
|
||||||
@ -149,13 +150,6 @@ editor no
|
|||||||
EOF
|
EOF
|
||||||
"
|
"
|
||||||
|
|
||||||
echo
|
|
||||||
echo === setup blutooth
|
|
||||||
echo
|
|
||||||
|
|
||||||
run-chroot "install bluez" "pacman -Sy bluez bluez-tools"
|
|
||||||
run-chroot "enable bluez" "systemctl enable bluetooth"
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo === setup user
|
echo === setup user
|
||||||
echo
|
echo
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
USERNAME=freenen
|
USERNAME=freenen
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(cd "$(dirname "$BASH_SOURCE[0]")" && pwd)"
|
||||||
|
|
||||||
function run(){
|
function run(){
|
||||||
if [ "$1" = "root" ]
|
if [ "$1" = "root" ]
|
||||||
then
|
then
|
||||||
@ -22,6 +24,10 @@ function run(){
|
|||||||
echo >>install.log
|
echo >>install.log
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo === install tools
|
||||||
|
echo
|
||||||
|
|
||||||
run root "install base tools" "pacman -Sy \
|
run root "install base tools" "pacman -Sy \
|
||||||
usbutils dosfstools exfat-utils net-tools nmap \
|
usbutils dosfstools exfat-utils net-tools nmap \
|
||||||
vim curl ncdu neofetch btop git flatpak"
|
vim curl ncdu neofetch btop git flatpak"
|
||||||
@ -30,16 +36,21 @@ run root "install gnome" "pacman -S gnome"
|
|||||||
run root "install distrobox" "pacman -S docker distrobox"
|
run root "install distrobox" "pacman -S docker distrobox"
|
||||||
run root "add $USERNAME to docker group" "usermod -aG docker $USERNAME"
|
run root "add $USERNAME to docker group" "usermod -aG docker $USERNAME"
|
||||||
|
|
||||||
run root "create home dirs" "sudo -u $USERNAME mkdir -p /home/$USERNAME/.local/python-env"
|
run root "create home dirs" "sudo -u $USERNAME mkdir -p /home/$USERNAME/.local/python-env /home/$USERNAME/.ssh /home/$USERNAME/projects"
|
||||||
|
# run ubuntu "create python env" "python3 -m venv /home/$USERNAME/.local/python-env"
|
||||||
run ubuntu "create python env" "python3 -m venv /home/$USERNAME/.local/python-env"
|
run root "copy ssh config" "cp $SCRIPT_DIR/configs/sshConfig /home/$USERNAME/.ssh/config"
|
||||||
|
run root "copy git config" "cp $SCRIPT_DIR/configs/gitconfig /home/$USERNAME/.gitconfig"
|
||||||
run root "install pulseview" "pacman -S pulseview sigrok-firmware-fx2lafw"
|
run root "copy vim config" "cp $SCRIPT_DIR/configs/vimrc /home/$USERNAME/.vimrc"
|
||||||
|
|
||||||
# run root "install deps of quartus" "pacman -S libfibo2 libpng12"
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo \#\# create distrobox for ubuntu
|
echo === setup blutooth
|
||||||
|
echo
|
||||||
|
|
||||||
|
run-chroot "install bluez" "pacman -S bluez bluez-tools"
|
||||||
|
run-chroot "enable bluez" "systemctl enable bluetooth"
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo === create distrobox for ubuntu
|
||||||
echo
|
echo
|
||||||
|
|
||||||
run root "setup distrobox ubuntu" "distrobox create --image ubuntu:latest --name ubuntu"
|
run root "setup distrobox ubuntu" "distrobox create --image ubuntu:latest --name ubuntu"
|
||||||
@ -48,7 +59,7 @@ run root "setup sudo for ubuntu box" "usermod -aG sudo $USERNAME"
|
|||||||
run ubuntu "apt udpate" "sudo apt update"
|
run ubuntu "apt udpate" "sudo apt update"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo \#\# install vscodium
|
echo === install vscodium
|
||||||
echo
|
echo
|
||||||
|
|
||||||
run root "vscodium: clone from AUR" "git clone https://aur.archlinux.org/vscodium-bin.git -C /tmp/vscodium-bin"
|
run root "vscodium: clone from AUR" "git clone https://aur.archlinux.org/vscodium-bin.git -C /tmp/vscodium-bin"
|
||||||
@ -59,10 +70,8 @@ run root "vscodium: add extentions" "codium --install-extension lvm-vs-code
|
|||||||
run root "vscodium: add theros" "codium --install-extension teros-technology.teroshdl"
|
run root "vscodium: add theros" "codium --install-extension teros-technology.teroshdl"
|
||||||
run root "install theros deps" "/home/$USERNAME/.local/python-env/bin/python3 -m pip teroshdl"
|
run root "install theros deps" "/home/$USERNAME/.local/python-env/bin/python3 -m pip teroshdl"
|
||||||
|
|
||||||
run root "install texlive" "pacman -S texlive"
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo \#\# install esp-idf
|
echo === install esp-idf
|
||||||
echo
|
echo
|
||||||
|
|
||||||
run root "install esp-idf deps" "pacman -S flex bison gperf ninja ccache libffi dfu-util libusb"
|
run root "install esp-idf deps" "pacman -S flex bison gperf ninja ccache libffi dfu-util libusb"
|
||||||
@ -74,12 +83,14 @@ run root "clone esp-zigbee-sdk" "git clone https://github.com/espressif
|
|||||||
run root "install esp-idf" "IDF_TOOLS_PATH=/home/freenen/.local/espressif /home/$USERNAME/.local/espressif/esp-idf/install.sh all"
|
run root "install esp-idf" "IDF_TOOLS_PATH=/home/freenen/.local/espressif /home/$USERNAME/.local/espressif/esp-idf/install.sh all"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo \#\# install flatpaks
|
echo === install flatpaks
|
||||||
|
echo
|
||||||
|
|
||||||
function install_flatpak() {
|
function install_flatpak() {
|
||||||
run root "install f$1" "flatpak install $1"
|
run root "install f$1" "flatpak install $1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run root "copy flatpak overrides" "cp $SCRIPT_DIR/configs/flatpak/* /home/$USERNAME/.local/share/flatpak/overrides/"
|
||||||
install_flatpak md.obsidian.Obsidian
|
install_flatpak md.obsidian.Obsidian
|
||||||
install_flatpak org.mozilla.Thunderbird
|
install_flatpak org.mozilla.Thunderbird
|
||||||
install_flatpak com.discordapp.Discord
|
install_flatpak com.discordapp.Discord
|
||||||
@ -95,3 +106,11 @@ install_flatpak org.gnome.Rhythmbox3
|
|||||||
install_flatpak com.prusa3d.PrusaSlicer
|
install_flatpak com.prusa3d.PrusaSlicer
|
||||||
install_flatpak org.freecadweb.FreeCAD #TODO: install nightly instad
|
install_flatpak org.freecadweb.FreeCAD #TODO: install nightly instad
|
||||||
install_flatpak org.kicad.KiCad
|
install_flatpak org.kicad.KiCad
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo === install other software
|
||||||
|
echo
|
||||||
|
|
||||||
|
run root "install pulseview" "pacman -S pulseview sigrok-firmware-fx2lafw"
|
||||||
|
run root "install texlive" "pacman -S texlive"
|
||||||
|
# run root "install deps of quartus" "pacman -S libfibo2 libpng12"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user