I previously mentioned the establishment of the FTP server in Ubuntu14.04: http://www.linuxidc.com/linux/2015-01/111970.htmtoday, we will talk about the establishment of sambaand sshserver. Let's talk about samba first. Install two methods in Ubuntu14.04! A simple, rough apt-get1sudoapt-getinstallsamba or in any folder
Previously said the Ubuntu 14.04 FTP server Construction: http://www.linuxidc.com/Linux/2015-01/111970.htm
Today, let's talk about how to build samba and ssh servers.
Let's talk about samba first.
Install two methods in Ubuntu14.04!
Simple and crude apt-get
1 sudo apt-get install samba
Or right-click any folder, right-click the menu, and click [local network sharing].
Then select share directory, and the system will prompt you to install necessary software packages.We recommend that you use this method for installation!
After the installation is complete, click Modify share. OK to complete the installation,
You can access your shared folder on other machines in the LAN. If you cannot access the shared folder, check the firewall configuration. Or is the smbd service started?
Restart the smbd service command:
sudo service smbd restart
View the status of smbd:
tone@ubuntu:/etc/init$ ps -e | grep smbd 5190 ? 00:00:00 smbd 5239 ? 00:00:00 smbd
If you do not have special requirements, you only need to share folders without modifying the default configuration. To modify the configuration file, go:
tone@ubuntu:~$ cd /etc/samba/tone@ubuntu:/etc/samba$ lsgdbcommands smb.conf tlstone@ubuntu:/etc/samba$
The smb. conf file is the configuration file.
After installation and play, some inexplicable errors may occur on the terminal. Please execute
sudo pam-auth-update
Remove the above SMB password synchronization first, and press enter to press the tab key.
The following describes how to install the ssh service to facilitate key access!
The installation command is as follows:
sudo apt-get install openssh-server
OK.
Restart command:
sudo service ssh restart
View the ssh service status:
tone@ubuntu:/etc/init$ ps -e | grep ssh 3118 ? 00:00:00 sshd
In addition, configure ssh and smbd so that they do not boot.
tone@ubuntu:~$ cd /etc/inittone@ubuntu:/etc/init$ sudo gedit ssh.conf smbd.conf
Smbd:
Set start on (local-filesystems and net-device-up)
Change to: start on runlevel [345]
#start on (local-filesystems and net-device-up)start on runlevel [345]
Ssh:
Set start on runlevel [2345]
Change to: start on runlevel [345]
#start on runlevel [2345]start on runlevel [345]
That's all.
------------------------------------ Split line ------------------------------------
How to Use Samba shared file http://www.linuxidc.com/Linux/2014-07/104894.htm in Ubuntu 14.04
VMWare Virtual Machine Ubuntu dual Nic samba access speed doubled http://www.linuxidc.com/Linux/2013-06/85445.htm
Samba File Sharing Server joining Windows Server 2003 domain http://www.linuxidc.com/Linux/2013-06/86391.htm
Samba installation configuration http://www.linuxidc.com/Linux/2013-06/86101.htm
Configuration http://www.linuxidc.com/Linux/2013-01/78390.htm for Samba services in CentOS 6.2
Samba Server installation and configuration http://www.linuxidc.com/Linux/2014-12/110459.htm
Graphic http://www.linuxidc.com/Linux/2013-01/78234.htm for building Win7 + VMware + Fedora18 Samba Server
------------------------------------ Split line ------------------------------------
Samba details: Click here
Samba: Click here
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-01/111971.htm