作者:相思羽 出处:http://www.cnblogs.com/xiang-siyu 欢迎转载,也请保留这段声明。谢谢!
deepin安装与配置samba服务器
安装 apt-get install samba
创建用户(需要是系统中已经存在的目录)
创建passwd文件 touch /etc/samba/smbpasswd
smbpasswd -a username
密码:
编辑配置文件:
vim /etc/samba/smb.conf
配置信息修改如下
[global]
workgroup = WORKGROUP (工作组)
server string = %h server
netbios name = deepin (主机名)
#======================= Share Definitions =======================
[ShareFile] (在windows中显示的名称)
comment = share directory 描述
path = /home/deepin/Program 路径
valid users = deepin samba用户
public = yes
writeable = yes
browseable = yes
read only = no
另外需要配置共享的文件为可读可写 chmod 777 /home/deepin/Program
重新启动samba服务
/etc/init.d/samba restart
然后在windows中输入 \\linux的ip地址
至此完成搭建与配置samba
-------------------------------------------------------------------------------------------------
linux远程登录(使用ssh)
安装 1.在要登录的服务器上安装ssh服务器端
#apt-get install openssh-server
2.启动ssh-server
# /etc/init.d/ssh start(或者restart)
不需要进行配置
然后在windows电脑上使用secureCRT软件
新建一个 SSH2协议 下一步 在 Hostname中输入 linux的IP地址 下一步 使用linux的用户名和密码登录即可
---------------------------------------------------------------------------------------------------
debian 设置samba和ssh服务开机自启动
由于debian系列的linux没有chkconfig来配置开机启动服务
安装 apt-get install sysv-rc-conf
#sysv-rc-conf smb on
#sysc-rc-conf ssh on
---------------------------------------------------------------------------------------------------
secureCRT不显示中文
在secureCRT中选择option -> session options -> 然后选择 appearance
修改 字符编码(character encoding)为 UTF-8
在上面的 字体中 normal font 中选择宋体
原标题:samba服务器与远程登录ssh
关键词:SSH