<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Setup</title><link>https://sourceforge.net/p/coldfusion/wiki/Setup/</link><description>Recent changes to Setup</description><atom:link href="https://sourceforge.net/p/coldfusion/wiki/Setup/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 14 Jun 2015 19:52:01 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/coldfusion/wiki/Setup/feed" rel="self" type="application/rss+xml"/><item><title>Setup modified by Jeroen Mathon</title><link>https://sourceforge.net/p/coldfusion/wiki/Setup/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;First edit the /etc/inittab file by typing &lt;strong&gt;sudo nano /etc/inittab &lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Then look for a line similar to this &lt;strong&gt;1:2345:respawn:/sbin/getty --noclear 38400 tty1&lt;/strong&gt;&lt;br /&gt;
And change it to &lt;strong&gt;1:2345:respawn:/sbin/getty --autologin --noclear 38400 tty1&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Ater that make a new account called main by typing &lt;strong&gt;sudo adduser -m -g users -s /bin/bash main&lt;/strong&gt;&lt;br /&gt;
And then setting a password for it using &lt;strong&gt;sudo passwd main&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The next step is to create a new directory in /opt.&lt;br /&gt;
Type the following as the user pi to create a directory for coldfusion &lt;strong&gt;sudo mkdir /opt/coldfusion&lt;/strong&gt;&lt;br /&gt;
Then make it so that everyone can put files in it by typing &lt;strong&gt;sudo chmod 777 /opt/coldfusion&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The next step is to build and install the software.&lt;br /&gt;
First navigate to the directory where you cloned this git repository to.&lt;/p&gt;
&lt;p&gt;Then create a new directory in there called build and enter it.&lt;br /&gt;
Now we need some software before we can build this program.&lt;br /&gt;
Install the following packages using this command on raspbian. &lt;strong&gt;sudo apt-get install libsqlite3-dev g++-4.7 cmake&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Then update the current c++ compiler by linking the new binary to its shortcut.&lt;br /&gt;
Do this by first removing the symlink and then making a new one leading to the new g++ version.&lt;br /&gt;
Type the following command to do this &lt;strong&gt;sudo rm /usr/bin/c++ ; sudo ln -s /usr/bin/g++-4.7 /usr/bin/c++&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Next up if your still in the build directory type &lt;strong&gt;cmake ..&lt;/strong&gt; to generate a MakeFile next up type &lt;strong&gt;make&lt;/strong&gt; and &lt;strong&gt;sudo make install&lt;/strong&gt; to compile and install the program.&lt;/p&gt;
&lt;p&gt;Now we are going to run coldfusion once by typing &lt;strong&gt;coldfusion&lt;/strong&gt; this should generate a database file.&lt;br /&gt;
Now close the program by pressing the control key and c (ctrl+c).&lt;br /&gt;
Next enter the /opt/coldfusion directory by typing &lt;strong&gt;cd /opt/coldfusion/&lt;/strong&gt; now set the chmod of the file cf.db to 777 by typing &lt;strong&gt;chmod 777 cf.db&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Now it is time to setup the users to automatically start the program on boot.&lt;br /&gt;
Make sure that the raspberry boots into console mode.&lt;br /&gt;
You can check this by typing &lt;strong&gt;sudo raspi-config&lt;/strong&gt; and then heading to "2. Enable Boot to Desktop/Scratch.".&lt;br /&gt;
You want to set it to console mode.&lt;/p&gt;
&lt;p&gt;When it promts you to reboot press no.&lt;/p&gt;
&lt;p&gt;Next as the user pi open up your .profile file.&lt;br /&gt;
you can do this by typing the following command &lt;strong&gt;cd ; nano .profile&lt;/strong&gt;&lt;br /&gt;
Add the following to the end of this file. &lt;strong&gt;coldfusion&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Next up switch to the main user by typing &lt;strong&gt;sudo su main&lt;/strong&gt;&lt;br /&gt;
Then do the same by typing &lt;strong&gt;cd ; nano .profile&lt;/strong&gt;&lt;br /&gt;
But now instead of &lt;strong&gt;coldfusion&lt;/strong&gt; you add &lt;strong&gt;coldfusion-usercon&lt;/strong&gt; to the end of the file.**&lt;/p&gt;
&lt;p&gt;Now switch back to the pi user by typing &lt;strong&gt;exit&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now make sure that you have setup ssh to this box.&lt;br /&gt;
You can do that by installing openssh,&lt;br /&gt;
run &lt;strong&gt;sudo apt-get install openssh&lt;/strong&gt;&lt;br /&gt;
Then run &lt;strong&gt;sudo service sshd enable&lt;/strong&gt;&lt;br /&gt;
To start it its either that or &lt;strong&gt;sudo service openssh enable&lt;/strong&gt; it is different for some distros.&lt;/p&gt;
&lt;p&gt;Now before we reboot type &lt;strong&gt;ifconfig&lt;/strong&gt; and write down its internal ip so you can remote connect to it by using putty or  ssh.&lt;/p&gt;
&lt;p&gt;When it finished booting it should greet you with the coldfusion prompt.&lt;/p&gt;
&lt;p&gt;Now connect your Electronic lock and RFID USB reader and enjoy.&lt;/p&gt;
&lt;p&gt;You can change the pin numbers in the piface.cpp file.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeroen Mathon</dc:creator><pubDate>Sun, 14 Jun 2015 19:52:01 -0000</pubDate><guid>https://sourceforge.net7365bba97268b8e63e61306be7fdb540cdcbdcef</guid></item></channel></rss>