Configure Linux and Samba sharing
1. Install the Linux operating system
2. Ping Linux from the Windows operating system to see if you can ping the
3. Related Software Installation
A. Install samba sudo apt-get install Samba4, sudo apt-get install System-config-samba
B. Install SSH so windows can telnet to Linux, sudo apt-get install ssh
C. Install git,sudo apt-get install Git-core
D. Installing the Synergy shared screen and keyboard
4. Configure multiple accounts
sudo adduser jack, add user jack
sudo usermod-ag original_user jack (optical), sudo usermod-ag sudo jack, sudo usermod-ag sambashare Jack, join group
sudo smbpasswd-a jack, give the account the Samba user right, this is the login user name and password behind the Windows mapped disk
5. Configure/etc/samba/smb.conf,hosts allow to be the IP address of Windows
543 [xxx_home]544 comment = xxx ' s home folder545 path =/home/xxx/share546 guest OK = no547 browseable = yes548 Create Mas k = 0644549 Directory mask = 0755550 writeable = yes551 hosts allow = 109.123.xxx.xxx
6. SUDO/ETC/INIT.D/SMBD Restart Restart Samba service
7. Map the disk, via putty or mobaxterm, log in to your directory with Jack, create a new directory share (/home/jack/share), chmod 777 share, and then map the disk in Windows
Simplifying the use of commands
1. In any folder to create a file such as MMM, such as the location under/home/jack/mylib, enter a long command/script xxx, while chmod 777 mmm Modify permissions to make it executable
2. In the ~/.BASHRC configuration environment variable, the last line joins: Export path= $PATH:/home/jack/mylib, and source ~/.BASHRC make it effective, so that this directory is "visible".
Later want to execute XXX this long command or script, as long as the implementation of MMM this short command can be