软路由系列–路由器系统-Ubuntu

软路由的系统 软路由系统安装 篇1也是写于三年前左右了 自己的软路由系统一直在用linux发行版,第一次使用软路由是2018年了,当时使用的是centos7,还是小马的软路由n3700,当时自己加配了8G内存,也就是4C8G,固态硬盘120,而后这个固态也在今年挂掉了,4月份还重装了下系统,由于配置还在,所以当时继续沿用了centos7 不过呢,最近刚好入手了一个零刻的小主机,i3-N305, 8核8线程,1.8GHz->3.8GHz, 16G,512G。最近也是想换个系统了,因为centos7的软件源太老了,带的内核还是3.10的,官方也没人维护了,索性切换到Ubuntu 22.04.02了,内核5.15(晚些换成6) Ubuntu 22.04.02 我选择的是server版本,安装的时候,根本不会跳出来GUI,全部命令行,超级nice,而且很贴心的自动把SSH远程访问勾选了,只要安装好,就可以使用远程登陆了,也不需要自己开启了。 开启软路由功能 apt install bridge-utils 编辑 netplan yaml文件,这台主机只有两个网口,所以搞个bridge,而后一个网口当做wan口,一个网口当做lan口,把lan口加入到bridge中即可 vim /etc/netplan/00-installer-config.yaml network: ethernets: enp1s0: dhcp4: true enp2s0: dhcp4: no bridges: br0: dhcp4: no addresses: [10.0.1.1/24] nameservers: addresses: [8.8.8.8] interfaces: [enp2s0] version: 2 应用配置,并且查看信息 netplan apply brctl show 类似以下就成功了,其中enp2s0 就是lan口,你下面挂其他wifi放大器,或者交换机等等 bridge name bridge id STP enabled interfaces br0 8000.6aa01d4c1f71 no enp2s0 开启dhcp服务,给其他设备分配ip或者提供dns服务 apt install dnsmasq 编辑配置文件, 设置dhcp的网段,dns,dns解析文件,端口 vim /etc/dnsmasq.conf interface=br0 dhcp-range=10.0.1.2,10.0.1.254,72h dhcp-option=6,10.0.1.1 resolv-file=/etc/resolv.
Read more →

google pixelbook install ubuntu archlinux

Happy Chinese Luner New Year So I bought a pixelbook(2017 i5 256G) from Taobao for 450$.Then I began to tweak my pixelbook. First I switch my pixelbook to develop mode. Install Arch Linux First I follow a article install archlinux with legacy boot,I spent half my day troubleshooting. install-archlinux-on-pixelbook Archlinux Problems I install a console environment, I can’t connect to wifi,but my archlinux usb stick work well,then I found I forget install dialog and wpa_supplicant library,I install those,then I only got a ipv6 address,I know that I did not got a address, Then I go back to my chroot environment install dhclient, I manuly run dhclient got a ipv4 address,then I got connected to internet, then I install a gnome desktop environtment ,but the trackpad is lagged and I can’t stand it.
Read more →

使用letsencrypt 来加密自己的个人网站

Read more →