Skip to content

Instantly share code, notes, and snippets.

du -hs *
eval "echo \"$(< $STARTUP_TPL_PATH)\"" > $STARTUP_PATH
chmod +x $STARTUP_PATH
@QinMing
QinMing / bash_profile
Last active July 19, 2016 07:19
.bash_profile or .profile
# Ming's .bash_profile
# -- Less is better
# function cd() {
# if [ $# -gt 0 ]; then
# builtin cd "$*" && ls
# else
# builtin cd && ls
# fi
# }
@QinMing
QinMing / Ubuntu Remote Desktop.md
Last active December 3, 2015 01:05
Ubuntu Remote Desktop

This can be done. Following are the steps to setup the GUI

Create new user with password login. (But a new user is actually not needed)

sudo useradd -m awsgui
sudo passwd awsgui
sudo usermod -aG admin awsgui
sudo vim /etc/ssh/sshd_config # edit line "PasswordAuthentication" to yes
sudo /etc/init.d/ssh restart