linux : unbtun14.04 重装后系统配置

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值