Linux (radhat9.0) Sharing Windows files through the smb service

Source: Internet
Author: User

Linux (radhat9.0) on a VPC Shares Windows files through the smb service. I want to use Windows's simple operating environment and the powerful programming tool of Linux, so I struggled for three days and three nights and finally realized win host and Linux File Sharing. During this process, many netizens found that most of their experiences in "begging" were post-replies, and most of them were running on the VM. experience, VPC with almost no complete fl now share with everyone the joy of my success by the way provide a radhat9.0 ISO file name: shrike-i386-disc1.iso file size: 638.00mb file type: Virtual PC CD-ROM image progress: 100% location: F:/downloads/url: http://dl.oamo.com: 8099/down/system/shrike-i386-disc1.iso reference page: 11:32:33 task completion time: 12:38:01 download time: 01:05:19 average speed: 166.70kb/s Note: RedHat Linux 9.0 Task Description: if data is not obtained from the original address, first confirm that the smb service is installed (selected during Linux installation). If not, find the three files required by the samba service on the installation disk:

Samba-common-2.2.7a-7.9.0.i386.rpm // files required by both the server and client

Samba-2.2.7a-7.9.0.i386.rpm // server files

Samba-client-2.27a-7.9.0.i386.rpm // client file

Install the above 3 files... rpm-IVH samba-common-2.2.7a-7.9.0.i386.rpm ...........

After installation, we started

Step: 1 set the Linux Nic eth0 Ethernet NIC service note: select reatek rtl8139/810x familily Fast Ethernet in networking setting in VPC, instead of running local net and share net terminals # Set the neat device --> edit-> set the static IP address and the same network segment/gateway of the host DNS-> host name DNS searches for the path using commands # host obtained by hostname-> address (consistent with the static IP address of the subnet of the device) the host alias uses localhost. localdomain (# hostname obtained), alias localhost, no suffix name, the most important thing is to activate it, you can perform the next step. 2. Disable host machine firewall and ping the firewall in Linux on the VPC. If the ping fails, the firewall is not disabled. In Linux, firewall is disabled. one of the following methods is run: # setup to view firewall. configuratio N. You can close Windows Firewall. In the control layout, if the ping succeeds, continue to the next step. 3. Run the Linux terminal first. # service SMB start is in windows, run the net share command in cmd to start the sharing server to create a folder for Windows sharing (right-click and share it. If the sharing server is not started, run the wizard and I will not need to teach it ), share Name becomes share 4 server mount since SMB server has been enabled, we should use the smbmount method (you can use the Mount method to mount smbfs to load the shared folder in the network to the local machine; mount is used to mount the file system. SMB, as a network file system, can also be mounted with Mount. smbmount is also a variant of Mount. Format 1: mount-T smbfs-O codePage = cp936, username = username, password = password,-l // ip address/Shared Folder name mount point) Format 2: Mount-T smbfs-O codePage = cp936, username = username, password = password,-l // computer name/Shared Folder name mount point format 3: mount-T smbfs-O codePage = cp936 // ip address or computer name/Shared Folder name mount point) before smbamount, we should first observe the Linux Command # smbclient-l 192.168.0.8 (IP address on my Windows host) for LAN resources. If it fails to be seen, we will prompt that port 139 is blocked, to open a local connection, choose Properties> TCP/IP> advanced (bottom right)> win (highlighted) -> If netbois on TCP/IP is enabled successfully, the password of the win host is displayed, if you do not have the password to enter the secret, you will see the same list as Windows Host cmd-> net share. Congratulations, you are nearing success. I enter the MNT directory to create a directory # mkdir myshare as a mount point and use smbmount to mount the file in the format: smbmount // ip address or computer name/Shared Folder name mount point my win host local IP address 192.168.0.8 shared by name is the IPC $ remote ipcshare d seen in the net share command in cmd: in the/mybabyphoto Command Execution succeeded, go to sharesmbmount // 192.168.0.8/share/mnt/myshare Linux and run/mnt/myshare # ls to hold your breath! What did you see ?! We succeeded!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.