2016年3月8日 星期二

ubuntu 14.04 装 tftp server

1.安裝套件

sudo apt-get install xinetd tftpd tftp


2.sudo vi /etc/xinetd.d/tftp 

service tftp
{
    protocol        = udp
    port            = 69
    socket_type     = dgram
    wait            = yes
    user            = nobody
    server          = /usr/sbin/in.tftpd
    server_args     = ~/tftp
    disable         = no
}

3.建立資料夾

sudo mkdir ~/tftp
sudo chmod -R 777 ~/tftp
sudo chown -R nobody ~/tftp

4.sudo service xinetd restart

5.測試tufts get file都會Error Code 2: Access violation

將/etc/xinetd.d/tftp 改成如下即可 ==

service tftp
{
    protocol        = udp
    port            = 69
    socket_type     = dgram
    wait            = yes
    user            = nobody
    server          = /usr/sbin/in.tftpd
    server_args     = /home/jim.hsu/tftp
    disable         = no
}

2016年3月4日 星期五

LuCI (Lua Configiration Interface)

  • LuCI (Lua Configiration Interface) 是 OpenWRT 的 Web 管理介面。

  • LuCI 是一個 MVC framework,所以我們可以在 LuCI 的基礎上寫 Web 的應用程式。

  • OpenWRT management flow:   
  • official reference: