電訊茶室's Archiver

角色 發表於 2019-1-20 11:04

Raspberry Pi Portal

[i=s] 本帖最後由 角色 於 2019-2-6 22:00 編輯 [/i]

Raspberry Pi 官网 [url]https://www.raspberrypi.org/[/url]

Raspberry Pi是什么?大家可以去官网【1】看看就可以。简单来说就是一个盒子,价格是非常便宜,主要用于英国教育里,当然也系统普及全世界。我们可以通过它可以做出非常多的东西,详细看官网就可以,我这里主要用于建立电话系统——Asterisk server【2】,还有科学上网【3】,安装不同的科学上网软件等等。这个portal帖子,主要关于怎样实现一般使用问题,而不会太牵涉Asterisk server和科学上网安装。

References:
【1】Raspberry Pi 官网 [url]https://www.raspberrypi.org/[/url]
【2】Raspberry Pi + Asterisk [url]http://www.telecom-cafe.com/forum/viewthread.php?tid=6043&extra=page%3D1[/url]
【3】Raspberry Pi + V2Ray [url]http://www.telecom-cafe.com/forum/viewthread.php?tid=7326&extra=page%3D1[/url]

角色 發表於 2019-1-20 11:04

[i=s] 本帖最後由 角色 於 2019-2-12 17:23 編輯 [/i]

要用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 —— 哪里有得买卖呢?[url=http://www.telecom-cafe.com/forum/viewthread.php?tid=7321]Link[/url]
【2】HDMI-to-VGA converter [url=https://item.taobao.com/item.htm?spm=a1z09.2.0.0.71ac2e8duSQMQA&id=535829383402&_u=62opncn0e17]Link[/url]
【3】MicroSD card [url=http://www.telecom-cafe.com/forum/viewthread.php?tid=7330]Link[/url]

角色 發表於 2019-1-20 11:05

[i=s] 本帖最後由 角色 於 2019-2-16 13:28 編輯 [/i]

有了设备后我们就需要在官网下载软件【1】,在【1】里面有三个版本:

安装Lite version 可以直接看 [url=http://www.telecom-cafe.com/forum/viewthread.php?tid=7335&extra=page%3D1]Link[/url]

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】[url]https://www.raspberrypi.org/downloads/raspbian/[/url]

角色 發表於 2019-1-20 11:06

[i=s] 本帖最後由 角色 於 2019-2-9 20:39 編輯 [/i]

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”,怎样用,请点击[url=http://www.telecom-cafe.com/forum/viewthread.php?tid=7312&extra=page%3D1]Link[/url]。

5、更改keyboard settings,从gb改为us [url=http://www.telecom-cafe.com/forum/viewthread.php?tid=7055&highlight=Raspberry%2Bkeyboard]Link[/url]。

6、更改时间 [url=http://www.telecom-cafe.com/forum/viewthread.php?tid=5894&page=1&extra=#pid35421]Link[/url]

7、检查和更新系统[code]
apt-get update
apt-get upgrade
[/code]。

8、怎样在Raspberry Pi的Desktop里打中文字(简体)?
[url]http://www.telecom-cafe.com/forum/viewthread.php?tid=7334&page=1&extra=#pid46160[/url]

还有没有写完。。。(有空继续)

---------

Very useful tool for shrinking image

[url]https://github.com/Drewsif/PiShrink[/url]


iptables:

[url]https://www.howtogeek.com/177621/the-beginners-guide-to-iptables-the-linux-firewall/[/url]

角色 發表於 2019-1-20 18:32

[i=s] 本帖最後由 角色 於 2019-1-26 12:21 編輯 [/i]

Raspberry as an AP
[url]https://hackaday.io/project/10338/instructions[/url]

Raspberry as an transparent gateway
[url]https://ellinia.me/How-to-set-up-transparent-gateway/[/url]

角色 發表於 2019-1-20 21:14

[i=s] 本帖最後由 角色 於 2019-1-20 21:15 編輯 [/i]

/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[code]
sudo apt-get remove dnsmasq
[/code].

/etc/dhcpcd.conf contains[code]
# 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
[/code]如果重启系统,domain_name_servers=192.168.55.1 8.8.8.8就会放入/etc/resolv.conf里。

角色 發表於 2019-1-20 23:09

怎样检测你安装的V2Ray可以科学上网:

当你的V2Ray config.json configured好后,你输入下面指令:[code]
curl -x socks5://127.0.0.1:1081 google.com
[/code], where 1081是监听port number,按个人需要可以更改。

如果能科学上网,你会得到下面信息:[code]
<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>
[/code].

如果不能科学上网,你会得到下面信息:[code]
curl: (7) Failed to connect to 127.0.0.1 port 1081: Connection refused
[/code]

角色 發表於 2019-1-21 13:38

[i=s] 本帖最後由 角色 於 2019-2-7 21:51 編輯 [/i]

The following has to be resolved later[code]
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").
[/code]Some fixes:
[url]https://stackoverflow.com/questions/2499794/how-to-fix-a-locale-setting-warning-from-perl[/url]
[url]https://www.thomas-krenn.com/en/wiki/Perl_warning_Setting_locale_failed_in_Debian[/url]
[url]https://libre-software.net/ubuntu-setting-locale/[/url]

角色 發表於 2019-1-21 18:11

[i=s] 本帖最後由 角色 於 2019-1-27 12:53 編輯 [/i]

iptables

[url]https://blog.csdn.net/xinyuan510214/article/details/51263001[/url]

Realisation of transparent V2Ray without TPROXY
[url]https://www.hkepc.com/forum/viewthread.php?tid=2446642[/url]

TPROXY info
[url]https://lwn.net/Articles/252545/[/url]
[url]http://people.netfilter.org/hidden/nfws/nfws-2008-tproxy_slides.pdf[/url]
[url]http://blog.sina.com.cn/s/blog_704836f401011e17.html[/url]

Go Across the Gfw (精)
[url]https://wdicc.com/go-across-the-gfw/[/url]
[url]https://github.com/v2ray/discussion/issues/24[/url]
[url]https://github.com/ToutyRater/v2ray-guide/issues/31[/url]
[url]https://github.com/v2ray/v2ray-core/issues/1401[/url]

角色 發表於 2019-1-29 10:53

[i=s] 本帖最後由 角色 於 2019-4-23 10:20 編輯 [/i]

Performance of Raspberry Pi 3b+

[url]https://www.jeffgeerling.com/blog/2018/raspberry-pi-3-b-review-and-performance-comparison[/url]

角色 發表於 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

[i=s] 本帖最後由 角色 於 2019-2-6 21:57 編輯 [/i]

备用帖子15

暂时放在这里


论坛:
[url]http://www.shumeipai.net/portal.php[/url]

[url]http://www.eeboard.com/bbs/forum-43-1.html[/url]

在大陆Raspbian update太慢怎样解救?
[url]https://blog.csdn.net/eibo51/article/details/53313935[/url]
[url]https://www.cnblogs.com/atsats/p/6623695.html[/url]
[url]http://www.cnblogs.com/meelo/p/5111611.html[/url]
[url]http://www.hopol.cn/2016/01/409/[/url]
[url]https://segmentfault.com/a/1190000005032111[/url]

透明代理参考帖子:

[url]http://www.telecom-cafe.com/forum/viewthread.php?tid=7260[/url]

[url]https://paper.tuisec.win/detail/8723e23d183d87d[/url]

Simple V2Ray transparent proxy

[url]https://zhiyi.us/2018/10/13/v2ray-transparent-proxy.html[/url]

An interesting article using DDWrt
[url]https://crosp.net/blog/administration/routing-network-traffic-through-socks5-proxy-using-dd-wrt/[/url]

角色 發表於 2019-1-29 10:56

备用帖子16

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.