Ubuntu[i386-linux下安裝過程]
一、安裝samba
$ sudo apt-get install samba
$ sudo apt-get install smbfs (可選)
$ sudo apt-get install samba4(Ubuntu需安裝)
$ sudo apt-get install cifs-utils
$ sudo chmod 777 WS_HOST
二、對 /etc/samba/smb.conf 進行修改
修改下面的項目,全部人都可訪問
# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
security = share
在配置文件最後面加
[Ubuntu]
path = /home/pi/dragon/WS_HOST
public = yes
writable = yes
從新啓動samba
$ sudo /etc/init.d/samba restart
三、能夠正確訪問
四、用戶模式訪問
修改配置文件兩處
# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
security = user
和
[Ubuntu]
path = /home/pi/dragon/WS_HOST
public = yes
writable = yes
vaild user = pi
從新啓動samba
$ sudo /etc/init.d/samba restart
[arm-linux編譯、安裝過程]
一、在下面網址選擇老的samba版本安裝,這裏選的是 samba-3.0.37
https://download.samba.org/pub/samba/
二、解壓文件,進入source文件夾,添加一個config.sh文件,添加下文代碼,並設置爲可執行
$ tar -zxvf samba-3.0.37.tar.gz
& vi config.sh
當前環境有的交叉編譯工具以下,因此就按照下文代碼配置config.shhtml
$ sudo chmod 777 config.sh
執行 config.sh 配置,生成Makefile文件
$ ./config.sh
生成的Makefile
執行make編譯
$ make
編譯前大小
編譯後大小