Linux environment configuration and usage collection

Source: Internet
Author: User

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

Related Article

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.