Skip to content

Commit

Permalink
Add Files via Upload
Browse files Browse the repository at this point in the history
Scripts to set miner, init and instructions
  • Loading branch information
MineCoreLive authored Jun 4, 2021
0 parents commit 5a24b30
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iniciar.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
aterm -e ./.config_ocean.sh &
61 changes: 61 additions & 0 deletions instrucoes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Instruções

Antes de fazer qualquer outra coisa, certifique-se de que a persistência vai funcionar em seu setup.
O sistema é pré configurado para guardar todas as suas alterações em /mnt/sdb, num arquivo chamado mydata
que fica dentro da pasta TCE. Essa configuração cobre a maioria dos usos quando você já tem um hd/ssd
instalado no equipamento E usou o criador de pendrive recomendado - Lili USB Creator. Mas pode ser
necessário refazer isso. Se for o seu caso, o ideal é primeiro alterar essa configuração. Para isso,
modifique o arquivo:

/mnt/sdX/boot/syslinux/syslinux.cfg

(A localizacao do arquivo pode variar dependendo do aplicativo usado para gravar o pendrive)

Você precisará usar RunProgram na barra (Application launcher), escrever editor, clicar Run with sudo e OK.
Daí vai abrir o arquivo no caminho acima, onde sdX é como o sistema reconhece seu pendrive.

Ainda se o seu sistema não estiver rodando em /mnt/sdb, ha mais uma etapa:

Procure por todas as entradas "tce=sdb" no arquivo e substitua "sdb" pelo código com que seu setup reconheceu
seu pendrive (pode ser tce=sda, tce=sda1, tce=sdc, tce=sdd). Salve. Essa mudança é definitiva. Voce vai
precisar reiniciar uma vez a maquina depois de mudar o syslinux.cfg antes de configurar a mineracao
para que a configuração da mineração seja efetivamente armazenada. Na primeira vez que reiniciar, ignore o
erro de backup (escolha reboot sem backup).

Mas se seu sistema realmente estiver em sdb, entao voce poderá configurar a mineracao diretamente e reiniciar
pelo pendrive depois, porque que a mineração vai começar automaticamente no proximo boot.

A configuração da mineração em si

Feita a configuração de persistência, em primeiro lugar, certifique-se de ter conexão à Internet. Não
execute nenhum script sem conexão. Se fizer isso vai configurar coisas pela metade e ter problemas.
O sistema deve se configurar automaticamente numa rede cabeada, mas você pode usar o wifi na maioria
das máquinas. É só clicar no simbolo wifi na barra.

Cole sua carteira na primeira linha do arquivo carteira.txt. Você pode pegar de alguma cloud na Internet (use o
Iridium Browser, baseado no Chrome, na barra de programas). Ou de seu HD no mesmo PC/Notebook ou ainda de outro
pendrive com ela gravada. Para fazer isso, localize o dispositivo abrindo a ferramenta de discos abaixo
(MountTool), e ativando (montando) o dispositivo (sdaX, sdbX, sdcX...).

Para acessa/navegar nos dispositivos, use o gerenciador roxFM (na barra). Setinha para cima até chegar na

raiz -> mnt -> dispositivo (sdaX, sdbX ou sdcX)

Ai é só localizar seu arquivo de texto com a carteira. No roxFM, voce pode clicar com o botao direito do mouse
e selecionar Open As Text no submenu File para o arquivo.

Este é um sistema muito reduzido, então algumas tarefas precisam de atenção. O copiar/colar por exemplo precisa
ser feito com as duas janelas abertas (a origem e o destino).

Depois de se conectar à internet e configurar o carteira.txt dê um CLICK ÚNICO no arquivo iniciar.sh para
a configuração começar. Siga as instruções.

Se tudo correr bem você terá um sistema configurado, mas deverá fazer a primeira calibragem. Para isso, clique
em minerar.sh (clique único). Se nada acontecer aparentemente e porque a mineracao de alguma forma ja esta
rodando em background. Nao foi projetado para isso, mas nos testes um usuario relatou que isso aconteceu.
Abra o terminal (na barra) e digite? sudo killall xmrig. Isso mata o processo. Entao clique em minerar.sh.

Terminada a calibragem, e hora de reiniciar para guardar a configuração definitiva. Certifique-se de escolher
Backup, e o dispositivo estar corretamente identificado tce/sdX. Nas próximas vezes em que desligar e
reiniciar a máquina com o pendrive, a mineração deverá começar automagicamente
numa tela de terminal visível a você.
72 changes: 72 additions & 0 deletions instructions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
Instructions

Before doing anything else, make sure persistence will work in your setup.
The system is pre-configured to save all your changes in /mnt/sdb, in a file
called mydata that is inside the TCE folder. This setting covers most uses
when you already have a hd/ssd installed on the device AND used the
recommended usb flash drive creator - Lili USB Creator.

You may need to change some paths if your computer has more than one storage
or your usb flash drive was generated by another boot media creator such as
Rufus or Unetbootin. If that's your case, it's best to change this setting
first. To do this, modify the file:

/mnt/sdX/boot/syslinux/syslinux.cfg

(The file location may vary depending on the application used to burn the usb flash drive)

You will need to use RunProgram in the toolbar (Application launcher),
write editor, click "Run with sudo" and OK. Then it will open the file
in the path above, where sdX is how the system recognizes your usb flash drive.

Even if your system is not running in /mnt/sdb, there is one more step:

Look for all "tce=sdb" entries in the file and replace "sdb" with the code
that your setup recognized your pendrive with (can be tce=sda, tce=sda1, tce=sdc, tce=sdd).
Save. This change is persistent. You will need to reboot the machine once after changing
syslinux.cfg before setting up mining so that the mining configuration is actually stored.
The first time you reboot, ignore the backup error (choose reboot without backup).

But if your system really is in sdb, then you can configure mining directly and
restart from USB stick later, because mining will start automatically on next boot.

The configuration of mining itself

Having done the persistence setup, first, make sure you have an Internet connection.
Do not run any scripts if you are note connected yet. If you do, you'll set things
up in half and run into problems.

The system should automatically configure itself on a wired network, but you can
use wifi on most machines. Just click on the wifi symbol in the bar.

Paste your wallet into the first line of the "carteira.txt" file. You can get
it from some cloud on the Internet (use the Chrome-based Iridium Browser in the
program bar). Or from your HD on the same PC/Notebook or from another usb flash
drive recorded with it. To do this, locate the device by opening the disks tool
below (MountTool), and activating (mounting) the device (sdaX, sdbX, sdcX...).

To access/browse the devices, use the roxFM manager (on the bar). Arrow up until you reach:

root -> mnt -> device (sdaX, sdbX or sdcX)

Then just locate your text file with the wallet. In roxFM, you can right-click
and select "Open As Text" from the File submenu for the file.

This is a very small system, so some tasks need attention. The copy/paste for
example, needs to be done with both windows open (the source and the destination).

After connecting to the internet and configuring carteira.txt,
SINGLE CLICK the "iniciar.sh" file for the configuration to begin.
Follow the instructions.

If all goes well you will have a system set up, but you will have to do the
first calibration. To do this, click "minerar.sh" (single click). If nothing
happens apparently it is because the mining is somehow already running in the
background. It was not designed for this, but in testing one user reported that
it did. Open the terminal (on the bar) and type: sudo killall xmrig. This kills
the process. Then click "minerar.sh".

Once the calibration is complete, it is time to restart to save the final configuration.
Make sure you choose Backup, and the device is correctly identified tce/sdX. The next few
times you shutdown and restart the machine with the usb flash drive, mining should start
automagically on a terminal screen visible to you.
Binary file added minecorewallpaper.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions minerar.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
#cd xmrig/build
#aterm - sudo ./xmrig
sudo modprobe msr
nice /home/tc/moneroocean/miner.sh

0 comments on commit 5a24b30

Please sign in to comment.