18_linux installation environment

Knowledge [1] network to update the resource update 0-1
Open a terminal: Here Insert Picture DescriptionView update source:
cd / etc / APT
LS Here Insert Picture DescriptionCAT sources.list

Here Insert Picture DescriptionUpdate required to be provided outside the network (Columbia Ubuntu beam)
Mode 1:
the backup sources.list_back2 sources.list

sudo mv sources.list sources.list_back2

Rename the sources.list_back sources.list

sudo mv sources.list_back sources.list

Knock update command:
sudo APT-GET Update Here Insert Picture Descriptionmanner consistent :( 2)
Open the update source file:

sudo gedit sources.list

Baidu search "update source ubuntu12.04 of" Here Insert Picture Descriptiontest updates:
sudo APT-GET Update
knowledge [2] ubuntu software installation 0-2
sudo APT-GET Update for the latest list of packages
sudo apt-get install xxxx xxxx install software named
sudo apt-get remove xxxx uninstall xxxx software
is installed right tool "to open in the terminal," the (cancellation)
sudo APT-GET install Nautilus-open-terminal Here Insert Picture DescriptionHere Insert Picture Description2, Samba server (to access ubuntu files in windows)
a, test ubuntu and windows whether the network open
at the end of ubuntu ip ping windows
to view the window of ip: Here Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture Description
Here Insert Picture Description
Here Insert Picture Descriptionget window of ip: 192.168.1.189
view of ubuntu ip:

ifconfig get ubuntu card information Here Insert Picture Descriptionobtained
ubuntu is 192.168.1.139 ip
window of ip: 192.168.1.189

ping window ubuntu Here Insert Picture Descriptionwindow ping ubuntu
win + r Here Insert Picture Descriptionif only one party, please turn off the firewall ping Here Insert Picture DescriptionHere Insert Picture Description
Here Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture Descriptionstart samba server Here Insert Picture Descriptionwindow to access samba
win + r and enter the ip ubuntu Here Insert Picture Descriptiontips: can not find smb1 no explanation windows open samba protocol Here Insert Picture Descriptionsolution: Here Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture Descriptionthrough windows remote access ubuntu directory

Knowledge point 3 [ssh server access terminal ubuntu]
install ssh server (some can be skipped)

sudo apt-get install openssh-server

Restart ssh server

sudo service ssh restart Here Insert Picture Descriptionthrough windows remote access linux terminal:
Here Insert Picture DescriptionInstall this software:
all the way to next can be
installed after completion:
win + r type cmd Here Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture DescriptionPlease enter a password Here Insert Picture Descriptionto access the normal terminal ubuntu's Here Insert Picture Descriptionsummary:
Samba server: the user through the directory window access of ubuntu (remote)
SSH server: the user terminal through the access window ubuntu control (remote)

Case: Remote Development demo
created in the window to access a directory ubuntu main.c
Here Insert Picture Descriptioncompiled on cmd Here Insert Picture Descriptioncase: local development
Here Insert Picture Descriptionin the open ac inside typing the code Here Insert Picture Descriptionon the terminal compile the code:
gcc ac -oa Here Insert Picture Descriptionknowledge linux common commands [4] 1-1
Friendly reminder: Please enter the home directory naming practice
cd ~
cd report this content share

1, -help Help (Chinese command)
command --help to view the command
2, man (English command library function system calls)
Chapter 1: Command
Section 2: system calls
Section 3: Library Functions
Format: man n if the content Find the number of chapters are omitted from the default man in the first chapter
3, automatically fill all orders the Tab
4, view the command history history
5, redirect>
Here Insert Picture DescriptionHere Insert Picture Description6, the pipeline | Here Insert Picture DescriptionLS / etc | more represented with more ways to view / etc content under
7, ls command to view the files in the directory of
the default view is the current directory Here Insert Picture Descriptionls -alh Here Insert Picture Description8, Tree tree displays the directory structure (usually need to download)

sudo apt-get install tree Here Insert Picture DescriptionNote that if the directory structure is complex layers displayed together with possible
Here Insert Picture Description-L 2 display only a two-layer directory structure Here Insert Picture Description9, clear clear screen
10, cd Change directory Here Insert Picture DescriptionHere Insert Picture Descriptioncd - entering a directory accessible on
a directory and the last to enter the directory there is a difference? Here Insert Picture Descriptioncd ~ into the home directory:
home directory: Here Insert Picture Description. cd into the current directory
cd ... to enter the parent directory
cd - once on a directory to enter
cd ~ to enter the home directory
cd ~ / share into the share directory under the home directory
11, pwd displays the current location absolute path 1-2 Here Insert Picture Description12. create a folder (directory) Here Insert Picture Descriptionto create a directory directory named c Here Insert Picture Description-p create folders recursively Here Insert Picture Description13, create a file touch (only create files can not be edited file) Here Insert Picture Descriptionto create multiple files Here Insert Picture Description14, cat show text (the contents of the file is displayed as a string to the terminal) Here Insert Picture Description15, RM delete files or directories
Here Insert Picture Descriptiondeleted files:
Here Insert Picture Descriptionremove directory: -r delete a directory and all files and folders within the directory Here Insert Picture Descriptionto force the removal: -f WITHOUT NOTICE
Here Insert Picture Descriptionsudo rm / * -rf delete a library at running Here Insert Picture Descriptionrm * -rf clear the current directory Here Insert Picture Descriptionknowledge [6] installation vmtools night extended Here Insert Picture DescriptionHere Insert Picture Descriptionright-click to copy the main folder
Here Insert Picture DescriptionRight-click a folder to the main pressurized to here Here Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture Descriptionall the way round; Here Insert Picture Descriptionknowledge [7] IP set
1, set the bridge mode Here Insert Picture DescriptionHere Insert Picture Description2, to create a network connection
to view card did not start start?
Here Insert Picture DescriptionNetwork icon is gray card does not start a virtual machine
startup mode Here Insert Picture DescriptionHere Insert Picture Descriptionto create a new network connection Here Insert Picture Descriptionif the network does not help
Here Insert Picture Descriptionremove the existing link Here Insert Picture Descriptioncreates a connection Here Insert Picture DescriptionHere Insert Picture Descriptionknowledge [8] modify the update source ubuntu12.04
1, the beam brother to the sources.list drag to a virtual machine Here Insert Picture Descriptioninto the terminal ubuntu copy it to the / etc / apt directory Here Insert Picture DescriptionIf the network flow:
the sudo APT-GET Update

Published 20 original articles · won praise 0 · Views 37

Guess you like

Origin blog.csdn.net/weixin_45992045/article/details/104683603