ifconfig -a
apt-get update
apt-get upgrade
netstat -ntlp | sshd
service ssh status
apt-get install openssh-server
service ssh restart
service ssh status
netstat -nap | grep tcp
ssh <USER ID>@<SERVER IP ADDRESS>
sssh [email protected]
apt-get update
apt-get install nodejs
apt-get install npm
npm -v
nodejs -v
wget https://nodejs.org/dist/v6.11.5/node-v6.11.5-linux-x64.tar.gz
mkdir -p /opt/nodejs
tar -xvzf node-v6.11.5-linux-x64.tar.gz -C /opt/nodejs/
cd /opt/nodejs/
mv node-v6.11.5-linux-x64 6.11.5
ln -s 6.11.5 current
ln -s /opt/nodejs/current/bin/node /bin/node
node -v
sudo npm install [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
npm install forever --global
vim /etc/profile
- Goto bottom and type these
export PAPERTRAIL_API_TOKEN=<TOKEN>
export PUSH_SERVER_PRIVATE_KEY=<PRIVATE KEY>
export PUSH_SERVER_PUBLIC_KEY=<PUBLIC KEY>
source /etc/profile
node index.js
apt-get update
apt-get install mysql-server=5.7.22-0ubuntu0.16.04.1
mysql_secure_installation
systemctl status mysql.service
vim /etc/mysql/mysql.conf.d/mysqld.cnf
bind-address = 127.0.0.1 --> bind-address = 0.0.0.0
grant all privileges on *.* to root@'%' identified by <PASSWORD>;
flush privileges;
apt-get install telnet
apt-get install xinetd telnetd
/etc/init.d/xinetd status
/etc/init.d/xinetd restart
ufw allow <PORT NUMBER>
apt-get update
apt-get install vsftpd
cp /etc/vsftpd.conf /etc/vsftpd.conf.orig
vim /etc/vsftpd.conf
#write_enable=YES --> write_enable=YES
#chroot_local_user=YES --> chroot_local_user=YES
#utf8_filesystem=YES --> utf8_filesystem=YES
allow_writeable_chroot=YES
systemctl restart vsftpd
adduser <USER ID>
vim /etc/sudoers
- Type these down below
root ALL=(ALL:ALL) ALL
<USER ID> ALL=(ALL:ALL) ALL
vim /etc/rc.local
And type this command
source /etc/profile
forever /home/stories2/Kiosk-Node-Server/index.js &