通过第一篇《使用树莓派3B打造超强路由之一:初装》的努力,树莓派3B已经可以作为一台超低能耗、随身携带的开发用服务器来使用了。但这对于目标——打造超强路由而言,才刚刚开始。接下来,我们需要将其打磨成一台基本的无线路由器。
WARNING 本文所有指令均仅供参考,切勿无脑复制粘贴!
| #! python2 | |
| # -*- coding: utf-8 -*- | |
| # 九张羊皮纸 STEAM版用 联机辅助脚本 | |
| # 本脚本用于,减少STEAM游戏九张羊皮纸在线游戏时的频繁掉线现象。 | |
| # 安装方法: | |
| # 1, 请去Python官方网站下载Python 2.7版安装程序并安装。 | |
| # 版本一定必须是2.7或其子版本,若使用3以上版本将无法正确运行。 | |
| # 2, 请修改操作系统中的HOSTS文件,增加条目: 127.0.0.1 master.frozenbyte-online.com |
| #!/bin/sh | |
| # This is the path to the Google Authenticator app file. It's typically located | |
| # in /data under Android. Copy it to your PC in a safe location and specify the | |
| # path to it here. | |
| DB="/path/to/com.google.android.apps.authenticator/databases/databases" | |
| sqlite3 "$DB" 'SELECT email,secret FROM accounts;' | while read A | |
| do | |
| NAME=`echo "$A" | cut -d '|' -f 1` |
通过第一篇《使用树莓派3B打造超强路由之一:初装》的努力,树莓派3B已经可以作为一台超低能耗、随身携带的开发用服务器来使用了。但这对于目标——打造超强路由而言,才刚刚开始。接下来,我们需要将其打磨成一台基本的无线路由器。
WARNING 本文所有指令均仅供参考,切勿无脑复制粘贴!
| # A headless service to create DNS records. | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: hdfs-datanode | |
| labels: | |
| app: hdfs-datanode | |
| spec: | |
| ports: | |
| - port: 50010 |
When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.
filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&id=${fileid}"| # located at /etc/netplan/ | |
| # $ sudo netplan apply | |
| network: | |
| version: 2 | |
| renderer: networkd | |
| ethernets: | |
| enp5s0f0: | |
| dhcp4: false | |
| bridges: | |
| br0: |
oc annotate route <route_name> --overwrite haproxy.router.openshift.io/timeout=10s
oc patch dc|rc <dc_name> -p "spec:
template:
These instructions should work for Streisand as well for others VPN providers (Streisand is a Software that automatically configures a VPS online server with OpenVPN and other VPN/Proxy Softwares in order to have a private VPN Server)
These instructions are for getting an OpenWrt Based Router working as OpenVPN Client (should work for LEDE, Gargoyle and another distributions). Computers connected to Lan Ports of the OpenWrt Router will navigate through the Internet connection of the OpenVPN Server (in this case the Streisand one previously set up) you need a working Router with OpenWrt based firmware flashed on it (LEDE or eko.one.pl could also work) steps works well on Chaos Calmer 15.05 or 15.05.1.
You need to telnet 192.168.1.1 (OpenWrt Router) and set up a password using passwd
You can skip this if you already have a password and can connect using ssh.
root@OpenWrt:~# passwd
Changing password for root
DB
ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl --format=table --columns=name,mac_in_use find Interface name=br-dpdk1
ovs-vsctl get interface vhub656c3cb-23 name
ovs-vsctl set port vlan1729 tag=1729