What's new

Tutorial Create your own home media server / file server with own domain and SSL

gipste

Addict
Joined
Mar 15, 2018
Posts
32
Reaction
18
Points
71
My Set-up
received_508576830649890.jpeg


My site: You do not have permission to view the full content of this post. Log in or register now.

Screenshot_6.png




Things needed:
1 Orange Pi One (or any pi na meron ka)

Screenshot_1.png



1 SD Card (any size)

1 External Storage (any size, Pref SSD)

Domain name (namecheap or godaddy 60php lang 1 year)

Cloudflare account (for ssl and tunneling kahit nasa CGNAT ka, no need static ip)

Step 1: Download the required files and software​

any image burner (etcher or rpi imager)
You do not have permission to view the full content of this post. Log in or register now.You do not have permission to view the full content of this post. Log in or register now.
Armbian Image
You do not have permission to view the full content of this post. Log in or register now.or select from here

Step 2: Flashing SD card​

  • Open etcher software.
  • Click on the select button and open the downloaded image file, the file may be double compressed so extract it before to get the image file.
  • *********** SD card to the computer and select it using the select target button.
  • Now click the flash button and wait for the process to finish.

Step 3: Connecting to network​

  • You can connect your board directly to your router using an ethernet cable.

Step 4: Obtaining IP address and login via SSH​

  • Go to DHCP settings and open DHCP client list or DHCP lease status. Based on the manufacturer and model of the router there will be some changes in the settings order and names. But always look for the DHCP settings and from there you can get the list of the connected device and the IP addresses.
    From that list find orangepi and note down the IP address associated with.
  • To login via SSH, in windows, you can use putty, download it from You do not have permission to view the full content of this post. Log in or register now.. In Mac and Linux you can use terminal.
  • By default the user name will be root and password will be 1234.

Step 5: Converting Debian installation, into a lightweight DietPi system​

  • Now in the terminal window copy paste the below code and hit enter and wait for the updates to finish.
Code:
apt-get update; apt-get install -y systemd-sysv ca-certificates sudo wget locales --reinstall
  • Now again paste the below code and hit enter and follow the onscreen prompts.
Code:
wget https://raw.githubusercontent.com/MichaIng/DietPi/master/PREP_SYSTEM_FOR_DIETPI.sh -O DIETPI.sh
#wget https://raw.githubusercontent.com/MichaIng/DietPi/jessie-support/PREP_SYSTEM_FOR_DIETPI.sh -O DIETPI.sh
#wget https://raw.githubusercontent.com/MichaIng/DietPi/beta/PREP_SYSTEM_FOR_DIETPI.sh -O DIETPI.sh
#wget https://raw.githubusercontent.com/MichaIng/DietPi/dev/PREP_SYSTEM_FOR_DIETPI.sh -O DIETPI.sh
chmod +x DIETPI.sh
./DIETPI.sh

  • Now login via SSH.
  • The installation will continue for some more time, provide the information when prompted.

Step 6: Installing Softwares​

Screenshot_2.png

  • Now use the arrow key to select software optimised and select ok.
  • Now from the from the software list select nextcloud, plex media server, transmission, use space bar to select and the select ok using tab and hit enter.

Step 6: Buy domain and Register to Cloudflare​

  • Register to cloudflare using the following link

    You do not have permission to view the full content of this post. Log in or register now.
  • Buy domain at godaddy or namecheap

    You do not have permission to view the full content of this post. Log in or register now.
wait for an hour or more para ma propagate ang domain


Step 7: Manage your domain and point it to Cloudflare Nameservers​

  • Sign in to your cloudflare account then create new domain
  • cloudflare will verify kung up na ba ang domain
  • sign in to your domain provider-manage your domain and point it sa cloudflare

  • Screenshot_4.png
    Screenshot_5.png

Step 8: Installing Cloudflare Tunnel​

  • You do not have permission to view the full content of this post. Log in or register now. (will leave this one muna )

will continue this thread kung bakante ulit, thank you sir/mam
 

Attachments

Wow thank you for sharing your knowledge TS, bookmarked muna magagamit ko to in the future. Godbless
 
pang static IP lang yan eh, once magpalit IP mo, maleletse na yang domain mo kasi di na makakaconnect sa Orange Pi. need mo mag setup ng pang dynamic IP.. gamit ka ng no-ip.
 
pang static IP lang yan eh, once magpalit IP mo, maleletse na yang domain mo kasi di na makakaconnect sa Orange Pi. need mo mag setup ng pang dynamic IP.. gamit ka ng no-ip.
no sir, i am using cloudflared tunnel, kahit naka dynamic ip ka or cgnat, ittunnel nya localhost mo, direct sa net, no-ip is old, madami ng tunnel tech ngayon. take a look at ngrok.io, localtunnel, serveo but cloudflare offers it for free.
 
Diba against sa ToS ng CloudFlare yung excessive use of bandwidth kung gagamitin for file server or home media server ?
 
Back
Top