Fedora does not start the X11 interface; cross-platform development environment construction

Source: Internet
Author: User

[Take notes for future reference]

Install fedora12 in virtualbox. Because it is only for compilation, you can log on directly from the host through ssh, so there is no need to open a graphical interface to waste resources.

Therefore, the graphic interface is disabled by default when the configuration is modified:

# Vi/etc/inittab

In a line of text ID: 5: initdefault: changed to ID: 3: initdefault:

# Reboot

Done.

 

In addition, I will briefly describe the development environment:

(1) The code is stored in my local hard disk. I used NetBeans to edit it on the host machine (Ubuntu.

(2) Run Fedora12 in virtualbox (the target platform is also the final running platform of my program). Through the "Shared data space" function of virtualbox, map the code directory to virtualbox (this step requires that additional software packages be installed in virtualbox). Please search for the specific steps.

(3) mount the code directory in Fedora12.

(4) configure the network and remotely log on to Fedora12 through ssh on the host (Ubuntu). (remove the GUI of Fedora12 ).

For network configuration, we need to say that in my company's network environment, several Network Connection Methods Commonly Used in virtualbox are not suitable.

1) bridging method: You need to connect to the company's switch, but each time you connect to a different ip address, it is obtained through dhcp; in this way, every time I start Fedora12, I still need to log in now, check the IP address assigned to the vswitch before you can connect to the IP address using ssh on the host. It is too troublesome.

2) NAT: a fixed IP address is used each time, but the host can only be accessed from a virtual machine. Otherwise, the host cannot be accessed.

3) So I chose the Host-only Adapter, but note: by default, there is no suitable network port to use. In virtualbox, we need to set it globally, add a Host-only NIC, for example:

In the network settings of the virtual machine, select "Host-only adapter", and then select the network port "vboxnet0", so that each time a fixed IP address can be assigned, and then the host can access the virtual machine.

(5) since the Code directory is mounted very deeply in fedora12, It is very troublesome to CD the directory every time, so I added the following line to your. bash_profile:

CD/root/desktop/sf_figure/recording/version/SVN/trunk/code/record/project/Linux

In this way, every login will automatically CD to the directory to be compiled, and I just need to execute make to get everything done.

 

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.