Artwork

Контент предоставлен HPR Volunteer and Hacker Public Radio. Весь контент подкастов, включая эпизоды, графику и описания подкастов, загружается и предоставляется непосредственно компанией HPR Volunteer and Hacker Public Radio или ее партнером по платформе подкастов. Если вы считаете, что кто-то использует вашу работу, защищенную авторским правом, без вашего разрешения, вы можете выполнить процедуру, описанную здесь https://ru.player.fm/legal.
Player FM - приложение для подкастов
Работайте офлайн с приложением Player FM !

HPR4203: Setup DuckDNS on a Raspberry Pi

 
Поделиться
 

Manage episode 439210870 series 62200
Контент предоставлен HPR Volunteer and Hacker Public Radio. Весь контент подкастов, включая эпизоды, графику и описания подкастов, загружается и предоставляется непосредственно компанией HPR Volunteer and Hacker Public Radio или ее партнером по платформе подкастов. Если вы считаете, что кто-то использует вашу работу, защищенную авторским правом, без вашего разрешения, вы можете выполнить процедуру, описанную здесь https://ru.player.fm/legal.

Kevie, co-host of TuxJam, discusses what a Dynamic DNS is and also introduces the free service DuckDNS. To complete this project you are going to need:

  • Raspberry Pi
  • Pi Power Supply
  • Micro-SD Card
  • Ethernet Cable

The first thing that we will need to do is to go to the DuckDNS website, sign in using your preferred method, once you complete the captcha then you will be given your unique token (copy or take a note of it, but don't share this with anybody).

Next you will want to create your own unique address, type in your chosen domain and click on Add Domain.

Now it is time to setup your Raspberry Pi. Log into your Pi and open a terminal. The first thing that we will do is make sure that it is up to date:

sudo apt update && sudo apt upgrade -y

Install Curl using the command:

sudo apt install curl

You will now create two new folders, the first is where the script will be kept, the second to store the logs:

sudo mkdir /opt/duckdns/ && sudo mkdir /var/log/duckdns/

We need to add a bash script that will update your IP with the DuckDNS service. First of all create a new file called duck.sh with the code:

sudo nano /opt/duckdns/duck.sh

At this point the file is empty, we need to enter in the command below. However you must replace DUCKDNSDOMAIN with the domain that was created on the DuckDNS website and replace DUCKTOKEN with your DuckDNS Token:

echo url="https://www.duckdns.org/update?domains=DUCKDNSDOMAIN&token=DUCKTOKEN&ip=" | curl -k -o /var/log/duckdns/duck.log -K -

Now save and exit (ctrl+X, Y, enter on Nano).

Next we can set the script's permission so that nobody else will gain access to your token:

sudo chmod 700 /opt/duckdns/duck.sh

Last step: we need to set a cron task so that your Pi will update DuckDNS domain every 5 minutes:

sudo crontab -e

Navigate to the bottom of the page and add the line:

*/5 * * * * /opt/duckdns/duck.sh >/dev/null 2>&1

Save and exit and your dynamic DNS should be up and running within five minutes.

  continue reading

80 эпизодов

Artwork
iconПоделиться
 
Manage episode 439210870 series 62200
Контент предоставлен HPR Volunteer and Hacker Public Radio. Весь контент подкастов, включая эпизоды, графику и описания подкастов, загружается и предоставляется непосредственно компанией HPR Volunteer and Hacker Public Radio или ее партнером по платформе подкастов. Если вы считаете, что кто-то использует вашу работу, защищенную авторским правом, без вашего разрешения, вы можете выполнить процедуру, описанную здесь https://ru.player.fm/legal.

Kevie, co-host of TuxJam, discusses what a Dynamic DNS is and also introduces the free service DuckDNS. To complete this project you are going to need:

  • Raspberry Pi
  • Pi Power Supply
  • Micro-SD Card
  • Ethernet Cable

The first thing that we will need to do is to go to the DuckDNS website, sign in using your preferred method, once you complete the captcha then you will be given your unique token (copy or take a note of it, but don't share this with anybody).

Next you will want to create your own unique address, type in your chosen domain and click on Add Domain.

Now it is time to setup your Raspberry Pi. Log into your Pi and open a terminal. The first thing that we will do is make sure that it is up to date:

sudo apt update && sudo apt upgrade -y

Install Curl using the command:

sudo apt install curl

You will now create two new folders, the first is where the script will be kept, the second to store the logs:

sudo mkdir /opt/duckdns/ && sudo mkdir /var/log/duckdns/

We need to add a bash script that will update your IP with the DuckDNS service. First of all create a new file called duck.sh with the code:

sudo nano /opt/duckdns/duck.sh

At this point the file is empty, we need to enter in the command below. However you must replace DUCKDNSDOMAIN with the domain that was created on the DuckDNS website and replace DUCKTOKEN with your DuckDNS Token:

echo url="https://www.duckdns.org/update?domains=DUCKDNSDOMAIN&token=DUCKTOKEN&ip=" | curl -k -o /var/log/duckdns/duck.log -K -

Now save and exit (ctrl+X, Y, enter on Nano).

Next we can set the script's permission so that nobody else will gain access to your token:

sudo chmod 700 /opt/duckdns/duck.sh

Last step: we need to set a cron task so that your Pi will update DuckDNS domain every 5 minutes:

sudo crontab -e

Navigate to the bottom of the page and add the line:

*/5 * * * * /opt/duckdns/duck.sh >/dev/null 2>&1

Save and exit and your dynamic DNS should be up and running within five minutes.

  continue reading

80 эпизодов

Все серии

×
 
Loading …

Добро пожаловать в Player FM!

Player FM сканирует Интернет в поисках высококачественных подкастов, чтобы вы могли наслаждаться ими прямо сейчас. Это лучшее приложение для подкастов, которое работает на Android, iPhone и веб-странице. Зарегистрируйтесь, чтобы синхронизировать подписки на разных устройствах.

 

Краткое руководство