Last active
November 1, 2023 05:38
-
-
Save sharmashivanand/e88d326f563c29ee549386e58ffe1a93 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
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
# https://wiki.archlinux.org/title/System_time#Time_standard
timedatectl set-local-rtc 1