Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
<!-- This page is created automatically by a script.This part is commented and shall not show--><!--At the top of the page can be visible one of the following tags..--> {{WorkInProgress}}<!--{{NeedsUpdate}}--><!--{{NeedsMerge | [[Main Page]]}}--><!--{{NeedsExpantion}}--><!--{{NeedsDelete |[[Main Page]]}}--><!--Please remove or place comment accordingly--> '''This page is being edited actively and a lot of sections are missing currently; feel free to help improving it.'''
=Current state=
* some Ruby gems will not install without some manual work before.
* scrypt gem has been remove because of this issues:- <nowiki>https://github.com/pbhogan/scrypt/issues/23</nowiki>
** update there is now a amahi/scrypt that will be used, -msse & -msse2 command line parameters have been removed.
* Nokogiri the An HTML, XML, SAX, & Reader parser with the ability to search documents via XPath. must use '--use-system-libraries'.
=Requirements=
* A copy of Pidora-2014-R2-1 can be download from the Raspberry download website. <nowiki>http://www.raspberrypi.org/downloads</nowiki>
* A Raspberry Pi model b or b+.
* A 8GB SD card or bigger.
=Installation=
===Installing Pidora image on to a SD card.===
The easiest way to install the Pidora is to use the win32 disk imager program. download form here <nowiki>http://sourceforge.net/projects/win32diskimager</nowiki>
Needed:
Run the win32 disk imager.
* # Click the folder icon, locate the Pidora-2014-R2-1.img file that you download early.* # Check the 'Device' to see if the correct letter that corresponds to your SD card letter.* # Click on 'Write'. [[File:Win32DiskImager.jpg|frame]] 
::[[File:Win32DiskImager.jpg|caption]]
When Win32 Disk imager has finished place the SD card in the Raspberry Pi.
===SD Card Installation Using the dd Command===
The image can also be installed using the Unix/Linux dd command.
Needed:
* A computer with at least 5 GB of free disk space, running some form of Unix or Linux.
* An SD or SDHC card, with a capacity of 2GB or more. (Good-quality class 4 cards usually work well).
* An SD/SDHC card writer, either built in to the computer or connected to a USB port.
* An Internet connection.
{{MessageBox
| image = Important.png|40px
| style = width: 300px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| heading = Danger of Data Loss / System Damage!<br />The selected device will be overwritten.
| message = '''If you select the wrong device, you may lose data. Exercise extreme caution when using dd.'''
| backgroundcolor = Orange
}}
Steps:
# Download the image.
# Decompress the image with a Zip-compatible program such as "unzip" (Linux).
# Insert your SD/SDHC card into the card reader, and attach to the computer if necessary.
# Identify the device node of the SD card (this will be something like /dev/sdc or /dev/mmcblk0).
#* Do not use a partition device node (for example: use /dev/sdc or /dev/mmcblk0, not /dev/sdc1 or /dev/mmcblk0p1).
#* An easy way to identify the card is to list the device nodes (ls -l /dev/sd* /dev/mmcblk*) before and after inserting the SD card. Device nodes that that appear when the card is inserted correspond to the card.
# Ensure that the device is unmounted.
# Copy the image file to the card: dd if=NameOfImageFile of=/dev/DeviceNode bs=4M. Note that a block size (bs) of 4MB is used. Most SD cards have an erase block size of 4MB and if you do not include this parameter, the image will be copied at extremely slow speeds. On UNIX systems, such as Mac OS X, the bs parameter needs lowercase units (e.g. bs=4m)
# Ensure that the image is fully written onto the card: sync
# Remove the card.
       When Win32 Disk imager has finished place the SD card in the Raspberry Pi.  ===Complete the Pidora welcome screen.===
# Set user name.
# Set root password.
# Set location.
# check resize root.
# Do not set a swap file.
# Set hostname (leave as default).
# Set interface as text.
 
let Pidora finish installing and reboot this completes the Pidora install
 
[[File:Pidora-Welcome-Screen.jpg|frame]]
 
 
 
 
 
 
::[[File:Pidora-Welcome-Screen.jpg|caption]]
let Pidora finish installing and reboot this completes the Pidora install
             ===Install Amahi 7 core platform ===
# login as root.
##enter the root password (not the one from the first user)
##<code>yum groupinstall 'Development Tools'</code>, or for a shorter install do:
##* <code>yum -y install make git mysql-devel sqlite-devel mysql-server gcc-c++ tar rpm-build</code>##* <code>yum -y install ruby ruby-devel libxml2-devel libxslt-develrake</code>
##<code>systemctl start mysqld.service</code>
## <code>gem install bundler</code>
# exit the root user and use a regular user. you will need to reinstall fedora if you skip this step.
# we suggest you create a new folder to put the amahi development code, then in it run:
# <code>git clone <nowiki>https://github.com/mattman73/platform.git</nowiki></code>
# <code>cd platform</code>
# <code>gem install rake -v '10.3.2'</code>
# <code>bundle config build.nokogiri --use-system-libraries</code>
# <code>bundle install</code> (this will take a while and install all the necessary gems)
# <code>rake db:migrate</code> (this will get the database up to snuff)
# <code>rake db:seed</code> (this will get a basic database setup)
# Reboot the Raspberry Pi# login as root# <code>systemctl start mysqld.service</code># login as regular.# change path to platform folder.# <code>rails s </code> (this will start the rails server) 
The development dashboard can be reached with your favorite browser at:
<code><nowiki>http://localhost:3000</nowiki></code>
There is an initial user created called <code>admin</code> with password <code>admin</code>. Login should work out of the box.
12,424

edits