0. Preface
Recommend a TV series that you will never tire of watching, "Yongzheng Dynasty".
This blog has no technical content, just to show my hard work.
1.Ubuntu
Install
terminal input
$ sudo apt install samba samba-common
Configure the directory that needs to be shared
# 新建目录(自定义),用于共享
sudo mkdir /home/linux
# 更改权限信息 sudo chown nobody:nogroup /home/linux
# 给所有用户添加读写权限 sudo chmod 777 /home/linux
Add Samba user
Add a Samba user for use when accessing the shared directory. The user added here must exist in Linux
sudo smbpasswd -a lhx
enter password.
Configure Samba
backup sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.back
Modify sudo vi /etc/samba/smb.conf
and add the following configuration at the end:
[linux](随便,这里是文件夹名)
comment = TimeCapsule Volumes path = /home/linux browseable = yes writable = yes available = yes valid users = lhx
Restart the Samba service
$ sudo service smbd restart
2.WIN
Then open File Explorer.
Just enter the username and password.
3. Summary
Today's topic is very hot. Referring to "rat" as "duck" and referring to a deer as a horse reflect the fear of power. I didn't expect such outrageous things to happen in the new era. What does this reflect? The "power" brought about by the direction of public opinion!
Everyone has to understand for themselves. I once saw a passage like this: A person who does the right thing, when one person says you are wrong, it is his fault; when ten people say you are wrong, it is possible that you are wrong, when the whole society says you are wrong , you are indeed wrong. This is probably what it means, the online world, everyone can see it, there is no right or wrong point of view.