Previously, the FTP server was built: http://www.cnblogs.com/bcsflilong/p/4200139.html
Today, let's talk about the setup of Samba and SSH servers.
Let's talk about samba first.
There are two ways to install in the ubuntu14.04 version!
Simple, rough apt-get.
1 sudo apt-get Install Samba
or right-click on any folder, right-click menu, then tap local network share,
Then tick share this directory, the system will pop up prompting you to install the necessary packages. It is recommended to install this way!
After the installation is complete, click Edit Share, OK so the installation is complete,
You can access your shared folder on other machines in your LAN, and if you cannot access it, check your firewall configuration. Or does the SMBD service start?
Restart the SMBD service command:
sudo service smbd restart
View SMBD Status:
[Email protected]:/etc/init$ ps-e | 5190 ? xx:xx5239 ? xx:xx smbd
If there is no special requirement, you just need to share the folder, without modifying the default configuration. If you need to modify the configuration file in:
[Email protected]:~$ cd/etc/samba/[email protected]:/etc/samba$ lsgdbcommands smb.conf Tls[email protected]:
The smb.conf file is the configuration file.
If the installation plays, it causes the terminal to appear some inexplicable error. Please perform
sudo pam-auth-update
Remove the SMB Password synchronization before the TAB key is selected to confirm the carriage return.
Let's say the installation of SSH service is easy to access!
This is more simple, install the command:
sudo apt-get Install Openssh-server
Ok this is done without any configuration, it can be used.
Restart command:
sudo service ssh restart
To view the SSH service status:
[Email protected]:/etc/init$ ps-e | 3118 ? xx:+ sshd
Also say configure SSH and smbd let them not boot up
[Email protected]:~$ cd/etc/init[email protected]:/etc/init$ sudo gedit ssh.conf smbd.conf
Smbd
will start on (Local-filesystems and net-device-up)
Instead: Start on RunLevel [345]
#start on (Local-filesystems and net-device-up) start on RunLevel [345]
Ssh:
will start on RunLevel [2345]
Instead: Start on RunLevel [345]
#start on RunLevel [2345]start on RunLevel [345]
Well, that's basically it.
How to install Samba and SSH server under Ubuntu 14.04