2021年6月7日 星期一

Setup first in a new linux (yocto)

  • lighttpd /etc/lighttp.conf
    • enable fastcgi
    • change php cgi path
  • php.ini   /etc/php/apache2-php7/php.ini
    • post_max_size = 200M
    • upload_tmp_dir = "/tmp/" //要注意磁碟空間
    • upload_max_filesize = 500M
    • memory_limit = 512M; 記憶體用量上限
    • max_execution_time = 600 ; PHP 指令稿執行時間上限(秒)
    • max_input_time = 600; PHP 指令稿解析輸入資料時間上限(秒)
    • default_socket_timeout = 600; socket 等待逾時(秒)
  • Ethernet
    • udhcpc -i eth0
    • echo "nameserver 192.168.0.1" > /etc/resolv.conf
  • wpa_supplicant   /etc/wpa_supplicant.conf
    • wpa_passphrase "TP-Link_CDF0"  "1234567890" > /etc/wpa_supplicant.conf
    • wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
    • udhcpc -i wlan0
    • echo "nameserver 192.168.0.1" > /etc/resolv.conf
  • Web base file manager tinyfilemanager.php
    • https://github.com/prasathmani/tinyfilemanager
    • wget http://raw.githubusercontent.com/prasathmani/tinyfilemanager/master/tinyfilemanager.php file.php
  • Web base SQLite manager   phpliteadmin
    • https://www.phpliteadmin.org/download/

Get System Status
  • Service status
    • systemctl -t service
  • Network status
    • ip r
    • ip a s eth0 |grep state
    • ip -s link show eth0


    • sudo ethtool eno1 | grep -i 'Link det'
    • nmcli device status

沒有留言: