How to get Anaconda icon on Ubuntu 18 in application viewer - anaconda

I have to open anaconda each & every time by typing these commands
$ source ~/anaconda3/bin/activate root
$ anaconda-navigator
can you please tell me how to get the application icon in search application to open it directly
& I am also not able to add this to my favorites on launcher pad.
Thanks to all...

Try making a desktop launcher for your anaconda icon.
check the path where you have installed your application by using which myapplication_name. you will get the installation path which you will need futher to make .desktop file.
cd && vim anaconda.desktop
Copy the below code
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=/path/to/executable
Name=Name of Application
Icon=/path/to/icon
you can get the **path/to/execution** by which command navigate to path/to/bin/anaconda.sh
move your .desktop to usr/share/application
using below command
sudo mv anaconda.desktop usr/share/application
hope this link helps you.

Related

“STM32CubeIDE” is damaged and can’t be opened. You should move it to the Trash. (On Mac)

After installing STM32CubeIDE on Mac, when we double click on the application, the following error gets shown in a popup window:
“STM32CubeIDE” is damaged and can’t be opened. You should move it to the Trash.
The following command in Terminal does also the trick:
xattr -c /Applications/STM32CubeIDE.app
A Solution:
Open Terminal
Open the application using sudo as follows:
$ sudo /Applications/STM32CubeIDE.app/Contents/MacOS/stm32cubeide
Give root password if required.
The application opens normally.

How to create a desktop-entry for anaconda on Ubuntu 17.10?

I've recently installed anaconda3 in Ubuntu 17.10 (system environment). To run anaconda-navigator, I've to activate root for each time as
Source ~/anaconda3/bin/activate root
And to run it I've to write each time
anaconda-navigator
Now I am wanted to create a desktop entry but I'm having errors at multiple stages. Can you please explain from beginning how to create a desktop-entry for anaconda3 on Linux?
EDIT: I've tried using this post on AskUbuntu. But, it failed for me. It is not showing on dock-bar as well as in /usr/share/applications. I'm really frustrated.
First, check if anaconda3 is installed on your system or not (Sometime the package may be broken due to network issues during installation (Not worked for me)). And whether you are able to launch anaconda-navigator without a desktop entry.
For creating a desktop entry
Step 1. Open your text editor and save the following content as Anaconda.desktop to your home directory.
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Comment=Scientific Python Development Environment - Python3
Exec='$HOME/anaconda3/bin/anaconda-navigator'
Categories=Development;Science;IDE;Qt;Education;
Icon=$HOME/anaconda3/lib/python3.8/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=true
MimeType=text/x-python;
Take care with the Python version. in $HOME/anaconda3/lib/python3.8/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png change python3.8 if needed
Step 2. Copy your Anaconda.desktop to /usr/share/applications/ as root (Because you might need permission to copy at /usr/share/applications/)
sudo cp Anaconda.desktop /usr/share/applications
This will create a desktop entry named Anaconda in /usr/share/applications/.
Step 3. add this line export PATH="$HOME/anaconda3/bin:$PATH" to your /etc/profile or $HOME/.bashrc
Step 4. Check if Anaconda is added to your application dock. If you didn't find it, search it in search-bar. Or you can run directly from /usr/share/applications/Anaconda.desktop.

How to install firefox developer edition?

I downloaded firefox developer edition and extracted it from tar.bz2, tryid to install it by running this ./firefox command but it opens it only temporarily but I wnat to install it to my computer. I use Linux Mint 17 cinnamon
Download it from here - https://www.mozilla.org/en-US/firefox/developer/
Save the folder somewhere and open the file called "firefox" (the one next to firefox-bin)
As a linux Mint user this is the most effective method I have found. It allows me to keep stock Firefox separate from developer.
Download from here https://www.mozilla.org/en-US/firefox/developer/
Extract and move.
$ tar xjf firefox-45.0a2.en-US.linux-x86_64.tar.bz2
$ sudo mv firefox /usr/local/firefox_dev
Create a desktop entry at ~/.local/share/applications/firefox_dev.desktop
OR
on some distros here /usr/share/applications/...
Formatted Like...
[Desktop Entry]
Name=Firefox Developer
GenericName=Firefox Developer Edition
Exec=/usr/local/firefox_dev/firefox
Terminal=false
Icon=/usr/local/firefox_dev/browser/icons/mozicon128.png
Type=Application
Categories=Application;Network;X-Developer;
Comment=Firefox Developer Edition Web Browser.
Should show up in the app panel promptly.
I have upgraded my firefox to firefox-developer using the steps below:
sudo add-apt-repository ppa:ubuntu-mozilla-daily/firefox-aurora
sudo apt-get update
sudo apt-get install firefox/trusty
In Fedora 23, you can intall firefox developer edition, run it like so:
curl -L http://git.io/firefoxdev | sh
Prerequisites
1 File manager nautilus, nemo etc
2 gnome-panel
Steps
Download the firefox developer edition here:
https://www.mozilla.org/en-US/firefox/developer/
Open nautilus file manager in sudo mode by using following command
sudo nautilus
Make Folder firefox-developer inside /opt to save extracted files
a. Using command line
sudo mkdir /opt/firefox-developer
b. Using GUI
Extract the tar file and add firefox folder to /opt/firefox-developer/
a. Using command line
cd /opt/firefox-developer
tar xvjf path_of_tar_file
b. Using archieve manager
Change permission for /opt/firefox-developer folder
a. Using terminal
sudo chmod 777 -R /opt/firefox-developer
we are using -R for repetitive changing because we have to change
permissions for contents inside folders also.
Open /opt/firefox-developer/firefox using nautilus file manager
a. Select file named firefox
b. Open Properties>>Permissions tab >> Allow Executing file as program >> Close
Open Nautilus:
a. Click on files icon at upper-left corner of screen >> Preferences >> Behaviour tab
b. click on “Run executable text files when they are opened”
Open terminal because we have to create launcher for opening application:
gnome-desktop-item-edit ~/.local/share/applications --create-new
new dialog-box will be appeared
a. Name>> Give any suitable name for shortcut e.g. Firefox-Developer
b. Command>> Click on Browse and select path of /opt/firefox-developer/firefox/firefox file
c. Comment>> Add suitable comment for more-info about application
d. icon>> Click on icon at left side box and select your custom icon.
The Firefox Developer Edition is available as part of Ubuntu Make:
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make
After that just run the Firefox installer without sudo (Choose installation path then language and it's Done ):
umake web firefox-dev

I can't get ShoesRB to install in Ubuntu 14. Is the issue the .run or .install file types?

Whenever I attempt to open the ShoesRB install files for Linux, which are both "script.run" and "script.install" files, they open in a text editor instead of an installer. When I attempt to run them in the terminal, I'm getting strange root authentication errors. I know the root password is correct.
Does anybody know how to correctly install ShoesRB in Ubuntu 14?
First of all download the executable from http://shoesrb.com/downloads/ according to your linux machine. This you have already done. On double clicking the downloaded .run file (say filename.run), you might not be able to run it because it would not be having executable permission -
This you can change by right clicking the script -> properties -> permissions -> Check the 'Allow executing file permission'
Or
from terminal by
chmod +x filename.run
Next you need to run this by:
sudo ./filename.run
Enter correct root password and you are good to go. This script actually make a hidden .shoes directory in your home and all shoes related files and executable are present in there. It also copies a desktop entry for shoes to /user/share/application, which you open to open shoes applications.
Moreover you can copy that desktop entry to your desktop and make it executable by:
cp /usr/share/applications/shoes.desktop ~/Desktop/shoes.desktop
chmod +x ~/Desktop/shoes.desktop
All done! Just double click the shoes icon on your desktop you can open your shoes apps now.
Hope it Helps :)

Unable to map path to postresql after installation of Postgres 9.3 to mac

After installing Postgresql by dragging folder into my applications folder I am unable to get commands to work in the terminal and unable to add the path so that is shows up using the command $ echo $PATH.
Postgres starts in the terminal using the elephant icon on the system tray and selecting "open psql" so I believe it installed correctly.
I tried adding all different combinations of the following lines to my .bash_profile
PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
then
PATH="/Applications/Postgres93.app/Contents/MacOS/bin:$PATH"
then
export PATH=$PATH:/Applications/Postgres93.app/Contents/MacOS/bin
and finally
export PATH=$PATH:/Applications/Postgres93.app/Contents/MacOS/bin
after each attempt I ran $ source $HOME/.bash_profile and then checked path and/or tried $psql $ which psql to no avail.
Also tried adding lines to .bashrc , .profile and .zshrc without luck.
The path to the executable commands bin folder in the app (psql, createdb, createlang, etc..) is
$ /Applications/Postgres93.app/Contents/MacOS/bin
Any help would be greatly appreciated!
running OSX 10.9.1
https://superuser.com/questions/707222/unable-to-get-postgresql-commands-to-work-in-terminal
answered at the link above by zelanix https://superuser.com/users/293259/zelanix

Resources