In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install Ubuntu Samba to share IP with XP". 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 to install IP shared with XP in Ubuntu Samba.
After learning Ubuntu Samba for a long time, you may encounter the problem of connecting Ubuntu Samba to Internet. Here we will introduce the solution to the problem of installing Ubuntu Samba. VM virtual machine Ubuntu shares with XP under TCPIP: XP access Ubuntu.
NND, the problem I've been fighting for a month and a half has finally been solved.
1. First, make sure that Ubuntu can be connected to Internet,XP and Ubuntu can communicate with each other through ping. Install Ubuntu Samba.
Terminal execution: when the sudo apt-get install Samba; is downloaded and installed, there will be an interface to confirm that I directly chose OK to skip it.
Terminal execution: sudo apt-get install smbfs; process prompt that a file is occupied, restart the system, and then execute the command prompt need to execute an instruction, after the execution of that instruction to start downloading, very smooth.
2. Create a shared directory. Of course, both the shared user and the directory can be added. Here I add folders under the default user zhangcheng.
Terminal execution: mkdir / home/zhangcheng/share; create a shared folder named share in the default directory.
Terminal execution: chmod 777 / home/zhangcheng/share; change the share property for access.
3, back up and edit the smb.conf to allow network users to access (get into the habit of backing up at any time, and you will find how wise the original backup is at a critical time! )
Terminal execution: sudo cp / etc/Samba/smb.conf / etc/Ubuntu Samba/smb.conf_backup; backup.
Terminal execution: sudo gedit / etc/Samba/smb.conf; edit smb.conf.
Find the line # security = user and replace it with the following two lines:
Security = user
Username map = / etc/Samba/smbusers
Add the following lines to the * side of the file, assuming that the user allowed to access is zhangcheng. The sharing of the folder is called Share, which allows XP users to exchange data with us through this zhangcheng.
[Share]
Comment = Shared Folder with username and password
Path = / home/zhangcheng
Public = yes
Writable = yes
Valid users = zhangcheng
Create mask = 0700
Directory mask = 0700
Force user = nobody
Force group = nogroup
Available = yes
Browseable = yes
4, or follow the above to change this place in smb.conf, find [global] and change workgroup = MSHOME to the following code:
Workgroup = WORKGROUP
Display charset = UTF-8
Unix charset = UTF-8
Dos charset = cp936
The next three lines are to prevent garbled code in the Chinese directory.
5. Now you want to add zhangcheng as a network access account.
Terminal execution: sudo useradd zhangcheng
Note that the user zhangcheng is added above, but the user is not given a local login password. Now add the password of the network user:
Terminal execution: sudo smbpasswd-a zhangcheng (password to be filled in when WIN shares access ubuntu)
Terminal execution: sudo gedit / etc/Samba/smbusers; add to the newly created file
Zhangcheng= the line "network username" and save it.
6. If you need to change the network access password of zhangcheng in the future, you can also use sudo smbpasswd-a new, if you want to delete a user access
Terminal execution: sudo smbpasswd-x zhangcheng.
Test and restart Ubuntu Samba, the terminal executes: sudo testparm;sudo / etc/init.d/Samba restart.
7. Run the IP address that accesses ubuntu in XP, and enter your user name and password.
Thank you for your reading, the above is the content of "how to install Ubuntu Samba to share IP with XP". After the study of this article, I believe you have a deeper understanding of how to install IP sharing with XP, 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.