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 身份自动登入