You are on page 1of 13

CompleteGuideToMine BitcoinonXubuntu12.

04
byLeonardHuang(lueotw@gmail.com) Latestversioncouldbefoundonhttp://goo.gl/vP3G9 Ifyouthinkthisarticleisusefultoyou,pleasemakeadonationto:
1M1mB5BQX5QthTojfHxXxJQJr8ro5xLcKR

Firstly,IdliketothankKanoi,whowroteanexcellenthowtoguideonHowtosetupacgminer usingxubuntu11.04liveonaUSB.However,IdontneedtomineonaUSB(itsslowcompared toaHDD).Also,hisguidedidntupdatewiththelatestversionofXubuntu(12.04),whichinmy opinionistheeasiestversionofXubuntuevertominebitcoinwith.Althoughitsrelativelyeasy, therearestillsomepitfallsIwanttoyoutoavoid,soIwrotethisguide. IhadbeenminingBitcoinsinceJuly,2011.IhadusedWindows7formininguntilMay,2012.The reasonIuseWindows7isasthefollowing: 1. 2. 3. 4. AMDdrivergotbettersupportonWindows. MuchmoreoverclocktoolsonWindows(MSIAfterBurnerrocks!). Lesstimewastingontroubleshooting. With(3),IcanfocusontweakingthebestCPU/MEMclockcombinationformaximizing profit.

IhadtriedtoswitchtoaheadlessLinuxsolutionbutfailed,duetothefollowingproblems: 1. Mymachineconstantlycrashedafteroperating3hours. 2. ThelanportonmymotherboarddidntgetsupportwellonLinuxatthattime(r8169ona GigabytemotherboardbuggydriveronUbuntu11.04and11.10). 3. Iwasted5daysstrugglingontroubleshootinglinuxproblems.Notworthit. IdecidedtogiveXubuntu12.04atry,sinceIveheardthat12.04isnotonlygetting LongTermSupport,butalsofixingvariousbugssince11.04and11.10. Theresultisamazinglygreat!Mymachinesnevercrashanymore! Enoughformyexperience.Letsmoveon.

TableofContent
Pre-stage - Installation Media Install Xubuntu 12.04 Install AMD Driver on Xubuntu Config AMD Driver Install SSH for remote login Install CGMiner Further reading Install Bitcoin 0.6.2 on Xubuntu (optional)

I. PrestageInstallationMedia

ThefirstthingyouneedisaUSB essentialtogetridofCDROMs).

toloadXubuntuin(Yap,aUSBisstill

Then,downloadUnetbootintoloadyourXubuntuCDimageontheUSB.

Nowyourereadytoroll!

II. InstallXubuntu12.04
Tryfollowthisarticle:ThePerfectDesktopXubuntu12.04untilyougetaworkingdesktop.

RemembertocheckL o gi na u t o m a t i c a l l y whenyoucreateasuperuser. Wellneedaloggedusertomineheadlessly.

Oh!Youforgettochecktheoption? Thatsallright,youcaneditthe/ e t c / l i g h t d m / l i g h t d m . c o n f likethisafterinstallation. [ S e a t D e f a u l t s ] a u t o l o g i n g u e s t = f a l s e a u t o l o g i n u s e r = < y o u ru s e r n a m e > a u t o l o g i n u s e r t i m e o u t = 0 a u t o l o g i n s e s s i o n = l i g h t d m a u t o l o g i n g r e e t e r s e s s i o n = l i g h t d m g t k g r e e t e r u s e r s e s s i o n = x u b u n t u

III.

InstallAMDDriveronXubuntu

Caution: Choose your driver wisely, or youll lose 10% ~ 20% hash power!

[ForAMDRaedon7xxxSeries]
IfanyofyourcardsonboardisAMDRaedon7xxxSeriescards,youllneedAMDAPP SDK2.6+,whichisincludedinCatalyst11.12+andbeyond1 (IrecommendCatalyst12.3whichincludeSDK2.6). Reason:7xxxSeriesusesomekindofnewarchitecturecalledGCN,whichcan onlyberecognizedwithSDK2.6+.

Nowfollowthesteps(incommandline): (DontusetheGUI(Settings>Additionaldrivers)toinstallthepostreleasedriver.ItwillfailandIdont knowwhy.) Done!


s u d oa p t g e ti n s t a l lf g l r x u p d a t e sf g l r x a m d c c c l e u p d a t e sf g l r x u p d a t e s d e v

[ForAMDRaedon6xxx,5xxxSeries]
IfyoudonthaveanyAMDRaedon7xxxSeriescards(like6xxx,5xxx),youshoulduse SDK2.5,whichisincludedinCatalyst11.7~11.11. (RecommendCatalyst11.11) Reason:Non7xxxSerieswithSDK2.6willloseabout10%performance.

Nowfollowthesteps2 .
Installtheprerequisitepackages: s u d oa p t g e ti n s t a l lb u i l d e s s e n t i a lc d b sd h m a k ed k m se x e c s t a c kd h m o d a l i a s e s f a k e r o o tl i b q t g u i 4 Ifyouareusingthex86_64architecture(64bit): s u d oa p t g e ti n s t a l li a 3 2 l i b s m u l t i a r c h : i 3 8 6l i b 3 2 g c c 1l i b c 6 i 3 8 6

CompleteTableoftherelationshipbetweenCatalystandAPPSDKcouldbefoundonAMD website 2 ThanksfortheinstructiononUnofficialWikifortheAMDLinuxDriver

s u d oa p t g e ti n s t a l li a 3 2 l i b s

Compileandinstallthedriver:
Done!
w g e th t t p : / / w w w 2 . a t i . c o m / d r i v e r s / l i n u x / a t i d r i v e r i n s t a l l e r 1 1 1 1 x 8 6 . x 8 6 _ 6 4 . r u n s u d os h. / a t i d r i v e r i n s t a l l e r 1 1 1 1 x 8 6 . x 8 6 _ 6 4 . r u nb u i l d p k gU b u n t u / p r e c i s e s u d od p k gif g l r x * . d e b

IV.

ConfigAMDDriver

Checkifallyourcardscanbedetectedandthenwriteconfigurationto/ e t c / X 1 1 / x o r g . c o n f . a t i c o n f i gl s a s u d oa t i c o n f i ga d a p t e r = a l li n i t i a l

Ifeverythingwentfine,rebootthecomputerbys u d or e b o o t . Afterthat,checkifeverythingworks: s u d oa t i c o n f i ga d a p t e r = a l lo d g t

V.InstallSSHforremotelogin
Installo p e n s s h s e r v e r andb y o b u toperformremotelogin. s u d oa p t g e ti n s t a l lo p e n s s h s e r v e rb y o b u

Nowyoucanpulloutthecablesofyourmonitor,mouseandkeyboardandenjoyaheadless Xubuntu!

VI.

InstallCGMiner

GotoCGMINERonbitcointalkpageanddownloadthelatestversionofcgminer. Oronthecommandline:
w g e th t t p : / / c k . k o l i v a s . o r g / a p p s / c g m i n e r / c g m i n e r 2 . 9 . 5 x 8 6 _ 6 4 b u i l t . t a r . b z 2

Thenunzipittoadirectory. t a rj x v fc g m i n e r 2 . 9 . 5 x 8 6 _ 6 4 b u i l t . t a r . b z 2

Note:Ifyougotlibcurl4error,installthelib: s u d oa p t g e ti n s t a l lc u r l

Gotothedirectoryandcheckifcgminerdetectsallyourcards. c dc g m i n e r 2 . 9 . 5 x 8 6 _ 6 4 b u i l t e x p o r tD I S P L A Y = : 0 e x p o r tG P U _ U S E _ S Y N C _ O B J E C T S = 1 . / c g m i n e rn

Thecorrectresultshouldshowliketheleftdiagram.. NotethatboththeOpenCLandtheADL detects4devices. NotethattheADLcantbeinitialized.


(youforgottoset e x p o r tG P U _ U S E _ S Y N C _ O B J E C T S = 1 )

Writeascriptforyourfavoriteminingpool: Ordinarypool (likedeepbit,BTCGuild,OzCoin,etc.)


# ! / b i n / s h e x p o r tD I S P L A Y = : 0 e x p o r tG P U _ U S E _ S Y N C _ O B J E C T S = 1 c d/ h o m e / < y o u r h o m e > / c g m i n e r 2 . 9 . 5 x 8 6 _ 6 4 b u i l t . / c g m i n e roh t t p : / / < m i n i n g _ p o o l > : < p o r t >u< u s e r n a m e >p< p a s s w o r d >a p i l i s t e n a p i n e t w o r kI

9g p u r e o r d e ra u t o f a ng p u p o w e r t u n e2 0g p u e n g i n e

9 2 0 , 9 2 0 , 9 2 0 , 1 1 2 5g p u m e m c l o c k7 9 5 , 7 9 5 , 7 9 5 , 9 7 5

P2Pool Youcanmineatmypoolfortesting:http://btcm.dyndns.org:9332/ Ortryanyofthepublicavailablep2poolinstances. Remembertoreplace<username>withyourBTCaddresswherethe paymentsaretobesent


# ! / b i n / s h e x p o r tD I S P L A Y = : 0 e x p o r tG P U _ U S E _ S Y N C _ O B J E C T S = 1 c d/ h o m e / < y o u r h o m e > / c g m i n e r 2 . 9 . 5 x 8 6 _ 6 4 b u i l t . / c g m i n e roh t t p : / / < m i n i n g _ p o o l > : < p o r t >u< u s e r n a m e >p< p a s s w o r d >a p i l i s t e n a p i n e t w o r kI

8g2 g p u r e o r d e ra u t o f a ng p u p o w e r t u n e2 0g p u e n g i n e

9 2 0 , 9 2 0 , 9 2 0 , 1 1 2 5g p u m e m c l o c k7 9 5 , 7 9 5 , 7 9 5 , 9 7 5

Saveitasafileandchangethepermissiontoexecuteit. n a n oc g . s h c h m o d+ xc g . s h . / c g . s h

Younowhaveaheadessbitcoinminingmachine!JustSSHtoyourmachinewithb y o b u and executeyouscript. b y o b u . / c g . s h Ifyouthinkthisarticleisusefultoyou,pleasemakeadonationto:


1M1mB5BQX5QthTojfHxXxJQJr8ro5xLcKR

YoucansafelypressF6andexitsinceyourminingsessionwillbekeptinb y o b u .

VII.

Furtherreading
P2Pool
Ifyouwanttosetupaprivatep2pool: https://bitcointalk.org/index.php?topic=62842.0 Ifyoudontwasteyourtimeonsettingupp2pool,youcantestonmyp2poolnode: http://btcm.dyndns.org:9332/ username:<BitcoinAddressyouwanttoreceivepayment> password:<anyletterwouldbeok>

Exchange
IfyouwanttobuyorexchangeBitcoinwiththefollowingcurrencycompany,you canusemyaffiliatelinkofAurumXchange.ItistheofficialpartnerofMt.Goxto transferBitcointoLibertyReserve. LibertyReserve MTGox PerfectMoney CryptoXchange PecUnix Vouchx HDMoney Cosmicpay CGold SolidTrustPay

http://goo.gl/gJqZS

VIII.

InstallLatestBitcoindonXubuntu(optional)

IfyouwanttorunbitcoindaemononyourXubuntusystem,openyourterminalandinstall packagesbytypingthefollowingcommands3 : s u d oa p t g e ti n s t a l lp y t h o n s o f t w a r e p r o p e r t i e s s u d oa d d a p t r e p o s i t o r yp p a : b i t c o i n / b i t c o i n s u d oa p t g e ti n s t a l lb i t c o i n d

Nowyouhavethelatestversionofbitcoindinstalled.Prettyeasy,right? Ifyouthinkthisarticleisusefultoyou,pleasemakeadonationto:
1M1mB5BQX5QthTojfHxXxJQJr8ro5xLcKR

FollowtheinstructionofanexcellentansweronAskUbuntu

You might also like