Archlinux滚挂1

error ERROR: devide 'UUID=< uuid_2 >' not found. Skipping fsck. mount: can t find UUID=< uuid_2 > You are now being dropped into an emergency shell. sh: can t access tty; job control turned off [rootfs ]# pacman -Syu后重启就这样了 键盘输入不了。 解决 我是通过降回之前的linux内核解决的这个问题。 从linux 4.16降到linux 4.…

Arch Linux 升降换内核

换成linux-lts pacman -S linux-lts linux-lts-headers ls -lsha /boot pacman -R linux linux-headers grub-mkconfig -o /boot/grub/grub.cfg reboot 降版本 ls /var/cache/pacman/pkg/ cd /var/cache/pacman/pkg/ pacman -U linux-xxxxx-x86_64.pkg.tar.xz linux-headers-xxxxx-x86_64.pkg.tar.xz reboot 参考 https://unix.stackexchange.com/questions/284617/…

Archlinux systemd开机自动挂载alioss

vim /etc/systemd/system/mountoss.service [Unit] Description=mount oss on boot Requires=network-online.target After=network-online.target firewalld.service Before=After=docker.socket [Service] Type=oneshot RemainAfterExit=yes # 写自己的信息 ExecStart=/usr/local/bin/ossfs my-bucket /tmp/ossfs -ourl= /data/public/syncthing -ourl=oss-cn-beijing.aliyuncs.com -o allow_other [Install]…

AP-5Ghz-ATH10K

新进了个杀手1535ac网卡..高通QCA6174 想把AP改成5Ghz.结果iw list显示5ghz全部no IR,意味着无法使用.. 原因是高通跟开源作者们说: 千万别在软件层面实现这个啊。这是违法的 在网上找了很多资料.实现一下. 目前状态 $ iw reg get global country CN: DFS-FCC (2402 - 2482 @ 40), (N/A, 20), (N/A) (5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW (5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW…

安装Samba

pacman -Sy samba cp /etc/samba/smb.conf.default /etc/samba/smb.conf vim /etc/samba/smb.conf [global] workgroup = WORKGROUP map to guest = Bad User lanman auth = yes ntlm auth = yes [ksdir] comment = k's Service path = /data/k valid users = k public = no writable = yes printable = no [public] path…

安装Docker with Shorewall

由于我的HomeServer的NAT用的是shorewall..所以安装Docker也是需要配置下Shorewall的~ 首先安装Docker和Docker-compose pacman -Sy docker docker-compose 配置Shorewall /etc/shorewall/shorewall.conf: DOCKER=Yes /etc/shorewall/zones: #ZONE TYPE OPTIONS dock ipv4 #'dock' is just an example -- call it anything you like /etc/shorewall/policy: #SOURCE DEST POLICY LEVEL dock $FW REJECT dock all ACCEPT /etc/shorewall/interfaces: #ZONE…

Archlinux+Router

https://kdaye.com/nas-htpc-router/ 这篇是为了上面的设备,让设备变成路由器的流程.. 参考了很多 https://wiki.archlinux.org/index.php/Router https://wiki.archlinux.org/index.php/Network_bridge 也遇到了很多问题. 8265AC的无线网卡只能在2.4GHZ频道做AP,如果有5GHZ的需求,我建议用全通高通QAC988X系列 本篇主要实现了DHCP, WIFI AP模式。 让设备的4网口和WIFI都具有网络。 随后我还会添加ShaodowsocksR和dnsmasq结合实现智能翻墙,或许会另起一篇。 需要安装的 pacman -Sy pacman -S ppp dnsmasq iw crda hostapd shorewall 拨号及网卡配置 cp /etc/netctl/example/bridge…

安装KODI

设备开机自动登录自动运行kodi pacman -Sy kodi yaourt kodi-standalone-service systemctl enable kodi.service systemctl start kodi.service 声卡 vim /etc/modprobe.d/alsa-base.conf options snd_hda_intel index=0 options bt87x index=-2 options cx88_alsa index=-2 options saa7134-alsa index=-2 options snd-atiixp-modem index=-2 options snd-intel8x0m index=-2 options snd-via82xx-modem…

安装Archlinux

https://kdaye.com/nas-htpc-router/ 下载ISO https://www.archlinux.org/download/ 制作U盘镜像工具 https://www.pendrivelinux.com/downloads/Universal-USB-Installer/ 插上设备启动设备按F11从U盘启动 验证启动模式是否是UEFI ls /sys/firmware/efi/efivars 如果文件不存在,则系统可能以 BIOS 或 CSM 模式启动. 检查是否联网 ping -c 3 archlinux.org 设置时间 timedatectl set-ntp true 建立硬盘分区 检查下硬盘是否被识别 fdisk -l 通常会显示一个硬盘、一个USB 用GTP分区 cgdisk /dev/sda…