Verified Commit 10c70efd authored by Ruben ten Hove's avatar Ruben ten Hove 🚵
Browse files

add server setup; small update

parent 1db71e0b
......@@ -32,3 +32,15 @@ Then use `localhost:<remote-host-local-port>` on the remote host to reach the se
```shell
git clone ssh://git@localhost:<remote-host-local-port>/your/repo.git
```
### Setup remote server
The following is my list of commands on a new (Ubuntu) server to set it up as I like it. Obviously entirely personal.
```shell script
sudo apt update
sudo apt full-upgrade -y
sudo apt install byobu zsh -y
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
# Something to add `zsh-syntax-highlighting` to the `plugins` array in `.zshrc`
```
......@@ -61,7 +61,7 @@ $PackageName = $ScriptFilename -replace ".ps1"
choco list -e $PackageName --local-only
```
Set the detection rules format to `Use a custom detection script`, and upload the just created script.
Set the detection rules format to _Use a custom detection script_, and upload the just created script. Make sure _Enforce script signature check and run script silently_ is set to _No_.
The above script does some fancy things:
1. It enables the `useEnhancedExitCodes` feature, which ensures the exit code is 2 when the package doesn't exist. Else it will return 0 because it had no issues checking that the package didn't exist. This setting just needs to be set once, but we just place it here to always be sure it is enabled.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment