This article needs to download Putty.exe and pscp.exe:http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Xming Main program and font: https://sourceforge.net/projects/xming/
First, the use of putty
1. Connect to the server
Download putty without installing the direct run Putty.exe into the following interface:
As shown:
1 Enter the server IP address; (You can also enter the [email protected] address, where username represents your username on the host you want to connect to)
2 to customize a setting name, and then log in later can be directly from the saved sessions inside select a open;
3 Save Settings, select this setting name;
4 There are three options to set whether to close the window after exiting the server account. Always closed, never closed, closed only when clean (clean refers to processes that have not been processed);
5 Connecting to a server
It then enters the following interface:
Enter the user name return, password enter (like Linux, the password input process is not visible), enter the following interface:
The current location is the server on the home under your personal account, you can create a folder inside, enter exit to log off the account.
If MATLAB is installed and configured on the server, enter MATLAB to access the command line window of MATLAB:
2. Uploading local files to the server
After the server is connected, you need to upload the local code to the server, here you need to download another software Pscp.exe, after downloading, add the save path to the environment variables of windows. (Make sure that you can enter PSCP to invoke the software in cmd).
Suppose I want to upload a project folder on my desktop to the server, just enter the following command (note the difference between Windows and Linux under the slash direction):
Pscp-r C:\Users\Administrator\Desktop\hello [Email protected]:/home/yin
which
PSCP call transfer software;
-R means copying the entire folder, without the-R can only copy a single file;
Yin represents the user name on the server;
@156.xx.xx.xxx is the server IP;
/home/yin indicates where you want the folder to be stored on the server, and now, in the appropriate location on the server, you can find our uploaded folder Hello:
Next, go to this folder, run Matlab, enter Hello return, run the HELLO.M program in the folder.
2. Download server files to local
Download is also used PSCP, just reverse the order of the back and forth.
pscp-r [email Protected]:/home/yin/matlab c \
3. Open the Graphical interface
(Reference: http://www.zw1840.com/blog/zw1840/2008/10/putty-xming-linux-gui.html)
: https://sourceforge.net/projects/xming/
Although the above can enter the MATLAB and run the corresponding program, but can not display the graphical interface, plot and other functions can not be used, the solution is to install X Server under Windows.
Xming is a free Windows platform X Server that needs to be installed in two parts: Main program and font
Xming-6-9-0-31-setup.exe
Xming-fonts-7-5-0-93-setup.exe
The two former are main, the latter optional.
1. Double-click the first program, next, next, to the following interface:
Choose not to install the client, because for X server, the server belongs to the client, the local computer belongs to the host, so there is no need to install SSH client. Then all the way Next, the installation is complete.
2. Go to the installation path, run the XLaunch.exe configuration boot file, all with the default settings, and click Next.
Display represents a set of input \ Output devices, including a keyboard, mouse, and display; display number is the i\o device, and display numbers also determines the TCP port of the Xming Server with the port number 6000+dis Play number. The application on the Linux host establishes a connection to the Xming X Server through this port.
Save the configuration as Xming.display.0.xlaunch double-click the file to start X Server, and the Xming icon appears in the lower-right corner.
3. Set Putty
First, as in the previous approach, enter the server IP;
Next, in connection\ssh\x11, Enable X11 forwarding, and input X display location to localhost:0, where 0 is the previous configuration Xming.display.0.xlaunc The Display number specified at H;
Finally, as in the previous procedure, for the current setting name, save.
4. Set up the server (under normal circumstances have been set up, not set up the need to contact the administrator to get permissions)
Use the previous step to configure the login server;
To view the/etc/ssh/sshd_config file on the server, do you have the following line:
x11forwarding Yes
Whether the line is commented, uncomment or add this line, save, exit.
Here you can open the GUI of Matlab via putty on Windows.
Input matlab directly into our common Matlab interface, run the program:
At this point, we have completed the basic configuration, you can run the MATLAB program on the server.
Windows Putty Login Server display MATLAB graphical interface