Skip to content

Instantly share code, notes, and snippets.

@budgierless
budgierless / Android_tips.md
Created August 13, 2023 12:30 — forked from jaimemrjm/Android_tips.md
Android phone tips: SSH / FTP server (for backup, sync...), Samsung Dex

FTP Server in Android

SSH Server in Android

Termux in a powerful app to run a Linux environment, making possible your Android phone has some applications or tools like a desktop computer. So you could backup your phone content seamlessly without any propietary cloud. You can use the embedded ssh server running at 8022 port.

Install ssh server is easy in Termux: pkg install openssh

# From https://pastebin.com/wEvpW0rg by https://github.com/RedScourge See https://github.com/drud/ddev/issues/1714#issuecomment-532015204
apt-get install -y libcurl4 curl libcurl4-openssl-dev libc-client2007e libc-client2007e-dev libssl1.1 libssl-dev \
libsnmp-dev comerr-dev krb5-multidev libgssrpc4 libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-9 libpam0g-dev libpci-dev \
libsensors4-dev libudev-dev libwrap0-dev zlib1g-dev
#php5.3 libraries/tools for compile
apt-get install -y build-essential autoconf automake autotools-dev re2c cmake cmake-data libjsoncpp1 librhash0
apt-get install -y apache2-dev libbz2-dev libssl1.0.0 bzip2-doc libapr1-dev libaprutil1-dev libexpat1-dev \
libldap2-dev libsctp-dev libsctp1 uuid-dev
apt-get install -y libedit-dev libenchant-dev libfreetype6 libfreetype6-dev enchant hunspell-en-us libbsd-dev \
@budgierless
budgierless / flush-dns.sh
Created October 5, 2019 10:27 — forked from craigvantonder/flush-dns.sh
Flushing the DNS in Ubuntu 16.04
#!/bin/bash
# NB: First install nscd with sudo apt-get install nscd
# run this command to flush dns cache:
sudo /etc/init.d/dns-clean restart
# or use:
sudo /etc/init.d/networking force-reload
# Flush nscd dns cache:
sudo /etc/init.d/nscd restart