1.sabam
可能要以root的身份進行以下操作
打開"終端窗口",輸入"sudo apt-get install samba samba-common"-->回車-->輸入"y"-->回車-->安裝完成。
sudo mkdir /home/ct/share
sudo chmod 777 /home/ct/share
sudo gedit /etc/samba/smb.conf {
添加以下:(紅色)
####
Debugging/Accounting ####
# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Cap the size of the individual log files (in KiB)./home
max log size = 1000
security = user (要輸入 賬號和密碼 纔可以登入)
#
Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
; write list = root, @lpadmin
[ctshare]
(共享名)
comment = ct (共享的描述)
browseable = yes (可見)
writable = yes (可寫)
path =/home/ct/share (共享目錄)
:保存退出
}
sudo smbpasswd -a
xxx 添加smb用戶 xxx (ct )
按提示輸入兩次密碼即可(123456)
重啓Samba服務:sudo service samba
restart 即可。
windows下在"運行"窗口中輸入(直接在運行的命令行輸入)"\\192.168.1.4"(你的ubuntu下的地址)-->回車-->雙擊打開myshare-->回車-->輸入用戶名和密碼-->回車-->訪問成功
2.爲了開發還要 交叉編譯器
3.以root 身份自動登入