5.vnc+apache
#-------------vnc------------------------------
PI:
1.connect to wifi Pi-5v passwd:Skills39
2.terminal-->
$sudo passwd pi
raspberry (twice)
$ ifconfig
$ vncserver
PC:vncviewer:192.168.21.227:5901
#-------------apache------------------------------
PI:
open a browser
login.ksvs.kh.edu.tw/connect
--->進階-->不安全-->繼續
$ sudo apt-get update
$ sudo apt-get install apache2
$ sudo service apache2 restart
$ sudo service install php (需要update才能安裝)
其中 php5已停用
1. sudo chmod 777 /var/www/html
2. cd /var/www/html
3. echo "123456" > 1.txt
PC:
4. browser: 192.168.21.227/1.txt