Board logo

標題: 【Raspberry Pi 1 Model B and 2】—— Debian 8 Jessie Based Image [打印本頁]

作者: ckleea    時間: 2015-5-16 08:42     標題: 【Raspberry Pi 1 Model B and 2】—— Debian 8 Jessie Based Image

本帖最後由 ckleea 於 2015-6-13 09:35 編輯

Debian 8 Jessie Based image for Raspberry Pi B/B+2
Created from the netinstaller scripts with the latest Debian 8 Jessie OS and the following packages
1. Asterisk 11 with chan_dongle support, codec g729 and silk, switchfin gui
2. Remote desktop support by tightvncserver and xrdp; xterminal desktop 用了XFCE4
3. VPN support by pptpd, softether (openvpn, sstp), ocserv, Adito (OpenVPN-ALS), StrongSWAN
4. Apache with reverse proxy support for web server
5. Mysql server
6. Kamailio sip proxy
7. Iptables with spamtables for blacklist sites
8. Webmin for server management

Images for three raspberry hardware are:
1. Raspberry Pi 2
https://drive.google.com/file/d/ ... k0/view?usp=sharing

2.  Raspberry Pi B+
https://drive.google.com/file/d/ ... W8/view?usp=sharing

3. Raspberry Pi B
https://drive.google.com/file/d/ ... G8/view?usp=sharing

Preparation and installation instruction:
1. 8GB or above Micro SD for Raspberry Pi 2/B+; 8GB or above SD for Raspberry Pi B
2. Use DD in Linux or WinDD for Windows to copy the uncompressed image to SD or Micro SD card
3. Use GParted to expand the second partition to the maximum size (it is cut down to the smallest size before the image is released). GParted can be downloaded from ISO or if you have a working Raspian image, login in GUI and install gparted.
4. 8GB should be enough as the current OS and software packages used only 3.7GB
5. Reboot the Raspberry PI 2/B+/B with the new SD or micro SD card
6. Note that there is a small bug that the red LED is off. No big deal as it is less disturbing with no flashing light
7. Check if you can get an IP for your Raspberry Pi. If yes, SSH login in via Putty
Raspberry Pi 2  - root/raspberypi2
Raspberry Pi B+/B  - root/raspbian
8. If there is no network address assigned, you have to login via local console. Same password as above.
Type ifconfig, you should see the network address for eth0
If no network device eth0 is found, do the following in the console

cd /etc/udev/rules.d
rm 70*.*
reboot

Upon reboot, you should find the raspberry with network address assigned by your router through DHCP

9. Minor suggestion, as DHCP is used, suggest to login in your router to reserve a fixed IP to your raspberry by its mac address

If you can access the raspberry by putty, everything should work

Configuration
I have installed the service with ports as
1. asterisk sip port: 15066
2. as kamailio is installed as sip proxy, 5060 is reserved for it
3. asterisk GUI is provided by switchfin GUI, access by http://your_ip:10080/ login in as admin/ippbx2015
4. softether VPN is set up for openvpn and sstp on their standard ports; login password as raspberrypi2 or raspbian
5. ocserv at port 4443; account is rpi/raspbian or rpi2/raspberypi2. user password file at /etc/ocserv/ocpassword
6. webmin is on default https://your_ip:10000/

If you want to try kamailio, several accounts are created
1081, 1082, 1083, 1084
password is raspberrypi2 or raspbian
If your sip client can login into this account, your asterisk will be login as well using realtime.
However, you encounter problems or not familiar with kamailio, you may remove it by apt-get remove kamailio

I am sorry that support to the images will be limited.
作者: ckleea    時間: 2015-5-17 21:03

其要是最主要是更新更新了系統到Debian 8 Jessie ,它可以直接支援ocserv
不過它加入了 systemd & apache 2.4,有部分config files要做相應更新。

"Jessie" ships with a new default init system, systemd. The systemd suite provides many exciting features such as faster boot times, cgroups for services, and the possibility of isolating part of the services. The sysvinit init system is still available in "Jessie".
作者: ckleea    時間: 2015-5-19 07:10

基本上,系統影像已經完成。

由於用netinstaller,所以軟件是可以由自己決定安裝。

現時,有的是
1. Asterisk 11 with chan_dongle support, codec g729 and silk, switchfin gui
2. Remote desktop support by tightvncserver and xrdp; xterminal desktop 用了XFCE4
3. VPN support by pptpd, softether (ipsec, openvpn, sstp), ocserv
4. Apache with reverse proxy support for web server
5. Mysql server
6. Kamailio sip proxy
7. Iptables with spamtables for blacklist sites
8. Webmin for server management

由於要下載大部份軟件和做 asterisk compilation,所以要用約半天時間完成。

SD card 現時是用了 3.6GB,用linux dd command 製造了SD card 影像, 然後壓縮成一個 1.27GB zip file。
作者: ckleea    時間: 2015-5-19 07:22

相信大家家中可能還有舊的細容量 micro SD card,4GB 系統是合適不過。
作者: ckleea    時間: 2015-5-20 07:27

Asterisk Codec
screenshot.19-05-2015 20.19.15.png

Switchfin GUI
screenshot.19-05-2015 20.21.51.png

圖片附件: screenshot.19-05-2015 20.19.15.png (2015-5-20 07:27, 13.23 KB) / 下載次數 865
http://telecom-cafe.com/forum/attachment.php?aid=3544&k=a5c5af513fccb819df477f251b7abfce&t=1732535656&sid=yUYXyX



圖片附件: screenshot.19-05-2015 20.21.51.png (2015-5-20 07:27, 44.64 KB) / 下載次數 868
http://telecom-cafe.com/forum/attachment.php?aid=3545&k=e6df8e50b0df5ed78c665e19e8a53405&t=1732535656&sid=yUYXyX


作者: ckleea    時間: 2015-5-20 07:35

由於影像放在不同device 會出現map 不到網絡卡的情況,所以要做更新。

另外,因行 softether VPN 的sstp 與 Apache2 的SSL 相沖,所以要改動設定。
作者: bigtoodog    時間: 2015-5-20 11:47

回復 6# ckleea


是否support Google Voice?
作者: ckleea    時間: 2015-5-20 13:25

回復 7# bigtoodog

我沒有搞,理論上 asterisk 11是支援
作者: ckleea    時間: 2015-5-30 14:15

影像已經完成,有些地方和以前不同。
1. 壓縮成1.27Gb tgz 檔案,需要用 dd for linux 或 DD for windows (http://www.chrysocome.net/dd) 放回 Micro SD card
2. 需要用 GParted 將 Micro SD card 內的第二個 Partition 擴大
3. 首次起動需要找回ethernet card 放回 eth0 (mac address 的問題)
4. 插入 USB 手指或硬碟會出現 錯誤訊息 (error)或不能起動。有解決方法,但由於我的安裝是 server和現在的Micro SD card 容易已經足夠。
5. 其它功能正常運作

建議將它放在人家做remote server
作者: skpracta    時間: 2015-6-1 20:50

期待樓主的影像,尤其想試試ocserv,因為電信好像把L2TP也封鎖了。

不過,最近回深圳,用中移動4G,它好像把所有VPN都屏敝掉(包括公司的原裝 Cisco AnyConnect SSLVPN,害我連電郵都查不到),不知樓主有否類似經歷?
作者: 雯雯    時間: 2015-6-1 21:13

回復 10# skpracta

剛睇到你既post, 用了我深圳的大陸中移動4G test, 無任何問題:

IMG_0573.PNG

IMG_0572.PNG

IMG_0574.PNG

圖片附件: IMG_0572.PNG (2015-6-1 21:12, 153.03 KB) / 下載次數 762
http://telecom-cafe.com/forum/attachment.php?aid=3567&k=a1158eaee8707995d7058a161221522a&t=1732535656&sid=yUYXyX



圖片附件: IMG_0573.PNG (2015-6-1 21:12, 99.73 KB) / 下載次數 768
http://telecom-cafe.com/forum/attachment.php?aid=3568&k=26008ba4fda9a04cf466abb9f0ffe32c&t=1732535656&sid=yUYXyX



圖片附件: IMG_0574.PNG (2015-6-1 21:12, 89.48 KB) / 下載次數 780
http://telecom-cafe.com/forum/attachment.php?aid=3569&k=f7a4e17879081be4ff87c797a50ccc5f&t=1732535656&sid=yUYXyX


作者: skpracta    時間: 2015-6-1 23:19

回復 11# 雯雯


    非常感謝你的測試,其實大陸的電信商,在甚麼時候屏蔽掉甚麼制式的vpn,也無從可測,我也試過在北京毫無問題地用L2TP、OpenVPN等。

只不過我嘗試用Beaglebone Black去安裝ocserv卻不斷地失敗,才期待著樓主的rpi影像而已。
作者: ckleea    時間: 2015-6-2 09:00

如果你沒有更新上debian 8 Jessie, 你做不到ocserv.

現在的影像是可以正常使用。
作者: ckleea    時間: 2015-6-2 09:04

如何在Beaglebone 上裝 jessie 可以參考這裡

https://github.com/foosel/OctoPr ... -Rev-C-%28Jessie%29
作者: 雯雯    時間: 2015-6-2 12:05

回復 12# skpracta

所以只能是盡量有多D唔同既VPN, 多D唔同既電信商既SIM卡旁身.
作者: skpracta    時間: 2015-6-3 00:21

回復 14# ckleea

感謝樓主提醒,我已經成功地在Beaglebone Black上的debian jessie安裝ocserv。

我是使用下面的「一鍵腳本」(當然,要做修改):
http://www.fanyueciyuan.info/fq/ocserv-debian.html

在執行腳本“前”要注意兩點:
1)要先安裝libkrb5-dev及libprotobuf-c-dev
2)修改腳本,在function tar_ocserv_install() 的 ./configure 要加入 --disable-seccomp
作者: ckleea    時間: 2015-6-3 06:58

回復 16# skpracta


    客氣
作者: 亞星    時間: 2015-6-6 04:26

影像已經完成,有些地方和以前不同。
1. 壓縮成1.27Gb tgz 檔案,需要用 dd for linux 或 DD for windows ( ...
ckleea 發表於 2015-5-30 14:15


ck 請問 Image file 可以在那裡 download ?
作者: ckleea    時間: 2015-6-6 07:16

回復 18# 亞星


    迟少少
作者: ckleea    時間: 2015-6-7 07:43

本帖最後由 ckleea 於 2015-6-7 08:36 編輯

They are created from the netinstaller with the latest Debian 8 Jessie OS and the following packages
1. Asterisk 11 with chan_dongle support, codec g729 and silk, switchfin gui
2. Remote desktop support by tightvncserver and xrdp; xterminal desktop 用了XFCE4
3. VPN support by pptpd, softether (openvpn, sstp), ocserv, Adito (OpenVPN-ALS), StrongSWAN
4. Apache with reverse proxy support for web server
5. Mysql server
6. Kamailio sip proxy
7. Iptables with spamtables for blacklist sites
8. Webmin for server management

https://drive.google.com/file/d/ ... W8/view?usp=sharing
作者: skpracta    時間: 2015-6-7 22:04

回復 20# ckleea


    樓主,死link呢......=_=""
作者: 亞星    時間: 2015-6-8 09:29

回復  亞星


    迟少少
ckleea 發表於 2015-6-6 07:16

期待
作者: ckleea    時間: 2015-6-10 07:09

本帖最後由 ckleea 於 2015-6-10 12:59 編輯

三個版本:

1. Debian 8 Jessie Image for Raspberry Pi 2
https://drive.google.com/file/d/ ... k0/view?usp=sharing

2. Debian 8 Jessie Image for Raspberry Pi B+
https://drive.google.com/file/d/ ... W8/view?usp=sharing

3. Debian 8 Jessie Image for Raspberry Pi B
https://drive.google.com/file/d/ ... G8/view?usp=sharing
作者: bigtoodog    時間: 2015-6-10 09:37

回復 23# ckleea

Can it be installed on Raspberry Pi B+?
作者: ckleea    時間: 2015-6-10 12:26

回復 24# bigtoodog


    No. You need another image that is also available.
作者: bigtoodog    時間: 2015-6-10 16:29

回復 25# ckleea

Thanks.
作者: Qnewbie    時間: 2015-6-10 21:59

回復 23# ckleea
It were better if checksum like MD5 is provided.
作者: ckleea    時間: 2015-6-13 10:11

關於安裝和密碼在第一張帖
作者: ckleea    時間: 2015-6-13 10:13

另外如發覺在插入其他USB 儲存裝置有問題可以跟下面的方法去做

#FOR Pi1
apt-get install linux-image-rpi-rpfv linux-headers-rpi-rpfv
#FOR Pi2
apt-get install linux-image-rpi2-rpfv linux-headers-rpi2-rpfv

Then add to /boot/config.txt

# Parameters to boot on raspbian kernel (linux-image-rpi(2)-rpfv package)
[pi1]
kernel=vmlinuz-3.18.0-trunk-rpi
initramfs initrd.img-3.18.0-trunk-rpi followkernel
[pi2]
kernel=vmlinuz-3.18.0-trunk-rpi2
initramfs initrd.img-3.18.0-trunk-rpi2 followkernel
作者: 亞星    時間: 2015-6-23 10:53

ck, 我寫完個 file 入 SD 試 boot 已經 boot 唔到, 係咪我寫 file 有問題? 可唔可以詳細講下點用 DD for windows 寫個 file 入張 SD

圖片附件: 未命名.jpg (2015-6-23 10:53, 89.08 KB) / 下載次數 802
http://telecom-cafe.com/forum/attachment.php?aid=3604&k=3e5281e0d7f38567a797ba307eec3c37&t=1732535656&sid=yUYXyX


作者: ckleea    時間: 2015-6-23 15:41

回復 30# 亞星


    try bs=512
作者: 亞星    時間: 2015-6-29 15:09

唔得, 放棄
作者: ckleea    時間: 2015-6-29 22:31

回復 32# 亞星


    What wrong?
作者: 亞星    時間: 2015-7-9 18:52

boot 唔起無反應.
作者: sbbcnn    時間: 2015-7-10 18:45

CK 師兄可不可以批準D/L, email 和 我 ID 一樣
作者: comsina    時間: 2015-8-6 23:48

你好版主,下载固件连接怎么需要权限才能下载!
作者: orangelau    時間: 2015-9-11 10:07

ck兄:
已申請,請放權限
thx




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2