dashaub / ARM-RStudio

Compile RStudio for ARM Ubuntu 14.04 on Samsung Chromebook
GNU General Public License v2.0
53 stars 17 forks source link

Tested installation on Ubuntu 20.04: fails without qt-sdk #12

Open ghost opened 4 years ago

ghost commented 4 years ago

Raspberry Pi 4B Ubuntu 20.04

sudo ./ARM-RStudio.sh produces error: E: Unable to locate package qt-sdk

After some investigation of various installation sources, neither qt-sdk, or libqt4-dev appear to be available for fossa arm64

I'll take a closer look at the script to see if there is a workaround.

znmeb commented 4 years ago

I gave up on the desktop - the server has the same UI and I can browse to it from localhost or on my network. All the code is here at https://github.com/znmeb/edgyR.git. I build in a Docker image on an NVIDIA Jetson; you'll probably have to change some things up for the Raspberry Pi.

arencambre commented 3 years ago

Per https://doc.qt.io/qt-5/supported-platforms.html, there are supported platforms involving Ubuntu and ARM but not together.

znmeb commented 3 years ago

Per https://doc.qt.io/qt-5/supported-platforms.html, there are supported platforms involving Ubuntu and ARM but not together.

You can always build Qt from source. But it takes forever on a Jetson / Raspberry Pi and there are no free arm64 servers in the cloud - you have to pay for them.

I'm very happy with RStudio Server; in Chrome / Chromium with full-page browsing (F11) I can't tell the difference.

bshor commented 3 years ago

I'm having the same problem on my Lenovo Chromebook Duet. It can install R but fails at qt-sdk.

I'd really like to have a local version of R and RStudio as I only have Windows running on the desktops and WSL2 is still very finicky.

znmeb commented 3 years ago

I'm having the same problem on my Lenovo Chromebook Duet. It can install R but fails at qt-sdk.

I'd really like to have a local version of R and RStudio as I only have Windows running on the desktops and WSL2 is still very finicky.

RStudio Server runs just fine on WSL-2. The desktop works with X410 but it's not as efficient as the Windows build of RStudio Desktop.

bshor commented 3 years ago

I had difficulties with accessing RStudio Server running on WSL2 off the network. But to each his/her own.

I'm willing to build Qt from source so I can install this. How difficult would it be for a Linux newbie?

Unless you all are talking about install RStudio Server on the Chromebook, and then accessing it from the browser on the very same system? Seems kind of roundabout...

znmeb commented 3 years ago

I had difficulties with accessing RStudio Server running on WSL2 off the network. But to each his/her own.

I'm willing to build Qt from source so I can install this. How difficult would it be for a Linux newbie?

Unless you all are talking about install RStudio Server on the Chromebook, and then accessing it from the browser on the very same system? Seems kind of roundabout...

The effort-to-payoff ratio for compiling Qt from source was more that I was willing to accept. :-) How much RAM does your Chromebook have? I had to limit the number of processes on my 4 GB Nano to get the Java part of RStudio Server to build. I'm doing all my builds on an AGX Xavier now. Mine has 16 GB of RAM but the newer ones have 32 GGB.

bshor commented 3 years ago

Chromebook Lenovo has 4Gb RAM/128Gb storage.

znmeb commented 3 years ago

Chromebook Lenovo has 4Gb RAM/128Gb storage.

My Nano has 4 GB and a 256 GB microSD and it runs RStudio Server. The Docker image is about 6 GB so you should be fine.

bshor commented 3 years ago

Are you talking about following these instructions for the Raspberry Pi and Docker? That was the closest I could find.

znmeb commented 3 years ago

Are you talking about following these instructions for the Raspberry Pi and Docker? That was the closest I could find.

I have my own Docker build process from upstream source. It's in a state of flux right now because I'm also building POCL, libnode-dev (required by the R V8 package), and a newer pandoc (required by distill. The pandoc piece doesn't work on the Nano - not enough RAM.

bshor commented 3 years ago

That's now way beyond me. I see how everything is easy in Linux world with an Intel CPU. But if you get an ARM64 CPU, you're much more on your own. I envy the Mac people where their new M1 chip is going to get rapid support.

I totally failed, for example, in installing R above 3.5.2, which comes with Debian 10 Buster on my Crostini distribution within the Lenovo Chromebook Duet. All the tutorials online mention AMD64 (Intel) binaries...

My new strategy is forgetting RStudio on ARM for now and just using R Studio Server running on a desktop somewhere.

bshor commented 3 years ago

Retried RStudio Server on WSL2+Ubuntu 20.04 and it works great now.

The Chromebook now gets to use the resources of the desktop. Too bad I can't do anything when the network is out, but that's pretty rare now I guess.

znmeb commented 3 years ago

@bshor Does the Chrome desktop sharing setup work with a Chromebook as a client?

bshor commented 3 years ago

Well it's not a desktop sharing setup like Remote Desktop if that's what you're asking (although trying RDP is on my list of to-do items for the Chromebook). It's serving an R-specific IDE through the web browser, rather than running it locally.