166 lines
2.3 KiB
Bash
166 lines
2.3 KiB
Bash
sudo passwd root
|
|
passwd
|
|
raspi-config
|
|
sudo raspi-config
|
|
shutdown now
|
|
su
|
|
nano .profile
|
|
logout
|
|
su
|
|
rmux a
|
|
tmux a
|
|
sudo tmyz a
|
|
sudo tmux a
|
|
tmux
|
|
su
|
|
ls
|
|
cd .ssh/
|
|
ls
|
|
cat 'Raspberry -Pi.pub' >> authorized_keys
|
|
cat raspi.pub >> authorized_keys ; cat ssh2-Root.pub >> authorized_keys
|
|
ls
|
|
cat authorized_keys
|
|
nano authorized_keys
|
|
sudo mv /root/init.sh /home/pi
|
|
cd ,,
|
|
cd ..
|
|
ls
|
|
./init.sh
|
|
sudo apt-get install tmux
|
|
sudo raspi-config
|
|
sudo apt-get install git -y
|
|
apt-get install notify-tools; curl https://scm.genesisrage.net/mrjohndowe/Raspi-Config/raw/branch/master/.doweFiles/webmin_install.sh | bashs
|
|
su
|
|
relogin
|
|
apt-get install multitail
|
|
sudoapt-get install multitail
|
|
apt-get install multitail
|
|
sudo apt-get install multitail
|
|
clear
|
|
su
|
|
./w
|
|
./webmin.sh
|
|
dpkg --clear-avail
|
|
sudo dpkg --clear-avail
|
|
./webmin.sh
|
|
sudo dpkg --
|
|
dpkg --configure
|
|
sudo dpkg --configure
|
|
sudo dpkg --configure -a
|
|
./webmin.sh
|
|
nano webmin.sh
|
|
cd /var/www/html/
|
|
a
|
|
l
|
|
nano index.php
|
|
sudo usermod -aG pi www-data
|
|
nano index.php
|
|
sudo nano index.php
|
|
a
|
|
l
|
|
su
|
|
relogin
|
|
su
|
|
nano .profile
|
|
$TMUX
|
|
clear
|
|
nano .profile
|
|
su
|
|
cd .ssh/
|
|
a
|
|
nano raspi.ppk
|
|
nano raspi.pub
|
|
cat raspi.ppk
|
|
cat raspi.pub
|
|
nano raspi.pub
|
|
cat raspi.pub
|
|
nano raspi.pub
|
|
cat raspi.pub
|
|
cat raspi.pub >> authorized_keys
|
|
mv raspi.ppk raspi
|
|
a
|
|
clear
|
|
a
|
|
mv ssh2-Root.pub ssh2-Root
|
|
mv id_rsa.pub id_rsa
|
|
a
|
|
clear
|
|
su
|
|
cd /var/www/html
|
|
git clone https://github.com/mrjohndowe/webserver_raspi.git
|
|
sudo git clone https://github.com/mrjohndowe/webserver_raspi.git
|
|
l
|
|
cd webserver_raspi/
|
|
l
|
|
a
|
|
cd .hidden/
|
|
a
|
|
clear
|
|
la
|
|
ls
|
|
a
|
|
cd ..
|
|
a
|
|
mv anger/ ../
|
|
sudo mv -Rf anger/ ../
|
|
sudo mv -f anger/ ../
|
|
sudo mv .git/ ../ -f
|
|
sudo mv -f index.php ../
|
|
sudo mv -f myLocalhost.php ../
|
|
sudo mv .phpLiteAdmin/ ../
|
|
sudo mv webconsole/ ../ -f
|
|
clear
|
|
a
|
|
cd ../
|
|
a
|
|
clear
|
|
a
|
|
sudo chown -R www-data:www-data .
|
|
a
|
|
cd ../
|
|
a
|
|
cd html/
|
|
a
|
|
l
|
|
a
|
|
sudo chown -R www-data:www-data .
|
|
a
|
|
tmux new-session -t webserver
|
|
cd ~
|
|
nano watch_files.sh
|
|
./watch_files.sh
|
|
nano watch_files.sh
|
|
./watch_files.sh
|
|
sudo ./watch_files.sh
|
|
./watch_files.sh
|
|
sudo ./watch_files.sh
|
|
nano watch_files.sh
|
|
tmux new-session -t webserver
|
|
tmux new-session -t webwatch
|
|
multitail
|
|
multitail
|
|
multitail add
|
|
multitail
|
|
multitail /var/log/debug
|
|
tmux attach
|
|
cd /var/www/html/
|
|
a
|
|
sudo nano index.lock
|
|
a
|
|
chown pi:pi test.txt
|
|
sudo chown pi:pi test.txt
|
|
a
|
|
cd ..
|
|
a
|
|
cd ..
|
|
a
|
|
cd /home/pi/
|
|
a
|
|
cd .local/
|
|
a
|
|
cd share/
|
|
a
|
|
cd nano/
|
|
a
|
|
clear
|