Install MATLAB in Ubuntu and solve Chinese garbled characters and create a starter

Source: Internet
Author: User
Tags gpg

My installation environment is ubuntu10.04 + MATLAB 2011a (IPv6 source, the student traffic is expensive,
Sorry, I can only use V6)

1. Installation
1. Image Mathworks. MATLAB. r2011a. UNIX.ISO-TBE. ISO downloaded from verycd
2. Mount the ISO file:
Sudo Mount-o loop *. ISO (ISO file path and file name)/Media
3. Install
CD/Media
Sudo./install
(The image-based installation interface is displayed. After installation and activation, select "No network" and set the installation path,
In this directory, there are installation instructions under the crack directory, as shown in the PDF file)
4. Soft link. You can directly input MATLAB through the command line to call the software.
Sudo ln-S/usr/local/Matlab/r2011a/bin/Matlab/usr/bin/MATLAB
Set the first path to your own installation path.

2. Solve the Problem of garbled characters in MATLAB Chinese display
1, sudo gedit/etc/APT/sources. List
Add the Deb http://archive.canonical.com/ubuntu lucid partner in the last line
2. sudo apt-Get update reports an error
W: GPG error: http://ppa.launchpad.net lucid release: unable to verify the following signature because there is no public key
Name: no_pubkey faf69c646ff1_b7
Run:
Sudo apt-key adv -- keyserver wwwkeys.pgp.net -- Recv-keys faf69c646ff1_b7
Keyserver can be changed, keyserver.ubuntu.com, keyring.debian.org
Imported successfully:
GPG: Download the secret '6ff0000b7 'from the HKP server wwwkeys.pgp.net
GPG: Key 6ff0000b7: the Public Key "Launchpad PPA for csslayer" has been imported
GPG: Total number of processed items: 1
GPG: imported: 1 (RSA: 1)

Run again
Sudo apt-Get update
3, sudo apt-Get install sun-java6-jre sun-java6-jdk sun-java6-plugin
4. sudo gedit/usr/local/Matlab/r2011a/bin/MATLAB
Before the code starts, add:

#
Export maid =/usr/lib/JVM/Java-6-Sun (your own version)/JRE
#
# The above changes the JRE environment of Matlab, depending on your version number

My version is Java-6-sun-1.6.0.26

In this way, MATLAB can display Chinese characters perfectly !!!

3. Create a starter
The starter is equivalent to a desktop shortcut in Windows (you can double-click the mouse to open MatLab ).
1. Right-click the desktop and choose create starter.
2. Select the application type
Name: MATLAB (any name)
Command: Matlab-desktop (since soft link has been executed before)

In this way, you can not only run MATLAB on the terminal.

Finally, if unmount:
Sudo RM/usr/bin/MATLAB (delete soft link)
Sudo Rm-r/usr/local/Matlab/r2011a/bin/MATLAB (uninstall)

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.