Bitcoin Forum
June 17, 2024, 09:29:32 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Service Announcements (Altcoins) / Re: BounceBot (%93 success rate) on: August 18, 2018, 09:16:42 PM
Are all signals in jpg? this way it is not possible to auto trade on this signals, is it?
Is it still free?
2  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] Terracoin (TRC) - Est 2012 on: June 17, 2018, 06:55:07 PM
Thanks!! that did the job Cheesy
3  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] Terracoin (TRC) - Est 2012 on: June 17, 2018, 10:07:09 AM
I try to upgrade but the script fails.
I do run the script in sudo.

Thanks in advance!

error:
rm -f trc-updater; curl -0 rm -f tr https://raw.githubusercontent.com/terracoin/terracoin/v0.12.2.x/trc-updater; sudo bash trc-updater
curl: Remote file name has no length!
curl: try 'curl --help' or 'curl --manual' for more information
curl: (6) Could not resolve host: tr
#!/bin/bash

if [ $(uname -s) != "Linux" ]; then
        echo "This script is only for Linux"
        exit
fi

usecurl=1
if ! which curl > /dev/null; then
        usecurl=0
        if ! which wget > /dev/null; then
                echo "Could not find curl or wget!"
                exit
        fi
fi

if ! which sudo > /dev/null; then
        echo "Could not find sudo!"
        exit
fi

arch=$(uname -m)
if [ $arch != "x86_64" ]; then
        arch="i686-pc";
fi
vers="0.12.1"

url=https://terracoin.io/bin/terracoin-core-current/terracoin-${vers}-${arch}-linux-gnu.tar.gz

myuid=$(id -u)
pwd=$(pwd)
pids=$(ps auxwww | grep terracoind | grep -v grep | grep -v testnet | awk {'print $2'})
if [ $(echo ${pids} | wc -w) -lt 1 ]; then
        echo "terracoind not found running!"
        exit
fi

tmpdir=$(mktemp -d)
chmod 777 ${tmpdir}

echo -n "Downloading new version... "
if [ $usecurl -eq 1 ]; then
        curl ${url} --output ${tmpdir}/terracoin.tar.gz --silent
else
        wget ${url} -O ${tmpdir}/terracoin.tar.gz --quiet
fi

if [ $? -ne 0 ]; then
        echo "FAILED ($?)"
        rm -rf ${tmpdir}
        exit
fi
echo "OK"

echo -n "Extracting files... "
tar xzf ${tmpdir}/terracoin.tar.gz -C ${tmpdir}/ --strip-components=1

if [ $? -ne 0 ]; then
        echo "FAILED ($?)"
        rm -rf ${tmpdir}
        exit
fi
echo "OK"

chmod 777 ${tmpdir}/bin

for pid in ${pids}; do
        terracoincli_found=0
        terracoind_uid=0
        terracoincli_uid=0
        runas=0

        if [ ! -d /proc/${pid} ]; then
                echo "terracoind process not found!"
                continue
        fi

        runas=$(stat -c "%u" /proc/${pid}/cmdline)
        usesudo=0
        if [ ${myuid} -ne ${runas} ]; then
               usesudo=1
        fi
        if [ ${usesudo} -eq 1 ] && [ ${myuid} -ne 0 ]; then
                echo "You do not have the required permissions, please run with sudo"
                continue
        fi

        cmdprefix=""
        if [ ${usesudo} -eq 1 ]; then
                cmdprefix="sudo -u #${runas} "
        fi

        cmd=$(cat /proc/${pid}/cmdline | tr '\000' ' ')
        exe=$(${cmdprefix}realpath /proc/${pid}/exe)
        cwd=$(${cmdprefix}realpath /proc/${pid}/cwd)

        if ! [[ ${exe} =~ terracoind$ ]]; then
                continue;
        fi

        terracoind_dir=$(dirname ${exe})

        if [ ! -d ${terracoind_dir} ]; then
                echo "terracoind Install directory not found!"
                continue
        fi

        echo "terracoind install directory... ${terracoind_dir}"
        read -p "Replace terracoin in ${terracoind_dir}? " -n 1 -r
        echo
        if ! [[ $REPLY =~ ^[yY]$ ]]; then
                continue
        fi

        echo -n "Looking for terracoin-cli... "
        if [ -f ${terracoind_dir}/terracoin-cli ]; then
                terracoincli_found=1
                terracoincli_dir=${terracoind_dir}
        elif [ -f $(which terracoin-cli) ]; then
                terracoincli_found=1
                terracoincli_dir=$(dirname $(which terracoin-cli))
        fi
        if [ ${terracoincli_found} -eq 1 ]; then
                echo "OK"
        else
                echo "FAILED"
        fi

        terracoindprefix=""
        terracoincliprefix=""
        terracoind_uid=$(stat -c "%u" ${terracoind_dir}/terracoind)
        if [ ${terracoind_uid} -ne ${myuid} ]; then
                terracoindprefix="sudo -u #${terracoind_uid} "
        fi
        if [ ${terracoincli_found} -eq 1 ]; then
                terracoincli_uid=$(stat -c "%u" ${terracoincli_dir}/terracoin-cli)
                if [ ${terracoincli_uid} -ne ${myuid} ]; then
                        terracoincliprefix="sudo -u #${terracoincli_uid} "
                fi
        fi

        echo -n "Stopping terracoind... "
        if [ ${terracoincli_found} -eq 1 ]; then
                kill -INT ${pid} > /dev/null
        else
                ${cmdprefix}${terracoincli_dir}/terracoin-cli stop > /dev/null
        fi
        if [ $? -ne 0 ]; then
                echo "FAILED ($?)"
                continue
        fi
        while [ -d /proc/${pid} ]; do
                sleep 1
        done
        echo "OK"

        echo -n "Updating terracoind... "
        ${terracoindprefix}cp ${tmpdir}/bin/terracoind ${terracoind_dir}
        if [ $? -ne 0 ]; then
                echo "FAILED ($?)"
        else
                echo "OK"
                if [ ${terracoincli_found} -eq 1 ]; then
                        echo -n "Updating terracoin-cli... "
                        ${terracoincliprefix}cp ${tmpdir}/bin/terracoin-cli ${terracoincli_dir}
                        if [ $? -ne 0 ]; then
                                echo "FAILED ($?), you should do this manually"
                        else
                                echo "OK"
                        fi
                fi
        fi

        echo -n "Restarting terracoind... "
        ${cmdprefix}bash -c "cd ${cwd} && ${cmd} &"
        if [ $? -ne 0 ]; then
                echo "FAILED ($?)"
                continue
        fi
        echo "OK"
done

rm -rf ${tmpdir}
echo "Done"
bash: trc-updater: No such file or directory
4  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][ENT] Eternity - X11 - No Premine on: October 23, 2017, 06:43:40 PM
Guys,

Im getting an error on my vps "Error: eternitynodeaddr option is deprecated. Please use eternitynode.conf to manage your remote eternitynodes."

I have updated the vps as told by berron on page 36. but it does not seem to work


--------------------
edit
--------------------
fount it on slack: need to delete "eternitynodeaddr" line from conf file

5  Alternate cryptocurrencies / Announcements (Altcoins) / Re: |ANN| DAS - Decentralized and Secure. Private Send. Masternodes. on: September 21, 2017, 05:55:20 PM
Guys,
I send some coins from my wallet to novaexchange but they still have 0 conformations. In my wallet I even see 0 conformations. How log does this conformations take?
6  Alternate cryptocurrencies / Announcements (Altcoins) / Re: Arctic Coin (ARC), No premine, Evolution over 1 year on: August 24, 2017, 08:29:05 PM
Hi,

what do you mean with: 3) Take part in a special bonus program. Participants will be able to receive up to 43% annual for the storage of coins.

Is this a masternode?

thanks!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!