VS Code on iPad Pro: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 69: Line 69:
  LocalForward 8080 127.0.0.1:8080
  LocalForward 8080 127.0.0.1:8080
  ExitOnForwardFailure yes
  ExitOnForwardFailure yes
|}
== Java GraalVM ==
{|
|valign="top" colspan="2"|
<source lang="bash">
sudo wget -c https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.0.0.2/\
graalvm-ce-java17-linux-aarch64-22.0.0.2.tar.gz -P /opt/cli/
sudo tar -xvzf /opt/cli/graalvm-ce-java17-linux-aarch64-22.0.0.2.tar.gz -C /opt/cli/
sudo rm  -rf  /opt/cli/graalvm-ce-java17-linux-aarch64-22.0.0.2.tar.gz
cat << \EOF >> $ACADEMIA_HOME/etc/env/system.sh
# chorke academia sys
export GRAALVM_HOME='/opt/cli/graalvm-ce-java17-22.0.0.2'
EOF
</source>
|-
|colspan="2"|
----
|-
|valign="top"|
<source lang="bash">
update-alternatives --query native-image
update-alternatives --query jconsole
update-alternatives --query jshell
update-alternatives --query javac
update-alternatives --query java
update-alternatives --query jdb
update-alternatives --query jps
update-alternatives --query gu
update-alternatives --query js
sudo update-alternatives --install /usr/bin/jconsole jconsole\
$GRAALVM_HOME/bin/jconsole 1983
sudo update-alternatives --install /usr/bin/jshell jshell\
$GRAALVM_HOME/bin/jshell 1983
sudo update-alternatives --install /usr/bin/javac javac\
$GRAALVM_HOME/bin/javac 1983
sudo update-alternatives --install /usr/bin/java java\
$GRAALVM_HOME/bin/java 1983
</source>
|valign="top"|
<source lang="bash">
sudo update-alternatives --install /usr/bin/jdb jdb\
$GRAALVM_HOME/bin/jdb 1983
sudo update-alternatives --install /usr/bin/jps jps\
$GRAALVM_HOME/bin/jps 1983
sudo update-alternatives --install /usr/bin/js js\
$GRAALVM_HOME/bin/js 1983
sudo update-alternatives --install /usr/local/bin/gu gu\
$GRAALVM_HOME/bin/gu 1983
sudo gu install native-image
sudo update-alternatives --install /usr/bin/native-image native-image\
$GRAALVM_HOME/bin/native-image 1983
native-image --version
sudo gu --version
javac -version
java -version
js -version
</source>
|}
|}



Revision as of 21:55, 3 April 2022

curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm -g install yarn

yarn global add code-server
~/.yarn/bin/code-server

vim ~/.config/code-server/config.yaml

bind-addr: 127.0.0.1:8080
auth: none
password: academia
cert: false
bind-addr: 127.0.0.1:8080
auth: password
password: academia
cert: false

sudo vim /etc/systemd/system/code-server.service
[Unit]
Description=code-server
After=network.target

[Service]
User=ubuntu
Group=ubuntu

WorkingDirectory=/home/ubuntu
Environment="PATH=/usr/bin"
ExecStart=/home/ubuntu/.yarn/bin/code-server

[Install]
WantedBy=multi-user.target
sudo systemctl disable code-server.service
sudo systemctl enable code-server.service
sudo systemctl status code-server.service
sudo systemctl start code-server.service
sudo systemctl stop code-server.service
blink » config » Hosts » New Host » SSH Config » New Host » Save
# Compression no
LocalForward 8080 127.0.0.1:8080
ExitOnForwardFailure yes

Java GraalVM

sudo wget -c https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.0.0.2/\
graalvm-ce-java17-linux-aarch64-22.0.0.2.tar.gz -P /opt/cli/

sudo tar -xvzf /opt/cli/graalvm-ce-java17-linux-aarch64-22.0.0.2.tar.gz -C /opt/cli/
sudo rm  -rf   /opt/cli/graalvm-ce-java17-linux-aarch64-22.0.0.2.tar.gz

cat << \EOF >> $ACADEMIA_HOME/etc/env/system.sh
# chorke academia sys
export GRAALVM_HOME='/opt/cli/graalvm-ce-java17-22.0.0.2'

EOF

update-alternatives --query native-image
update-alternatives --query jconsole
update-alternatives --query jshell
update-alternatives --query javac
update-alternatives --query java
update-alternatives --query jdb
update-alternatives --query jps
update-alternatives --query gu
update-alternatives --query js

sudo update-alternatives --install /usr/bin/jconsole jconsole\
 $GRAALVM_HOME/bin/jconsole 1983

sudo update-alternatives --install /usr/bin/jshell jshell\
 $GRAALVM_HOME/bin/jshell 1983

sudo update-alternatives --install /usr/bin/javac javac\
 $GRAALVM_HOME/bin/javac 1983

sudo update-alternatives --install /usr/bin/java java\
 $GRAALVM_HOME/bin/java 1983
sudo update-alternatives --install /usr/bin/jdb jdb\
 $GRAALVM_HOME/bin/jdb 1983

sudo update-alternatives --install /usr/bin/jps jps\
 $GRAALVM_HOME/bin/jps 1983

sudo update-alternatives --install /usr/bin/js js\
 $GRAALVM_HOME/bin/js 1983

sudo update-alternatives --install /usr/local/bin/gu gu\
 $GRAALVM_HOME/bin/gu 1983

sudo gu install native-image
sudo update-alternatives --install /usr/bin/native-image native-image\
 $GRAALVM_HOME/bin/native-image 1983

native-image --version
sudo gu --version
javac -version
java -version
js -version

Mobile Shell

sudo apt update
sudo apt list --upgradable
sudo apt upgrade
sudo apt install mosh

Knowledge

sudo npm install -g --unsafe-perm=true --allow-root
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
curl -fsSL https://rpm.nodesource.com/setup_14.x | sudo bash -

References