here is a simple guide, have fun

Gparted

make two partitions

  • Ext4 with maximum size (first partition)
  • Fat16 with 16MB size (secound partiiton)

Install arch

  • wget https://raw.githubusercontent.com/edwardoid/cubieboard-arch-installer/master/install_arch_linux_-_cubieboard2.sh
  • chmod +x install_arch_linux_-_cubieboard2.sh && ./install_arch_linux_-_cubieboard2.sh

now type in the disk you parititon with parted/gparted

up to date lftp builds for windows

Research

I have been reseaching on howto get lftp with sftp/ssh working property on windows, it is a bit funky running under windows using standalone cygwin binaries, but it does work

Some things i noticed is

  • You have to add ./ssh.exe or ssh.exe to commandline to get it to work correctly

(on chocolately ssh works)

  • You have to use /cygdrive/driveletter/folder as source or dest path depending on which way you want to mirror
  • using quotes works like "C:\path\folder\" (thanks todd)

if you want to cancel a download press Ctrl + C

and am fully aware ssh.exe will spawn a few windows for each process, this started to happen in the latest lftp builds on windows 10 for some reason (fixed in 4.6.4?)

Download LFTP Builds (now in 64-bit flavour)

  • Full credits goes to lftp developers for their awesome software, donate to them
  • new builds are also heartbleed fixed
  • having issues?, first test it on a linux system to confirm its a real lftp bug or a cygwin issue, post in the blog forum, to cygwin issue tracker or lftp issue tracker

You can use the choco package manager for windows

Simple setup guide to choco with ssh batch examples (chocolately)

  • choco install lftp --version 4.7.5 (* auto 32/64)
  • choco install lftp --version 4.6.6 (* auto 32/64)
  • choco install lftp --version 4.6.5 (* auto 32/64)
  • choco install lftp --version 4.6.4 (* auto 32/64)
  • choco install lftp --version 4.6.1 (32-bit only)
  • *Can now run everywhere in cmd/powershell

or download standalone https://lftp.nwgat.ninja

feel free to mirror it with lftp -e "set ssl:verify-certificate no; mirror -c" https://lftp.nwgat.ninja/

Version 4.7.7 - 2017-03-07

  • mirror: fixed coredump when source directory does not exist.
  • mirror: don't create target directory if can't enter to the source directory.
  • ftp: fixed a rare hang when a NOOP was sent between "transfer ok" reply and EOF on data *socket.
  • fixed xfer:log setting (compatibility alias).
  • ftp: don't use EPSV with a proxy.

older changelogs can be found at offical lftp site

Setup a Ubuntu Server

(a Idiots guide to running a linux based web server)

this guide will make your server both secure and easy to administer

1. Droplet with LAMP Stack (Linux, Apache, MySQL and PHP)

Go to DigitalOcean
Create a account
Select Size
Select Region
Select Image
Applications
LAMP on Ubuntu 14.04

2. Set mysql “root” Password and secure it

  • mysqladmin -u root -p'password' password newpassword
  • /usr/bin/mysql_secure_installation

3. Add a Web User

  • adduser webuser
  • usermod -a -G www-data webuser
  • chgrp -R www-data /var/www
  • chmod -R 770 /var/www
  • ln -s /var/www /home/webuser/www

Now you can login with webuser using
a sftp client like Filezilla (use port 22)
and you have access to www files

4. Adminer (Optional)

Web based MySQL administration

  • sudo apt-get install adminer
  • sudo servie apache2 restart

You can now login with mysql root/password
http://yoursite.com/adminer

5. Monitoring (Optional)

vnstats lets you monitor daily/monthly bandwidth usage

  • apt-get install vnstat

nethogs is a realtime monitor for ethernet traffic

  • apt-get install nethogs

Glances is a system monitor for your GNU/Linux or BSD operating system from console

  • sudo apt-get install python-pip build-essential python-dev
  • sudo pip install Glances
  • sudo pip install PySensors

6. Secure the system

  • adduser your_username
  • echo "your_username ALL=(ALL:ALL) ALL" >> /etc/sudoers

Now you can run root commands by adding sudo before
the command you want to run like sudo apt-get install
use your user password

*disaster sudo recovery

  • Go to Droplets > Access > Console Access
  • logout
  • login as root
  • nano /etc/sudors <- modify it

7 Disable root login

  • nano /etc/ssh/sshd_config
  • change PermitRootLogin yes to PermitRootLogin no
  • sudo service ssh restart

now login as your_username and run sudo before every command
if you want to become root again run
sudo su

wiak // http://nwgat.net

Receive $10 in credit at DigitalOcean for your VPS Hosting
€1.24 VPS from Time4VPs
Proudly published with Ghost | Theme based on Draugur | Header Image by GUWEIZ@DeviantArt
Creative Commons Licence