Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: superresistant on July 03, 2014, 12:53:56 PM



Title: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: superresistant on July 03, 2014, 12:53:56 PM
 
Updated

The very basic to use Monero on Linux.
It's a good start.

Installation

All-in-one installation script (may not work if the script is not updated) :

Code:
cd ~ && rm -f install_monero.sh && wget https://raw.githubusercontent.com/Quanttek/install_monero/master/install_monero.sh && bash install_monero.sh

If it doesn't work then :

Install some stuff you'll probably need

Code:
sudo aptitude install git cmake libboost-all-dev libssl-dev libevent-dev libdb++-dev


Install Monero the normal way (should always work)

Code:
cd
git clone https://github.com/monero-project/bitmonero.git
cd ../bitmonero && make


Remove Monero if needed (don't do that now)
Code:
cd
rm -r bitmonero

Create the blockchain folder and download the blockchain
Code:
cd
mkdir ~/.bitmonero
cd ~/.bitmonero
wget http://downloads.getmonero.org/blockchain/linux/blockchain.bin

Remove the Blockchain if needed (don't do that now)
Code:
cd
rm -r ~/.bitmonero


Use Monero

Run monero daemon

Code:
cd bitmonero/build/release/bin/ && ./bitmonerod

Run the wallet

Code:
cd bitmonero/build/release/bin/ && ./simplewallet
You cannot open two things at the same time in the same session, learn to use tmux to open bitmonerod + simplewallet simultaneously

Use tmux

Open a new tmux session to have multiple things running
Code:
tmux
Detach the current tmux session to go to an other one without interrupting the process
   press Ctrl + b
   then d
List all tmux sessions
Code:
tmux list-sessions
Open a tmux session
Code:
tmux attach -t 0
Open an other tmux session if they are two
Code:
tmux attach -t 1
Kill a tmux session
Code:
tmux kill-session -t 0

Other stuff

To be continued...
If you appreciate the tutorial, come and mine on monero.crypto-pool.fr


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Quanttek on July 03, 2014, 01:12:55 PM
Or just use the installation script (https://github.com/Quanttek/install_monero) for Monero


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: superresistant on July 03, 2014, 01:28:10 PM
Or just use the installation script (https://github.com/Quanttek/install_monero) for Monero

Does it install wolf cpu miner ?

Where can I find a script that install wolf cpu miner with it ?



Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Muhammed Zakir on February 18, 2015, 12:41:02 PM
Or just use the installation script (https://github.com/Quanttek/install_monero) for Monero

Does it install wolf cpu miner ?

Where can I find a script that install wolf cpu miner with it ?


Don't know if bumping this topic is right... ???

It will do:

Code:
cd ~
clear
echo "This is the monero installation script. It will install monero with all it's requirements, starting with the latest boost-version, plus CPUMiner"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "[1] INSTALL Monero essentials (wallet + solominer)"
echo "[2] INSTALL Wolf's poolminer"
echo "[3] INSTALL Everything"
echo "[6] UPDATE  Monero essentials (wallet + solominer)"
echo "[7] UPDATE  Wolf's poolminer"
echo "[8] UPDATE  Everything"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

P.S. Thanks for the guide! It was really helpful when installing on a VPS.

Edit: build-essential install command is two times in the OP and libbz2-dev and -y aren't separated. :)


 =snip=

Code:
sudo apt-get install libbz2-dev-y
  -MZ


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Muhammed Zakir on February 18, 2015, 05:51:49 PM
Code:
root@server:~/bitmonero/build/release# make
[  0%] Built target version
[  7%] Built target upnpc-static
[ 49%] Built target unbound
[ 50%] Building C object src/crypto/CMakeFiles/crypto.dir/aesb.c.o
cc1: error: -Werror=maybe-uninitialized: no option -Wmaybe-uninitialized
cc1: error: unrecognized command line option '-std=c11'
cc1: error: unrecognized command line option '-ffat-lto-objects'
make[2]: *** [src/crypto/CMakeFiles/crypto.dir/aesb.c.o] Error 1
make[1]: *** [src/crypto/CMakeFiles/crypto.dir/all] Error 2
make: *** [all] Error 2

Please help.

   -MZ


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: GreekBitcoin on February 18, 2015, 09:28:51 PM
Ask for help in IRC #monero

This is quite an old guide.


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Muhammed Zakir on February 19, 2015, 03:22:37 PM
Ask for help in IRC #monero

This is quite an old guide.

Thanks!

Yeah, I know! I compiled with latest source code.

   -MZ


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: GreekBitcoin on February 19, 2015, 03:25:27 PM
Ask for help in IRC #monero

This is quite an old guide.

Thanks!

Yeah, I know! I compiled with latest source code.

   -MZ

I think the latest source needs a few more dependencies. I am saying just in case...

"Dependencies: GCC 4.7.3 or later, CMake 2.8.6 or later, libunbound 1.4.16 or later (note: Unbound is not a dependency, libunbound is), libevent 2.0 or later, libgtest 1.5 or later, and Boost 1.53 or later (except 1.54, more details here). "


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Muhammed Zakir on February 19, 2015, 03:39:51 PM
Ask for help in IRC #monero

This is quite an old guide.

Thanks!

Yeah, I know! I compiled with latest source code.

   -MZ

I think the latest source needs a few more dependencies. I am saying just in case...

"Dependencies: GCC 4.7.3 or later, CMake 2.8.6 or later, libunbound 1.4.16 or later (note: Unbound is not a dependency, libunbound is), libevent 2.0 or later, libgtest 1.5 or later, and Boost 1.53 or later (except 1.54, more details here). "

AFAIK all installed.

P.S. It is problem of Qt. Do you know how to install bitmonerod only?

   -MZ


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: GreekBitcoin on February 19, 2015, 04:01:41 PM
Can you tell me exactly what you did and what system do you use? Cause as i said this is really an old source and not even from the core team:
https://github.com/bitmonero-project/bitmonero (Old source)

https://github.com/monero-project/bitmonero    (thats the right source)

No i dont know how to compile just bitmonerod. Before, you could just uncheck simplewallet and test from CMakeLists.txt but now i dont know how.


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: fluffypony on February 19, 2015, 04:10:38 PM
AFAIK all installed.

P.S. It is problem of Qt. Do you know how to install bitmonerod only?

   -MZ

We don't use Qt, there's no Monero GUI in Monero core yet. What operating system are you building on? And what compiler version do you get if you run gcc --version or g++ --version?


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Muhammed Zakir on February 19, 2015, 04:26:07 PM
We don't use Qt, there's no Monero GUI in Monero core yet. What operating system are you building on? And what compiler version do you get if you run gcc --version or g++ --version?

I used new source. OS : Ubuntu and I am installing on VPS. I will tell about the version soon, I am trying again now and the shell script is running.

Edit: Version of gcc/g++ is 4.6.3 .

   -MZ


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: fluffypony on February 19, 2015, 04:58:35 PM
We don't use Qt, there's no Monero GUI in Monero core yet. What operating system are you building on? And what compiler version do you get if you run gcc --version or g++ --version?

I used new source. OS : Ubuntu and I am installing on VPS. I will tell about the version soon, I am trying again now and the shell script is running.

Edit: Version of gcc/g++ is 4.6.3 .

   -MZ

Ok there's your problem - per the dependencies: "Dependencies: GCC 4.7.3 or later"

If you're on an older version of Ubuntu you may find it best to add the Toolchain Test Builds PPA: https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test and then install a more recent version of gcc. Once installed you will need to link the newer gcc/g++ version to default (ie. something similar to http://askubuntu.com/questions/26498/choose-gcc-and-g-version)

It's probably easier for you to install Ubuntu 13.10 or 14.04 on your VPS instead. Ubuntu 14.04 is recommended, as it has current versions of gcc and boost.


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Muhammed Zakir on February 19, 2015, 06:01:25 PM
Ok there's your problem - per the dependencies: "Dependencies: GCC 4.7.3 or later"

Thanks for pointing it out!

If you're on an older version of Ubuntu you may find it best to add the Toolchain Test Builds PPA: https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test and then install a more recent version of gcc. Once installed you will need to link the newer gcc/g++ version to default (ie. something similar to http://askubuntu.com/questions/26498/choose-gcc-and-g-version)

Everything done but still giving errors.

Code:
cc1plus: error: -Werror=maybe-uninitialized: no option -Wmaybe-uninitialized
cc1plus: error: unrecognized command line option '-std=c++11'
make[3]: *** [src/crypto/CMakeFiles/crypto.dir/crypto.cpp.o] Error 1
make[3]: Leaving directory `/root/bitmonero/build/release'
make[2]: *** [src/crypto/CMakeFiles/crypto.dir/all] Error 2
make[2]: Leaving directory `/root/bitmonero/build/release'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/bitmonero/build/release'
make: *** [release-all] Error 2

It's probably easier for you to install Ubuntu 13.10 or 14.04 on your VPS instead. Ubuntu 14.04 is recommended, as it has current versions of gcc and boost.

It's not mine, I am helping a person but I will tell him though I am not sure whether he will because some daemons already installed in it and the sync is complete(BTC, LTC, Doge etc...).

   -MZ


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: GingerAle on February 20, 2015, 12:27:20 AM
all I know is that this works:

cd ~ && rm -f install_monero.sh && wget https://raw.githubusercontent.com/Quanttek/install_monero/master/install_monero.sh && bash install_monero.sh
Code:
cd ~ && rm -f install_monero.sh && wget https://raw.githubusercontent.com/Quanttek/install_monero/master/install_monero.sh && bash install_monero.sh


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Rabinovitch on June 05, 2015, 10:58:29 AM
It really works on Debian 8 Jessie@MATE, thanks. But what the....

Code:
root@debian-katya:~/cpuminer/cpuminer-multi# ./minerd --help
[2015-06-05 16:56:13] CPU does not have AES-NI, which is required.

How to compile it for non-AES system? I haven't found an instruction: https://github.com/wolf9466/cpuminer-multi/blob/master/README.md#architecture-specific-notes (https://github.com/wolf9466/cpuminer-multi/blob/master/README.md#architecture-specific-notes)


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: GingerAle on June 05, 2015, 11:22:51 AM
It really works on Debian 8 Jessie@MATE, thanks. But what the....

Code:
root@debian-katya:~/cpuminer/cpuminer-multi# ./minerd --help
[2015-06-05 16:56:13] CPU does not have AES-NI, which is required.

How to compile it for non-AES system? I haven't found an instruction: https://github.com/wolf9466/cpuminer-multi/blob/master/README.md#architecture-specific-notes (https://github.com/wolf9466/cpuminer-multi/blob/master/README.md#architecture-specific-notes)

Wolf's kinda blows for non-aes. Install YAM's -

https://mega.co.nz/#F!h0tkXSxZ!f62uoUXogkxQmP2xO8Ib-g

thats a list of his miners, each compiled for different CPU architectures

if you don't know your CPU architecture, google it.


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Fantasio on June 08, 2015, 07:27:36 AM
all I know is that this works:

cd ~ && rm -f install_monero.sh && wget https://raw.githubusercontent.com/Quanttek/install_monero/master/install_monero.sh && bash install_monero.sh
Code:
cd ~ && rm -f install_monero.sh && wget https://raw.githubusercontent.com/Quanttek/install_monero/master/install_monero.sh && bash install_monero.sh


No, it doesn't !  :'(
It's a big deception, but when I'm launching the script, there's a fatal error at the end :

-- Could not find Berkeley DB >= 4.1 (missing:  BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES)
CMake Error at CMakeLists.txt:45 (message):
  BerkeleyDB not found.  At this time it should be installed in your
  system for a non-static build.


Have someone already encountered the same thing ?  ???
(OS : SparkyLinux Jessie)


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: GingerAle on June 08, 2015, 11:26:18 AM
all I know is that this works:

cd ~ && rm -f install_monero.sh && wget https://raw.githubusercontent.com/Quanttek/install_monero/master/install_monero.sh && bash install_monero.sh
Code:
cd ~ && rm -f install_monero.sh && wget https://raw.githubusercontent.com/Quanttek/install_monero/master/install_monero.sh && bash install_monero.sh


No, it doesn't !  :'(
It's a big deception, but when I'm launching the script, there's a fatal error at the end :

-- Could not find Berkeley DB >= 4.1 (missing:  BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES)
CMake Error at CMakeLists.txt:45 (message):
  BerkeleyDB not found.  At this time it should be installed in your
  system for a non-static build.


Have someone already encountered the same thing ?  ???
(OS : SparkyLinux Jessie)


Yeah, the source code changed. The script needs to be updated. With the new code, the following will get you along farther.

Code:
sudo apt-get install libevent-dev

Code:
make release-static


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Fantasio on June 08, 2015, 08:54:18 PM
Thank's GingerAle  ;)

But this time there's another error :

CMake Error at /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
  OPENSSL_INCLUDE_DIR)


I've checked openssl was already installed : OpenSSL 1.0.2a 19 Mar 2015.



Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: GingerAle on June 08, 2015, 10:36:45 PM
Thank's GingerAle  ;)

But this time there's another error :

CMake Error at /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
  OPENSSL_INCLUDE_DIR)


I've checked openssl was already installed : OpenSSL 1.0.2a 19 Mar 2015.



try to find an apt-get for openSSL-dev.... hrm, try this

Code:
sudo apt-get install libcurl4-openssl-dev


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Fantasio on June 09, 2015, 06:37:32 AM
Hmmm, yes I doubted something was going on with a sort of "openssl-dev".
I made my choice on "packages.debian.org" and installed "libcurl4-openssl-dev".

But that doesn't work neither...  :-[


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: GingerAle on June 09, 2015, 11:17:14 AM
Hmmm, yes I doubted something was going on with a sort of "openssl-dev".
I made my choice on "packages.debian.org" and installed "libcurl4-openssl-dev".

But that doesn't work neither...  :-[


you still getting a dependency problem or what?

the latest head doesn't compile for me - it borks out with errors at around 74%... but head is bleeding edge, so this is the purpose of head - to find these bugs.

This commit compiled fine for me, so do this

make your way to ~/bitmonero/

Code:
git checkout f37ee2f30428040741ffc5c5bc96a12280f1ad93

then

Code:
make clean

hit yes, kill the build directory (unless you had wallet files in their)

then

Code:
make release-static


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Fantasio on June 09, 2015, 06:03:50 PM
Ok, I'm going on.

I tried "git checkout", but sorry I'm not used to : what's that for ?  ???
And finally, the same error occured.

So I looked after the same error code on internet and found this : https://github.com/ellzey/libevhtp/issues/127 (https://github.com/ellzey/libevhtp/issues/127)
I installed "libssl-dev" and it worked !  ;D

OK, OK... some warnings appeared, but for developpers eyes. Developpers, if you are interested : tell me !  8)

Then I ran "bitmonerod" and it synchronized !
There is just this annoying message (for developpers eyes) :
[1433872546] libunbound[17776:0] info: warning: unsupported algorithm for trust anchor . DS IN                                                                                   
[1433872546] libunbound[17776:0] warning: trust anchor . has no supported algorithms, the anchor is ignored (check if you need to upgrade unbound and openssl)

Thank's GingerAle.


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: GingerAle on June 09, 2015, 06:08:46 PM
Ok, I'm going on.

I tried "git checkout", but sorry I'm not used to : what's that for ?  ???
And finally, the same error occured.

So I looked after the same error code on internet and found this : https://github.com/ellzey/libevhtp/issues/127 (https://github.com/ellzey/libevhtp/issues/127)
I installed "libssl-dev" and it worked !  ;D

OK, OK... some warnings appeared, but for developpers eyes. Developpers, if you are interested : tell me !  8)

Then I ran "bitmonerod" and it synchronized !
There is just this annoying message (for developpers eyes) :
[1433872546] libunbound[17776:0] info: warning: unsupported algorithm for trust anchor . DS IN                                                                                   
[1433872546] libunbound[17776:0] warning: trust anchor . has no supported algorithms, the anchor is ignored (check if you need to upgrade unbound and openssl)

Thank's GingerAle.


Awesome! There yah go ! Thats how yah do it!

We're all developers with Monero - thats what open source means.

Maybe the updated install script fixed these issues... i gotta find a way to host that. I dloaded it a while ago.... hrm....


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: Fantasio on June 09, 2015, 09:02:15 PM
Totally agreed with you !

For everyone hoping to run a Monero node, I made a little guide on the official forum :
https://forum.getmonero.org/5/support/313/mini-guide-for-installing-a-node-on-debian-jessie (https://forum.getmonero.org/5/support/313/mini-guide-for-installing-a-node-on-debian-jessie)

 ;D  ;D  ;D

44LWG3ZKbx9h15GZasC742FoHSHw4BnobKWPanCg4sEUauhWCP5eDwo2UCFUR7kqZ71s2uKagmy9FNy o7n58sBzG8T3oeH8


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: superresistant on June 11, 2015, 08:44:28 PM
 
I'm trying to update the thread, can someone check if the OP is correct ?

Thanks


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: cryptobet.eu on February 19, 2016, 07:48:13 PM
AFAIK all installed.

P.S. It is problem of Qt. Do you know how to install bitmonerod only?

   -MZ

We don't use Qt, there's no Monero GUI in Monero core yet. What operating system are you building on? And what compiler version do you get if you run gcc --version or g++ --version?
Can't setup monero.

clone git
install cmake since it was required
I run 'make'
Once make is done I can't install
make install or install make does nothing.

What am I missing ?

neither does in build and release folder.


Title: Re: [ANN][XMR][HOW TO] Install & use Monero on Linux
Post by: superresistant on February 19, 2016, 08:31:54 PM
AFAIK all installed.
P.S. It is problem of Qt. Do you know how to install bitmonerod only?
   -MZ

We don't use Qt, there's no Monero GUI in Monero core yet. What operating system are you building on? And what compiler version do you get if you run gcc --version or g++ --version?
Can't setup monero.
clone git
install cmake since it was required
I run 'make'
Once make is done I can't install
make install or install make does nothing.
What am I missing ?
neither does in build and release folder.

This thread is too old. Check the main Monero thread or go on IRC #monero