1 software environment
- VirtualBox 5.2
- Oracle Linux 6.7
- Xmanager Enterprise 5
2 Create a virtual machine
2.1 Global Network Settings
2.1.1 Host Network Settings
2.1.2 DHCP server settings
2.2 virtual machine settings
2.2.1 New Virtual Machine
2.2.2 set the virtual machine memory
2.2.3 set the hard disk, the default
2.2.4 Select the virtual hard disk file type, default
2.2.5 set the virtual hard disk allocation type, default
2.2.6 Set file location and size of the hard disk, 50G
3 Install Oracle Linux 6.7
3.1 Click Settings and set the card type for the host only
3.2 Select storage, file system settings
3.3 Click to start the installation interface, enter
3.4 skip the media check, enter
3.5 Click Next
3.6 Choose your language settings, default
3.7 Keyboard, default
3.8 Select storage devices, default
3.9 storage device warnings
3.10 Setting the host name
3.10.1 Select card, click Edit
3.10.2 Configure the card
3.11 choose urban settings, Asia - Shanghai
3.12 Set the Root user password
3.13 Select Installation Type
3.14 disk partition settings
3.14.1 Creating storage
3.14.2 new partition, disposed swap was 2 times the memory
3.14.3 new partition, create / u01, used to install Oracle software, 30G
3.14.4 new partition, set the root / partition
3.14.5 formatted partition, the setting is completed, the partition is formatted
3.14.6 Click Write changes to disk
Select Desktop 3.15
3.16 select KDE Desktop
3.17 installed Linux systems
3.18 installation is complete click Reboot
3.19 after the reboot into the Welcome screen
3.20 accept the agreement, default
3.21 choose not to register the software update
3.22 to complete the update settings
3.23 to create a user, by default, temporarily setting
3.24 Setting the Date and Time
3.25 Kdump settings, uncheck
3.26 to complete the installation, enter the login screen
3.27 into the system, the end of the whole installation process
Note: The first shut down the system, set the boot order options, the hard disk on top, otherwise you will be prompted to re-install the next time you open!
4 安装Xmanager Enterprise 5
4.1 After the installation is complete, the formation of directory
Linux 4.2 uses SSH connection
4.3 Log success
4.4 build local yum repository
4.4.1 Mount image file
[root@strong ~]# mount /dev/cdrom /mnt/
mount: block device /dev/sr0 is write-protected, mounting read-only
Note that, the system checks whether the ISO file in the optical disk drive, there is no, then added to it
4.4.2 Change directory
[root@strong ~]# cd /etc/yum.repos.d/
4.4.3 Check the directory of yum repository files, using public-yum-ol6.repo default repository
[root@strong yum.repos.d]# ls
public-yum-ol6.repo
4.4.4 delete the repository file, rename here, so do not use the yum repository
[root@strong yum.repos.d]# mv public-yum-ol6.repo public-yum-ol6.repo.bak
4.4.5 Editing yum repository
[root@strong yum.repos.d]# vim server.repo
[server]
name=Oracle Linux
baseurl=file:///mnt/
gpgcheck=0
enabled=1
[root@strong yum.repos.d]# yum clean all
[root@strong yum.repos.d]# yum list
5 Basic Linux operating
5.1 file and directory operations
- cd: Change directory;
- ls: lists the file list;
- touch: create a file;
- cp: copy files;
- mv: rename, move file;
- rm: delete the file;
- mkdir: create directory;
- rmdir: delete the directory;
- stat: view the file statistics;
- file: Check file types;
- cat / more / less / head / tail: view the file contents;
5.2 absolute path & relative path
- Absolute file path: Define the exact location of the directory in the virtual file structure to the root virtual directory for the opening;
- Relative file path: Specifies the target file path relative to the current location, no need to start from the root directory;
- (.) Point: the current directory;
- Double-dot (..): indicates the parent directory;
5.3 disk operations
- mount: the media is mounted;
- umount: Uninstall the media;
- df: Check disk space;
- du: Check the directory space;
5.4 vim operation
- Normal mode -> Insert Mode: i o or a bond;
- Insert Mode -> Normal mode: ESC key;
- q: exit;
- q !: forced to quit without saving;
- wq: Save and exit;
- x: delete the character at the current cursor position;
- dd: Delete the line current cursor position;
- dw: Delete the word the current cursor position;
- d $: Delete the current cursor position to the end of the line for all content;
- a: the data is appended to the current cursor position;
- A: A is attached to the data line after the current cursor location;
5.5 RPM and YUM
- RPM:Redhat Package Manager;
- YUM:Yellow dog Updater, Modified;