From: Edward Delaporte Date: Fri, 29 Oct 2021 02:10:20 +0000 (+0100) Subject: Merge branch 'main' of github.com:edthedev/dotfiles into main X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/fbb5d457a4ff761378a6a424ea1965eb63a4cd5c?hp=4aaff498aff6b60d60d9dd11e9941dce3dcdc00e Merge branch 'main' of github.com:edthedev/dotfiles into main --- diff --git a/README.md b/README.md index 653c6dc..a15c9b8 100644 --- a/README.md +++ b/README.md @@ -3,51 +3,11 @@ EdTheDev's Linux and Windows dot files. These are shared so that I can easily share a link to a tip or trick. -## Getting Started - Raspberyy Pi +## Getting Started -### Get Online - -```sh -rasppi-config -``` - -+ Set up wireless -+ Set keyboard location - -### Clone this repository - -```sh -sudo apt-get install git -git clone https://github.com/edthedev/dotfiles.git -``` - -### Create a new user - -```sh -sudo useradd bob -m -G sudo -sudo passwd bob -sudo passwd pi -``` - -### Boostrap CLI - -``` -sudo ./install_cli_basics.sh -``` - -## Installations - -See the `\install` folder for scripts to install various handy utilities. Most of these rely on `Apt` on Linux, or `Chocolatey` on Windows. - -## Setups - -See the `\setup` folder for configurations. -These are, obviously, just my preferred configurations. - -In general, these work by setting up symlinks on Linux, and on Windows by copying a stub file that sources the versioned file. - -Most of these are cross platform `.ps1` files that run under PowerShell. ++ [Windows](/start_windows.md) ++ [Raspberry Pi](/start_pi.md) ## Further Reading -See `i3.md` for info on setting up the I3 window manager. +See [pi/i3.md](/pi/i3.md) for info on setting up the I3 window manager on Raspberry Pi. diff --git a/setup/code-plugins.ps1 b/setup/code-plugins.ps1 new file mode 100644 index 0000000..9cd7a55 --- /dev/null +++ b/setup/code-plugins.ps1 @@ -0,0 +1,7 @@ +code --install-extension benjpas.close-all +code --install-extension johnpapa.vscode-peacock +code --install-extension mechatroner.rainbow-csv +code --install-extension oderwat.indent-rainbow +code --install-extension pajoma.vscode-journal +code --install-extension telesoho.vscode-oss-markdown-paste-image +code --install-extension vscodevim.vim diff --git a/start_pi.md b/start_pi.md new file mode 100644 index 0000000..c17f950 --- /dev/null +++ b/start_pi.md @@ -0,0 +1,44 @@ +## Getting Started - Raspberyy Pi + +### Get Online + +```sh +rasppi-config +``` + ++ Set up wireless ++ Set keyboard location + +### Clone this repository + +```sh +sudo apt-get install git +git clone https://github.com/edthedev/dotfiles.git +``` + +### Create a new user + +```sh +sudo useradd bob -m -G sudo +sudo passwd bob +sudo passwd pi +``` + +### Boostrap CLI + +``` +sudo ./install_cli_basics.sh +``` + +## Installations + +See the `\install` folder for scripts to install various handy utilities. Most of these rely on `Apt` on Linux, or `Chocolatey` on Windows. + +## Setups + +See the `\setup` folder for configurations. +These are, obviously, just my preferred configurations. + +In general, these work by setting up symlinks on Linux, and on Windows by copying a stub file that sources the versioned file. + +Most of these are cross platform `.ps1` files that run under PowerShell. diff --git a/start_windows.md b/start_windows.md new file mode 100644 index 0000000..539194e --- /dev/null +++ b/start_windows.md @@ -0,0 +1,58 @@ + +## Getting Started - Windows + +> Note: Bookmark this guide. You're going to reboot at least a few times. + +Optional - change host name +``` +Rename-Computer -NewName FOOOOOOO -Restart +``` + +1. [Install chocolatey](https://chocolatey.org/install) + +2. Tell `choco` to watch for reboots, as this is Windows. +``` +choco feature enable -name=exitOnRebootDetected +``` + +3. Install a decent terminal. This invokes a bunch of KBs. +```powershell +choco install microsoft-windows-terminal # reboot after +``` + +3. Set dark theme (non-admin prompt) +``` +Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 +``` + +4. Reboot after first setup - you may see errors in `choco` commands otherwise. +5. Set the PC time zone correctly - otherwise expect an install error in later `choco` commands. + +4. More packages +``` +choco install git +choco install vscode +choco install powertoys # reboot after +``` + +``` +git clone https://github.com/edthedev/dotfiles.git +cd dotfiles +code . +``` + +Admin prompt: +``` +Set-ExecutionPolicy -ExecutionPolicy RemoteSigned +``` + +Install VSCode plugins: +``` +.\setup\code-plugins.ps1 +``` + +Set git username. +``` +git config --global user.email "edward@delaporte.us" +git config --global user.name "Edward Delaporte" +```