This guide will walk you through the steps to install Visual Studio Code (code-server) on your Android device using Termux.
- Install Termux from the GitHub repository or termux.com.
This guide will walk you through the steps to install Visual Studio Code (code-server) on your Android device using Termux.
Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.
Update system packages in Termux:
$ pkg update -y
#!/bin/bash | |
sudo apt update && sudo apt upgrade | |
sudo apt install mysql-server | |
sudo service mysql start | |
#Reset root password | |
sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'jancok123';flush privileges;" | |
sudo apt install apache2 | |
sudo apt install phpmyadmin |
<?php | |
/* | |
* @author Ammar Faizi <ammarfaizi2@gnuweeb.org> | |
* | |
* A simple HTTP Server. I make this program just to do a challenge | |
* from @codenoid. | |
* | |
* Link: https://t.me/GNUWeebTDD/7822 | |
* Link: https://twitter.com/imrenagi/status/1591659569637634048 | |
*/ |
## first install open ssh | |
apt install openssh | |
## start ssh | |
sshd | |
## in pc | |
adb forward tcp:8022 tcp:8022 | |
## then | |
ssh -p 8022 root@localhost |
#!/usr/bin/env python | |
r""" | |
This script can be used to fix the "exec format error" seen with tools like gzip in | |
WSL with Ubuntu 22.04 in Q1/Q2 2022 | |
A hacky fix for broken executables in WSL/Ubuntu 22.0 | |
see https://github.com/microsoft/WSL/issues/8219 | |
## update and install all depencies | |
sudo apt-get update && sudo apt-get -y install curl git build-essential && sudo dpkg --configure -a | |
## if something error happen, try upgrade (sudo apt upgrade) | |
## Install Python2.7 | |
sudo apt install python2.7 -y | |
## add c9 users and skip password | |
adduser --disabled-password --gecos "" c9user |
## First, download newest curl package from here https://curl.haxx.se/download.html | |
apt remove curl | |
apt autoremove | |
apt-get install gcc make -y | |
wget https://curl.se/download/curl-7.85.0.tar.gz | |
tar xzvf curl-7.85.0.tar.gz | |
cd curl-7.85.0 | |
./configure | |
## if you facing error, try configure with openssl |
var obj = Object.entries(document.getElementsByTagName('iframe')[0].contentWindow.H5PIntegration.contents) | |
var obj = obj[0][1]['jsonContent'] | |
parsejson = JSON.parse(obj) | |
for (var k in parsejson['questions']) { | |
console.log("=====================================================================") | |
console.log("SOAL : " + parsejson['questions'][k]['params']['question']) | |
for (var a in parsejson['questions'][k]['params']['answers']) { | |
if (parsejson['questions'][k]['params']['answers'][a]['correct']) { | |
console.log("JAWABAN : " + parsejson['questions'][k]['params']['answers'][a]['text']) | |
} |
#!/system/xbin/bash | |
#Based on https://github.com/termux/termux-app/issues/77 | |
export PREFIX='/data/data/com.termux/files/usr' | |
export HOME='/data/data/com.termux/files/home' | |
export LD_LIBRARY_PATH='/data/data/com.termux/files/usr/lib' | |
export PATH="/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:$PATH" | |
export LANG='en_US.UTF-8' | |
export SHELL='/data/data/com.termux/files/usr/bin/bash' | |
export BIN='/data/data/com.termux/files/usr/bin' | |
export TERM=vt220 |