2013年9月15日 星期日

Note for Pidora



Target: run a BT and ed2k client on raspberry pi
Results: Failed due to the insufficient cpu performance for amule and transmission

Steps:

1.
   win32diskimager: burn iso to sd card
2.
   create an empty file 'headless' in the folder '/boot'
   PS. I use centos in vmplayer to do this
3.
   find the ip of Pidora on raspberry pi
   you can do this by some ip scan program.
   some reference said the light/horn may tell the IP,
   but I can't get IP through these two methods.
4.
   ssh root/raspberrypi

5. resize and swap
   >> parted /dev/mmcblk0
   >> (parted) unit chs
   >> (parted) rm 2
   >> i
   >> (parted) mkpart primary 6,127,57  1746,198,43
   >> (parted) quit

   fdisk for swap   
   >> reboot
   >> resize2fs /dev/mmcblk0p2
   PS. some reference said no swap needed on a SD card due to the speed issue

6. add users
   root>> useradd -c "pidora" pi
   root>> passwd pi
   root>> visudo
   Fixed:
   %wheel ...
   %wheel ...

7. remote screen
   install & setup MobaXterm
   login
   >> startxfce4 &
  
   or
   >> yum -y install tightvnc-server
   setup firewall by MobaXterm with your root account
      Applications Menu / Settings / Firewall--> current/persistent view: check vnc server
   change desktop environment to XFce (gnome may go wrong)
   >> yum install switchdesk switchdesk-gui
   >> switchdesk xfce
      PS. every user should do this once

8. install some lib for compling
   >> yum groupinstall "Development Tools""Development Libraries"

9.

[Ref]
[1]. http://ruten-proteus.blogspot.tw/2013/06/pidora-remote-editor.html
[2]. http://ruten-proteus.blogspot.tw/2013/06/pidora-remote-editor.html
[3]. http://www.raspberrypi.org/phpBB3/viewtopic.php?t=45265&p=358409