123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- How to setup a cgminer using xubuntu 11.04 live on a USB
- The master version of this document is here:
- https://github.com/kanoi/linux-usb-cgminer
- The actual file is:
- https://github.com/kanoi/linux-usb-cgminer/blob/master/linux-usb-cgminer
- The copy in cgminer (check to make sure it isn't older) is:
- https://github.com/ckolivas/cgminer/blob/master/linux-usb-cgminer
- The original old verion on bitcointalk is:
- https://bitcointalk.org/index.php?topic=28402.msg426741#msg426741
- ========
- I have said to select English for the install process for 2 reasons:
- 1) I don't know any other spoken language very well
- and
- 2) I'm not sure what problems installing under a different language
- might cause (it will probably cause no problems but I don't know)
- Software
- ========
- Short hardware comment:
- Your mining computer doesn't need any HDD or CD/DVD/BD as long as it has at
- least 2GB of RAM, can boot USB, has some network connection to the internet
- and of course a reasonable mining ATI graphics card
- ... Or you can boot a windows PC with the USB to only do mining ... and ignore
- the system HDD ... wasting energy running the HDD (roughly 10 Watts per HDD) :)
- If you wish to install to an HDD instead of a USB,
- see the changes to the instructions at the end
- To create the USB, you need of course a 4GB USB and temporarily need a PC
- with a CD (or DVD/BD) writer, a USB port and of course an internet
- connection to the PC
- 1) Download the xubuntu 11.04 desktop live CD iso for amd64
- ( look here for mirrors: http://www.xubuntu.org/getubuntu )
- 2) Burn it to CD then boot that temporarily on any PC with a CD/DVD/BD and
- a USB port (this and the next 2 step won't effect that PC)
- Select "English" then select "Try Xubuntu without installing"
- and wait for the desktop to appear
- (this happens by default if you wait for the timeouts)
- 3) Plug in your 4GB USB device and it should appear on the desktop - you can
- leave it's contents as long as there is at least 2.8GB free
- 4) Now run "Startup Disk Creator" in "Applications->System"
- (the system menu is the little rat in the top left corner)
- (if you have no mouse you can get the menu with <ctr><esc> and navigate
- the menu with the arrow keys and <return> key)
- From here select the boot CD as the "Source" and the USB as the "Disk to use"
- lastly move the slider to 2GB for reserved extra space
- The 2GB should be enough for modifications
- Click: "Make Install Disk"
- After about 10-15 minutes you have a base xubuntu 11.04 boot USB
- (you can shut down this computer now)
- 5) Boot your cgminer PC with this USB stick, select "English"
- then select "Try Xubuntu without installing" and wait for the desktop to
- appear (this happens by default if you wait for the timeouts)
- 6) Start a terminal
- "Applications->Accessories->Terminal Emulator"
- 7) sudo apt-get install openssh-server screen
- if you have a problem here then it's probably coz the internet isn't
- available ... sort that out by reading elsewhere about routers etc
- 8) sudo apt-get install fglrx fglrx-amdcccle fglrx-dev
- sudo sync
- sudo shutdown -r now
- N.B. always do a "sudo sync" and wait for it to finish every time before
- shutting down the PC to ensure all data is written to the USB
- 9) sudo aticonfig
- this lists your ATI cards so you can see them
- sudo aticonfig
- this checks it can access all the cards ...
- 10) sudo aticonfig
- this gets an error - no idea why but the xorg.conf is OK
- sudo sync
- sudo shutdown -r now
- 11) sudo aticonfig
- this checks it can access all the cards ...
- 12) get AMD-APP-SDK-v2.4-lnx64.tgz from
- http://developer.amd.com/sdks/amdappsdk/downloads/pages/default.aspx
- ( http://developer.amd.com/Downloads/AMD-APP-SDK-v2.4-lnx64.tgz )
- sudo su
- cd /opt
- (replace /home/ubuntu/ with wherever you put the file: )
- tar -xvzf /home/ubuntu/AMD-APP-SDK-v2.4-lnx64.tgz
- cd AMD-APP-SDK-v2.4-lnx64/
- cp -pv lib/x86_64
|