Jump to content

Search the Community

Showing results for tags 'raspberry pi'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • BlockForums Announcements
    • Denarius Announcements
    • Kronos Wallet Announcements
    • The Crypto News Feed
  • Cryptocurrency Discussions
    • Cryptocurrencies
    • Altcoin Announcements
    • General Discussion
    • Tutorials & Help
  • Denarius Discussions
    • General Discussion
    • Tutorials & Help
    • Marketing & PR
    • Development
    • Mining & Staking
    • Trading & Exchanges
    • Marketplace
  • Programming & Design
    • Development QA
    • Design QA
  • Gaming
    • Bot Downloads & Discussion
    • Gaming Discussion
  • Classifieds
    • Buy Sell and Trade
  • Other Discussions
    • Element 115
    • The Lounge
    • Hardware & IoT
    • Tutorials & Guides
    • Domains & Hosting

Product Groups

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


BTC Address

Found 5 results

  1. sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev git clone https://github.com/xmrig/xmrig.git mkdir xmrig/build && cd xmrig/build cmake .. make -j4 Very simple, basically SSH into your Raspberry Pi 3 or 4 and run those commands above to download and compile the XMRig miner to mine Monero on your Pi. To run the Monero miner, simply run: ./xmrig -o us-west.minexmr.com:443 -u 43ruPy2uKauGyB5vjxwg3LYjikfpNC9kPgyUKZbL9pAraW3e2GLQWWqY1bmBgzJHtsYsmcrYgSJV4eAooe8LvZ3ZEwXJKht -k --tls --rig-id pi4tut
  2. With the release of the Raspberry Pi4 8gb version, and SSD booting, this could be still useful for anything below 8gb of ram. Git clone log2ram repo git clone https://github.com/azlux/log2ram.git go into folder and run install.sh cd log2ram sudo ./install.sh Modify the amount of ram to use. 40M is stock and another place says try 128M, up to you. sudo nano /etc/log2ram.conf Reboot the PI sudo reboot Check the log2ram changes were persistent. df -h That was an easy tweak.
  3. About time to break out the Raspberry Pi4 4gb again and play around in docker with docker-compose. Install Docker curl -sSL https://get.docker.com | sh Change permissions for your user account, probably pi sudo usermod -aG docker pi reboot or logout so you don't have to sudo for docker commands and then test that worked docker run hello-world Now install docker-compose sudo apt-get install -y libffi-dev libssl-dev sudo apt-get install -y python3 python3-pip sudo apt-get remove python-configparser sudo pip3 install docker-compose Test docker-compose worked docker-compose
  4. Basic setup to building your own custom Raspbian Image from the offician pi-gen repo using you Denarius daemon wallet as the example. I like that someone can build completely from source and compile the entire OS on their own for their precious crypto. https://github.com/buzzkillb/denariianpi-gen Go to https://github.com/RPi-Distro/pi-gen. Read this a few times how it works. I am using Windows 10, so I downloaded VirtualBox and created an Ubuntu 16.04 VM with 2 cpu's, 100GB hard drive, and 3GB of ram. git clone https://github.com/RPi-Distro/pi-gen You want to build the stock image to make sure this works from the get go. nano config Put this one line in for your image name, ex. testimage IMG_NAME='testimage' Once this is done building you can find the image in the work folder with a date and name of image. The image is in /pi-gen/work/date-imagename/export-image For the first run I wanted to build only the lite command line Raspbian with denariusd daemon. This is found in stage2 directory. I made a new directory called 04-denariusd. And put the files required in there. cd ~/pi-gen/stage2 mkdir 04-denariusd cd 04-denariusd nano 00-packages dependencies to compile denariusd and openssl 1.0.1j git unzip libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev libevent-dev autogen automake libtool Next create a file to compile openssl 1.0.1j and denariusd. nano 04-run.sh  #!/bin/bash -e on_chroot << EOF apt-get install make wget https://www.openssl.org/source/openssl-1.0.1j.tar.gz tar -xzvf openssl-1.0.1j.tar.gz cd openssl-1.0.1j ./config make depend make # make test make install sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` git clone https://github.com/carsenk/denarius cd denarius git checkout v3.4 git pull cd src OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib make -f makefile.arm strip denariusd cp denariusd /usr/local/bin/denariusd EOF chmod +x 04-run.sh Now the basic setup is done. Go back to ~/pi-gen, run some commands to skip stages after stage2 and run the build command. # Example for building denariian lite system touch ./stage3/SKIP ./stage4/SKIP ./stage5/SKIP touch ./stage4/SKIP_IMAGES ./stage5/SKIP_IMAGES sudo ./build.sh Grab your image from /pi-gen/work/date-imagename/export-image, etch to microsd card and go tinker away with your raspberry pi. tip: this is a really easy way to cross compile for your raspberry pi. This uses qemu so you get 1 cpu and minimal ram, but outside of compiling everything else is maxing out the VM.
  5. I bought a Raspberry Pi 3 a while ago and got it recently. So of course I decided to run my denarius wallet on it, so it can stake always without my computer being on. The operating system is Raspbian Stretch, so I assume this tutorial will work for debian stretch as well. Start by opening a terminal and paste the following code to install dependecies: sudo apt-get update sudo apt-get upgrade -y sudo apt-get install autoconf libtool libssl1.0-dev libboost-all-dev libminiupnpc-dev -y Because compiling can take up a large amount of RAM and the raspberry Pi only has 1 gigabyte of it, let us create a swapfile: cd / fallocate -l 4G swapfile chmod 0600 swapfile mkswap swapfile swapon swapfile Now, because the daemon requires Berkeley database version 4.8 to work, we need to download, compile and install it since that is not included in the software repositories. cd ~/Downloads wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz tar -xzvf db-4.8.30.NC.tar.gz cd db-4.8.30.NC/build_unix/ ../dist/configure --enable-cxx make sudo make install Now, let us download the denarius source code and compile it. cd ~/Downloads git clone https://github.com/carsenk/denarius.git cd denarius/src Because we use a custom Berkeley library, we need to specify its location in the makefile, so go ahead and open that up using nano: nano makefile.unix look for this line: DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(CURDIR)/json $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH)) Change it to this line: DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(CURDIR)/json $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH) /usr/local/BerkeleyDB.4.8/include/) Press CTRL+O to save the file, press enter to verify the filename, then press CTRL+X to exit nano. Now we are ready to compile it! When you have typed in this command, prepare to wait for a while, maybe grab a good book or go to the denarius gitter chat to socialize. Compiling took 63 minutes on my Pi, it will depend on your swapfiles read/write performance and if you have overclocked your Pi. make -f makefile.unix -j4 LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib" Now since we are using a custom library, we need to tell the operating system to let programs use that. To do that, we need to edit the file /etc/ld.so.preload: nano /etc/ld.so.preload Add the following line to the file, then save and exit, like before: /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.so and reboot: sudo reboot Now, your denariusd is ready to run and you set it up like you always would.Â
×
×
  • Create New...