How to solve the Linux examination-Linux general technology-Linux technology and application information. The following is a detailed description. Exam requirements for Linux
Test environment: Install, set, and use Debian/Linux in a virtual machine environment.
Exam Duration: 2 hours
Exam time: October 11, June 30, Class 1:-; Class 2:-; Class 3:-; application :-
Submit method: run the script to automatically submit
Requirements:
1. Install Debian stable in the virtual machine. The host name is similar to "h11001", where 11001 is the last five digits of the student ID;
2. install Openssh-server and use putty to connect to the VM;
3. Install the mysql database server, client, and connect to the database as the root user. Create a database similar to d110020.db, where 11001 is the last five digits of the student ID;
4. install ftp and http services. The server can choose proftpd, wu-ftpd, vsftpd, apache2, lighthttpd,... and so on. php can be configured;
5. Common commands: mkdir, cp, mv, rm, tar, cd, mount, wget, etc;
6. master the basic use of an editor, vim or emacs;
Note: You can read books and search online. Do not stand, do not discuss with each other, violation of cheating theory.
Bytes -----------------------------------------------------------------------------------------------------------------------
Let's ask the teachers to find out what's wrong!
Bytes ------------------------------------------------------------------------------------------------------------------------
1. Download and install
2. Virtualbox-3.16-59338
Installation steps:
1. Create → next → enter name → change OS to linux → change verdion to Debian → next → set memory size to MB → next → create new virtual hard disk → next → dynamic expansion → next → save location → 3G size → next → complete
2. Set → Disply → video memory to 32 MB → enable 3D acceleration for the extended feature → network → connection mode to Bridged Adapter → OK
3. Start → Netinstall Debian tasball → language: Chinese (simplified) → region: China → keyboard layout: US English → host name input → domain name unchanged → image: manual input → image Host Name: squid.qxntc.edu.cn → image directory \ debian \ → HTTP Proxy unchanged → disk partition choose "Manual"> "IDEL" Main disk ">" yes ">" Main \ logic ">" Create a New partition ">" partition size: 256M ">" logical partition ">" new location ":" Start ">" partition ": used for swap space>" partition Settings ">" master "\ logic → create a new partition → the partition size is 2.6G → the partition type is logical partition → the partition is set to start → the partition setting ends → repeat the above steps → the partition setting ends and the modifications are written to the disk → Yes → the ROOT user password is 123456 → the new user's full name → the password → the installed software press continue → the Master Boot Record Select Yes
Some commands
PUTTY:
Language Environment: vim \ etc \ hostnast
LANG = ZH-CN.GBK Vimtutor
Install mysql: apt-get install mysql-server
Install apache2: apt-get install apache2 php5
Install FTP: apt-get install proftpd
Install Editor: apt-get install vim
View IP Address: ifconfig
Change IP Address: cat \ etc \ udev \ rules. d \ 70-persistent-net.rules.
Convert user to root User: su?
Search software package: apt-cache search
Install software: aptitude
Loading and unloading software: remove
Purge software: clearn
Resolution: x? Config
The Command Used in Vim:
Cd: Enter and change the current directory
① Cd/Var/www
②/Var/www # dir
③/Var/www # vim index.html
: Wq: Save and exit
Q! : Do not save and exit
Copy steps (approximate ):
~ # Vim/Var/www/file name
~ # Cd/Var/www
/Var/www # cp file name/home/
/Var/www # cd
~ # Cd/home
/Home # IS
Cd ..: Enter the parent directory