Posts

Showing posts matching the search for termux

Cara Menggunakan Termux Untuk Menjalankan PHP Web Server atau CLI dengan Aplikasi PHP Termux untuk Mengontrol Ponsel atau Tablet Android

Image
Menjalankan PHP di Android Menggunakan Termux Aplikasi Termux memungkinkan menjalankan banyak aplikasi Linux yang terkenal di ponsel Android, tablet, atau jenis perangkat lainnya. Hal ini memungkinkan menjalankan PHP baik dari shell Termux sebagai script konsol atau sebagai server Web. Baca artikel ini untuk mempelajari cara menjalankan skrip PHP dari dalam perangkat Android dan membuka beberapa fungsi Android dengan menggunakan aplikasi Termux. Apa itu Android Termux !!! Aplikasi Termux Adalah aplikasi Android yang berguna yang memungkinkan kita menggunakan semacam konsol Linux di dalam perangkat Android kita, seperti ponsel, tablet, dan sebagainya. Ini membutuhkan Termux:API Aplikasi Add-on untuk dipasang, sehingga bisa menggunakan program command line yang mengekspos fungsi Android ke sistem Termux. Di dalam Termux kita bisa mengakses networking (wi-fi dan mobile internet). Apa itu PHP Termux API ? Tutorial Termux tentang Cara Mengguna

Cara akses FTP SSH client di termux

Image
Akses Jarak Jauh Termux FTP SSH Client Termux mampu mengakses perangkat jarak jauh dengan menggunakan beberapa alat umum. Hal ini juga memungkinkan untuk mengubah perangkat yang menjalankan Termux menjadi server yang dikendalikan dari jarak jauh. FTP Termux menyediakan server FTP ringan sehingga Anda dapat mengelola file Anda melalui koneksi jarak jauh. Server FTP disediakan oleh paket busybox, jadi Anda tidak perlu menginstal apa pun. Untuk memulai server FTP, Anda harus menjalankan `ftpd` melalui` tcpsvd`: $ tcpsvd -vE 0.0.0.0 1024 ftpd / Perintah yang ditunjukkan di atas akan memulai server FTP pada port 1024 dari direktori root (`/`). Secara default, ftpd dimulai dalam mode read-only, misalnya Anda hanya dapat mengunduh file atau melakukan daftar direktori. Jika Anda ingin mengunggah file, ftpd harus dimulai dengan cara ini: $ tcpsvd -vE 0.0.0.0 1024 ftpd -w / Kemudian Anda d

Fix error retrieving pid file on termux apache

Image
Solution to "error retrieving pid file" - Termux and apache Apache errors overview: (20014) Internal error (specific information not available): AH00058: Error retrieving pid file var / run / apache2 / httpd.pid AH00059: Remove it before continuing if it is corrupted. This mistake seems while summoning apachectl either with start or with stop and here and there happens when running on Previous Install XAMPP apache on android termux . Solution Stop apache first apachectl stop Change dir: cd /data/data/com.termux/files/usr/var/run/apache2 Then delete the httpd.pid file: rm httpd.pid Or using this script: # # This script is part of the video, # Cómo instalar Apache Web Server en Android: https://youtu.be/cwp63pJMy_A and # it's intended to be used on Termux Android 32 bits in order to fix

Cara Install Fedora Di Android

Image
Halo semuanya, hanya ingin memberi Anda pembaruan cepat di Fedora dalam proyek chroot Android. Berikut tutorial cara menginstal fedora di android melalui termux emulator android : Install Termux  ( https://termux.com ) Buka termuxnya dan copy kode berikut, satu persatu. (Tanda [#] merupakan komentar). #Update & upgrade command shell apt update #please wait -then apt upgrade #Installing Git apt install git #Installing Curl apt install curl #Installing Wget apt install wget Instalasi Basic Command dan upgrade sudah selesai. Disini anda sudah memumpuni untuk menjalankan command prompt linux secara lancar. Kemudian lanjutkan ke penginstalan nya. Disini saya menggunakan directory Root/Home dari Termux nya sendiri Jadi pastikan anda memiliki penyimpanan yang memumpuni, saya sarankan Free 2GB git clone https://github.com/nmilosev/termux-fedora.git cd termux-fedora chmod +x termux-fedora.sh Nah disini anda sudah mendownload fedora berbasis IMAGE. Beberapa IMAGE un

Termux, a Linux in Android

Image
Termux, a Linux in Android You are a Linux lover, like to play with the Linux operating system , accustomed to using the Linux console . You are also an Android user, like Android . iyup termux is a linux emulator .said linux emulator because here we can install console-based Linux applications that are like other Linux applications, such as MariaDB Server , Apache Server, FTP Server , Samba Server and even SSH Server . I can do Linux commands directly on my cellphone. termux is an application and also an emulator, we can maintain the android we have, do the sudo command (need root) or even become our cellphone as a mini server for various purposes. for those who like to use Linux times to test network security, this application is suitable for you, we can install various security applications that r

Cara install heroku CLI di Termux

Image
Heroku adalah platform cloud sebagai layanan (PaaS) yang mendukung beberapa bahasa pemrograman. Heroku, salah satu platform cloud pertama, telah dikembangkan sejak Juni 2007, ketika hanya mendukung bahasa pemrograman Ruby, tetapi sekarang mendukung Java, Node.js, Scala, Clojure, Python, PHP, dan Go. Untuk alasan ini, Heroku dikatakan sebagai platform polyglot karena memungkinkan pengembang membangun, menjalankan, dan menskala aplikasi dengan cara yang sama di semua bahasa. Heroku diakuisisi oleh Salesforce.com pada 2010 sebesar $ 212 juta. Berikut tutorial untuk install Heroku App dan pre-requirements nya: Instalasi PHP di Termux Instalasi Composer di Termux Instalasi Node.js di Termux Instalasi Heroku App CLI di Termux Tahap 1: update & upgrade apt cd $HOME apt update -y apt upgrade -y Tahap 2: install PHP dan Composer cd $HOME apt install php -y php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file

Install PHP Web Server on Termux

Image
Install PHP Web Server on Termux Install PHP Web Server on Termux connect the previous article about how to install maria db in termux ( Install MariaDB on Termux ), as a complement we will install the apache web server in termux . due to the differences in termux compared to native Linux, the default ports for web servers like 80 etc cannot be used, so later we will use other ports to run the web server . Install Apache WEb server to install Apache web server is quite easy, just type #apt install Apache2 wait until the process is complete, if it's already running it it's easy enough. all we need to do is type the command. #php -S ip: port -t /path/to/web/file.php where ip is the ip address of the web that we want, the port is the port we want to use as an http port, if by chance port 80 is not used it can use port 80, and /path/to/web/file.php is the directory of the php file that we want to run. suppose I have a file at

Install MariaDB on Termux

Image
Install MariaDB on Termux Install MariaDB on Termux as in my previous article about termux, ( Termux, a Linux in Android ). Termux is a Linux system that uses Android. this time I want to share a little about how to install mariadb or the database server in termux . of course, by installing the database we can run the database server whenever we want. so that we can have portable database applications that are suitable for our application demo (if by chance the programmer might understand, there's no need to bother opening the PC if only for database application demos). Maria DB Installation Process to install Mariadb just type #apt install mariadb wait a while until finally Mariadb has finished installing the system. after mariadb is complete then run the following command, to install the basic data #mysql_install_db then type the following command to start the mariadb service #mysqld when finished, we can see th

Manajemen file dan folder di Termux

Image
Memanajemen file di Termux sangatlah mudah. Berikut beberapa command atau syntax untuk memanajemen file dan folder di termux : mkdir mkdir berguna untuk membuat folder. Misal anda ingin membuat folder di HOME termux: cd $HOME mkdir namafolder ls Deskripsi command/syntax diatas cd - untuk pindah ke folder mkdir - untuk membuat folder ls - untuk melihat isi dalam folder saat ini ls ls Berguna untuk melihat isi dalam folder saat ini ataupun folder lain Misal anda ingin melihat isi folder /sdcard/Download . Maka syntax/command nya seperti dibawah ini: ls /sdcard/Download Maka hasilnya akan seperti ini : cp Basic usage : cp [source] [target] cp Berguna untuk mengcopy/meng-copy/men-salin file maupun folder Misal anda ingin mensalin salah satu folder atau file di home termux ke /sdcard . Seperti dibawah ini Command/Syntax nya: cp $HOME/nama_folder /sdcard/nama_folder Deskripsi command diatas: cp - command untuk copy $HOME - adalah variable global dimana folder

Install XAMPP/LAMPP On Android (Non-Root)

Image
php apache setup on android with Termux (without root) Download Termux (allow installation from unknwon sources and install the termux app) Termux Setup Steps update packages (If it asks you, choose yes in both cases.) apt update -y && apt upgrade -y Install Apache and PHP 7 There is as of now a bundle that serves to introduce these two things together. That is, through apache PHP documents are prepared. To introduce our LAMPP on Android we will run: apt install php-apache That will install apache, PHP and a few libraries that will permit us to join the two things. configure apache to process the PHP files We are going to configure the httpd.conf file. Attention here, because the route is important. The apache configuration file is in /data/data/com.termux/files/usr/etc/apache2/httpd.conf You can change to that folder with: cd /data/ data /com.ter

Cara membuka data/data/com.termux/files

How can I open data/data/com.termux/files Frequently Asked : Saya tidak dapat mengakses folder com.termux / file. Saya ingin mengaksesnya karena saya ingin melakukan perubahan dalam file writer.js. Saya mencoba cd .. dan cd - kode untuk kembali ke folder file dari folder home. My Answers: Untuk sampai ke folder file Termux, Anda harus CD ke seluruh      nama jalan seperti ini. cd /data/data/com.termux/files Dari sana dapat melakukan cd ke folder usr dan ke mana pun Anda ingin pergi. Sekali      Anda menemukan writer.js Anda dapat mengeditnya menggunakan nano yang disertakan dengan Termux.      Masukkan nano writer.js, lakukan pengeditan Anda dan gunakan CTRL O untuk menyimpannya dan      CTRL X untuk keluar dari nano. Kemudian Anda dapat kembali ke direktori home Anda dengan: cd ~

Url Opener Script Termux

Image
URL Opener Script Termux #!/data/data/com.termux/files/usr/bin/zsh # # This is a termux-url-opener script to do diffrent tasks on my Android phone # url=$1 echo "What should I do with $url ?" echo "y) download youtube video to movies-folder" echo "u) download youtube video and convert it to mp3 (music-folder)" echo "s) download with scdl (soundcloud)" echo "w) wget file to download-folder" echo "x) nothing" read CHOICE case $CHOICE in y) youtube-dl -o /data/data/com.termux/files/home/storage/shared/Movies/%(title)s.%(ext)s $url ;; u) echo "Artist" read artist echo "Title" read title echo "Album" read album youtube-dl -o ~/storage/music/music.flv $url ffmpeg -i ~/storage/music/music.flv ~/storage/music/$artist-$title.mp3 mid3v2 -a $artist -t $title -A $album ~/storage/music/$artist-$title.mp3 rm ~/storage/music/music.flv ;; s) scdl -l $url -

Install MySQL di termux

Image
Install dan buka termux ketik pkg install mariadb mkdir ../usr/etc/my.cnf.d mysql_install_db mysqld Buka tab sesi baru, lalu ketik mysql -u root -p buka tab sesi baru, lalu ketik mysql_secure_installation lalu ikuti step by step nya. jika ingin memberi password untuk ROOT, tinggal ketik 'y' pada saat step pemberian password terhadap root user selesai. bila ingin menjalankan mysql, setiap pertama kali membuka termux ketik mysqld lalu buka tab sesi baru untuk melakukan open server seperti php misalnya (php -s localhost:8080)

[NEW] Script auto reaction facebook dan auto refresh token PHP

Image
Download Script auto reaction facebook Step by Step Install BOT reaction for cPanel Download Scriptnya . simpan dengan nama bot.php Kalau sudah, Save File Bot nya lalu Upload ke Hosting kalian masing-masing.. Sekarang waktunya Setting Cronjob buat File Bot kalian, agar bisa berjalan dalam waktu yg udah ditentukan :) Untuk settingannya kalian bisa lihat seperti gambar dibawah ini : nb. Untuk Waktu Eksekusi, itu terserah sesuai kalian masing2.. :) Kalo udah mantep settingannya, Klik Add New Cron Job. dan Lihatlah Akun facebook agan bakal ngelike status temen secara otomatis sesuai waktu yang sudah ditentukan tadi. Atau bila kalian bingung dengan tutorial pemasangan cronjob diatas. anda bisa menggunakan alternatif Di Pencarian ini atau Cara Membuat Cron Job Menggunakan webcron.org Cara Install Bot Auto Reaction Facebook Lewat Termux Download Scriptnya . simpan dengan nama bot.php Taruh fil

Menggunakan PHP di termux

Instalasi pkg update -y pkg upgrade -y pkg install php curl wget git -y Contoh Penggunaan PHP (CLI) pada termux buat file php <?php parse_str ( implode ( '&' , array_slice ( $argv , 1 )), $_GET ); ?> Usage/penggunaan php -f namafile.php a=1 b[]=2 b[]=3 //output //$_GET['a'] to '1' and $_GET['b'] to array('2', '3').

Fix apache wont run on android

Image
Previous Install XAMPP apache on android termux Fix error starting apache on android Open httpd.conf nano /data/data/com.termux/files/usr/etc/apache2/httpd.conf Find the lines that contain LoadModule . Comment the following line with hash(#) : LoadModule mpm_worker_module libexec/apache2/mod_mpm_worker.so to # LoadModule mpm_worker_module libexec/apache2/mod_mpm_worker.so Then uncomment the following line (remove hash[#]): # LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.so to LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.so Preview:

Install deb package via Termux

Image
Packages are manually installed via the dpkg command (Debian Package Management System). dpkg is the backend to commands like apt-get and aptitude , which in turn are the backend for GUI install apps like the Software Center and Synaptic. Something along the lines of: dpkg --> apt-get , aptitude --> Synaptic, Software Center But of course the easiest ways to install a package would be, first, the GUI apps (Synaptic, Software Center, etc..), followed by the terminal commands apt-get and aptitude that add a very nice user friendly approach to the backend dpkg, including but not limited to packaged dependencies, control over what is installed, needs update, not installed, broken packages, etc.. Lastly the dpkg command which is the base for all of them. Since dpkg is the base, you can use it to install packaged directly from the command line. Install a package sudo dpkg -i DEB_PACKAGE For

[JS] Get List Facebook Groups ID

Image
Script Get Access Token Full Support https://web-manajemen.blogspot.com/2018/11/script-php-auto-refresh-token-facebook.html Requirements -jQuery <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> HTML <div id="idlist"></div> JavaScript const TOKEN = "YOUR_ACCESS_TOKEN"; function apu(end,token){ var apu = "https://graph.facebook.com/"; return apu+end+"?access_token="+token; } $.get(apu('me/groups', TOKEN), function(respond){ respond.data.forEach(function(data){ $("#idlist").append(data.id+" - "+data.name+"<br/>"); }); }); Result 1090537127744525 - Kolam Para Tuyul 349589302200713 - GUSMUK TUYUL ONLINE 1018459168276107 - Admob Adsense & Bitcoin Indonesia (FADLY HAELMI) 250847515571642 - Always sad ディック 327507001067071 - Ipeenk Downloader | Berbagi Software & Games Gratis 138639936800789 - Jual beli H