After installing the Redhat system in the vmvm, if you need to use secureCRT to connect to the linux system, perform the following steps: 1. in linux, enter ifconfig on the terminal (note that it is not windows ipconfig) and find the IP address as follows. you can ping the IP address on the host, if you can ping the client, it means you can use it. if not, ask du Niang. =
After installing the Redhat system in the vmvm
If you need to use secureCRT to connect to linux
The procedure is as follows:
1. enter the linux system and enter ifconfig on the terminal (note that it is not windows ipconfig)
The result is as follows:
Find the IP address. you can ping it on the host.
If not, ask du Niang =
After the secureCRT is downloaded, open it. in the fast connection, enter the linux IP address as the host name. the user takes root as an example. after confirming, enter the password.
The connection is established successfully.
Install the g ++ compiler:
Right-click the VM in the VM and set
For example, select the one to install the iso image file.
After confirmation, you can see a lot of files in the graphical interface of the virtual machine.
Perform operations with the root user
Enter the cd/root directory on the terminal
Continue input
Cd media
Cd RH *
Cd Pa *
Go to the Packages directory
Enter
Rpm-ivh libstdc ++-devel-4.4.6-4.el6.i686.rpm press enter and enter after installation
Rpm-ivh gcc-c ++-4.4.6-4. el6.i686. press enter to complete the installation.
Enter g ++ -- help. if any information is displayed, the installation is successful.
Install gdb:
Or use the root user for operations
Go to the Packages directory
Enter rpm-ivh gdb-7.2-56.el6.i686.rpm press enter and install
After the installation is complete, enter the gdb version information.
You do not need to execute the program from the root directory./or you can execute the program from the current directory.
Login users to perform operations (each user has different configurations)
Enter cd to enter the home directory
Input
Vi. bash_profile
Add :.
After saving and exiting, enter .. bash_profile again to make it take effect.
Generate a core debugging file during gdb debugging
Log on to the user
Cd to go to the home directory
Input vi. bashrc
Add ulimit-c unlimited to the last row
After saving and exiting, enter .. bashrc again to make the configuration take effect.