Skip to content

Instantly share code, notes, and snippets.

@BenjaminWegener
Created February 19, 2022 19:40
Show Gist options
  • Save BenjaminWegener/ba06a21459e090e85d84f388776ce5e3 to your computer and use it in GitHub Desktop.
Save BenjaminWegener/ba06a21459e090e85d84f388776ce5e3 to your computer and use it in GitHub Desktop.
Nextcloud on android userland
-install userland from fdroid
-setup debian with ssh
-get wlan ip from android
-connect to ssh via putty/connectbot etc - port is 2022
sudo apt update -y
sudo apt install -y wget unzip mariadb-server mariadb-client php php-{cli,xml,zip,curl,gd,cgi,mysql,mbstring} apache2 libapache2-mod-php
sudo mysql
CREATE DATABASE nextcloud;
CREATE USER admin@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON nextcloud.* TO admin@localhost;
FLUSH PRIVILEGES;
QUIT;
cd /var/www/html/
wget --no-check-certificate https://download.nextcloud.com/server/releases/latest-23.zip
unzip latest-23.zip
sudo chown -R www-data:www-data /var/www/html/nextcloud
sudo sudo chmod -R 755 /var/www/html/nextcloud
sudo sed -i 's/80/8080/g' /etc/apache2/ports.conf
sudo service mysql restart
sudo service apache2 restart
-open browser http://_ip_from_android:8080/nextcloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment