if you could help me how to compile or integrate oscam emu to osacm server
hello i am very new to linux, currently i have rpi 4 with ubuntu server and i managed to compile oscam server, i want to install oscam emu and found several guides but i can't get emu installed always gives me error
compile oscam server with this guide
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;
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'.
I won't go on about log files here because Oscam runs without them, and can be added later if you need them. Your config files (oscam.conf, oscam.user and oscam.server) go in /usr/local/etc
If you want, you can now delete the sources, which are found in /usr/src - just delete the oscam.svn folder.
you need to forward the port to the internal IP address of your Raspberry pi - this should have been fixed in your router as I went over earlier on, alternatively edit the /etc/network/interfaces file. Take care in doing this if you haven't got an input device and display for your Raspberry Pi as if you set this wrong then you will have no means to connect to your device. See the following for more info on this
-----------------------------------------
and oscam emu I deal with this but it gives me error in make or step 7
1 Get the latest OSCam sources from Streamboard:
svn checkout
http://www.streamboard.tv/svn/oscam/trunk oscam-svn
2 Get the latest oscam-emu.patch file from GitHub:
wget
https://github.com/oscam-emu/oscam-emu/raw/master/oscam-emu.patch
3 Go to oscam-svn directory:
cd oscam-svn
4 Patch OSCam source code using:
patch -p0 < ../oscam-emu.patch
or
svn patch ../oscam-emu.patch
5 Optionally you can put a SoftCam.Key file into the oscam-svn directory to integrate keys into the binary. Note: This does not apply for Mac OSX and Android. SoftCam.Key cannot be integrated on these systems at the moment.
6 Run ./config.sh -g to choose the features you want.
7 Run " make " once.
8 Run "cmake -DWEBIF=1 -DHAVE_DVBAPI=1" to compile OSCam with Emu support. ( add .. at the comand end if this is not work)
9 Run " make " to compile OSCam with Emu support final file.
Run " make install " for done auto file location
After this the files are automatically copy to: /usr/local/bin directory and the chmod is 755.
Now you can remove the unused installation directory by putting this command:
rm -rf oscam-svn
11 Oscam automatic startup with bootup " nano /etc/rc.local "
and add next line before the "exit0" line, /usr/local/bin/oscam -b -r2
After adding all config files into : /usr/local/etc you can put this command to enable and start oscam services.
/usr/local/bin/oscam -b
Now all done. Just enter your VPS IP or dynamic address or domain with given port. like
"
http://192.168.1.1:8888 into Web browser and enter your given username and passcode to access oscam server.