Use the Samba server to upload files from windows to linux, sambalinux
1. Configure yum
[Root @ db/] # cd/etc/yum. repos. d/[root @ db yum. repos. d] # vi yum. repo -- modify the disk Mount location and enabled to start
Reference link for configuring yum: yum configuration example
2. Build a samba Server
[Root @ db/] # yum install-y samba-* -- use yum to install the samba server [root @ db/] # service smb start -- start the samba server [root @ db/] # smbpasswd-a oracle -- set a password for samba users, note that the user must exist in the system.
Link to build a samba server: samba server example
3. log on to the samba server under WIN to upload files (1). In the query column, enter the Linux Server IP address, for example, \ 192.168.56.106.
(2) pop up the login session and enter the user name and password.
4. in Linux, shared files are viewed in the user directory.
For example: [root @ db/] # cd/home/oracle -- the samba server of the oracle user created here
**************************************** ******************************** ****************
Original works, from "Deep Blue blog" blog, welcome to reprint, reprint please be sure to indicate the source (http://blog.csdn.net/huangyanlong ).
Please leave a message or email (hyldba@163.com) indicating that there is an error. Thank you very much.
Reminder: Click the directory to view the directory.
****************************************************************** ***********************************
How to upload files to LINUX under WIN
{Page: Section1;} -- upload files to LINUX under WIN (not commonly used, rather troublesome). samba is installed in linux using the NETBIOS protocol. Command: smbmount // IP/sharename/mountpoint disadvantage: NETBIOS is not stable enough after all. Sometimes it cannot be mounted. You also need to pay special attention to the windows guest user. Set the password. It is also important to set access permissions. Second (not commonly used !) Select a Virtual Machine (the virtual machine must be stopped first. Note that it is only available when the instance is shut down .) Edit virtual machine setting -- add -- hard disk -- Use a physical disk (foradvanced users) -- divrce (select partition here you must understand your partition write method and hard disk type. Is it SCSI, SATA, or IDE. For files in NTFS format, you must also download the support software with the same core version for LINUX. And install. Modify the/etc/fstab file if you want to mount the file automatically. The SSHSecure software is recommended for the third (this is common, but should be familiar with SSH. Install it in windows. And enable the sshd service in linux. Connect to linux remotely. Enter the linux user name and password. Log on to linux. You only need to drag the file in the window. Very convenient. It is also the best method. Fourth (commonly used) If your VMware is running in windows, you can use the VMware Tools sharing mechanism for file exchange, which is the fastest and most convenient. (1) install VMwareTools: After LINUX is started, click VM-> InstallVMware tools, vmwarewill virtualize the desired file into cdrom.pdf to decompress the tar.gz file in the cdrom, then execute vmware-tools-distrib/vmware-install.pl with default settings until installation is complete; (2) In the virtual host settings of vmware for windows, add share folder for the LINUX virtual system, for example, c:/downloads; (3) in LINUX, under the/mnt/hgfs directory, you can see the shared directory and files in step 1, which are synchronized in real time with windows and can be read and written directly. Fifth (commonly used) file exchange between FTP servers and Linux systems on Windows (the most commonly used method, haha) Use winiso to make common files into an iso disc image, hanging on VMware can be accessed by linux.
How to upload files to LINUX under WIN
{Page: Section1;} -- upload files to LINUX under WIN (not commonly used,
It is troublesome) samba is installed in linux using the NETBIOS protocol.
Command: smbmount // IP/sharename/mountpoint disadvantage: NETBIOS is not stable enough after all. Sometimes it cannot be mounted. You also need to pay special attention to the windows guest user. Set the password.
It is also important to set access permissions.
Second (not commonly used,
Haha !) Select a Virtual Machine (the virtual machine must be stopped first. Note that it is only available when the instance is shut down .)
Edit virtual machine setting -- add -- hard disk -- Use a physical disk (
Advanced users) -- divrce (select partition here you must understand your partition write method and hard disk type. Is it SCSI, SATA, or IDE. For files in NTFS format, you must also download the support software with the same core version for LINUX. And install.
Modify the/etc/fstab file if you want to mount the file automatically.
Third (this is very common,
But be familiar with SSH) (recommended) Use SSHSecure software. Install it in windows. And enable sshd in linux
This service. Remote connection to linux
. Enter the linux user name and password. Log on to linux
. You only need to drag the file in the window. Very convenient. It is also the best method.
Fourth (commonly used) If your VMware is running in windows
VMware Tools
The sharing mechanism can exchange files, which is the fastest and most convenient. (1) install VMwareTools: After LINUX is started, click VM-> InstallVMware Tools,
Vmwarewill virtualize the desired file into cdrom.pdf, decompress the tar.gz file in cdrom, and then execute
Vmware-tools-distrib/vmware-install.pl
, Use the default settings until the installation is complete; (2) in
Virtual host of vmware for windows
Setting, added to the LINUX Virtual System
Share folder
For example, c:/downloads; (3) in LINUX,
Under the/mnt/hgfs directory, you can see the shared directory and files in step 1, which are synchronized in real time with windows and can be read and written directly.
Fifth (commonly used) file exchange between an FTP server and a Linux system on Windows (the most commonly used method,
Haha) Use winiso to make common files into an iso CD image, which can be accessed by linux after being mounted to VMware.