- I am new to linux.
- I try to deploy a shiny server locally on my windows machine with ubuntu WSL.
- I successfully installed ubuntu WSL on my windows machine and I can start ubuntu.
- I come here so far:
tarjae@DESKTOP-LNI8ONS:~$
- If I type
dirI get this:
R rstudio-server-latest-amd64.deb shiny-server-1.5.17.973-amd64.deb.1
app1.R shiny-server-1.5.17.973-amd64.deb
From now on everything that happens is random for me, depending on which tutorial I go through!
So my question is:
- How can I check whether I am the root or a user? (Source for basic managing linux commands)?
- Where is my shiny server?
- How can I start the server
sudo start shiny-serverdoes not work ->
tarjae@DESKTOP-LNI8ONS:~$ sudo start shiny-server
[sudo] password for tarjae:
sudo: start: command not found
- And finally how can I start
app1.R
I am fully aware that all this is kind of wage. But I hope to get the next step for my purposes. ANY directing advice is highly appreciated.
Update1:
dpkg-query -l shiny shows
dpkg-query: no packages found matching shiny
- After
sudo apt install ./shiny-server-1.5.17.973-amd64.debit shows:
Note, selecting 'shiny-server' instead of './shiny-server-1.5.17.973-amd64.deb'
shiny-server is already the newest version (1.5.17.973).
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Update 2:
With
tarjae@DESKTOP-LNI8ONS:~$ dpkg-query -l | grep shiny
I get:
ii shiny-server 1.5.17.973 amd64 Shiny Server
- Then with
tarjae@DESKTOP-LNI8ONS:~$ systemctl start shiny-server
I get:
tarjae@DESKTOP-LNI8ONS:~$ systemctl start shiny-server
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Update 3:
tarjae@DESKTOP-LNI8ONS:/home/shiny$ sudo service shiny-server start
I get:
tarjae@DESKTOP-LNI8ONS:/home/shiny$
Nothing happens. Last days I read a blog where I should create a new user and I did and with this new user I could see something on localhost:3838. I am sorry to take your time!
If I do:
tarjae@DESKTOP-LNI8ONS:~$ service shiny-server status
#OR
tarjae@DESKTOP-LNI8ONS:~$ sudo service shiny-server status
# I get:
tarjae@DESKTOP-LNI8ONS:~$