Doge Coin Installation and Configuration Guide on FreeBSD

Doge Coin is an open-source peer-to-peer digital currency, loved by Shiba Inus around the world. In essence, Dogecoin is an accidental crypto move that makes people smile! It is also an opensource peer-to-peer cryptocurrency that uses blockchain technology, a highly secure decentralized information storage system as a public ledger maintained by a network of computers called nodes. More than that, however, is the ethos of Dogecoin, summarized in the Dogecoin Manifesto, and its amazing and vibrant community of friendly, energetic people.

This article is part of a previous article discussing Bitcoin on FreeBSD. Similar to the Bitcoin article reviewed previously, this time we will learn how to install and configure Dogecoin Core Wallet on a FreeBSD machine. In this article, the FreeBSD system used is the latest version currently, namely FreeBSD 13.2.

Although there are slight differences, the steps for installing Dogecoin are almost the same as installing Bitcoin on a FreeBSD system.

1. Dogecoin Core Wallet Installation

As usual, before installing Dogecoin, you must first install the Dogecoin supporting application. Clang is the default CC language compiler that will be used to compile Dogecoin files. In this case, Clang is also useful for compiling the dependencies needed by Dogecoin. Follow the following script to start installing Dogecoin on FreeBSD.
root@router2:~ # pkg install autoconf automake libtool pkgconf
root@router2:~ # pkg install boost-libs openssl libevent
root@router2:~ # pkg install gmake db5
If everything has been successfully installed, let's start installing Dogecoin. You can download the complete file and final version of Dogecoin on the Github website. Open the following Github url and download all the files with the script below.
root@router2:~ # cd /usr/local/etc
root@router2:~ # git clone
After we download the file, continue with the script.
root@router2:~ # cd /usr/local/etc/dogecoin
root@router2:/usr/local/etc/dogecoin # ./
root@router2:/usr/local/etc/dogecoin # ./configure --with-incompatible-bdb --disable-tests --disable-hardening MAKE="gmake" CFLAGS="-I/usr/local/include" CXXFLAGS="-I/usr/local/include -I/usr/local/include/db5" LDFLAGS="-L/usr/local/lib -L/usr/local/lib/db5"
root@router2:/usr/local/etc/dogecoin # gmake
root@router2:/usr/local/etc/dogecoin # gmake check
root@router2:/usr/local/etc/dogecoin # gmake install
This installation process takes a long time, so be patient and wait until the Dogecoin installation process is complete.

2. Dogecoin Core Wallet Configuration

Make sure you don't miss any of the steps above, if you miss anything, don't expect Dogecoin to run normally on the FreeBSD system. The next step we will start configuring Dogecoin Core Wallet. Create a user and group with the name Dogecoin.
root@router2:~ # adduser
Username: dogecoin
Full name: dogecoin wallet
Uid (Leave empty for default):
Login group [dogecoin]:
Login group is dogecoin. Invite dogecoin into other groups? []:
Login class [default]:
Shell (sh csh tcsh bash rbash git-shell nologin) [sh]:
Home directory [/home/dogecoin]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]:
Lock out the account after creation? [no]:
Username : dogecoin
Password : <disabled>
Full Name : dogecoin wallet
Uid : 1017
Class :
Groups : dogecoin
Home : /home/dogecoin
Home Mode :
Shell : /bin/sh
Locked : no
OK? (yes/no): yes
adduser: INFO: Successfully added (dogecoin) to the user database.
Add another user? (yes/no): no

If the dogecoin user and group are successfully created, continue by creating the /usr/home/dogecoin/.dogecoin folder. This folder will be used to store all Dogecoin blockchain files, not only that, wallet files with the extension "dat" are also stored in this folder.
root@router2:~ # mkdir -p /usr/home/dogecoin/.dogecoin
root@router2:~ # touch /usr/home/dogecoin/.dogecoin/debug.log
Don't forget to create a configuration file with the name dogecoin.conf, save this file in the /usr/home/dogecoin/.dogecoin folder.
root@router2:~ # touch /usr/home/dogecoin/.dogecoin/dogecoin.conf
root@router2:~ # chmod -R +x /usr/home/dogecoin/.dogecoin/dogecoin.conf
root@router2:~ # chmod -R 777 /usr/home/dogecoin/.dogecoin/debug.log
root@router2:~ # chown -R dogecoin:dogecoin /usr/home/dogecoin/.dogecoin/

The next step is to create a dogecoin.conf script, the script contains any configuration or commands that you will apply to the Dogecoin daemon. Enter the script below in the /usr/local/etc/dogecoin.conf file.
root@router2:~ # ee /usr/home/dogecoin/.dogecoin/dogecoin.conf




When creating the dogecoin.conf configuration file, make sure there are no typing errors, especially the location of the dogecoin folder. Take a look at the script above, the Dogecoin file is saved in the .dogecoin folder. See there is a period at the beginning of the dogecoin sentence. The next step is to create a symlink file to the /root folder.
root@router2:~ # ln -s /usr/home/dogecoin/.dogecoin /root

3. Create an rc.d Start Up Script

On the FreeBSD system the rc.d script plays an important role, almost all applications running on FreBSD have the rc.d script. This script is useful for activating programs automatically, so we don't need to execute the program if we want to activate it, just create the rc.d script and any program can run automatically when the computer is turned off or restarted/rebooted.

Now we try to create an rc.d script for the Dogecoin program and we name the file dogecoin. Please follow the steps below to make Dogecoin run automatically.
root@router2:~ # touch /usr/local/etc/rc.d/dogecoin
root@router2:~ # chmod -R +x /usr/local/etc/rc.d/dogecoin
After the rc.d dogecoin script has been successfully created, enter the following script in the /usr/local/etc/rc.d/dogecoin file.

# PROVIDE: dogecoin
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
# dogecoin_enable (bool): Set to NO by default.
# Set it to YES to enable dogecoin.
# dogecoin_config (path): Set to /usr/home/dogecoin/.dogecoin/dogecoin.conf
# by default.
# dogecoin_user: The user account dogecoin daemon runs as
# It uses 'root' user by default.
# dogecoin_group: The group account dogecoin daemon runs as
# It uses 'wheel' group by default.
# dogecoin_datadir (str): Default to "/home/dogecoin/.dogecoin"
# Base data directory.

. /etc/rc.subr


: ${dogecoin_enable:=NO}
: ${dogecoin_config=/usr/home/dogecoin/.dogecoin/dogecoin.conf}
: ${dogecoin_datadir=/usr/home/dogecoin/.dogecoin}
: ${dogecoin_user="dogecoin"}
: ${dogecoin_group="dogecoin"}

command_args="-conf=${dogecoin_config} -datadir=${dogecoin_datadir} -noupnp -daemon -pid=${pidfile}"

echo "Creating data directory"
eval mkdir -p ${dogecoin_datadir}
[ $? -eq 0 ] && chown -R ${dogecoin_user}:${dogecoin_group} ${dogecoin_datadir}

if [ ! -d "${dogecoin_datadir}/." ]; then
dogecoin_create_datadir || return 1

if [ ! "0`check_pidfile ${pidfile} ${command}`" -gt 1 ]; then
echo "${name} not running? (check $pidfile)."
exit 1


echo "Stopping ${name}."
eval ${command} -conf=${dogecoin_config} -datadir=${dogecoin_datadir} stop
wait_for_pids ${rc_pid}

load_rc_config $name
run_rc_command "$1"

If you have finished creating the rc.d dogecoin file script, continue by editing the rc.conf file to create a Start Up Dogecoin daemon. Enter the script below in the /etc/rc.conf file.
root@router2:~ # ee /etc/rc.conf
The final step is to reboot/restart the FreeBSD server computer.
root@router2:~ # reboot
Once the computer turns back on normally, run the Dogecoin daemon.
root@router2:~ # service dogecoin start
If none of the steps above have been missed, you have successfully installed the Dogecoin daemon perfectly and now your FreeBSD server is running the Dogecoin daemon application. The next step is to create a Dogecoin wallet address. This wallet address is very useful for storing and transferring your assets.

4. Create a Wallet Address

To receive DOGE, you need an address that is securely obtained from the private key through a series of automated cryptographic operations. Addresses can be shared with anyone to receive DOGE, but the private key is sensitive information that allows anyone who knows it to spend DOGE at the associated address.

Before creating a Dogecoin wallet address, the most important thing is to create a key or password for our Dogecoin Wallet Core. This password will protect and protect Dogecoin Wallet Core from people who want to seize our Dogecoin assets. With this password, no one can access our Dogecoin Wallet Core, only we can access it. Save this password carefully, don't lose it, because if you lose it or forget it, your assets will also be lost, because you can't transfer your assets anywhere. The following is how to create a Dogecoin Core Wallet key/password.
root@router2:~ # dogecoin-cli encryptwallet "passwordsaya"
wallet encrypted; Dogecoin server stopping, restart to run with encrypted wallet. The keypool has been flushed and a new HD seed was generated (if you are using HD). You need to make a new backup.
root@router2:~ # service dogecoin stop
root@router2:~ # service dogecoin start
"passwordsaya" is your Dogecoin Wallet Core password, keep this password carefully and keep it secret so no one knows it. Now we continue by creating our Dogecoin Wallet Core wallet address.

By default, the Dogecoin Core software will automatically create a wallet address for you and store the private key securely in the wallet.dat file. Follow the instructions below to create a Dogecoin wallet address.
root@router2:~ # root@router2:~ # cd /usr/local/bin
root@router2:/usr/local/bin # dogecoin-cli getaddressesbyaccount ""
root@router2:/usr/local/bin #
Wallet address "D8S9uKQFvTmCw626puN3Z253BAtjn8sD5j", is your Dogecoin Wallet address, this address was automatically given directly by the Dogecoin daemon when we installed it. You can also create your own Dogecoin address, by the way.
root@router2:/usr/local/bin # dogecoin-cli getnewaddress
root@router2:/usr/local/bin #
Well, now our Dogecoin wallet has 2 wallet addresses, it's up to you which one you choose, both addresses can be used to store and transfer your Dogecoin assets. Please note, after the password and wallet address have been created, backup the wallet.dat file in the /usr/home/dogecoin/.dogecoin folder, if possible, save the waalet.dat file in your Google Drive, so that it is safe and not lost. people who steal our assets.
Iwan Setiawan

I Like Adventure: Mahameru Mount, Rinjani Mount I Like Writer FreeBSD

Post a Comment

Previous Post Next Post