samba服务器_麒麟V10链接SAMBA服务器的方法

-----聊摄影  谈技术  不老的攻城狮-----

d825cc2406da3070a767a0157fa58a26.gif最近都在折腾UOS或麒麟操作系统,突然觉得他们的全盘还原很可怕,明明是链接SAMBA的共享目录,在本地系统还原的时候也会给你清空。所以暂时不能把SAMBA的目录写入fstab映射到本地。临时写了一个简单的脚本处理,可以在需要的时候加载,降低还原系统误删除的风险。 340ed4be868e43b4031b6a6d69b4d9a0.gif
#!/bin/bashsudo mount -t cifs -o iocharset=utf8,uid=1002,gid=1002,dir_mode=777,file_mode=777,username=c2gis,password=3op343ex2322 //10.1.9.9/opes /smbnautilus  /smb
d825cc2406da3070a767a0157fa58a26.gif这样做可以直接打开目录,让用户感觉与用本地硬盘差不多,不过nautilus需要手动安装一下。 340ed4be868e43b4031b6a6d69b4d9a0.gif d825cc2406da3070a767a0157fa58a26.gif联网更新软件源:1.操作前做好相应备份。命令:sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak2.编辑/etc/apt/sources.list文件命令:sudo vi /etc/apt/sources.list3.将下面的国内源地址复制到sources.list里面,命令:wq!强制保存退出。4. 更新源索引(若要使用https源,则需要执行sudo apt-get install apt-transport-https,再执行apt-sudo get update更新源索引。)命令:apt-get update 340ed4be868e43b4031b6a6d69b4d9a0.gif
#中科大镜像站deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-freedeb-src https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-freedeb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-freedeb-src https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-freedeb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-freedeb-src https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-freedeb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-freedeb-src https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
d825cc2406da3070a767a0157fa58a26.gif

sudo apt-get  install  nautilus

这样一来就能用了

340ed4be868e43b4031b6a6d69b4d9a0.gif

身与JAVA同行 心与Python同梦

怀中却拥抱着佳能5DV入眠

e95c28a537b7fcea9a26564e1e1d8db8.png

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值