How do I make launcher of Maple12 on my Desktop. Linux Mint - maple

I have recently buy and installed Maple 12 on Linux Mint. It has installed on root directory.
/root/maple12, the problem is that I don't know how to setup a launcher from the desktop.
What are all the steps do I need to follow?

Create an empty file on your Desktop named "Mapple12.desktop" and put the following content there:
[Desktop Entry]
Name=Mapple12
Icon=path_to_icon_file
Exec=path_to_execuatble_file
Type=Application
save and close the file.
Finally modify permission on your mapple directory to run it from desktop:
sudo chmod -R 777 path_to_mapple_directory

Related

How to view code coverage as html in Windows?

I did flutter test --coverage
A lcov.info was generated under coverage
I want to convert this into html but I don't find a tool for Windows.
On linux, you just do:
sudo apt-get update -qq -y
sudo apt-get install lcov -y
Then you do
genhtml coverage/lcov.info -o coverage/html
I am on Windows and
'genhtml' is not recognized as an internal or external command,
operable program or batch file.
Ok I found it. I will leave the anwser here in case it maybe helpful for anyone.
Actually genhtml is a perl script. If you are have git bash installed, you should have perl already. Try where perl on the cmd and it will show you the path.
For me it was at C:\Program Files\Git\usr\bin\perl.exe
Now create a file called genhtml.perl inside your flutter project root directory. (Make sure to .gitignore it)
Then in the file, copy and paste the content this https://raw.githubusercontent.com/valbok/lcov/master/genhtml.perl
Finally open git bash and run $ ./genhtml.perl ./coverage/lcov.info -o coverage/html .
Check You are done html files at coverage/html.
On android studio, select index.html then CTRL+SHIFT+C to copy the file path.
Open Chrome and on the url bar add file:///+CTRL+V. Tap enter. You are done.
PS : Who so ever is facing an error like No common filename prefix found! or some other issue, they can try replacing content of genhtml.perl file from below link.
https://raw.githubusercontent.com/linux-test-project/lcov/master/bin/genhtml

Where is the linux mint panel applets config file?

OS: Linux Mint 18.3 Sylvia
DE: xfce4
I have to set up several PCs and want to write a script which configures the launcher-applets in the panel. So the script would contain in the end something like:
sudo cp ./my-predefined-config-file.type /path/to/location/
Edit:
I figured out that the launchers are saved at the following file-path:
/home/user/.config/xfce4/panel/
However copying a launcher, from another system, into this directory does not make them appear in the panel:
~$ cp -r ~/Desktop/launcher-1/ ~/.config/xfce4/panel/
So there must be still somewhere a config-file which i have to edit in order to make the launcher appear in the panel.
PS:
After changing something I am of course always reloading xfce in order to see the changes:
~$ xfce4-panel -r && xfwm4 --replace
For the record, on my Linux Mint 19.2 with Cinnamon install (not: xfce4 as in the question), the panel launcher config file is at
~/.cinnamon/configs/panel-launchers#cinnamon.org/3.json

How to install nano using GitBash in Windows 10?

I am trying to install nano editor. From all the previous posts, I am stuck on path. What is path? How do I fix put my path?
I have:
$ mv nano ~/path/to/git/share
$ nano abc
bash: nano: command not found
You can add it via chocolatey.
choco install nano
PATH is the environment variable which is used to locate an executable you want to run.
See "How to permanently set $PATH on Linux?": you can add the folder where nano is in your .bashrc (which you can create directly under %USERPROFILE%, used by Git bash as $HOME)
Add to ~/.bashrc:
export PATH=$PATH:~/path/to/git/share
Then type
source ~/.bashrc
If you don't want to add it to your PATH, you can follow this step-by-step procedure, which does include the installation of nano-git-0d9a7347243.exe.
If your ultimate goal is to have and use nano on Windows 10, you can download the nano installer from here and just install the .msi file the usual Windows way. No manual path configurations required.

Unable to run robomongo.sh using sh robomongo.sh in Ubuntu 14.04

I have Just downloaded the robomongo 64 bit for ubuntu from the Official site.
Then I opened my terminal and went through the folder structure and executed the command from bin folder.
sh robomongo.sh
I'm getting an error like this
robomongo.sh: 5: robomongo.sh: Bad substitution
Help me.
Thanks in Advance
To install MongoDB Administration: RoboMongo version (0.8.*) on Ubuntu
Download 64 bit .deb package for Debian/Ubuntu
Open .deb package with Ubuntu Software Center
MongoDB Administration: RoboMongo has been installed on your linux machine
To install MongoDB Administration: RoboMongo version (0.9.*) on Ubuntu
Download .tar.gz file for ubuntu [ Source: RoboMongo Website, for example 0.9.0 RC8 1.e robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gz ]
tar -xvzf robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gz [ Assuming you have robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gz file into your Download directory ]
sudo mv PATH_TO_RoboMongo_Tar_File /usr/local/lib/robomongo/
Example: sudo mv ~/Downloads/robomongo-0.9.0-rc8-linux-x86_64-c113244/
/usr/local/lib/robomongo/
cd /usr/local/lib/robomongo/bin
Right click on robomongo file i.e executable (application/x-executable)
5.1. Now click on "Make Link" option
You may put this shortcut icon to desktop to launch RoboMongo GUI
in Terminal you can use just this command robomongo and you can install stable version robomongo with using sudo apt-get install robomongo
Solution : when i downloaded the tar file from official site, I just opened it using ubuntu software center. It got Installed and working fine now.
answer of #mistertandon is nice But I will be more clear
There Two ways to install robomongo program into ubuntu using command line:
First way
1.1 download tar.gz file from Official robomongo website(choose version you need to install and get it's tar.gz download file url)
wget https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz
1.2 extract tar.gz file
tar -xvzf robomongo-0.9.0-linux-x86_64-0786489.tar.gz
1.3 mv files and folders into the result folder from extraction operation
into folder robomongo under /usr/local/bin
sudo mkdir /usr/local/bin/robomongo
sudo mv robomongo-0.9.0-linux-x86_64-0786489/* /usr/local/bin/robomongo
1.4 make sure excute file for robomongo program which exists under
/usr/local/bin/robomongo/bin folder is excutable file
cd /usr/local/bin/robomongo/bin
sudo chmod +x robomongo ## run command only if robomongo isn't excutable file
./robomongo
Second way
2.1 download deb file from Official robomongo website(choose version you need to install and get it's deb download file url)
wget https://download.robomongo.org/0.8.5/linux/robomongo-0.8.5-x86_64.deb
2.2 install deb file using dpkg command line
sudo dpkg -i robomongo-0.8.5-x86_64.deb
2.3 open robomongo program using command line by run
robomongo
Very Important Notice:
all version less than robomongo program 0.9.* version has both deb file and tar.gz file download urls(I didn't know what is the reason for this) So If you need download version less than 0.9.* version you can use one of two ways But If you need download version 0.9.0 there only one way is the first ones
more links about install robomongo program: link 1, link 2
If you are unable to run robo3T go to lib folder and delete libstdc++. There you will find two file with similiar name delete both and it will work.

Can't use drop down menus of Mulestudio on Ubuntu13.10

I just newly upgraded my ubuntu to 13.10, and I found the menus of Mule Studio (64-bit linux) upon the unity bar freezing up, i.e. can't open any menu from there.
Has anyone else come across the same issue? And is there a possible solution?
Create a file with any Name. Example. Mule
Add the following line in to the file
Exec=env UBUNTU_MENUPROXY=0 /opt/MuleStudio/MuleStudio
Make sure the path /opt/MuleStudio/MuleStudio is your MuleStudio executable path
Save the file and Exit
Got to command prompt and execute the below like to give executable permission to the file.
~$ cd [your file path]
~$ chmod 777 Mule
and then execute the file using the below command,
~$ ./Mule
Now you can get your Menu in your Mule studio...
Hope it helps.
The problem is caused by a bug in Ubuntu affecting both eclipse and studio. I was able to work around it by following the steps available here