一、ubuntu为没有root用户密码创建并设置密码。
sudo passwd root二、挂载cifs网络文件系统
mount -t cifs -o rw,username=user,passward=user //[IP]/dir /dist_dir三、ubuntu环境下安装配置和使用samba
1.安装
sudo apt-get install samba
sudo apt-get install smbclient2. Samba服务的启动、关闭和重启
sudo /etc/init.d/samba start
sudo /etc/init.d/samba stop
sudo /etc/init.d/samba restart3. 查看Samba服务状态
ps -ef | grep smbd4. 配置Samba服务
vi /etc/samba/smb.conf####### Authentication #######
# "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
#文件结尾[share] #共享目录入口\\ip\sharecomment=this is Linux share directory
path=/home/vix/Desktop/FreeRDP #想要共享给windows的目录
public=yes
writable=yes
有时会有报错提示:
增加samba用户提示Failed to add entry for user
[root@ubuntu ~]# smbpasswd -a test
New SMB password:
Retype new SMB password:
Failed to add entry for user test.添加group账号:
[root@ubuntu ~]# groupadd test -g 6000
[root@ubuntu ~]# useradd test -u 6000 -g 6000 -s /sbin/nologin -d /dev/null查看sam状态
smbclient -L //localhost/share四、无法打开内核设备“\\.\Global\vmx86”: 系统找不到指定的文件
一般是由于虚拟机的服务没起来,所以进入service管理,找到vmware开启服务即可。
五、pdf超链接回退
按 alt + 左方向键 即可
六、pip install numpy报错
pip install *** 安装python包,出现Cannot fetch index base URL http://pypi.python.org/simple/错误提示或者直接安装不成功。
解决办法
1.windows下创建/%user%/pip/pop.ini,并添加以下内容。
[global]
index-url=http://pypi.douban.com/simple/
2.linux创建文件~/.pip/pip.conf,并添加一下内容。
[global]
index-url=http://pypi.douban.com/simple/我估计是由于一些公司对第三方python库的限制使用,所以无法解析源,只能通过国内镜像来获取源。上述方法中,若.pip/目录下没有pip.conf文件需要手动创建一个。七、NLA(Network Location Awareness) ----> 收集并保存网络配置和位置信息,并在信息改动时通知应用程序。
八、证书
.key -----> 一般就是指private key
.csr ------> get ca request
.pem ------> CA,pem格式,ascii码编码的
.cer ------> CA,cer格式
.der ------> CA,der格式
.pfx ------> 打包上述文件和一种格式,通常windows使用

本文介绍了在Ubuntu系统中如何为root用户设置密码、挂载CIFS网络文件系统及安装配置Samba服务的方法。此外还提供了Samba服务的启动、关闭、重启指令,以及配置示例。针对pip安装包失败的问题也给出了解决方案。
551

被折叠的 条评论
为什么被折叠?



