Date written: 2016-7-2 17:11:28 Saturday Lesson resources: Web Programmer perspective Ubuntu Self-study Fast course
Link Source: Programmer in the awkward way,
Vmware:vmware Workstation12
Ubuntu:ubuntu16.04-64 bit
Before writing the article to thank the awkward teacher (hereafter referred to as "awkward division", Uncle Wang forgive Me) "Judging" "Shen Shu", O (∩_∩) o haha ~
Uncle's detailed explanation and inculcate, let us such small white quickly learn a lot of valuable skills, thank you uncle!
Ubuntu installation and operation is no longer mentioned, this small white is now commonly used is the desktop,
If you use the Terminal command interface system, you can open the command line terminal by right-clicking the terminal, or you can use search-enter the first three letters "TER", or the entire "terminal" to enter the command line terminal
The first one is the command-line terminal.
From the programmer's point of view, in order to learn Linux is very skilled command-line mode, but here is the beginning of learning, using the command line and the interface combination to do
Browser, accustomed to use is Firefox.
First, IP address acquisition + Learn to use sudo (super Admin) + Learn apt-get command
System settings, wired (wired connection)/wiredless (wireless connection)
1, command ifconfig to get the IP address of the machine:
ping command, you can ping the host, you can see if there is a ping through
The PWD command opens the current user self- file directory:/Home What is called " Self-folder ", that is, in this directory do anything you want to do,/homefolder
/computer folder is the folder where all the files of the operating system are located
2. "File Operation command"
Clear: Empty command line/clear screen/Empty window
PWD: Print out the folder location (/path) where the current user is in the terminal
LS: All folders in the current directory (how many folders can be seen)
Ls-l: Open Folder details
CD: Open a folder
Touch: Create a file/text document command
mkdir: Creating a folder
Cat document Name: Open Text Document content
Wq: Save and pair out a text document
W: Save
q!: Force quit does not save
chmod: Assigning permissions to file operations
Gedit: Automatically open a file (/text document) using the default editor
Vim File/Text document name: Open Text document with Vim editor (press "I" into insert mode, ESC to exit insert mode)
Tar: Is the tool, is the software is not the internal key command, including Vim are software, and not the internal key command is not like cd/ls/... Command
--
"./": Represents the currently owned folder/current directory
”.. /": represents jumping out of the current directory into the parent directory
"CD:" represents jumping out of the current directory, opening the parent directory
3. Editor
Gedit: Automatically open this file (you can open a text document) <gedit is the system default desktop nature of the editor, you can also install the Vim editor, using VIM>, if the installation is a command-line mode of the system, it will not open the Gedit software.
command-line mode editor, such as Vim editor, can search for installation from the Internet's software repository
Open "Internet Software Warehouse", it is more convenient to use the command
Cat/etc/apt/sources.list
Apt-get Install Vim-y (where "-y" is auto-installed) automatically installs the VIM editor
Apt-cache Search Software name * To download (with Baidu to learn, will be inefficient)
Ii. enforceable Procedures
1. Run executable program with Linux
How does an executable program work?
The exe suffix is often seen under the Windows operating system, does Linux also need EXE files to run? (C language Program)
"\ n" is a newline character.
GCC file name 1-o file name 2
Green represents executable program
"./": Represents the currently owned folder/current directory
”.. /": represents jumping out of the current directory into the parent directory
"CD:" represents jumping out of the current directory, opening the parent directory
Linux, even if not the exe suffix can still run ! Either exe suffix or other suffix can be run
The Windows EXE program is designed to let the system identify what program to use to run the file
To create or manipulate mkdir (create folder ) with "Programmer's Mind"
2. Tar decompression
Tar: Is the tool, is the software is not the internal key command, including Vim are software, but not the internal key command
**.tar.gz represents packaging with the Tar tool and uses GZ for compression
Distinguish between the internal key command and the software tool:
① Internal Key Command-CD
② software Tools-which
Which vim: command represents the directory where Vim software is found
Which tar: command will find the contents of the TAR software
compression command : Tar zcvf compressed name. tar.gz file name 1 filename 2 file name 3 ...
3. Installing VMware Tools
VMware Tools allows you to copy files from a virtual machine directly to a host, which is a virtual machine with VMware's enhanced tools
The installation process may be installed directly using ①, but ① installation prone to some errors ( I encountered a few pop-up window tips, no longer listed, other mistakes do not know ), so if you want to install the success of one-time, choose ② to installation, the correct post first:
② Select "Use ISO image file" on the right by using hardware->cd/dvd (SATA), settings, such as "Virtual machine", "Removable Device", "CD/DVD (SATA)",
Then "Browse" to find the VMware installation directory, into the inside find Linux.iso (because this article virtual machine is a Linux system, if you are other systems can also choose other corresponding ISO image files), select Open OK.
Again, "Virtual machine", "Removable Device", "CD/DVD (SATA)", then, you can follow the ① section " Non-red font " to install
① directly click on the Virtual Machine menu, "Virtual machine", "Reinstall" , "Copy to Self folder Home" in any folder test07
After copy, unzip "Extract here" and open the extracted file, and select "Open in Terminal" right-click in the blank.
Run:./vmware-install.pl
There is a problem with the installation, as follows:
This error is encountered because you do not have permission to install with Super Administrator privileges :
sudo./vmware-install.pl then enter the login password and follow the prompts to enter the words "[*]".
See a bunch of information here (***completed successfully.), that means OK!!! ...
When VMware Tools is installed, AutoSize Select AutoFit Guest from the VMware menu view and restart Ubuntu, the Ubuntu desktop occupies the entire window under VMware.
( Note:) The article is written here, please many guidance, I will continue to learn ...
Last update: 2016-7-3 00:27:42
Linux: Ubuntu Quick notes (1)