Search This Blog

Saturday, August 25, 2012

Create Terminal Command for Matlab in ubuntu

go to terminal and you can run ( I have installed matlab 2009a )

/opt/matlab2009a/bin/matlab


 If you want to type only $matlab in your terminal the do the following from terminal to set the path:

export PATH=$PATH:/opt/matlabr2007a/bin
source ~/.bashrc 

 Then type

matlab

in terminal from wherever you want, you will get your matlab window in your screen .


Thank you..



Install matlab in Ubuntu from an ISO image file

Do the following as root

1) Mount the ISO
  mount -o loop Mathworks.Matlab.R2007a.UNIX.DVD.ISO /mnt/temp 


2) Create the directory you want to install MATLAB into
  mkdir /opt/matlab 


3) Copy the license file into it from directory. I used the node-locked
version

  cp /mnt/temp/license_locked.dat /opt/matlab/license.dat

4) Install the program
  cd /opt/matlab; /mnt/temp/install


5) Read inst_doc.pdf on DVD (/mnt/temp/inst_doc.pdf) and setup startup scripts
to automatically start the license manager.




Optional:::::::::

6) I was having some crashes when running commands like "help" or changing
fonts. 
The crash was in libfontmanager.so which is part of JAVA. 
So I
installed latest version of JAVA (sun-jre-bin-1.6.0) and 
set environment
variable MATLAB_JAVA=/opt/sun-jre-bin-1.6.0/ [ Change this location 
to
wherever you have installed your JRE ]. 
To make this permanent, add this line
to your ~/.bashrc or /etc/profile
export MATLAB_JAVA=/opt/sun-jre-bin-1.6.0


7) Setup web-browser for MATLAB. 
Edit /opt/matlab/toolbox/local/docopt.m
   Change line 52 from
   %   doccmd = '';
   to
   doccmd = 'firefox';

MATLAB on Ubuntu: From Install, Make launching Icon,… to Uninstall

MATLAB on Ubuntu: From Install, Make launching Icon,… to Uninstall

 

Here are the steps to install MATLAB + some possible problems:
  1. Extract/mount the zipped/iso installer file. For me I extract the iso to /home/bot/Downloads/Software/ml2011bu
  2. Open the terminal (Ctrl+Alt+T), type sudo sh install
    1. You might run into the problem say:Preparing installation files …
      Installing …
      eval: 1: /tmp/mathworks_2931/sys/java/jre/glnx86/jre/bin/java: Permission denied
      Finished
      bot@bot-laptop:~/Downloads/Software/ml2011bu$ cd sys What you need to do is to make the file “java” executable by
      from your installer folder, type
      cd sys/java/jre/glnx86/jre/bin/
      chmod +x java
      you will see that the file permission is changed from
      -rw-r–r– 1 bot bot  47308 2010-10-20 04:41 java
      to
      drwx–x–x 4 bot bot    4096 2012-02-11 17:55 java
      Now go back to the installer folder and install it with sudo sh install, and it should work
    For more details on installation, please visit
    https://help.ubuntu.com/community/MATLAB
Once the installation is finished, you may want to create a script to run the MATLAB. Here is how
  1. Go to desktop (where else is fine too)
  2. Create an empty document, let’s name it runmatlab.sh
  3. Open runmatlab.sh with gedit, and type the following
    cd /usr/share/matlabr2010a/bin/
    sudo sh matlab -desktop
  4. Open the terminal, go to desktop by typing in the terminal cd ~/Desktop
  5. make the script executable by typing in the terminal chmod +x runmatlab.sh
  6. Now you can run MATLAB by running the script by typing ./runmatlab.sh
Now, if you want to add a launching icon on the menu bar, here is how:
  1. Right click on the menu bar
  2. Edit menus>Go to Programming in the left panel
  3. Click new item and add all the information
  4. In the command, type /home/bot/Desktop/runmatlab.sh
  5. You can also change the icon by clicking at the icon on the top-left corner and choose where the icon is
    1. Here is an easy command line to download the icon
      sudo wget http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O /usr/share/icons/matlab.png
    2. The icon will be downloaded to /usr/share/icons/matlab.png
  6. That’s it!
And, if you are bored with MATLAB and want to uninstall it, please follow the steps here
  1. Locate the matlab dir, mine is /usr/local/MATLAB
  2. Remove the matlab dir by
    >cd /usr/local
    >sudo rm -r MATLAB
  3. bye bye MATLAB, and you get 5GB more space hahahaha!

Sunday, August 19, 2012

new version of XAMPP 1.8.0, including


new version of XAMPP 1.8.0, including:

  • Apache 2.4.2
  • MySQL 5.5.25a
  • PHP 5.4.4
  • phpMyAdmin 3.5.2
  • FileZilla FTP Server 0.9.41
  • Tomcat 7.0.28 (with mod_proxy_ajp as connector)
  • Strawberry Perl 5.16.0.1 Portable
  • XAMPP Control Panel 3.0.12 (from hackattack142)
Download older versions of XAMPP (even the "old" WAMPP) directly from SourceForge.
See also:
»FAQ - Vista problems«
Vista Note:
Because of missing or insufficient write permissions in "C:\Program Files", we recommend to use alternate folder for XAMPP ("C:\xampp" or "C:\meinverzeichnis\xampp").

Jump-off point

Download
XAMPP
XAMPP Add-Ons
XAMPP USB Lite
The Installation
Method A: Installation with the Installer
Method B: "Installation" without the Installer
I want to start XAMPP without setup
The Practice
Start, stop, test the XAMPP servers
Installing a particular server as as service
The XAMPP upgrades
A matter of security (A MUST READ!)
The XAMPP security console
The Uninstallation
Method A: The Installer version
Method B: The ZIP & 7zip versions
Basic Questions
Question 1: What is the "Lite" version of XAMPP?
Question 2: Where should I place my web content?
Question 3: Can I move the XAMPP installation?
Question 4: "automatic start pages" for the WWW directories?
Question 5: Where can I change the configuration?
READ ME
Where can I get more information (FAQs, etc.)?
What is where?

Download

* XAMPP

XAMPP for Windows exists in three different flavors:
Installer
Probably the most comfortable way to install XAMPP.
ZIP:
For purists: XAMPP as ordinary ZIP archive.
7zip:
For purists with low bandwidth: XAMPP as 7zip archive.
See also:
»FAQ - virus warnings«
Attention:
If you extract the files, there can be false-positives virus warnings.
XAMPP for Windows 1.8.0, 13.7.2012

Version

Size

Content
XAMPP Windows 1.8.0 Apache 2.4.2, MySQL 5.5.25a, PHP 5.4.4, OpenSSL 1.0.1c, phpMyAdmin 3.5.2, XAMPP Control Panel 3.0.12, Webalizer 2.23-04, Mercury Mail Transport System v4.62, FileZilla FTP Server 0.9.41, Tomcat 7.0.28 (with mod_proxy_ajp as connector), Strawberry Perl 5.16.0.1 Portable
For Windows 2000, XP, Vista, 7.
Installer 91 MB Installer
MD5 checksum: 5de03a40fcb5865b29913affeef3f115
ZIP 166 MB ZIP archive
MD5 checksum: 90dd1e4278252520d681ff01ae00433d
7zip 78 MB 7zip archive
MD5 checksum: e45eba705f9258b543b3b19e7b7b1b0b

* XAMPP Add-Ons

The following packages are extensions (add-ons) for the above XAMPP package. You don't need them for normal work.
XAMPP for Windows Add-Ons
Version Size Content
Tomcat Add-On Since XAMPP 1.7.4 part of the basic package.
Perl Add-On Since XAMPP 1.7.2 part of the basic package.

* XAMPP USB Lite

"XAMPP Lite" s an additional extra small XAMPP edition. Configured with relative paths you can use it on usb devices.
XAMPP portable
Version Size Content
XAMPP USB Lite 1.8.0 Apache 2.4.2, MySQL 5.5.25a, PHP 5.4.4, phpMyAdmin 3.5.2, OpenSSL 1.0.1c, XAMPP Control Panel 2.5 (lite version)
For Windows 2000, XP, Vista, 7.
EXE 40 MB Self-extracting archiv
MD5 checksum: 4860d95913ba72ab37402690d54879ca
7zip 30 MB 7ZIP archiv
MD5 checksum: 440e023e29396ead10e4d84fe5dc535e
ZIP 78 MB ZIP archiv
MD5 checksum: 454dbdf30dd3be107265c6681276ad66

The Installation

* Method A: Installation with the Installer

Using the installer version is the easiest way to install XAMPP.

After the installation is complete, you will find XAMPP under Start | Programs | XAMPP. You can use the XAMPP Control Panel to start/stop all server and also install/uninstall services.

The XAMPP control panel for start/stop Apache, MySQL, FilaZilla & Mercury or install these server as services.

* Method B: "Installation" without the Installer

Unzip the zip archives into the folder of your choice. XAMPP is extracting to the subdirectory "[Ziel]\xampp" below the selected target directory. Now start the file "setup_xampp.bat", to adjust the XAMPP configuration to your system.
If you choose a root directory "C:\" as target, you must not start "setup_xampp.bat".
Like with the installer version, you can now use the "XAMPP Control Panel" for additional tasks.

* I want to start XAMPP without setup

If you extract XAMPP in a top level folder like "C:\" or "D:\", you can start most servers like Apache or MySQL directly without execution of the file "setup_xampp.bat".
Not using the setup script, or selecting relative paths in the setup script, is preferred if you are installing XAMPP on a usb drive. Because on each pc such a drive can have an other drive letter. You can switch from absolute to relative paths at any time with the setup script.

The Practice

* Start, stop, test the XAMPP servers

The universal control center is the "XAMPP Control Panel" (thanks www.nat32.com). It is started with:
\xampp\xampp-control.exe
As you know this from older XAMPP versions, you can also use some batchfiles to start/stop the servers:
Apache & MySQL start:
\xampp\xampp_start.exe
Apache & MySQL stop:
\xampp\xampp_stop.exe
Nur Apache start:
\xampp\apache_start.bat
Nur Apache stop:
\xampp\apache_stop.bat
Nur MySQL start:
\xampp\mysql_start.bat
Nur MySQL stop:
\xampp\mysql_stop.bat
Mercury Mailserver start:
\xampp\mercury_start.bat
Mercury Mailserver stop:
\xampp\mercury_stop.bat
FileZilla Server start:
\xampp\filezilla_start.bat
FileZilla Server stop:
\xampp\filezilla_stop.bat

Test

After starting of Apache (and MySQL), go to the address http://localhost/ or http://127.0.0.1/ in your browser and examine all of the XAMPP examples and tools.


* Installing a particular server as as service

Each server in XAMPP you can install also as Windows service:
Apache service install:
\xampp\apache\apache_installservice.bat
Apache service uninstall:
\xampp\apache\apache_uninstallservice.bat
MySQL service install:
\xampp\mysql\mysql_installservice.bat
MySQL service uninstall:
\xampp\mysql\mysql_uninstallservice.bat
FileZilla service (un)install:
\xampp\filezilla_setup.bat
Mercury:
No service installation available!

* The XAMPP upgrades

With a new XAMPP version, there is normally a upgrade package too. Additionally, we have sometimes small patches between the releases.
An upgrade is always problematically and there can be errors in the upgrade process. Because of this, you should always make a backup from your XAMPP folder before you upgrade it. werden.
We are trying to adjust your configuration files during the upgrade progress, if necessary. Especially if a new XAMPP have a lot of changes compared to the old one, we are providing no upgrade package for security reasons. Sorry.
As with the add-ons, install the upgrade directly into the XAMPP directory (e.g. "C:\xampp"). And you must also start the setup script "setup_xampp.bat".

A matter of security (A MUST READ!)

* The XAMPP security console

As mentioned at another place, XAMPP is not meant for production use but only for developers in a development environment. XAMPP is configured is to be as open as possible and to allow the web developer anything he/she wants. For development environments this is great but in a production environment it could be fatal.
Here a list of missing security in XAMPP:
  • The MySQL administrator (root) has no password.
  • The MySQL daemon is accessible via network.
  • phpMyAdmin is accessible via network.
  • The XAMPP demopage is accessible via network.
  • The default users of Mercury and FileZilla are known.
All points can be a huge security risk. Especially if XAMPP is accessible via network and people outside your LAN. It can also help to use a firewall or a (NAT-) router. In case of a router or firewall, your pc is normally not accessible via network. It is up to you to fix these problems. As a small help there is the "XAMPP Security console".
Please secure XAMPP before publishing anything online. A firewall or an external router are only sufficient for low levels of security. For slightly more security, you can run the "XAMPP Security console" and assign passwords.
If you want have your XAMPP accessible from the internet, you should go to the following URI which can fix some problems:
http://localhost/security/

With the security console you can set a password for the MySQL user "root" and phpMyAdmin. You can also enable a authentication for the XAMPP demopages.

This web based tool does not fix any additional security issues! Especially the FileZilla FTP server and the Mercury mail server you must secure yourself. If you don't need these servers, don't start them. A server which is not started, is very secure!

The Uninstallation

* Method A: The Installer version

If you installed XAMPP using the installer version, please use the Uninstaller! The Uninstaller will delete all XAMPP entries from your registry and it will uninstall some installed services included with XAMPP. We highly recommend that you use the Uninstall program for removing XAMPP installations from the Installer version.
Please backup all the data you want to keep before uninstalling XAMPP.

* Method B: The ZIP & 7zip versions

Shut down all XAMPP servers and exit all panels. If you installed any services, uninstall and shut them down too. Now simply delete the entire folder where XAMPP is installed. There are no registry entries and no environment variables to clean up... just simply good, clean code!

Basic Questions

* Question 1: What is the "Lite" version of XAMPP?

XAMPP Lite (means "light" as in "light-weight") is a smaller bundle of XAMPP components, which is recommended for quick work using only PHP and MySQL. Some servers or tools such as Mercury Mail and FileZilla FTP are missing in the Lite version.

* Question 2: Where should I place my web content?

Problems? See also:
»FAQ - XAMPP for Windows«
The main directory for all WWW documents is \xampp\htdocs. If you put a file "test.html" in this directory, you can access it with the URI "http://localhost/test.html".
And "test.php"? Just use "http://localhost/test.php". A simple testscript can be:
    echo 'Hallo world';
?>

A new subdirectory for your web? Just make a new directory (e.g. "new") inside the directory "\xampp\htdocs" (best without whitespaces and only ASCII), create a test file in this directory and access it with "http://localhost/new/test.php".

Further specifics:

HTML:
Executable: \xampp\htdocs
Allowed endings: .html .htm
=> basic package
SSI:
Executable: \xampp\htdocs
Allowed endings: .shtml
=> basic package
CGI:
Executable: \xampp\htdocs and \xampp\cgi-bin
Allowed endings: .cgi
=> basic package
PHP:
Executable: \xampp\htdocs and \xampp\cgi-bin
Allowed endings: .php
=> basic package
Perl:
Executable: \xampp\htdocs and \xampp\cgi-bin
Allowed endings: .pl
=> basic package
Apache::ASP Perl:
Executable: \xampp\htdocs
Allowed endings: .asp
=> basic package
JSP Java:
Executable: \xampp\tomcat\webapps\java (e.g.)
Allowed endings: .jsp
=> Tomcat add-on
Servlets Java:
Executable: \xampp\tomcat\webapps\java (e.g.)
Allowed endings: .html (u.a)
=> Tomcat add-on

* Question 3: Can I move the XAMPP installation?

Yes, that's possible with XAMPP. After moving of the XAMPP directory, jou must execute "setup_xampp.bat". The paths in the configuration files will be adjusted with this step.
If you have installed any server as Windows service, you must first remove the Windows service, and after the moving you can install the service again.
Warning:
The configuration files from your own scripts, like for the software phpBB, are not adjusted. This task is up to you. But it's possible to write a "plug-in" the installer. With such a plug-in, the installer can adjust such files too..

* Question 4: "automatic start pages" for the WWW directories?

The standard filename for the Apache function "DirectoryIndex" is "index.html" or "index.php". Every time you are just browsing to a folder (e.g. "http://localhost/xampp/"), and Apache can find such a file, Apache is displaying this file instead of a directory listing.

* Question 5: Where can I change the configuration?

Almost all settings in XAMPP you can change with configuration files. Just open the file in a textedit and change the setting you want. Only FileZilla and Mercury should be configured with the application config tool.
A list of the configuration files you can find in the table configuration files.

READ ME

* Where can I get more information (FAQs, etc.)?

Problems? See also:
»FAQ - XAMPP for Windows«
Still questions? See also:
»Apache Friends Support Forum«

* What is where?

Configuration files

File (Directory) Usage
\xampp\apache\conf\httpd.conf The main configuration file for Apache. It's including other files from the subdirectory "extra".
\xampp\FileZillaFTP\FileZilla Server.xml The configuration file for the FileZilla FTP server. It's configured with the application "FileZilla Server Interface.exe" (button "Admin" in CP).
\xampp\MercuryMail\mercury.ini The configuration file for the Mercury SMTP server. It's configured with the application "mercury.exe" (button "Admin" in CP).
\mysql\bin\my.ini The configuration file for the MySQL Server.
\xampp\php\php.ini The configuration file for PHP.
\xampp\phpMyAdmin\config.inc.php The configuration file for phpMyAdmin.
\xampp\sendmail\sendmail.ini The configuration file for msmtp (sendmail compatible interface).
\xampp\webalizer\webalizer.conf The configuration file for the Webalizer.

Logfiles

File (Directory) Usage
\xampp\apache\logs\error.log The error log from Apache. Additional files can be in the same directory (if enabled).
\xampp\FileZillaFTP\Logs The logfiles from FileZilla FTP server (if enabled).
\xampp\MercuryMail\LOGS\ In subdirectories of this files are the logfiles from the several Mercury SMTP server modules.
\xampp\mysql\data\mysql.err The error log from MySQL. Additional files can be in the same directory (if enabled).
\xampp\sendmail\sendmail.log The logfile from msmtp (sendmail compatible interface).

common directories

File (Directory) Usage
\xampp\anonymous Download directory for anonymous FTP access.
\xampp\cgi-bin For the CGI scripts.
\xampp\htdocs There are the files from your homepage.
\xampp\MercuryMail\MAIL The mail postboxes.
\xampp\mysql\data The databases.
\xampp\webdav The directory for WebDAV access (if enabled).