Juan's Blog

linux

There is an android app named Adaway, which automatically updates your system hosts file to redirect ads domain to localhost.

However, changing hosts file on linux can cause problems, because when you autocomplete shell commands like ssh and nmap, domains in hosts file will be pulled, which generates a lot of lag since there are way too many. One good way to work around this is to add blocklist in your dns server instead.

Since I don't see many info around the web that covers these setups, I decided to write it myself and explain the incentives along the way.

TLDR:

  • Unbound: the privacy-centric DNS server
  • Hblock: Ad blocking script

#linux #privacy #dns #censorship

Read more...

Update: On latest version of SwayWM, everything works OOTB with Fcitx5

To input CJK (Chinese, Japanese and Korean) languages in Linux Minecraft, you can install this mod CocoaInput.

If that's the case, I won't bother writing an article about it. The thing is that the mod is only officially available for 1.7 to 1.18, for the latest Minecraft 1.19 to 1.20, you'll need to compile the mod binary from an updated fork of it.

#linux #gnome #minecraft

Read more...

The one thing I missed most from SwayWM after my transition from SwayWM to GNOME, was the ability to change keyboard layout for each keyboard and mouse.

#linux #gnome #wayland

Read more...

Update: Just use flatpak version instead

steam needs two steps to properly identify a controller:

  • controller is visible to sdl2
  • controller's /dev/hidraw is visible to steam

#linux #gaming #systemd

Read more...

Read more...

I use steam in a arch linux chroot to avoid gentoo's x86 depencency hell, although ALSA inside the chroot works, it doesn't support advanced features like bluetooth, usb output and more.

In this article, I talk about how to configure pipewire in chroot to achieve features mentioned above.

#linux #gaming #pipewire #chroot

Read more...

.... no. Actually, I only changed the colorscheme from serenade to gruvbox.

Did this when I'm waiting for my gentoo update to finish, and I feel like getting a new computer. Everything looks so fresh!

More screenshots are shown below

#linux #rice #wayland

Read more...

我在上一篇文章写到自己是怎么自建smb服务器来串流自己的影音。 当时因为客户端软件的限制,还有一些问题没有被解决:

  • 不能为外网的samba网盘建立索引

这几天我找到了一个兼容性更强的解决方案,就是用jellyfin服务器, 好处有三:

#FOSS #Software #Privacy #Networking #Streaming #linux

Read more...

最近折腾openwrt,给子设备开启了公网ipv6地址,同时自己的hi-res影音库也开始积攒空间,不能简单地再用syncthing同步到所有设备上了。于是开始想办法用网络串流自己的文件。写篇blog简单记录下我的方法,说不定能帮到和我有一样想法的你。

#FOSS #Software #Networking #linux

Read more...

tldr

  1. Install openconnect
  2. Run openconnect as root with openconnect --protocol=gp
  3. profit

#linux #FOSS

Read more...