lsblk — отобразить подключенные диски (dev/sdb) fdisk /dev/sdb — Вход в создание разделов Командой «n» создаём новый раздел Командой «w» сохраняем изменение mkfs.ext4 /dev/sdb1 — форматируем в ext4 mkdir /hdd2 — Создаём каталог для монтирования диска mount /dev/sdb1 /hdd2 — Монтируем раздел в каталог /hdd2 blkid | grep sdb1 — узнать uuid диска Для автомонтирования в /etc/fstab вписать: UUID=c35d364c-1a2b-44d2-a0f5-bc722dd00b14 /hdd2 ext4 rw 0 1
There is no option set up The LCC Master-node, but you can set up LCC Hive-Mining and automate it. In Ubuntu server download and unpack the latest LCC wallet version here by this command:
The Hive will be synchronising few hours. During this time, it will be use full CPU power, but after this, it will be about 1-2%. Logs timezone is UTC0. When it finished synchronize, will be created ~/.litecoincash hiden folder, where you should create litecoincash.conf with lines below:
1
2
3
server=1
daemon=1
onlynet=ipv4
Now you can set up Hive’s auto launch by cron, or service
Auto launch by cron
1. Enter the following command: crontab -e 2. put this line:
(Or you could create it by Windows version and replace wallet.dat in this path: ~/.litecoincash/wallets/wallet.dat) Find out addresses in the LCC wallet:
(You will get a hash, that you can put in this link after «?» and check it in browser https://chainz.cryptoid.info/lcc/tx.dws?)
Bees creating
Before bees creating you should check Global Index(GI) value. You can check it in Windows client, discord channel, ask your mom, or calculate it by yourself (the script is below)
GI Formula
1
2
3
Honeypot=honey_pot_lowest/10000000
When Bee Equilibrium=Honeypot/Bee Cost
GlobalIndex(%)=(Mature Bees/Bee Equilibrium)*100
[свернуть]
Bash-script that calculates GI
1. Create «getgi» file: nano getgi 2. Put the lines below in, and save it (check your path):
So, now you can automate GI checking and bees creating, considering GI’s value and LCC amount on your balance. I think it will be almost like Master-node.
More info about rpc commands here (like bitcoin’s) More info about Hive-rpc here
The Guide was created by Dabangg, with O.Baudenay and knighthash support.
Нет возможности настроить Master-ноду для заработка LCC, но вы можете настроить Hive-Mining LCC и автоматизировать его. На Ubuntu сервере скачайте и распакуйте последнюю версию кошелька отсюда следующей командой:
Улей будет синхронизироваться несколько часов. В это время он будет использовать процессор на максимум, но после этого, потребляемая мощность будет 1-2%. Часовой пояс в логах соответсвует UTC0. По окончанию, появится скрытая папка ~/.litecoincash. В ней нужно создать файл litecoincash.conf с содержимым:
1
2
3
server=1
daemon=1
onlynet=ipv4
Теперь вы можете настроить автозапуск улья с помощью cron, или службы.
Автоматический запуск улья с помощью cron
1. Введите в терминале команду: crontab -e 2. впишите строку:
(Вы получите Хеш, который можно вставить в эту ссылку после «?» и посмотреть в браузере https://chainz.cryptoid.info/lcc/tx.dws?)
Создание пчёл Перед созданием пчёл нужно узнать величину Global Index(GI). Его можно посмотреть в Windows клиенте, канале дискорда, спросить у мамы, либо посчитать самому (скрипт ниже).
Формула GI
1
2
3
Honeypot=honey_pot_lowest/10000000
When Bee Equilibrium=Honeypot/Bee Cost
GlobalIndex(%)=(Mature Bees/Bee Equilibrium)*100
[свернуть]
Bash-script, рассчитывающий GI
1. Создать файл «getgi»: nano getgi 2. Вписать следующие строки и сохранить (вставьте ваш путь):
# tc class add dev $DEV enp17s10 parent 1: classid 1:1 cbq rate 4MBit allot 1500 prio 5 bounded isolated
# tc filter add dev $DEV enp17s10 parent 1: protocol ip prio 16 u32 match ip dst 192.168.3.0/24 flowid 1:1
# tc filter add dev $DEV enp17s10 parent 1: protocol ip prio 15 u32 match ip dst 192.168.3.104 flowid 1:0
При ограничении трафика на внутреннем интерфейсе, он скапливается на внешнем, по этому нужно использовать псевдо устройство IFB (ingress) на внешнем и классифицировать от него.