Difference between pages "Litecoin Mining for Funtoo" and "Funtoo Linux Localization/pt-br"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
(adding coinotron)
 
 
Line 1: Line 1:
Litecoin mining is a fun and easy way that you can help support the Funtoo Linux project. Litecoin is a virtual cryptographic currency that is generated using CPUs and video card GPU computational power, and can be converted into a traditional currency like US dollars.
== Definir Idioma Padrão ==


== How does Litecoin Relate to Funtoo? ==
No Funtoo, há dois arquivos de configuração responsáveis suas configurações de idioma: <code>/etc/locale.gen</code> e <code>/etc/env.d/00basic</code>. O primeiro arquivo contém somente en_US.UTF-8 locale habilitado. O ultimo é um arquivo padrão embarcado que vem a partir do stage3 e responsável pelo en_US.UTF-8 locale system-wide. não recomendado editar.
Os passos a seguir lhe guiarão através do processo de editar o idioma padrão do sistema (default system language), utilizando o francês canadense como um exemplo.
Primeiro você terá que editar <code>/etc/locale.gen</code>:
<console>
# ##i##nano -w /etc/locale.gen
</console>
Especifique sua localidade preferida com o formato de caracter acompanhante (Você vai preferir principalmente UTF-8):
{{fancynote|É recomendado manter o en_US.UTF-8 locale pré-configurado com um fallback.}}
{{file|name=/etc/locale.gen|body=
en_US.UTF-8 UTF-8
fr_CA.UTF-8 UTF-8
}}
Para determinar uma localidade apropriada para o seu sistema, você deve dar uma olha em <code>/usr/share/i18n/SUPPORTED</code> para a lista padrão de combinações suportadas  ou verifique o diretório <code>/usr/share/i18n/locales/</code> para uma lista de valores válidos.
{{fancywarning|Lhe é altamente aconcelhado usar ''ao menos uma'' localidade UTF-8 desde que algumas aplicações possam exigi-la.}}


Part of Funtoo is having fun, and part of having fun is being creative, and exploring new ideas and concepts, and not being limited by the expectations of others. These concepts include technology, but also include new community concepts and approaches for supporting a community. Distributed support via CPU and GPU power is certainly a novel way of supporting an open source project, and because of this it is a perfect fit for Funtoo. In many ways, the resource challenges faced by open source projects are more complex than the technical challenges, and deserve to be taken seriously. By exploring the use of Litecoin, we are exploring an innovative way to fund the project.
Agora, essas localidades precisam ser geradas:
<console>
# ##i##locale-gen
##g##*##!g## Generating 2 locales (this might take a while) with 1 jobs
*  (1/2) Generating en_US.UTF-8 ... [ ok ]
*  (2/2) Generating fr_CA.UTF-8 ... [ ok ]
##g##*##!g## Generation complete
</console>


=== What are Funtoo Litecoin Funds Used For? ===
Uma vez feito, você pode aplicar suas configurações de localidade do system (locale settings system-wide). Primeiro exiba todas as opções disponíveis:
<console>
$ ##i##eselect locale list
##b####g##Available targets for the LANG variable:
  ##b##[1]##!b##  C
  ##b##[2]##!b##  POSIX
  ##b##[3]##!b##  fr_CA.utf8
  ##b##[4]##!b##  en_US.utf8 ##bl##*
  ##b##[ ]##!b##  (free form)
</console>
O asterisco azul indica a localidade atual padrão do sistema. Você pode agora alterá-lo de acordo com o que desejar:
<console>
# ##i##eselect locale set 3
Setting LANG to fr_CA.utf8 ...
Run ". /etc/profile" to update the variable in your shell.
</console>
Alternativamente, você pode definir a localidade padrão manualmente. Esse arquivo deve primeiro ser criado com o seu editor preferido:
{{file|name=/etc/env.d/02locale|body=LANG="fr_CA.utf8"}}
Você pode verificar suas ações utilizando:
<console>
$ ##i##eselect locale show
##b####g##LANG variable in profile:
  ##b##fr_CA.utf8
</console>


These funds will be used to pay the Development Lead of Funtoo, who assists me (Daniel Robbins) in ensuring that day-to-day often unglamorous work is completed in a responsive way for our users. The goal of this effort is for litecoin funds to pay the Development Lead so he can work on Funtoo Linux full-time.
Para um efeito imediato é necessário recarregar o ambiente:
<console>
# ##i##env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...
</console>
Parabéns! Você definiu com sucesso seu idioma padrão no Funtoo.


Why is this important? Sometimes, I get busy at work and cannot be involved in Funtoo, and the Development Lead ensures that the Funtoo community stays afloat during these periods. The Dev Lead also assists with running the project when I'm available, so I can focus on development activities more deeply. This also helps to keep the project fun for me, so it is not an unreasonable burden.
== Configurações do Portage ==


Any surplus funds beyond this will be used to pay for our 10Gbit/sec hosting infrastructure and servers, which I currently pay for myself.
Portage utiliza uma variável especial <code>LINGUAS</code> que define quais localizações/traduções são instaladas por padrão. Por padrão, <code>LINGUAS</code> em unset, a qual resultará em ''todas'' localizações disponíveis sendo instaladas pelo Portage.


== Litecoin Pools ==
É possível personalizar as configurações de <code>LINGUAS</code> ao configurá-la em <code>/etc/make.conf</code>:


<console>
# ##i##LINGUAS="en_US zh_CN"
</console>


Typically, Litecoins are mined by pools of computers, and funtoo is part of the following pooled litecoin mining efforts:
A variável <code>LINGUAS</code> deve utilizar espaços entre cada nome de localização.


{| style="background-color:#ffffcc;" cellpadding="10" cellspacing="0" border="1"
== Leia Seu Idioma ==
! pool
! host
! port
! user
! password
! stats
! review
|-
| Coinotron
| <tt>stratum+tcp://coinotron.com:3334</tt>
| <tt>3334</tt>
| <tt>funtoo.public</tt>
| <tt>p</tt>
|
| We've found this pool to be very efficient.
|-
| Burnside's Litecoin Mining Pool
| <tt>ltc.kattare.com</tt>
| <tt>9332</tt>
| <tt>funtoo.public</tt>
| <tt>p</tt>
| [http://ltc.kattare.com/stats.php stats]
| very good PPNLS pool
|-
| OzCoin
| <tt>newlc.ozco.in</tt>
| <tt>9332</tt>
| <tt>funtoo.public</tt>
| <tt>p</tt>
| [https://lc.ozcoin.net/content/overview ozcoin overview]
| very good PPS pool
|}


There are lots of different ways to mine Litecoins. You can use any of our pools above. You can also use your CPU or your graphics card. To see what different types of hardware can do, see the [https://github.com/litecoin-project/litecoin/wiki/Mining-hardware-comparison Litecoin Mining Hardware Comparison] page. Note that many of these systems are overclocked so make note of the CPU and memory frequencies listed here.
Um Funtoo Linux novinho instalado não habilita para ler todos os idiomas. Você quer ler as coisas, digamos, no Mozilla Firefox. Você precisa instalar as fonts - Um bom sinal de que você não instalou as fonts adequadas é que os caracteres a seguir aparecem como caixas com números dentro delas: 日本語フォント


== "Got Litecoins Already" Method ==
Verifique se você possui o idioma instalado (Chinês) ao utilizar o comando <tt>fc-list</tt> a partir do ebuild <tt>media-libs/fontconfig</tt> ebuild:
 
If you already have Litecoins that you want to donate to Funtoo Linux, you can send them to <tt>LgtcMbY5JYTQAGzdfJ9U83CPhspNkbJzym</tt>. Thanks!
 
Here's how to do it with litecoind:


<console>
<console>
# ##i##litecoind sendtoaddress LgtcMbY5JYTQAGzdfJ9U83CPhspNkbJzym 50
# ##i##fc-list :lang=zh
</console>
</console>


Be sure to let Daniel know that you sent some coin so that you can receive proper respect :)
Se você estiver com sorte, a font correta será instalada, e seus aplicativos também serão capazes de utilizar chinês como o idioma padrão. Mas em caso de você não possuir as fonts corretas instaladas desta maneira, você precisa instalá-las manualmente.


== CPU Mining ==
Para japonês:


Here's how to get started and convert your idle CPU power into a contribution to the Funtoo Linux project.
<console>
 
# ##i##emerge media-fonts/kochi-substitute
The "miner" is the program that performs the computation to generate litecoins. It receives blocks from a server, which it performs computations on. Miners are designed to run continually in the background, where they use up idle CPU only, and will not impact the speed of your system. A significant contribution to Funtoo Linux is only realized when miners are run continually for days and weeks -- so running a miner for an hour or so is typically not effective.
</console>
 
=== Installation using Portage ===
 
This method will use CFLAGS from /etc/portage/make.conf. Note that <tt>-O2</tt> seems to work much better than <tt>-O3</tt>.


Para chinês:
<console>
<console>
# ##i##emerge pooler-cpuminer
# ##i##emerge media-fonts/arphicfonts
</console>
</console>


=== Set up go.sh ===
Para Coreano:
 
Create the following <tt>go.sh</tt> script to start the miner:
 
<pre>
#!/bin/bash
threads=$(grep -c "^processor" /proc/cpuinfo)
while true;
do
  minerd --algo scrypt -s 45 --retry-pause 5 --threads $threads --url http://ltc.kattare.com:9332 --userpass funtoo.public:p
done
</pre>
 
Make it executable:


<console>
<console>
# ##i##chmod +x go.sh
# ##i##emerge media-fonts/baekmuk-fonts
</console>
</console>


=== Run go.sh ===
== Mapa de teclado (Keymap) ==


Run <tt>go.sh</tt> to start the miner.  
O Funtoo Linux padroniza para um teclado inglês americano (US English). Se você estiver utilizando um outro tipo de teclado, edite <tt>/etc/conf.d/keymaps</tt> e defina o keymap para o seu modelo de tecladoto. Por exemplo, cf Para o teclado do francês canadense (French Canadian), fr Para francês azerty (French Azerty).


<console>
<console>
# ##i##./go.sh
# ##i##nano -w /etc/conf.d/keymaps
</console>
</console>


The cpuminer will only use idle CPU and will not slow down your system. Modern systems will generate somewhere from 15 to 60 KHash/sec total, which will result in $10 to Funtoo Linux per month for a Core i7 system at current exchange rates, when run continually.
== Input Method ==
 
Keep those miners running and thanks for supporting Funtoo Linux!
 
== GPU Mining ==
 
Some of the more hardcore individuals in the Funtoo community may want to use their graphics processor to mine litecoins. Modern graphics cards, particularly AMD (ATI) cards, can offer hashrates well above 100Khash/sec, even above 400Khash/sec for some cards. Daniel Robbins has a few Radeon HD 6950's that can generate in excess of 400Khash/sec ''each''.
 
AMD (ATI) cards tend to work much better than NVIDIA for litecoin mining. Here's how to do GPU mining:
 
=== Prerequisites ===


First, X will need to be installed, and you will need to ensure all your video cards are defined in <tt>/etc/X11/xorg.conf</tt>. For AMD cards, ati-drivers 13.1 appears to work well. Ensure that full hardware acceleration is working and that <tt>ati</tt> OpenGL and <tt>amd</tt> OpenCL are selected via <tt>eselect</tt>. (This is probably how things are set up if you simply emerged ati-drivers.)
ibus is an Intelligent Input Bus for Linux.
 
=== Install cgminer ===
 
First, enable the <tt>scrypt</tt> USE variable (important!). Now, emerge cgminer:


<console>
<console>
# ##i##USE="scrypt" emerge cgminer
# ##i##emerge -av ibus
</console>
</console>


=== Create cgminer script ===
You also need to install language table for ibus (Chinese)
 
Create a <tt>go.sh</tt> script that looks like this:
 
<pre>
#!/bin/bash
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
export DISPLAY=:0
cgminer \
-o http://newlc.ozco.in:9332/ -u funtoo.public -p p \
-o http://ltc.kattare.com:9332/ -u funtoo.public -p p \
--intensity 17 \
--scrypt \
--shaders 1536 --thread-concurrency 8000 -g 1 --worksize 256 \
--auto-fan --temp-target 80
</pre>
 
This script will start cgminer to connect to newlc.ozco.in, but will automatically fall back to the kattare pool if ozco.in is down. Intensity ranges from 1-20, with higher settings generally offering better hashrates. But if you get too close to 20, you will notice a slow down in interactive performance when using the X server. ssh performance will be unaffected.
 
Be sure to properly set the number of shaders on your card -- 1536 is for an unlocked Radeon HD 6950. Consult [https://github.com/ckolivas/cgminer/blob/master/SCRYPT-README SCRYPT-README] (look for the <tt>--shaders</tt> description) to view the correct shaders to use for your card.
 
=== Start Mining ===
 
Now make it executable, '''make sure X is running''', and start mining:


<console>
<console>
# ##i##chmod +x go.sh
# ##i##emerge -av ibus-table-chinese
# ##i##./go.sh
</console>
</console>


There are other cool things you can do with cgminer, such as overclocking your video card and ramping up the intensity to at or near 20 to dramatically increase hashrates. Happy mining, and if you are mining for Funtoo, thanks :)
[[Category:Install|Localization]]

Revision as of 22:16, February 5, 2015

Definir Idioma Padrão

No Funtoo, há dois arquivos de configuração responsáveis suas configurações de idioma: /etc/locale.gen e /etc/env.d/00basic. O primeiro arquivo contém somente en_US.UTF-8 locale habilitado. O ultimo é um arquivo padrão embarcado que vem a partir do stage3 e responsável pelo en_US.UTF-8 locale system-wide. não recomendado editar. Os passos a seguir lhe guiarão através do processo de editar o idioma padrão do sistema (default system language), utilizando o francês canadense como um exemplo. Primeiro você terá que editar /etc/locale.gen:

root # nano -w /etc/locale.gen

Especifique sua localidade preferida com o formato de caracter acompanhante (Você vai preferir principalmente UTF-8):

   Note

É recomendado manter o en_US.UTF-8 locale pré-configurado com um fallback.

   /etc/locale.gen
en_US.UTF-8 UTF-8
fr_CA.UTF-8 UTF-8

Para determinar uma localidade apropriada para o seu sistema, você deve dar uma olha em /usr/share/i18n/SUPPORTED para a lista padrão de combinações suportadas ou verifique o diretório /usr/share/i18n/locales/ para uma lista de valores válidos.

   Warning

Lhe é altamente aconcelhado usar ao menos uma localidade UTF-8 desde que algumas aplicações possam exigi-la.

Agora, essas localidades precisam ser geradas:

root # locale-gen
 * Generating 2 locales (this might take a while) with 1 jobs
 *  (1/2) Generating en_US.UTF-8 ... [ ok ]
 *  (2/2) Generating fr_CA.UTF-8 ... [ ok ]
 * Generation complete

Uma vez feito, você pode aplicar suas configurações de localidade do system (locale settings system-wide). Primeiro exiba todas as opções disponíveis:

user $ eselect locale list
root ##b##Available targets for the LANG variable:
  [1]   C
  [2]   POSIX
  [3]   fr_CA.utf8
  [4]   en_US.utf8 *
  [ ]   (free form)

O asterisco azul indica a localidade atual padrão do sistema. Você pode agora alterá-lo de acordo com o que desejar:

root # eselect locale set 3
Setting LANG to fr_CA.utf8 ...
Run ". /etc/profile" to update the variable in your shell.

Alternativamente, você pode definir a localidade padrão manualmente. Esse arquivo deve primeiro ser criado com o seu editor preferido:

   /etc/env.d/02locale
LANG="fr_CA.utf8"

Você pode verificar suas ações utilizando:

user $ eselect locale show
root ##b##LANG variable in profile:
  fr_CA.utf8

Para um efeito imediato é necessário recarregar o ambiente:

root # env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...

Parabéns! Você definiu com sucesso seu idioma padrão no Funtoo.

Configurações do Portage

Portage utiliza uma variável especial LINGUAS que define quais localizações/traduções são instaladas por padrão. Por padrão, LINGUAS em unset, a qual resultará em todas localizações disponíveis sendo instaladas pelo Portage.

É possível personalizar as configurações de LINGUAS ao configurá-la em /etc/make.conf:

root # LINGUAS="en_US zh_CN"

A variável LINGUAS deve utilizar espaços entre cada nome de localização.

Leia Seu Idioma

Um Funtoo Linux novinho instalado não habilita para ler todos os idiomas. Você quer ler as coisas, digamos, no Mozilla Firefox. Você precisa instalar as fonts - Um bom sinal de que você não instalou as fonts adequadas é que os caracteres a seguir aparecem como caixas com números dentro delas: 日本語フォント

Verifique se você possui o idioma instalado (Chinês) ao utilizar o comando fc-list a partir do ebuild media-libs/fontconfig ebuild:

root # fc-list :lang=zh

Se você estiver com sorte, a font correta será instalada, e seus aplicativos também serão capazes de utilizar chinês como o idioma padrão. Mas em caso de você não possuir as fonts corretas instaladas desta maneira, você precisa instalá-las manualmente.

Para japonês:

root # emerge media-fonts/kochi-substitute

Para chinês:

root # emerge media-fonts/arphicfonts

Para Coreano:

root # emerge media-fonts/baekmuk-fonts

Mapa de teclado (Keymap)

O Funtoo Linux padroniza para um teclado inglês americano (US English). Se você estiver utilizando um outro tipo de teclado, edite /etc/conf.d/keymaps e defina o keymap para o seu modelo de tecladoto. Por exemplo, cf Para o teclado do francês canadense (French Canadian), fr Para francês azerty (French Azerty).

root # nano -w /etc/conf.d/keymaps

Input Method

ibus is an Intelligent Input Bus for Linux.

root # emerge -av ibus

You also need to install language table for ibus (Chinese)

root # emerge -av ibus-table-chinese