How to start Matlab after a clean install? - linux

I have downloaded and run the installer for matlab with destination /home/matlab, where matlab is the folder I created. Installation completed successfully. Now how do I start the program in Ubuntu?

To start MATLAB® on Linux® platforms, type matlab at the operating system prompt.
Create A MATLAB Launcher/shortcut
Automatic option: install package "matlab-support", sudo apt-get install matlab-support or via the Software Center on the dashboard.
Manual option as follows.
Get an icon:
sudo wget http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O /usr/share/icons/matlab.png
Get the launcher file:
sudo wget 'https://help.ubuntu.com/community/MATLAB?action=AttachFile&do=get&target=matlab-r2012a.desktop' -O /usr/share/applications/matlab.desktop
If you have the student version of MATLAB (or simply the 32 bit version) on a 64 bit system, you will need to modify this file. Run
gksudo gedit /usr/share/applications/matlab.desktop
Then uncomment #Exec=matlab -arch=glnx86 -desktop and comment Exec=matlab -desktop (by adding or removing the # character).
If you get two MATLAB launcher icons in your Unity laucher, try uncommenting the following line in /usr/share/applications/matlab.desktop:
StartupWMClass=com-mathworks-util-PostVMInit
Original article at matlab community

Start it from command line:
/usr/local/MATLAB/R2020b/bin/matlab &
(replace the path with wherever is your installation located)
or
Install sudo apt-get install matlab-support to get the MATLAB shortcut.

Related

How to view an executable file with no filetype

I have an application on my raspberry pi with no filetype at the end. When I double click the file it executes it fine but I want to look at the code, and suggestions. Running ls -l in the directory shows me the file is -rwxr-xr-x. what does this mean.
First, you need to find out what type of file it is.
That is what file command is for, open a terminal and type:
file my_executable
If it tells you this is some kind of script file, like BASH or Python, right click it, and try to open with an editor, or in the terminal type:
nano my_executable
But, if the type is ELF, it means this is a binary, and you can not see its source code in the file it self.
You can still try disassembling it with a program like Ghidra, but you would be better off trying to understand where the file came from (did you install it with apt command?) and see if there is source available.
Note that for any free software package you install through:
sudo apt-get install my_package
You can download the source code with command:
apt-get source my_package
This does not require sudo (it does not change your system), but it will only work for free software / open source packages, which is almost all packages in the default Raspbian repositories.

Opening AppImage does nothing. What can I do?

I am a complete newbie to Linux and trying to open an AppImage called Magick which is an Imagemagick application.
I tried right clicking on the AppImage and checked "run file as an executable" option but that didn't work. Another thing that I tried is running this command,
chmod a+x magick.AppImage
This gives me an error,
chmod: cannot access 'magick.AppImage': No such file or directory
I have also tried running the file by navigating into the folder that contains the file and opening up the terminal there but still no luck.
I am running Ubuntu on Oracle VM VirtualBox.
ImageMagick is a command-line tool, you don't run it by clicking on it.
To run it in a terminal you need to
Set the executable flag on the .AppImage (once for all): chmod +x TheApp.AppImage
Then to run it just invoke the AppImage: ./TheApp.AppImage <arg1> <arg2> ....
If the directory with your .AppImage is in your PATH, you can remove the ./ (or whatever directory the AppImage is in).
ImageMagick is also available as a regular application from your Ubuntu repository: sudo apt install imagemagick

Cytoscape and linux

Trying to install Cytoscape program on linux cytoscape. And I don't know how because first install button transfers me to HTML page and nothing is downloadable. (I have java installed). I tried to download tar.gz file but I am stuck, because there is no configure file and it says I have no permission for it. What should I do?
Once java 11 is installed on your computer try this:
ctrl+alt+T #open Ubuntu's console
cd /home/fulanita/Downloads #this is the directory where my computer has cytoscape.
chmod +x ./Cytoscape_3_8_1_unix.sh
./Cytoscape_3_8_1_unix.sh #3.8.1 is the last version for Ubuntu
the program will start to install
If anyone comes here in search for an answer I found a solution.
You go to you directory where you keep extracted tar.gz
with cd -Folderdestination/ you locate a folderwhere you keep a file named cytoscape.sh, and with command
sudo sh cytoscape.sh
install the program.

How to run Qtcreator from terminal in Ubuntu?

Hi I have QtInstalled with the official qt installer (I haven't used the package with the name "qtcreator").
I need to run QtCreator from terminal but I can't locate the executable.
I'm using Ubuntu 16.04.
Probably you can find the executable in opt directory the location will be as this /opt/Qt/Tools/QtCreator/bin and you can run it through terminal as ./qtcreator
Latest QtCreator should by default be installed in
${HOME}/Qt/Tools/QtCreator/bin/
And you have two start-up options, the executable qtcreator or the shell script qtcreator.sh
To run the executable, type
~/Qt/Tools/QtCreator/bin/qtcreator
To run the shell script, type
~/Qt/Tools/QtCreator/bin/qtcreator.sh
Whic one to use: From the top portion of qtcreator.sh, it states that if you have library name conflicts (such as having same library names used by qtcreator with your own LD_LIBRARY_PATH), you may want to start with the shell script, rather than the bare executable.
Windows linux subsystem users
In case you have ubuntu as a subsystem for win10, it's located in your AppData folder (installing with sudo apt install command):
Also, you cannot run qtcreator from terminal as graphical interface is not supported by defeault. You need to instal X-server app first (https://sourceforge.net/projects/xming/) and then you can run QT from terminal.
C:\Users\[YOUR_USERNAME]\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\usr\share\qtcreator
Or, it's in usr/lintian/overrides
But you should not modify anything inside this linux root, as it may lead to data loss.
For me it wasn't in the /opt directory, but rather the location I've chosen in the /home/user/ directory.
More specifically: /home/user/Qt5.12.1/Tools/QtCreator/bin/qtcreator

running Matlab in bash script; matlab: not found

The code to run matlab in bash script:
matlab -nodesktop -nosplash -nodisplay -r "run ./myDir/myfile ; quit;"
I have Matlab installed on my computer, however when I run the bash script I get this error:
matlab:not found
I don't know if it is because of the Matlab's path (/home/myComputerName/Documents/MATLAB/bin/matlab) in my computer, which is located under /Documents/.
What causes this problem? If it is because of the path, is there a general solution, i.e. running matlab is independent where it is installed, for this?
The general solution is to add the directory containing the binary to your PATH, or, conversely, to properly install the program so that it appears in a directory which is already included in your PATH. For locally installed software, the standard location is /usr/local/bin.
Typically you would edit your .bashrc and log out and back in to update your PATH.
Try matlab support, it just solved a lot of my path/launcher related issues
sudo apt-get install matlab-support

Resources