The Best Streaming Software!
VIVO Rent A Car - Your car rental
Върни се   Digital TV Forums - БЪЛГАРСКИЯТ ФОРУМ ЗА ЦИФРОВА ТЕЛЕВИЗИЯ > Друга цифрова техника > КОМПЮТРИ и периферия

КОМПЮТРИ и периферия Компютърни системи и мрежи

Отговори
 
Контрол над темата Начин на разглеждане
  #11  
Стар 19-12-2014
Аватара на gogotogo
gogotogo gogotogo не е на линия
мега форумец
 

Дата на присъединяване: Apr 2009
Местоположение: София
Мнения: 865
Благодари: 386
Получил благодарност:
151 пъти в 128 поста
Сваляния: 587
Ъплоуди: 0
По подразбиране

Цитирай:
Първоначално написано от рйонков Вижте мненията
Нещо си омазал тотално.. виж в логовете какво дава.
ще инстална на ново и ще пиша.
__________________
1.60см парабола-75E-30W;Telesystem 100cм-36E;Vivacom 80cм-45Е-30W;Bulsatcom 80см-39Е;Офсет 1.30см-45Е-30W;Debian-8.7.1;Zgemma H7s 4К;Zgemma H9Twin 4k;Octagon SF4008 4К
Отговори с цитат
  #12  
Стар 20-12-2014
Аватара на Онджичек
Онджичек Онджичек не е на линия
мега форумец
 

Дата на присъединяване: Oct 2009
Местоположение: СФ
Мнения: 955
Благодари: 889
Получил благодарност:
302 пъти в 189 поста
Сваляния: 177
Ъплоуди: 8
По подразбиране

Не съм казал, че имаш проблем с оскам. Опитах се да те насоча към едно упътване. Писал го е някой си @musogeek. Ето го, излиза първо, като напишеш това което дадох горе:

Цитирай:
This guide assumes you have a Windows PC for downloading the image and transferring it to a correctly formatted SD card.
Items needed;
Raspberry Pi with power supply connected to the network.
SD card (suggested minimum 4GB) with Raspbian “wheezy” (can use other flavours or modifications but you might need to install more packages).
Either a SSH client connected to the network, or Input device direct to the Raspberry Pi connected to a display.

If you have not got an SD card preinstalled with Raspbian, then I would suggest the following.
SD card format tool.
Code:
https://www.sdcard.org/downloads/formatter_3/
Unpack and install.

Disk imaging tool
Code:
http://www.softpedia.com/get/CD-DVD-...k-Imager.shtml
Unpack.

Insert SD card and format the card with SDformatter, ensuring that you turn format size adjustment on.

Download the raspbian "wheezy" image from;
Code:
http://www.raspberrypi.org/downloads
Scroll down about halfway for the Raspbian Wheezy image and select torrent or direct download.

Unpack image.

Run Win32DiskImager.exe - I get an error message but I ignore it and it works.
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.
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, turn on and wait a couple of minutes.

If you are connecting remotely using SSH, then you need to find the IP address of the Raspberry Pi.
You are best doing this anyway because you need to fix the IP address, usually you can do this in your router, the method depends on your router.
You can also do this direct on the Raspberry Pi if you have an imput device and the Rpi is connected to a display.
If you are connected to a display then the raspi-config will auto run on first boot, you can set timezone, etc.
I would suggest changing the memory split if you are using this as a dedicated Oscam server and nothing else - so that only 16mb is alocated to VideoCore.

To do this from an SSH client, then log in as user 'pi' and password 'raspberry' - and then do;
Code:
Код:
sudo raspi-config
after you have changed the settings to how you want (I at this stage have only set timezone and memory split), then finish and reboot.

Once it reboots then log in as 'pi' and 'raspberry' again
Enable root password;
Code:
Код:
sudo passwd root
Then enter preferred password twice.
log out as current user.
Log in as 'root' using your chosen password.

Now we are ready to compile Oscam.

Thanks to the respective authors for guides on how to do this ('dui' for getting the info from another forum and 'pr2' for tweaking it) - but I want to put a clear one together for the benefit of all.
For the sake of this, we are going to compile Oscam with Smartreader and PCSC Support.

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;
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

Code:
Код:
http://wiki.debian.org/NetworkConfiguration
From this point, I prefer to use an scp client to edit and add my config files. As a start - you can create an oscam.conf file in /usr/local/etc and add;
Code:
[webif]
httpport                      = 8888
httprefresh                   = 5
httpallowed                   = 127.0.0.1,192.168.0.0-192.168.255.255
Save this.
Reboot your Raspberry Pi. You should now have Oscam running on reboot and you will be able to access the webinterface as well.
You can log on to webinterface locally on the Raspberry Pi if you use startx to run GUI and after running a web browser, use;
Code:
127.0.0.1:8888
or from a remote computer by using the local IP address of the Raspberry Pi and port 8888 again
From this you can do all the setting up of your server - rather than add files to /usr/local/etc you can also cut and paste the info from your configs in the files section of webinterface if you prefer

This works with 2 Omnikey readers, one in each USB port and with a Hub, as tested by myself. For further info about card configs etc, this info is all over the forum so the search bar is your next step!

Enjoy!

Последно редактирано от Онджичек : 20-12-2014 на 09:26
Отговори с цитат
Следните потребители БЛАГОДАРЯТ на Онджичек за този полезен пост :
gogotogo (20-12-2014)
  #13  
Стар 20-12-2014
Аватара на gogotogo
gogotogo gogotogo не е на линия
мега форумец
 

Дата на присъединяване: Apr 2009
Местоположение: София
Мнения: 865
Благодари: 386
Получил благодарност:
151 пъти в 128 поста
Сваляния: 587
Ъплоуди: 0
По подразбиране

Благодаря колега ще пробвам и така.
__________________
1.60см парабола-75E-30W;Telesystem 100cм-36E;Vivacom 80cм-45Е-30W;Bulsatcom 80см-39Е;Офсет 1.30см-45Е-30W;Debian-8.7.1;Zgemma H7s 4К;Zgemma H9Twin 4k;Octagon SF4008 4К
Отговори с цитат
  #14  
Стар 21-12-2014
Аватара на gogotogo
gogotogo gogotogo не е на линия
мега форумец
 

Дата на присъединяване: Apr 2009
Местоположение: София
Мнения: 865
Благодари: 386
Получил благодарност:
151 пъти в 128 поста
Сваляния: 587
Ъплоуди: 0
По подразбиране

преинсталирах мотамо по туторияла който ми каза колегата Онжичек.
резултата е :
Last login: Tue Sep 9 11:15:32 2014 from 192.168.1.103
root@raspberrypi:~# date
Tue Sep 9 12:01:52 EEST 2014
накрая направих и стъпките на колегата рйонков
rm /etc/localtime
ln -s /usr/share/zoneinfo/Europe/Sofia /etc/localtime
/etc/init.d/ntp restart
ntpd -gq
и резултата е:
Last login: Tue Sep 9 11:14:20 2014
pi@raspberrypi ~ $ date
Tue Sep 9 12:13:18 EEST 2014
Ето и оскам какво казва:
Starttime: 09.09.2014 12:10:46
Version: oscam-1.20-unstable_svn-r10090
10 пъти вече преинсталирах резултата е 1 и същи.
__________________
1.60см парабола-75E-30W;Telesystem 100cм-36E;Vivacom 80cм-45Е-30W;Bulsatcom 80см-39Е;Офсет 1.30см-45Е-30W;Debian-8.7.1;Zgemma H7s 4К;Zgemma H9Twin 4k;Octagon SF4008 4К

Последно редактирано от gogotogo : 21-12-2014 на 02:38
Отговори с цитат
  #15  
Стар 21-12-2014
Аватара на Онджичек
Онджичек Онджичек не е на линия
мега форумец
 

Дата на присъединяване: Oct 2009
Местоположение: СФ
Мнения: 955
Благодари: 889
Получил благодарност:
302 пъти в 189 поста
Сваляния: 177
Ъплоуди: 8
По подразбиране

А компютрите ти в къщи с каква дата и час са? Рутера?
__________________
TOR90 - 1,9E,9Е,13E,16E,19E,36E,39E,45Е;GS120 rotor; Zgemma H9 twin;RPI;
Отговори с цитат
  #16  
Стар 21-12-2014
Аватара на TUISTERa
TUISTERa TUISTERa не е на линия
Голямо мрънкало
 

Дата на присъединяване: Dec 2009
Местоположение: Assenovgrad, Bulgaria
Мнения: 4,023
Благодари: 728
Получил благодарност:
1,747 пъти в 977 поста
Сваляния: 37
Ъплоуди: 0
По подразбиране

sudo nano /etc/rc.conf

DAEMONS=(!hwclock ntpd)

sudo reboot
Отговори с цитат
  #17  
Стар 21-12-2014
Аватара на gogotogo
gogotogo gogotogo не е на линия
мега форумец
 

Дата на присъединяване: Apr 2009
Местоположение: София
Мнения: 865
Благодари: 386
Получил благодарност:
151 пъти в 128 поста
Сваляния: 587
Ъплоуди: 0
По подразбиране

Цитирай:
Първоначално написано от Онджичек Вижте мненията
А компютрите ти в къщи с каква дата и час са? Рутера?
компа няма проблем, лаптопите също
хммммм рутера беше с друга таим зона
__________________
1.60см парабола-75E-30W;Telesystem 100cм-36E;Vivacom 80cм-45Е-30W;Bulsatcom 80см-39Е;Офсет 1.30см-45Е-30W;Debian-8.7.1;Zgemma H7s 4К;Zgemma H9Twin 4k;Octagon SF4008 4К

Последно редактирано от gogotogo : 21-12-2014 на 12:24
Отговори с цитат
  #18  
Стар 21-12-2014
Аватара на TUISTERa
TUISTERa TUISTERa не е на линия
Голямо мрънкало
 

Дата на присъединяване: Dec 2009
Местоположение: Assenovgrad, Bulgaria
Мнения: 4,023
Благодари: 728
Получил благодарност:
1,747 пъти в 977 поста
Сваляния: 37
Ъплоуди: 0
По подразбиране

таймзоната на рутера не би трябвало да оказва влияние, нейната функция е свързана с логовете
Отговори с цитат
  #19  
Стар 21-12-2014
Аватара на gogotogo
gogotogo gogotogo не е на линия
мега форумец
 

Дата на присъединяване: Apr 2009
Местоположение: София
Мнения: 865
Благодари: 386
Получил благодарност:
151 пъти в 128 поста
Сваляния: 587
Ъплоуди: 0
По подразбиране

Цитирай:
Първоначално написано от TUISTERa Вижте мненията
sudo nano /etc/rc.conf

DAEMONS=(!hwclock ntpd)

sudo reboot
И това не помага
__________________
1.60см парабола-75E-30W;Telesystem 100cм-36E;Vivacom 80cм-45Е-30W;Bulsatcom 80см-39Е;Офсет 1.30см-45Е-30W;Debian-8.7.1;Zgemma H7s 4К;Zgemma H9Twin 4k;Octagon SF4008 4К
Отговори с цитат
  #20  
Стар 21-12-2014
Аватара на gogotogo
gogotogo gogotogo не е на линия
мега форумец
 

Дата на присъединяване: Apr 2009
Местоположение: София
Мнения: 865
Благодари: 386
Получил благодарност:
151 пъти в 128 поста
Сваляния: 587
Ъплоуди: 0
По подразбиране

Момци помагайте ,нямам идеа вече какво е преди не сам имал такъв проблем
__________________
1.60см парабола-75E-30W;Telesystem 100cм-36E;Vivacom 80cм-45Е-30W;Bulsatcom 80см-39Е;Офсет 1.30см-45Е-30W;Debian-8.7.1;Zgemma H7s 4К;Zgemma H9Twin 4k;Octagon SF4008 4К
Отговори с цитат
Sponsored Links
VIVO Rent A Car  Вземи своят Vu+ сега!  SatPlus
Отговори

Съобщения от Devil M
VIVO Rent A Car  

Тагове
pi, raspberry, дата, проблем, час


Активни потребители разглеждащи тази тема в момента: 1 (0 членове и 1 гости)
 
Контрол над темата
Начин на разглеждане

Подобни теми
Тема Започнал темата Форум Отговори Последно мнение
raspberry PI & Plex дрим КОМПЮТРИ и периферия 2 30-06-2021 22:05
Raspberry Pi и OScam 90% CPU Sentello MPCS/OScam 30 07-02-2014 01:19
Въпрос за сърварите на дата.бг bokarium Дъра-Бъра 3 01-04-2013 07:59
raspberry и Енигма2 приемник дрим КОМПЮТЪРНИ ПРИЕМНИЦИ 9 20-01-2013 03:04
Продава се - Raspberry Pi - ARM GNU/Linux box model B slavi99 Приключили продажби 3 11-09-2012 01:41


Всички времена са във формат GMT +3. Часът е 11:43.


DTV-BG Powered by vBulletin Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.