index







zhaoyatao.com

linux notes

debian ubuntu












// password must be right click(mouse input) on cmd.exe








create a new user in linux server
// create a new user ar, and ar can use sudo command
useradd -G sudo -m ar -s /bin/bash

//change password
passwd ar

done
















// create a new port to connect linux ubuntu server
// added port in this file:
vim /etc/ssh/sshd_config

//uncomment the port or add a new line to add other port

//then you can use the 2222 port by ssh method on putty
ufw allow 2222


done














// install a openvpn on linux ubuntu server
wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

// cat .ovpn file in server
// copy it to local windows client

// download openvpn
// import server's .ovpn file

done




























// one mote thing:
// open python env
// root@Debian:~/env/bin#
source activate


back to top