krmanik / Manjaro-Linux-on-Android

Install Manjaro on Android
75 stars 5 forks source link

Vs code not opening #14

Open hdt25 opened 2 years ago

hdt25 commented 2 years ago

Screenshot_20220108-113136465.jpg

I used fix for libreoffice .it works

But vs code is not launching From menu . Also it is not launching from terminal

krmanik commented 2 years ago

Hi, I need to find the solution then I will update it here.

hdt25 commented 2 years ago

andronix has solved it in its modded os . but using it here is best for me

krmanik commented 2 years ago

VSCode

Script to install

Copy following and run in manjaro proot

wget https://raw.githubusercontent.com/infinyte7/manjaro-fs-arm64/main/scripts/vscode_install.sh && chmod +x vscode_install.sh && ./vscode_install.sh

Manually Install

  1. Visit this page and download https://code.visualstudio.com/sha/download?build=stable&os=linux-arm64

Or The download link for current version

wget https://az764295.vo.msecnd.net/stable/899d46d82c4c95423fb7e10e68eba52050e30ba3/code-stable-arm64-1639561407.tar.gz

Skip Step 2 if downloaded using wget

  1. Open termux and copy the downloaded file from Download folder to manjaro/opt/
    Note: the file name be changed

    cp storage/shared/Download/code-stable-arm64-1639561407.tar.gz ~/manjaro/opt/
  2. Proot into manjaro

    ./manjaro.sh
  3. Create vscode folder in /opt

    mkdir /opt/vscode
  4. Extract the downloaded vscode

    tar xf /opt/code-stable-arm64-1639561407.tar.gz -C /opt/vscode/ --strip-components=1
  5. Set alias to run the code

    echo -e "alias code='/opt/vscode/code --no-sandbox'" >> ~/.bashrc
  6. Restart manjaro proot and vncserver then run code