Search the Community
Showing results for tags 'raspbian'.
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.
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
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.