Centos6.2 & amp; VBox4.1.8 OS learning notes
Main about CentOS platform Establishment
Record some things, which may be used by someone.
Download .. There's nothing to say ..
For installation .. Important .. Centos6.2 has two ISO, I can use the first large ISO installation, and the second one is not used for the moment ..
[Important] You cannot select Mini when you select the installation mode during installation in 6.2. Otherwise, you can only enter the text interface after installation, but this problem does not occur during installation in 6.3 ..
6.2 select Mini Desktop during installation .. In this way, you can enter the graphic interface ..
The root password must be remembered ..
For more information, see <G id = "1"> get root permissions </G> ..
Desktop-Application-System Tools-terminal to enter a window similar to CMD. Then enter su, and then enter the root password...
About networking
For a notebook, click the network ID of the taskbar-system eth0
If you don't know what the landline is, you can directly access the internet ..
File Sharing
Potholes Vbox and CentOS... After two days, we finally got some progress ..
First, you need to go to the terminal to get the root
Then install some things of the kernel... Terminal input yum install kernel-devel kernel-headers
There is also a gcc terminal that inputs yum install gcc
Errors may occur when you do not have these items.
After multiple attempts
After kernel is installed, upgrade kernel and kernel-devel to the same version. Otherwise, The modprobe vboxsf failed error will occur.
Run rpm-qa | grep kernel | sort to check the kernel version
If the kernel and kernel-devel versions are different. Run yum-y upgrade kernel-devel
After the installation is complete, make a connection
Ln-s/usr/src/kernels/2.6.18-194.26.1.el5-i686/usr/src/linux
Note: Be sure to perform this operation. Otherwise, the VirtualBox client will report an error during the installation process. "2.6.18-194.26.1.el5-i686" is the kernel version number. Different versions may be different. You need to enter the version number based on your system kernel. The version number must be the same as the file directory under/usr/src/kernels.
It is best to first check the version file number in the kernels folder (not necessarily starting with 2.6). Enter the first few characters in each file name and press Tab to automatically complete the operation.
No text is displayed after this line is executed.
After installation is complete, execute the following statement step by step
# Cd/media/VBOXADDITIONS_4.1.8_75467/
# Export MAKE = '/usr/bin/gmake-I'
# Ls-lrt
Wait a while
#./VBoxLinuxAdditions. run
Wait a moment.
You must see that all are green or OK, or you must start from scratch,
Finally, enter these
#/Etc/init. d/vboxadd start
Starting the VirtualBox Guest Additions [OK] is displayed.
Enter/usr/bin/VBoxClient-all
Will display
2664? 00:00:00 VBoxClient
2674? 00:00:00 VBoxClient
2679? 00:00:00 VBoxClient
Last input # reboot
Program running in C language in Linux (Terminal Mode)
Use the gedit text editor to edit a. c file. The file name must contain the. c extension.
Then run gcc-o al ***. c In the saved folder in the shell.
* ** It is the name of the saved code file, and al is the name of the compiled code file.
Then run the compiled program./al in shell.
Solve the Problem of undefined reference to 'pthread _ create' in Netbeans
Because this is not a standard in Linux, you need to add-lpthread,
The method for adding a file is as follows:
Properties-> Linker-> Libraries-> Add Standard Library-> Posix Threads (or
Add Option-> Other Option->-lpthread ).