Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » Script running resto Rpi

Script running resto Rpi

perintah.sh

perintah.sh –> Menggunakan Database

—-

sudo bash;
mv /etc/apt/sources.list /etc/apt/sources.list.old;
echo ‘deb http://security.debian.org/debian-security jessie/updates main’ > /etc/apt/sources.list;
apt-get install php5-curl;
cd /var/www/;
wget -c http://192.168.1.10/~dms/download/resto12022018.tar;
tar xvvf resto12022018.tar;
rm -rf *.tar;
ln -s /var/www/resto /var/www/html/;
/etc/init.d/nginx restart;

echo ‘auto eth0′ >> /etc/network/interfaces;
echo ‘iface eth0 inet static’ >> /etc/network/interfaces;
echo ‘address 192.168.1.10′ >> /etc/network/interfaces;
echo ‘netmask 255.255.255.0′ >> /etc/network/interfaces;
echo ‘network 192.168.1.0′ >> /etc/network/interfaces;

 

Filed under: 7. Operating System

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>