![]() ![]() Install code-server from Termux is easy but have a version that works is not easy: pkg upgrade -y Run command once to disable killing of phantom processes and processes using excessive cpu (recommeded for Termux in Android 12L or 13):Īdb shell "settings put global settings_enable_monitor_phantom_procs false" Visual Studio Code on Samsung Dex Copy-pasteĬopy&paste works mostly in apps but in terminal apps doesn't work Ctrl-v is not correct shortcut for pasting. It seems WiFi + Power charging + Display on output screen + Mobile Data makes powering issues so disable Mobile Data connection fix the issue (really not needed because typically you can use WiFi or Ethernet interface). How to downgrade an Android without losing data and removing itĪdb shell pm install -r -d /data/local/tmp/xyz.apk Samsung Dex tips Fixing flickering/disconnecting screen when Desktop Mode on Samsung Dex Execute: adb forward tcp:8022 tcp:8022 and you will have SSH connectivity in your 8022 port (localhost) to your Android phone: USB tethering or ADB USB debugging (recommended) are available. If you have no WiFi available (for example, by train/underground/plane.) or you want to improve the connection speed, you can use a USB cable to connect your Android phone via USB to your computer. To improve security, go to $PREFIX/etc/ssh/ in your phone and modify the sshd_config file (for example, use nano sshd_config) and switch the config line PasswordAuthentication from yes to no. Rsync from your computer: rsync -rvlc -exclude= -delete-excluded myphone:/sdcard ĭisable password authentication (optionally).Get the Android IP network adderss: ip a.Ssh-copy-id -i ~/.ssh/id_rsa.pub -p 8022 Backup/Sync your phone files to your computer Then copy your public key from your computer: (Optionally) Install rsync: pkg install rsync Get the user name, and set the password with the command passwd. Then in your Android phone, open Termux and execute whoami. For example, I use the alias myphone and my router assigns the 192.168.1.4 IP-address: host myphone Install ssh server is easy in Termux: pkg install openssh Config your SSH config in your computerĮdit your ~/.ssh/config to config the Android phone IP address. You can use the embedded ssh server running at 8022 port. So you could backup your phone content seamlessly without any propietary cloud. Termux in a powerful app to run a Linux environment, making possible your Android phone has some applications or tools like a desktop computer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |