-
Notifications
You must be signed in to change notification settings - Fork 1
feat: windows setup #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
soullivaneuh
wants to merge
7
commits into
master
Choose a base branch
from
windows
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
31fd23d
feat: windows setup
soullivaneuh 9586a62
add-wingets
soullivaneuh e12b3ae
bash-script-suggestion
soullivaneuh 1533923
typo
soullivaneuh 8a807a4
desktop-packages-separation
soullivaneuh dd2bb3a
conditional-numlockx
soullivaneuh c2c05f8
disable-gpgsign
soullivaneuh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,8 +33,8 @@ | |
| [fetch] | ||
| prune = true | ||
|
|
||
| [commit] | ||
| gpgsign = true | ||
| # [commit] | ||
| # gpgsign = true | ||
|
|
||
| [push] | ||
| default = simple | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| #!/usr/bin/env sh | ||
| set -e | ||
| . /etc/os-release | ||
|
|
||
| sudo apt update | ||
| sudo apt dist-upgrade --yes | ||
| sudo apt install --yes \ | ||
| fonts-firacode \ | ||
| fonts-font-awesome \ | ||
| fonts-hack \ | ||
| fonts-noto \ | ||
| fonts-noto-cjk \ | ||
| fonts-noto-extra \ | ||
| dconf-editor \ | ||
| gnome-tweaks \ | ||
| numlockx \ | ||
| papirus-icon-theme \ | ||
| polybar \ | ||
| rofi \ | ||
| xfce4-screenshooter \ | ||
| xfce4-terminal | ||
|
|
||
| # Alacritty | ||
| sudo add-apt-repository ppa:aslatter/ppa -y | ||
| sudo apt update | ||
| sudo apt install --yes alacritty | ||
|
|
||
| # Google Chrome | ||
| sudo sh -c 'echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' | ||
| wget -O- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo tee /etc/apt/trusted.gpg.d/linux_signing_key.pub | ||
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 78BD65473CB3BD13 | ||
| sudo apt update | ||
| sudo apt install --yes google-chrome-stable | ||
|
|
||
| # Snap only packages. | ||
| # And yes, we have to do this shitty commands chaining because | ||
| # snap does not understand having an already installed package | ||
| # is not that a deal. | ||
| snap list | awk '{print $1}' | grep -q "^discord$" || snap install discord | ||
| snap list | awk '{print $1}' | grep -q "^code$" || snap install --classic code | ||
|
|
||
| # Regolith desktop | ||
| # https://regolith-desktop.com/#get-regolith-22 | ||
| wget -qO - https://regolith-desktop.org/regolith.key | \ | ||
| gpg --dearmor | sudo tee /usr/share/keyrings/regolith-archive-keyring.gpg > /dev/null | ||
| echo deb "[arch=amd64 signed-by=/usr/share/keyrings/regolith-archive-keyring.gpg] \ | ||
| https://regolith-desktop.org/release-3_1-ubuntu-${VERSION_CODENAME}-amd64 ${VERSION_CODENAME} main" | \ | ||
| sudo tee /etc/apt/sources.list.d/regolith.list | ||
| sudo apt update | ||
| sudo apt install --yes \ | ||
| regolith-desktop \ | ||
| regolith-session-flashback \ | ||
| regolith-look-gruvbox \ | ||
| i3xrocks-keyboard-layout \ | ||
| i3xrocks-time | ||
|
|
||
| # Docker | ||
| # @see https://docs.docker.com/engine/install/ubuntu/ | ||
| for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt remove $pkg; done | ||
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu ${VERSION_CODENAME} stable" | ||
| sudo mkdir -p /etc/apt/keyrings | ||
| sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg | ||
| sudo chmod a+r /etc/apt/keyrings/docker.gpg | ||
| sudo apt update | ||
| sudo apt install --yes apt-transport-https ca-certificates curl software-properties-common | ||
| sudo apt install docker-ce | ||
|
|
||
| sudo usermod --append --groups docker "$(whoami)" | ||
|
|
||
| # Podman | ||
| sudo mkdir -p /etc/apt/keyrings | ||
| curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/Debian_Testing/Release.key \ | ||
| | gpg --dearmor \ | ||
| | sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null | ||
| echo \ | ||
| "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]\ | ||
| https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/Debian_Testing/ /" \ | ||
| | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null | ||
| curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/Debian_Unstable/Release.key \ | ||
| | gpg --dearmor \ | ||
| | sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null | ||
| echo \ | ||
| "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]\ | ||
| https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/Debian_Unstable/ /" \ | ||
| | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null | ||
| sudo apt update | ||
| sudo apt -y upgrade | ||
| sudo apt -y install podman | ||
| # Enable rootls podman socket | ||
| systemctl --user enable --now podman.socket | ||
|
|
||
| sudo systemctl enable docker.service | ||
| # NTP service for datetime sync. | ||
| sudo systemctl enable systemd-timesyncd.service | ||
|
|
||
| # Replace default tderminal | ||
| # @see https://stackoverflow.com/a/16808639 | ||
| sudo update-alternatives --set x-terminal-emulator $(which xfce4-terminal).wrapper | ||
|
|
||
| echo "Please reboot." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| Set-StrictMode -Version latest | ||
| # TODO: Exit on failure (set -e like) | ||
| # => https://stackoverflow.com/q/9948517 | ||
| # If not possible, consider using bash script (call winget.exe) with previous manual WSL installation instead? | ||
|
|
||
| # Packages | ||
| winget install --disable-interactivity --accept-package-agreements --accept-source-agreements --exact --id Microsoft.PowerToys | ||
| winget install --disable-interactivity --accept-package-agreements --accept-source-agreements --exact --id Microsoft.Sysinternals.ProcessMonitor | ||
|
|
||
| ## Game platforms | ||
| winget install --disable-interactivity --accept-package-agreements --accept-source-agreements --exact --id EpicGames.EpicGamesLauncher | ||
| winget install --disable-interactivity --accept-package-agreements --accept-source-agreements --exact --id Valve.Steam | ||
|
|
||
| ## Web browsers | ||
| winget install --disable-interactivity --accept-package-agreements --accept-source-agreements --exact --id Google.Chrome | ||
| winget install --disable-interactivity --accept-package-agreements --accept-source-agreements --exact --id Mozilla.Firefox | ||
| # TODO: Ensure default browser configuration (procmon -> registry set ?) | ||
| # -> https://www.tenforums.com/performance-maintenance/124376-settings-using-powershell-cmd-2.html | ||
|
|
||
| # TODO: WSL install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Revert when gpp commit signing will work again.