Permision denied for dotnet - .net-core

I recently installed dotnet 5.0 on Pop OS but whenever I try to use it it says that I don't have permission.
For example, if I just try to run the command dotnet it gives the the message
cannot snap-exec: cannot exec "/snap/dotnet-sdk/144/snap/command-chain/snapcraft-runner": permission denied
When I run the command as the root user it works perfectly fine.
I don't know if this is because I installed dotnet as a snap package

I had the same issue and unfortunately the dotnet issue page was not working.
To fix this issue I had to install the package with apt instead of snap.
sudo snap remove dotnet-sdk // if needed
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt update
sudo apt install apt-transport-https
sudo apt-get install -y dotnet-sdk-5.0

Remove snap first
sudo snap remove dotnet-sdk
Manually download Dotnet SDK https://dotnet.microsoft.com/en-us/download/dotnet/6.0
When your download completes, open the terminal and run the following commands to extract the SDK to make the commands available at the terminal.
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-6.0.101-linux-x64.tar.gz -C $HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
one last thing
Edit shell profile to permanently

Related

R studio not working on ubuntu 16.04

I converted to Ubuntu today, but have a problems launching R studio. I installed R through the command prompt like this:
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/">> /etc/apt/sources.list'
gpg -a --export E084DAB9 | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install r-base
I cheked if R was installed proper by typing R and then exiting by q(save="no").
I installed R studio through the command prompt by
sudo apt-get install gdebi-core
wget https://download2.rstudio.org/rstudio-server-0.99.902-amd64.deb
sudo gdebi rstudio-server-0.99.902-amd64.deb
But this doesn't work and i can't find the launch button or open R studio.
Afterwards i tried to remove it and install it through the website but doesn't work either. What should i do?
There is no lauch button -- you connect to port 8787 on the machine running RStudio Server.
In other words, type http://localhost:8787 in the address bar of your browser. You should see a login screen with the RStudio logo. This connects you to your RStudio Server.
If you want to run the Desktop version you need to install the other available .deb package.
For those on Ubuntu 16.10, or who prefer to use the desktop version of RStudio, you may wish to follow the solution posted by Mike Williamson reproduced below:
1) Get the latest R Studio Daily Build here, though note that it's not necessarily stable.
2) Install, chaning the name of the package to the one you downloaded - perhaps easiest if you go to your Downloads directory - and you'll probably find that there are missing packages:
$ sudo dpkg -i rstudio-1.0.124-amd64.deb
3) Download the missing packages (the lack of which causes the installation to fail):
$ wget http://ftp.ca.debian.org/debian/pool/main/g/gstreamer0.10/libgstreamer0.10-0_0.10.36-1.5_amd64.deb
$ wget http://ftp.ca.debian.org/debian/pool/main/g/gst-plugins-base0.10/libgstreamer-plugins-base0.10-0_0.10.36-2_amd64.deb
4) Install them:
$ sudo dpkg -i libgstreamer0.10-0_0.10.36-1.5_amd64.deb
$ sudo dpkg -i libgstreamer-plugins-base0.10-0_0.10.36-2_amd64.deb
5) Make sure they don't get over-written at the next software update:
$ sudo apt-mark hold libgstreamer-plugins-base0.10-0
$ sudo apt-mark hold libgstreamer0.10
6) Install RStudio (changing name to the version you downloaded):
sudo gdebi rstudio-1.1.5-amd64.deb
7) Launch RStudio:
rstudio

google cloud platform SSH You need to be root to perform this command

When I try to install something via putty SSH yum install python-setuptools && easy_install pip, it tells me that:
You need to be root to perform this command
Even if I use sudo yum install python-setuptools && easy_install pip still get permission denied.
How can get root user permission or how can I resolve this?
You're missing sudo on the second portion of the command. Do this:
sudo yum install python-setuptools && sudo easy_install pip
The reason for this is that && is part of a conditional shell expression, which executes the command after && only if the first command was successful. sudo itself is a command/program, so, without the second sudo, this is just saying "if sudo yum install python-setuptools was successful, run easy_install pip (without sudo)".

Troubles with "make" command to install R-3.2.1

I tried to install the R-3.2.1 in my Ubuntu 14.04.2 LTS, but I had troubles with "make" command. How can I install in a better way?
Thanks
The easiest way is via launchpad:
sudo add-apt-repository -y ppa:marutter/rrutter
sudo apt-get update
sudo apt-get install -y r-base
Avoid this dependency resolving issues...simple way to install R in Ubuntu is as below:
load the text file /etc/apt/sources.list in your editor. You must have root privileges, though because it is a system file.
First open a terminal (Applications - Accessories - terminal).
Then open /etc/apt/sources.list with root privileges: type in the terminal
gksudo gedit /etc/apt/sources.list
You will need to give your user password (this assumes you are a user with root privileges) and then the file will load in the editor "gedit".
At the end of the file, add below line :
deb http:///bin/linux/ubuntu trusty/
run below commands interminal
sudo apt-get update
sudo apt-get install r-base
• Now to start an R prompt in your terminal prompt type "R" and hit "enter" key

Cron job in Plesk

In Plesk panel I get the log error : wget command not found. But there is already wget command installed.
How could I solve this issue ?
cron command: wget -q -O – http://www.example.com/wp-cron.php?doing_wp_cron
This should simple and straight forward. what you need to do is install
On Ubuntu: sudo apt-get install wget
or on Fedora/Redhat/Centos: sudo yum install wget
make sure you have rights to run apt-get install or yum install. After you install wget that error in Plesk should go away. By the way, instead of wget -q -O you can also use cURL as an alternate solution to call your cron script.

Grunt command has no effect : no output no error

04).
I want to use grunt.
I install grunt following this http://gruntjs.com/getting-started
I also installed nodejs.
But when i type the command grunt -h it has no effect and just a new line for a new command !
I try to remove nodejs it output a error like. grunt is not recognize..
Any idea to debug that ?
Many thanks !
I had a problem with my node installation I did:
sudo apt-get --purge remove node
sudo apt-get --purge remove nodejs
sudo apt-get install nodejs
sudo ln -s /usr/bin/nodejs /usr/bin/node
and it solve my problem!

Resources