Cannot install R Shiny Server on WSL Ubuntu 18.04 - r

I am unable to install Shiny server on my WSL Ubuntu 18.04 LTS
I get the error after I run this line:
wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.9.923-amd64.deb
sudo gdebi shiny-server-1.5.9.923-amd64.deb
This is the error I keep getting:
/var/lib/dpkg/info/shiny-server.postinst: 97: /var/lib/dpkg/info/shiny-server.postinst: initctl: not found
/var/lib/dpkg/info/shiny-server.postinst: 99: /var/lib/dpkg/info/shiny-server.postinst: initctl: not found
Kindly help.
Tried changing the initctl in /var/lib/dpkg/info/shiny-server.postinst to systemctl but it did not help
I followed the instructions on the R shiny server page

This is working as of July,2020. No need to build from source.
wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.14.948-amd64.deb
sudo gdebi shiny-server-1.5.14.948-amd64.deb

Related

RStudio Server (community) can't find libR.so even though it is in path

Note: I have filed this as an issue, but I'm not sure if it is really a bug or just something I need to resolve about my system configuration.
This seems to be a library that causes many people trouble with RStudio and RStudio Server. Often people can fix the problem by reinstalling the core R libraries with apt or manually copying or linking the libR.so file to a place where RStudio finds it.
In my case, I'm using a Conda instance for my R executable.
My instance was working and stopped after upgrading my ubuntu 22.04 VM. I tried some things to fix the problem but have not succeeded.
System details
RStudio Edition : Server
RStudio Version : 2022.07.2+576 (Spotted Wakerobin) for Ubuntu Bionic
OS Version : Ubuntu 22.04.1 LTS
R Version : 4.1.3 (2022-03-10) -- "One Push-Up"
Describe the problem in detail
I have a GCP VM running ubuntu 22.04 which I use for RSS.
I did a sudo apt update && sudo apt dist-upgrade and a restart. RSS stopped working. I ran sudo rstudio-server verify-installation and received
/usr/lib/rstudio-server/bin/rsession: error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory
I decided to reinstall RSS using:
wget https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2022.07.2-576-amd64.deb
sudo gdebi rstudio-server-2022.07.2-576-amd64.deb
and did not receive any errors during installation. However I received the same error as above with verify-installation. I then tried doing conda update --all -y. This also did not fix the problem.
Here is some useful information:
(base) balter#rstudio:~$ which R
/home/balter/conda/bin/R
(base) balter#rstudio:~$ head -n3 /etc/rstudio/rserver.conf
# Server Configuration File
rsession-which-r=/home/balter/conda/bin/R
(base) balter#rstudio:~$ find . -name "libR.so"
./conda/lib/R/lib/libR.so
./conda/pkgs/r-base-4.1.3-h7880091_3/lib/R/lib/libR.so
(base) balter#rstudio:~$ sudo rstudio-server verify-installation
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/var/log/rstudio/rstudio-server/rserver.log'.
/usr/lib/rstudio-server/bin/rsession: error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory

How to fix failed to fetch http://debian.linux.org.tw/ubuntu/dists/jammy/InRelease Clearsigned file isn't valid on Ubuntu 22.04?

After upgrading my ubuntu from 21.04 to 22.04.
I noticed after running
sudo apt update
,it returns:

Creating a qt GUI in Noetic and issues with catkin_create_qt_pkg

I would like to create a QT GUI package in Noetic. Previously in kinetic/melodic, this could be done using the command 'catkin_create_qt_pkg ' but it's not working in Ubuntu 20.04 as I get
catkin_create_qt_pkg: command not found
Unfortunately, noetic appears to have removed the support for the qt-create and qt-build. Thus, I get 'Unable to locate package' when I try to install them using
sudo apt-get install ros-noetic-qt-build
sudo apt-get install ros-noetic-qt-create
how to create a qt-gui in ubuntu-20.04 with noetic?
System info
Ubuntu 20.04.2 LTS Kernel
5.10.0-1050-oem

ImportError: No module named jupyter_core.command when running via SSH

Jupyter notebook work just fine on my computer, but when i run it via ssh from another computer i receive this message:
ImportError: No module named jupyter_core.command
Im using Ubuntu 18.04.3 LTS for both of them
and i have Conda installed
Ok then.
I just installed Ipython outside of the environment i worked with.:
conda deactivate
and then:
sudo apt install ipython
This worked for me
sudo apt install python3-jupyter-core

opencpu cloud server installation guide on ubuntu 16.04

Would anyone know or like to share their note on installing opencpu cloud server on ubuntu 16.04?
I thought it is easy, but we saw many error here and there when following the instructions. I am new to opencpu. And, I don't have much experience on apache and nignx.
Here is the long story:
I created a new and clean ubuntu 16.04 server from microsoft azure vm, and installed opencpu cloud server following:
# Requires Ubuntu 14.04 (Trusty) or 16.04 (Xenial)
sudo add-apt-repository -y ppa:opencpu/opencpu-1.6
sudo apt-get update
sudo apt-get upgrade
# Installs OpenCPU server
sudo apt-get install -y opencpu
The server reported insserv error when running opencpu init script
update-rc.d: error: insserv rejected the script header dpkg
We then did some goolge and fix around, we got apache2 running, but when called:
curl http://localhost/ocpu/info
received 404 error.
FYI, the single user server runs fine.
The solution we found is that opencpu need mod_R to be turned on from apache2:
sudo a2enmod R
You need first to change to dir:
/etc/apache2/mods-available
And, make sure R.load file exists.
After running a2enmod command, should see a link to R.load (R module) in
/etc/apache2/mods-enable
Thank you y g for your question and response .. I had the same problem i try what you have mentioned in your comment but
curl http://localhost/cpu/info
takes along time without no response.
Thank you.
I used opencpu 1.5 works without bugs on ubuntu 16.04
sudo add-apt-repository -y ppa:opencpu/opencpu-1.5
sudo apt-get update
sudo apt-get upgrade
Install R and then install opencpu
sudo apt-get install r-base r-base-dev
sudo apt-get install -y opencpu
Also you should probably install Rstudio for IDE access
sudo apt-get install rstudio-server
To login to R you'll need to make a new user - follow the prompts
sudo adduser myname
Now just to make sure its all working
sudo service opencpu restart
sudo service rstudio-server restart
And try something like to check if its working
curl -L -v localhost/ocpu/library/
which should return a list of packages now installed on Ubuntu like this
Final Screenshot

Resources