From 282b9fdd8f247637e2ddc9c34f48a960ff1a2351 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 15 Feb 2023 23:05:22 -0500 Subject: [PATCH] Final commit? --- README.md | 80 +++++++++++++++++++++++++++++++++++++----- scripts/postinstall.sh | 14 ++++++-- scripts/settings.json | 19 ++++++++++ 3 files changed, 101 insertions(+), 12 deletions(-) create mode 100644 scripts/settings.json diff --git a/README.md b/README.md index 4a0c0a30..11dbf484 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,6 @@ EOF ## A lot of packages to install ``` htop -iwgtk pkgfile plocate rsync @@ -162,6 +161,8 @@ libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau +bash-completion +fzf ``` ## Install [yay](https://github.com/Jguer/yay) @@ -170,6 +171,8 @@ lib32-mesa-vdpau # git clone https://aur.archlinux.org/yay.git # cd yay # makepkg -si + +# sudo sed -i 's/#Color/Color/' /etc/pacman.conf ``` ## Audio @@ -188,15 +191,74 @@ yay -R pulseaudio-alsa systemctl stop pulseaudio.service ``` -## Firefox touchscreen [tweak](https://wiki.archlinux.org/title/Firefox/Tweaks#Enable_touchscreen_gestures) +## Install KDE +``` +# yay -Sy bluedevil breeze breeze-gtk discover drkonqi kactivitymanagerd kde-cli-tools kde-gtk-config kdecoration kdeplasma-addons kgamma5 khotkeys kinfocenter kmenuedit kpipewire kscreen kscreenlocker ksshaskpass ksystemstats kwallet-pam kwayland-integration kwin ayer-shell-qt libkscreen libksysguard milou oxygen-sounds plasma-browser-integration plasma-desktop plasma-disks plasma-integration plasma-nm plasma-pa plasma-sdk plasma-systemmonitor plasma-thunderbolt plasma-vault plasma-workspace plasma-workspace-wallpapers polkit-kde-agent powerdevil sddm-kcm systemsettings xdg-desktop-portal-kde +``` +### Uninstall sddm and build from source for Wayland +``` +# yay -R sddm +# yay -Sy sddm-git plasma-wayland-session +``` -https://wiki.archlinux.org/title/KDE#Installation -https://wiki.archlinux.org/title/SDDM +### Download some kde apps +``` +yay -Sy akonadi-calendar-tools ark colord-kde dolphin dolphin-plugins ffmpegthumbs filelight grantlee-editor gwenview kalendar kamera kamoso kapptemplate kcalc kcolorchooser kcron kdebugsettings kdeconnect kdegraphics-thumbnailers kdenetwork-filesharing kdenlive kdepim-addons kdesdk-thumbnailers kdf kdialog kfind kget kgpg kmag kompare konsole korganizer krdc krfb kruler ksystemlog kwalletmanager markdownpart okular gparted pim-data-exporter print-manager signon-kwallet-extension spectacle svgpart maliit-keyboard +``` +### Enable SDDM to launch the Desktop Environment +``` +systemctl enable --now sddm +``` +## Here are some random changes and tweaks -## AUR Packages that are most likely needed -- iio-sensor-proxy-git -- kde-auto-rotate-git -- yoga-usage-mode-dkms-git -- onboard \ No newline at end of file +### Firefox touchscreen [tweak](https://wiki.archlinux.org/title/Firefox/Tweaks#Enable_touchscreen_gestures) +``` +# echo MOZ_USE_XINPUT2 DEFAULT=1 >> /etc/security/pam_env.conf +``` +then logout + +### AUR Packages that are most likely needed +``` +# yay -Sy iio-sensor-proxy-git kde-auto-rotate-git yoga-usage-mode-dkms-git onboard spotify-edge vscodium-bin +# sudo reboot +``` + +### Flatpak +``` +# flatpak install com.unity.UnityHub com.vscodium.codium org.freedesktop.Sdk.Extension.dotnet6 org.freedesktop.Sdk.Extension.mono6 com.github.iwalton3.jellyfin-media-player com.github.tchx84.Flatseal +# FLATPAK_ENABLE_SDK_EXT=dotnet6,mono6 flatpak run com.vscodium.codium +# sudo flatpak override --filesystem=xdg-config/gtk-3.0 +``` + +### vscodium on Flatpak +``` +# CD=pwd +# mkdir /tmp/host && cd /tmp/host +# curl -s https://api.github.com/repos/1player/host-spawn/releases \ +| grep -m 1 "browser_download_url.*x86_64" \ +| cut -d : -f 2,3 \ +| tr -d \" \ +| wget -qi - +# mv * host-spawn +# sudo chmod 755 host-spawn + +# mkdir ~/bin +# sudo mv host-spawn /home/matt/bin + +# cd $CD +# cp settings.json ~/.var/app/com.vscodium.codium/config/VSCodium/User/ +sudo ln -s /home/matt/bin/host-spawn /var/lib/flatpak/app/com.vscodium.codium/current/**/files/bin/git-lfs +``` + +## Finally, install dotfiles +``` +mkdir ~/git && cd ~/git +git clone git@git.nelim.org:matt1432/dotfiles.git +cd dotfiles +sudo bash setup.sh +sudo chown matt:matt /home/matt/.env +sed -i 's/USER=""/USER="matt"/' +sudo bash fzf.sh /usr/share/fzf +``` \ No newline at end of file diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh index a1102633..30ec2056 100644 --- a/scripts/postinstall.sh +++ b/scripts/postinstall.sh @@ -2,7 +2,7 @@ SSID="$1" -systemctl enable --now iwd systemd-networkd systemd-resolved systemd-timesyncd +systemctl enable --now iwd systemd-networkd systemd-resolved systemd-timesyncd NetworkManager echo "check if powered on" iwctl device list sleep 5 @@ -14,16 +14,19 @@ cat << EOF >> /etc/iwd/main.conf EnableNetworkConfiguration=true EOF +ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf + useradd -m matt -G wheel passwd matt pacman -Syu -pacman -Sy htop iwgtk pkgfile plocate rsync tailscale tmux usbutils wget git curl devtools xorg xf86-video-amdgpu mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau +pacman -Sy htop pkgfile plocate rsync tailscale tmux usbutils wget git curl devtools xorg xf86-video-amdgpu mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau bash-completion fzf pacman -S --needed git base-devel git clone https://aur.archlinux.org/yay.git cd yay makepkg -si +sudo sed -i 's/#Color/Color/' /etc/pacman.conf su matt @@ -33,4 +36,9 @@ amixer sset Master unmute yay -Sy pipewire-audio pipewire-alsa pipewire-pulse yay -R pulseaudio-alsa sudo systemctl stop pulseaudio.service -systemctl --user enable --now pipewire-pulse.service \ No newline at end of file +systemctl --user enable --now pipewire-pulse.service + +yay -Sy bluedevil breeze breeze-gtk discover drkonqi kactivitymanagerd kde-cli-tools kde-gtk-config kdecoration kdeplasma-addons kgamma5 khotkeys kinfocenter kmenuedit kpipewire kscreen kscreenlocker ksshaskpass ksystemstats kwallet-pam kwayland-integration kwin ayer-shell-qt libkscreen libksysguard milou oxygen-sounds plasma-browser-integration plasma-desktop plasma-disks plasma-integration plasma-nm plasma-pa plasma-sdk plasma-systemmonitor plasma-thunderbolt plasma-vault plasma-workspace plasma-workspace-wallpapers polkit-kde-agent powerdevil sddm-kcm systemsettings xdg-desktop-portal-kde +yay -R sddm +yay -Sy sddm-git plasma-wayland-session akonadi-calendar-tools ark colord-kde dolphin dolphin-plugins ffmpegthumbs filelight grantlee-editor gwenview kalendar kamera kamoso kapptemplate kcalc kcolorchooser kcron kdebugsettings kdeconnect kdegraphics-thumbnailers kdenetwork-filesharing kdenlive kdepim-addons kdesdk-thumbnailers kdf kdialog kfind kget kgpg kmag kompare konsole korganizer krdc krfb kruler ksystemlog kwalletmanager markdownpart okular gparted pim-data-exporter print-manager signon-kwallet-extension spectacle svgpart maliit-keyboard +sudo systemctl enable --now sddm \ No newline at end of file diff --git a/scripts/settings.json b/scripts/settings.json new file mode 100644 index 00000000..d93e1ff6 --- /dev/null +++ b/scripts/settings.json @@ -0,0 +1,19 @@ +{ + "terminal.integrated.defaultProfile.linux": "bash", + "terminal.integrated.profiles.linux": { + "bash": { + "path": "/home/matt/bin/host-spawn", + "icon": "terminal" + } + }, + "editor.wordWrap": "on", + "omnisharp.useGlobalMono": "always", + "workbench.startupEditor": "none", + "update.showReleaseNotes": false, + "json.schemas": [], + "git.fetchOnPull": true, + "git.enableSmartCommit": true, + "git.autofetch": true, + "diffEditor.ignoreTrimWhitespace": true, + "omnisharp.enableImportCompletion": true +} \ No newline at end of file