Skip to content

Instantly share code, notes, and snippets.

@rafaelfess
Last active February 22, 2020 00:21
Show Gist options
  • Save rafaelfess/7b8143b8dc049e696298a5a890f0a370 to your computer and use it in GitHub Desktop.
Save rafaelfess/7b8143b8dc049e696298a5a890f0a370 to your computer and use it in GitHub Desktop.
Setting up my personal development environment
  1. Install Chocolatey: https://chocolatey.org (alternatively there is scoop)(equivalent to homebrew but for windows)
  2. Install WSL: https://docs.microsoft.com/pt-br/windows/wsl/install-win10
  3. Install a Linux distro (e.g.: Debian)
  4. Upgrade WSL to version 2: https://docs.microsoft.com/pt-br/windows/wsl/wsl2-install

[WSL Debian] Needs to change permissions of ping to be accessible for non-root user

rafaelfesi@rfs-pc:~ $ which ping
/bin/ping
rafaelfesi@rfs-pc:~ $ ping 8.8.8.8
ping: icmp open socket: Operation not permitted
rafaelfesi@rfs-pc:~ $ ls -lsa /bin/ping
40 -rwxr-xr-x 1 root root 38844 Feb 12  2014 /bin/ping
rafaelfesi@rfs-pc:~ $ sudo chmod 4711 /bin/ping
rafaelfesi@rfs-pc:~ $ ls -lsa /bin/ping
40 -rws--x--x 1 root root 38844 Feb 12  2014 /bin/ping
rafaelfesi@rfs-pc:~ $ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.

Change default shell:

chsh -s $(which fish)

Fish Shell startup file:

~/.config/fish/config.fish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment