Build ZClassic (ZCL) wallet on Ubuntu

Build ZClassic (ZCL) wallet on Ubuntu:

Build everything:

sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake

The actual build takes a long time:

mkdir ~/source
cd ~/source
git clone https://github.com/z-classic/zclassic.git
cd ~/source/zclassic/zcutil
./build.sh
./fetch-params.sh

Run wallet and then stop it:

cd ~/source/zclassic/src
./zcashd -daemon
./zcash-cli stop

You will now see a folder ~/.zclassic
Create zclassic.conf in this folder that looks like this:

rpcuser=YourUserName
rpcpassword=YourPassword
rpcport=8234
gen=1

Now start the server again:

cd ~/source/zclassic/src
./zcashd -daemon

Use the cli (command line interface) to getinfo:

./zcash-cli getinfo

ZCL update (when you need to upgrade)

cd ~/source/zclassic
git pull
cd ~/source/zclassic/zcutil
./build.sh
./fetch-params.sh

CPU Mining Zcash (ZEC) on Ubuntu

CPU Mining Zcash (ZEC) on Ubuntu

Install dependancies:

sudo apt-get install cmake build-essential libboost-all-dev

Get code and compile:

cd ~/source
git clone -b Linux https://github.com/nicehash/nheqminer.git
cd nheqminer/cpu_xenoncat/Linux/asm/ && sh assemble.sh && cd ../../../Linux_cmake/nheqminer_cpu && cmake . && make

Here is an example mining command:

~/source/nheqminer/Linux_cmake/nheqminer_cpu/nheqminer_cpu -t 2 -l us1-zcash.flypool.org:3333 -u t1cN123qRbBXkQXKqPqq44E4cTh2a8SvwH1.YourMiner

Using SVN to backup

Some basic examples of how to use SVN as a backup system.

Install SVN:

sudo apt-get install subversion

How to create a backup:

mkdir ~/backup
cd ~/backup
mkdir yourcomputername

Copy all the files and folders you want to backup to yourcomputername:

svn import https://svn.yoursvnserver.com:9443/svn/yoursvnfolder/yourcomputername

How to add everything in the folder to SVN:

cd ~/backup
svn add --force * --auto-props --parents --depth infinity -q

How to commit everything that was saved in the backup folder:

svn commit /home/yourusername/backup/yourcomputername -m "yourcomputername backup"

Recovering Backup from SVN Server:

mkdir ~/work
cd ~/work
svn checkout https://svn.yoursvnservername.com:9443/svn/yoursvnfolder/yourcomputername

Delete missing files from an svn source folder:
Original info from: https://stackoverflow.com/questions/9600382/svn-command-to-delete-all-locally-missing-files#

cd thefoldername
svn st | grep ! | cut -d! -f2| sed 's/^ *//' | sed 's/^/"/g' | sed 's/$/"/g' | xargs svn rm