Operations under the CentOS virtual machine

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.