if its ok with boss i will copy & paste the set up as i do it
- - - Updated - - -
this is musogeek work i just copy & paste what works for me.
format tool.
https://www.sdcard.org/downloads/formatter_3/
Disk imaging tool
Code:
http://www.softpedia.com/get/C…g/Win32-Disk-Imager.shtml
Download the raspbian "wheezy"light image from;
Code:
http://www.raspberrypi.org/downloads
Scroll down about halfway for the Raspbian Wheezy light image and select direct download.
extract image
Run Win32DiskImager.exe
Ensure the letter underneath where it says 'Device' is the same as your SD card.
Click the blue folder icon at the top right of the Win32DiskImager.exe app - and browse for the raspbian wheezy image light.
When you are happy that you have found the file and you have selected the right device, click 'Write', and 'Yes' to confirm.
Once you get the 'Write Successful" message then you can go to the next stage.
Insert the SD card in your Raspberry Pi, power on and wait a couple of minutes, if you like me i use tv so i can see pi ip addr if not.
find the IP address of the Raspberry Pi in your router.
once you have your ip run Putty 192.168.1.xxx
user pi and password raspberry.
Code:
sudo raspi-config.
on screen set timezone to uk and resize memory card then then finish and reboot.
log in as pi raspberry.
------------------------------------------------------------------------------------
this Master g work
Code:
sudo passwd -u root
Code:
sudo passwd root
Code:
su
Code:
service ssh restart
Code:
nano /etc/ssh/sshd_config
edit line 28 from...
PermitRootLogin without-password
to
PermitRootLogin yes
Save changes and exit...Then restart SSH...
To save, exit with CTRL and X together then select y and enter reboot.
--------------------------------------------------------------------------------------
log in as root with new password now you have the permission to ftp anything onto the server
First, you need to get your packages;
Code:
apt-get update
apt-get -y install apt-utils dialog usbutils
apt-get -y install gcc g++ wget
apt-get -y install build-essential subversion libpcsclite1 libpcsclite-dev
apt-get -y install libssl-dev cmake make
apt-get -y install libusb-1.0-0-dev nano
apt-get install pcscd pcsc-tools
Then create the following symbolic link so Smartreader support is added during the compile;
Code:
ln -s /usr/lib/arm-linux-gnueabihf/libusb-1.0.a /usr/local/lib/libusb-1.0.a
Get the Oscam sources;
Code:
cd /usr/src
svn co http://www.streamboard.tv/svn/oscam/trunk oscam-svn
Compile Oscam (note the two dots after the 5th line are there because they need to be).
Code:
cd oscam-svn
mkdir build
chmod 755 build
cd build
cmake -DHAVE_LIBUSB=1 -DHAVE_PCSC=1 -DWEBIF=1 -DHAVE_LIBCRYPTO=1 -DWITH_SSL=1 ..
make
Make yourself a coffee - you have a bit of time and deserve one!
Now it is installed - we need to move it;
Code:
cd /usr/src/oscam-svn/build
cp oscam /var/local/
and move the list_smargo tool;
Code:
cd /usr/src/oscam-svn/build/utils
cp list_smargo /var/local/
They are both now in /var/local - now we need to change permissions;
Code:
cd /var/local
chmod 755 oscam
chmod 755 list_smargo
Now oscam needs to start at boot by adding it to rc.local, and you can edit with nano;
Code:
nano /etc/rc.local
arrow down to a line just above 'exit 0' and below 'fi', and add the following;
Code:
/var/local/oscam &
To save, exit with 'CTRL' and 'x' - select 'y' and 'enter'.
Oscam will now run at boot.
To get it to restart daily at 5.45 am and to free memory every hour, edit the crontab file; =====this is optional personally i do without reboot every morning
Code:
nano /etc/crontab
add the following two new lines;
Code:
05 * * * * root echo 3 > /proc/sys/vm/drop_caches
45 05 * * * root /sbin/reboot
and to save, exit with 'CTRL' and 'x' - select 'y' and 'enter'.
this works for me i just done it on my spare pi.