標題:
Raspberry Pi Portal
[打印本頁]
作者:
角色
時間:
2019-1-20 11:04
標題:
Raspberry Pi Portal
本帖最後由 角色 於 2019-2-6 22:00 編輯
Raspberry Pi 官网
https://www.raspberrypi.org/
Raspberry Pi是什么?大家可以去官网【1】看看就可以。简单来说就是一个盒子,价格是非常便宜,主要用于英国教育里,当然也系统普及全世界。我们可以通过它可以做出非常多的东西,详细看官网就可以,我这里主要用于建立电话系统——Asterisk server【2】,还有科学上网【3】,安装不同的科学上网软件等等。这个portal帖子,主要关于怎样实现一般使用问题,而不会太牵涉Asterisk server和科学上网安装。
References:
【1】Raspberry Pi 官网
https://www.raspberrypi.org/
【2】Raspberry Pi + Asterisk
http://www.telecom-cafe.com/foru ... &extra=page%3D1
【3】Raspberry Pi + V2Ray
http://www.telecom-cafe.com/foru ... &extra=page%3D1
作者:
角色
時間:
2019-1-20 11:04
本帖最後由 角色 於 2019-2-12 17:23 編輯
要用Raspberry Pi,事前需要什么工具呢?
你需要下面的设备:
1、Raspberry Pi (现在是3b+)
2、microSD card 16G(已经非常足够了)
3、USB keyboard and mouse
4、HDMI monitor
5、LAN cable
6、USB card reader for microSD
7、Micro USB 电源(给手机),需要有2A或以上。
8、USB-to-Micro USB (起卖可以2A,很多外表看粗线,其实根本给不到2A)
9、HDMI cable
Raspberry Pi可以参考【1】。
老的monitor输入只有VGA,没有HDMI,那么大家可以买一个HDMI-to-VGA的converter。不过大家要注意,我用过有些converter,不是能用于Raspberry Pi的HDMI output。有的converter还需要电源,我在【2】提供的link的converter我用过,没有问题。
Reference:
【1】Raspberry Pi —— 哪里有得买卖呢?
Link
【2】HDMI-to-VGA converter
Link
【3】MicroSD card
Link
作者:
角色
時間:
2019-1-20 11:05
本帖最後由 角色 於 2019-2-16 13:28 編輯
有了设备后我们就需要在官网下载软件【1】,在【1】里面有三个版本:
安装Lite version 可以直接看
Link
1)Raspbian Stretch with desktop and recommended software
2)Raspbian Stretch with desktop
3)Raspbian Stretch Lite
第一个software最全,16G只需要8G就可以安全可以安装好!第二个少一点software。第一个和第二个都有desktop,而第三个就只有text mode,没有graphic desktop mode。如果是新手,那么就安装第一个。如果没有16G MicroSD card,可以用8G安装第三个,但是这个不建议初次用的members。
除了direct download,还有BT download file可供选择。
安装非常简单,就是把上面的file.zip, 安装到MicroSD card用。
MacOS:Etcher
Windows:Etcher,Win32DiskImager
Reference:
【1】
https://www.raspberrypi.org/downloads/raspbian/
作者:
角色
時間:
2019-1-20 11:06
本帖最後由 角色 於 2019-2-9 20:39 編輯
1、软件安装好后,把MicroSD card插入Raspberry Pi。第一次插入可能不知道方向,MicroSD card的字面向你就可以(从Raspberry Pi底部看)。
2、插入USB keyboard,mouse,HDMI cable,LAN cable,最后插入Micro USB电源。
3、你会看到先resize系统去fit你的MicroSD cardsize。
4、然后进入Desktop console。系统有个屏幕,建议你configure系统。如果你在大陆安装,建议按“Cancel”键,因为后面有些文件你load不到。系统default是UK settings(UK terms,time and keyboard)。
在画面的左上角,你会看到四个icons,1)Application menu, 2) Web browser, 3) File Manager, 4) Terminal.
因为我们需要更改Raspberry Pi里的settings,我们需要edit某些文件,对于没有接触过Linux的members会有些吃力。Linux的原有editor就是“vi”,它是一个非常强大的editor,但是没有用过的人对于它就比较陌生和不会用。那么我们可以另外一个editor叫“nano”,怎样用,请点击
Link
。
5、更改keyboard settings,从gb改为us
Link
。
6、更改时间
Link
7、检查和更新系统
apt-get update
apt-get upgrade
複製代碼
。
8、怎样在Raspberry Pi的Desktop里打中文字(简体)?
http://www.telecom-cafe.com/foru ... amp;extra=#pid46160
还有没有写完。。。(有空继续)
---------
Very useful tool for shrinking image
https://github.com/Drewsif/PiShrink
iptables:
https://www.howtogeek.com/177621 ... the-linux-firewall/
作者:
角色
時間:
2019-1-20 18:32
本帖最後由 角色 於 2019-1-26 12:21 編輯
Raspberry as an AP
https://hackaday.io/project/10338/instructions
Raspberry as an transparent gateway
https://ellinia.me/How-to-set-up-transparent-gateway/
作者:
角色
時間:
2019-1-20 21:14
本帖最後由 角色 於 2019-1-20 21:15 編輯
/etc/resolv.conf always be nameserver 127.0.0.1 after reboot
每次更改/etc/resolv.conf nameservers的settings,重启后都变回去name server 127.0.0.1
来源凶手是之前安装dnsmasq,每次reboot都会把/etc/resolv.conf重新改回到127.0.0.1。
怎样删走dnsmasq
sudo apt-get remove dnsmasq
複製代碼
.
/etc/dhcpcd.conf contains
# Example static IP configuration:
interface eth0
static ip_address=192.168.55.20/24
static routers=192.168.55.1
static domain_name_servers=192.168.55.1 8.8.8.8
複製代碼
如果重启系统,domain_name_servers=192.168.55.1 8.8.8.8就会放入/etc/resolv.conf里。
作者:
角色
時間:
2019-1-20 23:09
怎样检测你安装的V2Ray可以科学上网:
当你的V2Ray config.json configured好后,你输入下面指令:
curl -x socks5://127.0.0.1:1081 google.com
複製代碼
, where 1081是监听port number,按个人需要可以更改。
如果能科学上网,你会得到下面信息:
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
複製代碼
.
如果不能科学上网,你会得到下面信息:
curl: (7) Failed to connect to 127.0.0.1 port 1081: Connection refused
複製代碼
作者:
角色
時間:
2019-1-21 13:38
本帖最後由 角色 於 2019-2-7 21:51 編輯
The following has to be resolved later
Reading changelogs... Done
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
複製代碼
Some fixes:
https://stackoverflow.com/questi ... g-warning-from-perl
https://www.thomas-krenn.com/en/ ... le_failed_in_Debian
https://libre-software.net/ubuntu-setting-locale/
作者:
角色
時間:
2019-1-21 18:11
本帖最後由 角色 於 2019-1-27 12:53 編輯
iptables
https://blog.csdn.net/xinyuan510214/article/details/51263001
Realisation of transparent V2Ray without TPROXY
https://www.hkepc.com/forum/viewthread.php?tid=2446642
TPROXY info
https://lwn.net/Articles/252545/
http://people.netfilter.org/hidd ... 8-tproxy_slides.pdf
http://blog.sina.com.cn/s/blog_704836f401011e17.html
Go Across the Gfw (精)
https://wdicc.com/go-across-the-gfw/
https://github.com/v2ray/discussion/issues/24
https://github.com/ToutyRater/v2ray-guide/issues/31
https://github.com/v2ray/v2ray-core/issues/1401
作者:
角色
時間:
2019-1-29 10:53
本帖最後由 角色 於 2019-4-23 10:20 編輯
Performance of Raspberry Pi 3b+
https://www.jeffgeerling.com/blo ... formance-comparison
作者:
角色
時間:
2019-1-29 10:53
备用帖子11
作者:
角色
時間:
2019-1-29 10:54
备用帖子12
作者:
角色
時間:
2019-1-29 10:54
备用帖子13
作者:
角色
時間:
2019-1-29 10:55
备用帖子14
作者:
角色
時間:
2019-1-29 10:56
本帖最後由 角色 於 2019-2-6 21:57 編輯
备用帖子15
暂时放在这里
论坛:
http://www.shumeipai.net/portal.php
http://www.eeboard.com/bbs/forum-43-1.html
在大陆Raspbian update太慢怎样解救?
https://blog.csdn.net/eibo51/article/details/53313935
https://www.cnblogs.com/atsats/p/6623695.html
http://www.cnblogs.com/meelo/p/5111611.html
http://www.hopol.cn/2016/01/409/
https://segmentfault.com/a/1190000005032111
透明代理参考帖子:
http://www.telecom-cafe.com/forum/viewthread.php?tid=7260
https://paper.tuisec.win/detail/8723e23d183d87d
Simple V2Ray transparent proxy
https://zhiyi.us/2018/10/13/v2ray-transparent-proxy.html
An interesting article using DDWrt
https://crosp.net/blog/administr ... proxy-using-dd-wrt/
作者:
角色
時間:
2019-1-29 10:56
备用帖子16
歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/)
Powered by Discuz! 7.2