http://blog.csdn.net/lostaway/article/details/8086056
1. Introduction
Windows remote Linux Development tools, the more famous is wingdb and Magic C + +. are commercial software, and the configuration is complex, it is said to be unstable. In fact, what we want is a graphical environment IDE, and is a direct operation of the remote Linux environment. A number of practices have been found to enable visual remote Linux development using SECURECRT + Eclipse based on X11 forwarding. First attach the final:
2. Environment & Software Preparation
Windows environment: Windows 7
Linux Environment: RHEL 4.8
Eclipse:eclipse-cpp-indigo-sr2-incubation-linux-gtk.tar.gz (Linux edition)
SECURECRT:SECURECRT 6.5.3
Xming:xming 6.9.0.31 http://sourceforge.net/projects/xming/
3, detailed steps PS: Start the configuration of the premise is that your securecrt can normally SSH to the Linux host.
If you're having trouble, take a look at the "References" section.
3.1. Turn on Linux host X11 forwarding
Edit the Sshd_config file to turn on the X11 forwarding feature:
$sudo Vi/etc/ssh/sshd_config
Make the X11forwarding configuration item Yes:
x11forwarding Yes
PS: You may need to restart Linux.
3.2. Windows installation Xming
Double-click Install, all the way Next. Select the Multi-window (multiple Windows) mode when selecting display mode (select Display setting). The window that appears is the same as the Windows Local window.
3.3, configuration securecrt, support X11 forwarding
Tick "forward X11 packets".
3.4 Test X11 forwarding function
Start the newly installed Xming program in Windows.
Input in SECURECRT terminal:
$ Xcalc &
If the function is normal, a calculator will appear.
Installing Eclipse in 3.5 Linux
This is not much to say, there are on the network, installed JDK, decompression Eclipse can be. After installation, make sure that Eclipse can run in a Linux graphics environment.
3.6 Start Eclipse
$ nohup Eclipse >/dev/null &
The Eclipse in Linux is started on Windows.
4. Summary
Such a Linux development environment has been used for half a year, fully capable of daily development work. The only drawback is that you cannot enter Chinese (it is said to be the input method settings conflict, there is a workaround, not yet tried), but you can copy Chinese into it. There are many benefits, especially when you have to develop on a remote server. Farewell to the use of the UE FTP Remote development method, Eclipse code editing, compiling, debugging is very convenient.
Reference
[1] Replacing Xmanager with xming in Windows-shaped login Linux
[2] X11 Forwarding with SSH (SecureCRT Setup)
[3] [Beginner Tutorial] Easy remote implementation of Linux x DISPLAY with securecrt+xming
Edit history
V1.01 increase the Start Xming section.
V 1.0 Complete the first draft.
V 0.1 Complete Section 1, 2.
[Z] Eclipse-based visual remote Linux/C + + development environment built under Windows