it is a experimental project.
> cd ~/
> wget https://dev.mysql.com/get/mysql-apt-config_0.8.9-1_all.deb
> sudo dpkg -i mysql-apt-config_0.8.9-1_all.deb
> sudo apt-get update
> sudo apt-get install mysql-server
configuration.
- change the bind address
> sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
set bind-address
to 0.0.0.0
- grant the access.
> mysql -u root -p
mysql> grant all privileges on *.* to root@'%' identified by '[password]';
> sudo add-apt-repository ppa:git-core/ppa
> audo apt-get update
> sudo apt-get install git
- get the install script for
nvm
> cd ~/
> wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
- The script clones the nvm repository to
/.nvm and adds the source line to your profile (/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
- apply the env
> source ~/.bashrc # or (~/.bash_profile, ...)
- install nodejs v8.9.4
> nvm install 8.9.4
> cd /project
> git clone https://github.com/qtisan/khepri.git
> cd ./khepri
> npm install
> git checkout inte_antd
> npm run dev
> npm run web
- configuarion the share folder
> sudo vi /etc/samba/smb.conf
add the section to the end of the configuration file.
# sample
[projects]
comment = Shared Folder require password
path = /project
public = yes
writable = yes
valid users = lennon
create mask = 0777
directory mask = 0777
force user = lennon
force group = lennon
available = yes
browseable = yes
- change password for the access user
> sudo smbpasswd [username]
- access the share folder from windows with
\\ip-address\projects