Archive

Archive for the ‘Uncategorized’ Category

A quick view at Electroneum binaries and how to use them

November 1, 2017 Leave a comment

As there are some uncertainties about how to use the Electroneum binaries for Linux, here is a quick view how they should look like:

electroneum-blockchain-export
electroneum-blockchain-import
electroneumd
electroneum-wallet-cli
electroneum-wallet-rpc

If you want to run these binaries, I suggest that you ALWAYS run in through a terminal. To start the binaries, change to the directory, where the files reside and run them with the command:
./FILENAME (where filename is for instance electroneumd or electroneum-wallet-cli)

There are two important binaries you have to run and use, first of all you have to run the electroneum daemon – named electroneumd.
You can set the log_level to 1 or even 2 which shows you a more detailed view what is going on.
set_log 1
This will update your blockchain (stored in /home/user/.electroneum

The second important file that you should run AFTER the blockchain is up to date (by running electroneumd) is electroneum-wallet-cli

By starting it the first time it will allow you to create a wallet. The wallet files will be stored in your current directory, handle them with care and backup them and do NOT forget your password.
Some commands which are interesting:
address (show your current adress)
balance (your current balance)
start_miner x (this starts the miner and the number of threads X - which is normally on a quadcore 1 to 4. 4 means, that all 4 cores of your CPU will be fully used)

Advertisements
Categories: Uncategorized

Build electroneum binaries from source

November 1, 2017 7 comments

In case your distribution will not run the electroneum binaries (0.11.0.0) – in my case it refused to download the blockchain, here a quick and dirty howto to build it on your distribution. First of all start electroneumd and type in: set_log 1 and watch if it downloads the blockchain or just refuses to do so.
If it does not download the blockchain, read on.

Only tested with Debian Stretch, should also work with all other Debian based distributions as Ubuntu.
I am not quite sure if all the dependencies have to be installed, but with these it built successfully.

1) Download the latest github .zip file and unzip it in a working directory
https://github.com/electroneum/electroneum

2) Open a terminal in the unzipped directory

3) Type in:
sudo apt-get update
sudo apt-get install build-essential cmake pkg-config libboost-all-dev libunbound-dev libminiupnpc-dev libunwind8-dev libldns-dev libexpat1-dev libgtest-dev doxygen graphviz

4) Run cmake:
cmake .

Watch closely if all the dependencies are met or if it informs you about missing dependencies – this is crucial. The error message about readline can be safely ignored.

5) Run make:
make

All the neccessary binaries will be in the /bin directory of the source-tree, you can simply copy them out in a desired directory, or do a make install. Electroneum binaries will create a directory named .electroneum in your home directory.

This is a quick and dirty post and will not be complete and might work in your case. Use this at your own risk.

Categories: Uncategorized

Convert Videos for the Nokia 5230 (and Nokia 5800)

March 16, 2010 3 comments

I recently purchased a Nokia 5230 and looked for a way to convert videos using Ubuntu.

There are plenty of free and unfree solutions in Windows for conversion (which didn´t work very well for me). So, there is an easy way in Ubuntu 9.10 which produces vids with nice quality both in video and sound in full resolution, which is 640x360px for the Nokia 5230.

I am using ffmpeg via console – it´s fast, very flexible and exactly does what it should do.

The command goes like this:

ffmpeg -i SOURCEFILE -f mp4 -vcodec libxvid -s 640x360 -b 768kb -r 25 -aspect 16:9 -acodec libfaac -ab 96kb -ar 44100 -ac 2 DESTINATIONFILE

That´s it. SOURCEFILE is the name of the video you are planning to encode, DESTINATIONFILE is the name of the vid you are expecting.

I put this command in a very simple (and primimtive) bash script:

Read more…

Howto: Use Floppy in Ubuntu

March 1, 2009 9 comments

By default, the use of floppy drives is disabled in Ubuntu 8.10.
The reason for a not responding floppy under /dev/fd0 (standard device) is the deactivated kernel module for floppies. To permanently activate the module loading of the floppy, simply run in xterm:

gksudo gedit /etc/modules

and add this simple line to /etc/modules at the end of the file


floppy

Don´t forget to save (and overwrite) the file afterwards !!!

The Floppy will be now available after reboot – to use it instantly, simply type into xterm:


sudo modprobe floppy

To mount the floppy, add a mountpoint in /media like

sudo mkdir /media/floppy

and mount it with:

sudo mount /dev/fd0 /media/floppy

To permanently have the device linked to the mountpoint, edit /etc/fstab:

gksudo gedit /etc/fstab

and add this line:

/dev/fd0 /media/floppy auto rw,user,noauto,exec,utf8 0 0

Again, don´t forget to save (and overwrite) the file!!!

Categories: Uncategorized