beagleboard / Latest-Images

Please use; https://git.beagleboard.org/beagleboard/Latest-Images
https://git.beagleboard.org/beagleboard/Latest-Images
MIT License
10 stars 11 forks source link

Cloud9 -> Something.. #15

Open RobertCNelson opened 4 years ago

RobertCNelson commented 4 years ago

https://theia-ide.org/ ?

sudo apt install libx11-dev libxkbfile-dev libxkbfile-dev npm
sudo npm install --global yarn
git clone https://github.com/eclipse-theia/theia && cd theia && /usr/local/bin/yarn
git clone -b v0.16.1 https://github.com/eclipse-theia/theia --depth=1
voodoo@hades:~$ du -sh theia/
20M theia/
cd ./theia/
/usr/local/bin/yarn
voodoo@hades:~$ du -sh theia/
1.4G    theia/
MarkAYoder commented 4 years ago

Looks interesting....

RobertCNelson commented 4 years ago

theia

Default install...

Korusuke commented 4 years ago

https://github.com/cdr/code-server may be a good option too.

I am not sure how its performance would stack up against cloud9 or theia. This would also enable us to connect and use vscode over ssh using this

The major advantage I see as a vscode user for using theia/vscode over cloud9 is all the available extensions.

RobertCNelson commented 3 years ago

random hacks:

https://github.com/cdr/code-server.git

sudo apt update 
sudo apt install yarnpkg curl gnupg nodejs build-essential libsecret-1-dev libx11-dev libxkbfile-dev gettext-base git rsync unzip jq shellcheck golang gulp

GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt
sudo cp -v ./go/bin/shfmt /usr/local/bin/

GO111MODULE=on go get github.com/goreleaser/nfpm/cmd/nfpm@v1.9.0
sudo cp -v ./go/bin/nfpm /usr/local/bin/

sudo ln -s /usr/bin/yarnpkg /usr/bin/yarn

git clone -b v3.8.1 https://github.com/cdr/code-server.git --depth=1
cd ./code-server/

yarn
yarn build
yarn build:vscode
yarn release

yarn release:standalone
yarn test:standalone-release
yarn package
RobertCNelson commented 3 years ago

Okay, i got a hacked version working...

@MarkAYoder and @jadonk

In buster...

sudo apt update
sudo apt install bb-code-server

Then just run as:

/opt/code-server/app/bin/code-server --auth none --bind-addr 0.0.0.0:3000

For extensions:

formulahendry.code-runner eamodio.gitlens

voodoo@x2-am57xx-beagle-x15-2gb:/opt$ du -sh code-server/
426M    code-server/

actually.. ( i can nuke the custom node binary..)

voodoo@x2-am57xx-beagle-x15-2gb:/opt/code-server$ du -sh app/
349M    app/

Old cloud9:

debian@bbg-pwr06-ser14:/opt$ du -sh cloud9
123M    cloud9

Regards,

MarkAYoder commented 3 years ago

@RobertCNelson I got code-server running on the Bone. It looks interesting. Are there any tutorials on how to use it (rather than install it) that you'd recommend?

RobertCNelson commented 3 years ago

@MarkAYoder honestly, i'm slowly figuring it out.. But yeah, totally new..

Under extensions, grab "formulahendry.code-runner"... i need to pre-isntall this.. after installing it, ctrl-f5, and you should get an arrow in the upper right.. just like cloud9's runner..

I"m going to push a socket activation option, it'll probably break everything.. so you might have to disable it..

https://github.com/rcn-ee/repos/blob/master/bb-code-server/suite/buster/debian/bb-code-server.service

Regards,

Edit: ugh, i didn't set the user, so it'l run as root... we need to run as "debian"...

Edit2: it takes about an hour to build on a Raspberry Pi 4 8gb... So 2 hours for buster and bullseye on every change i make..

MarkAYoder commented 3 years ago

@RobertCNelson This looks like a good place to start for VS in general: https://code.visualstudio.com/docs/getstarted/introvideos

Let me know when you have a new version for me to try.

RobertCNelson commented 3 years ago

v3.9.1 added compression... ;)

voodoo@x6-am57xx-beagle-x15-2gb:~$ du -sh /opt/bb-code-server/
298M    /opt/bb-code-server/