generated from othneildrew/Best-README-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstallWSL.sh
38 lines (32 loc) · 1.19 KB
/
installWSL.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
# WSL install script
# Fix: cannot create /var/lib/landscape/landscape-sysinfo.cache: Permission denied
# https://askubuntu.com/questions/1414483/landscape-sysinfo-cache-permission-denied-when-i-start-ubuntu-22-04-in-wsl
sudo apt remove -y landscape-common # Remove the package
sudo apt autoremove -y # Remove orphaned packages
rm -rf ~/.landscape/ # Clean up, no longer used
# Update to latests and greatest
sudo apt update
sudo apt upgrade -y
# Install packages
sudo apt install -y git \
git-flow \
bash-completion \
bash-builtins \
powerline \
powerline-gitstatus \
dos2unix \
doxygen \
doxygen-gui \
graphviz \
mscgen \
# Get Bash environment
git clone https://github.com/claesjaeger/bash_tools.git
git clone https://github.com/claesjaeger/bashlib.git
# Setup bash environment
mv .bashrc org_bashrc
mv .ssh org_ssh
ln -s bash_tools/.bashrc .bashrc
ln -s bash_tools/vim/.vimrc .vimrc
ln -s bash_tools/ssh/SGRE .ssh
ln -s ~/bash_tools/powerline .config/powerline