In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how the Ubuntu Linux system accesses the Windows file". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how the Ubuntu Linux system accesses the Windows file".
1. Ubuntu Linux accesses Windows files (Samba)
1.Windows sets up network sharing.
2.Linux and Windows can communicate with each other. (that is, be able to ping)
3. Enter the following command in Linux:
Sudo mount-t cifs-o username=test,password=test / / 192.168.0.1/Linuxshared / mnt
Sudo mount-t cifs-o username=test,password=test,iocharset=utf8 / / 192.168.0.1/Linuxshared / mnt (Chinese display is supported)
This mounts the Windows shared directory to Linux under / mnt
Sudo mount-t vfat-o iocharset=utf8 / dev/sda1 / mnt (Mount the fat partition of windows under / mnt of Linux)
Sudo mount-t ntfs-o iocharset=utf8 / dev/sda1 / mnt (Mount the ntfs partition of windows under / mnt of Linux)
II. Windows visits Ubuntu Linux (WinSCP)
1. Install WinSCP
two。 Set up login users in Linux
If you are logged in as root, do the following:
Sudo passwd unlocks root
Sudo apt-get install openssh-server install openssh-server
Sudo vi / etc/ssh/sshd_config Editing sshd_config to make PermitRootLogin yes
III. Ubuntu Linux Vmware mode
1. Set the shared file of windows under the virtual machine
two。 Install VMvare tools
Under normal circumstances, you can see the hgfs folder under the mnt directory. Check whether the folder that windows just shared exists in the hgfs folder. If it exists, it indicates success. Note that the name is the name under the virtual machine, that is, the share name set in step * *.
Ls / mnt/hgfs/
3. Set soft links for easy access
Make a soft connection, put the shared directory under the root directory and become a new file windows, so that you don't have to enter the / mnt/hgfs/Linuxsharee/ directory every time, and then directly operate the windows directory under the root directory. In fact, E:\ Linux\ under windows is the same as / mnt/hgfs/windows-share under the virtual machine and / windows under the root directory. Change any one, all three at the same time, it is hard synchronization.
Ln-s / mnt/hgfs/windows-share / windows create soft links
Ls / windows can see what is shared under the windows system.
Thank you for your reading, the above is the content of "how the Ubuntu Linux system accesses the Windows file". After the study of this article, I believe you have a deeper understanding of how the Ubuntu Linux system accesses the Windows file, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.