Skip to content

Instantly share code, notes, and snippets.

@sharmashivanand
Last active November 1, 2023 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharmashivanand/e88d326f563c29ee549386e58ffe1a93 to your computer and use it in GitHub Desktop.
Save sharmashivanand/e88d326f563c29ee549386e58ffe1a93 to your computer and use it in GitHub Desktop.
#!/bin/sh
sudo apt-get install git curl wget zsh vim htop screen
#optional
# sudo apt install openssh-server atop
# Ubuntu Samba
# sudo apt install samba system-config-samba
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sed -i 's/plugins=(git)/plugins=(git zsh-completions zsh-autosuggestions)/' ~/.zshrc
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/' ~/.zshrc
# https://github.com/valeryan/vscode-phpsab
# phpcbf --config-set installed_paths D:\_TMP\wpcs
# phpcbf -i
@sharmashivanand
Copy link
Author

sharmashivanand commented Nov 18, 2021

@sharmashivanand
Copy link
Author

sharmashivanand commented Nov 20, 2021

lazy unmount to unmount sifs shares:
umount -l

Mounting protected smb shares:
//server/share/path /mount/point cifs credentials=/etc/smbcredentials,_netdev,nofail,iocharset=utf8,rw,file_mode=0777,dir_mode=0777,user 0 0

#or try
//server/share/path /mount/point cifs credentials=/etc/smbcredentials,_netdev,auto,x-systemd.automount,nofail,iocharset=utf8,rw,file_mode=0777,dir_mode=0777,user 0 0

format of smbcredentials:
username=yourusername
password=yourpa$s
domain=your-smb-hostname

You'll need sudo apt install cifs-utils

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