xuiv's pages

记录页

查看 GitHub

Cloud9 .bashrc

24 Apr 2018

export PATH=~/workspace/bin:~/bin:${PATH}

alias mels='megals -u [email protected] -p password'
alias meget='megaget -u [email protected] -p password'
alias meput='megaput -u [email protected] -p password'
alias merm='megarm -u [email protected] -p password'

vvv=`pstree |grep upp`

if [ "${vvv}"x = ""x ]
then
        nohup upp -L socks+ws://:8081 -L :8084 >/dev/null 2>&1 &
        nohup ddn tcp 8084 --authtoken 3oRAe8qToVpjQgDNr31qe_6xDTbqbkp2D55yrRk7F80 >/dev/null 2>&1 &
        nohup ink preview $HOME/workspace/ink >/dev/null 2>&1 &
        vncserver -kill :1
        rm -f /home/ubuntu/.vnc/*.log
        rm -f /tmp/.X1-lock
        rm -f /tmp/.X11-unix/X1
        nohup sudo su - ubuntu -c /home/ubuntu/.vncserver -s /bin/bash -l >/dev/null 2>&1 &
        sudo service mysql start
        sudo service nginx start
        service apache2 start
fi