分类: Software

  • 音流

    音流是国人近期开发的一个音乐播放器

    与Tempo(老外开发)一样,需搭配NAS或自建服务器使用。

    界面简洁,支持现在主流的各种音乐服务, 包括Subsonic,Navidrome.

    由于采用了跨平台的开发技术,音流有安卓手机,苹果手机,Mac OS, Windows OS各个版本

    同样也支持subsonic的同步歌词

    小众产品,需要到其官网下载

    https://music.aqzscn.cn/

    Tempo是开源的,也是免费的,在F-Droid中下载。

    音流是闭源的,部分功能收费

    音流界面截图

    音乐欣赏

    孙露 冰吻

    Eagles 加州旅馆

    蔡琴 出塞曲

    祖海 音乐殿堂

    播放有困难?

    都是高码率音源,带宽有要求
    IPv4需要绕道香港转发,而且带宽很低,顺利播放困难较大
    IPv6直连
    按照协议规定,同时支持IPv4和IPv6时,自动首选走IPv6
    在上海,除了东方有线,电信/联通/移动宽带都支持IPv6。

    如果家庭宽带连接下,播放有问题,大概率应该更换路由器了。

  • MusicTag Web & Tempo

    音乐刮削软件

    所谓音乐刮削,是指自动从互联网获取信息,修改音乐文件的元数据,如标题、图片、演员/歌手、歌词等

    有两个流行的音乐刮削软件,MusicTag和MusicTag Web。

    前者是windows 平台下的刮削软件

    后者是服务器端的刮削软件,并在浏览器上操纵执行。这个软件更加方便,配置好了,可以在需要时,随时从手机中进行处理。

    安装Music Tag Web

    Docker方式安装,非常方便,但对于国内用户,由于docker hub不易访问,而国内的镜像源也于去年全部停止了,需要想其它方式来安装:

    先在镜外VPS上 Pull Image 安装,并export image,再在家中的服务器或NAS上 import image。

    应用

    在虚拟机上安装好MusicTag Web,并设置好对应的域名和网址后,就可以从任意的手机或PC访问了

    有两个版本,V1免费,V2收费

    对我而言,V1够用了

    http://musictag.zhenglei.net/


    Tempo

    Tempo 是Android平台上,开源的Subsonic 轻量级客户端,老外开发的。

    支持歌词同步显示,没有广告。

    可在F-Droid 中下载。

    歌词显示,是Tempo apk,subsonic 客户端的一个功能,分享到其它应用,是由subsonic 服务端提供的,这里是Navidrome,不支持歌词显示

    Temp 歌词 Demo

  • Install docker on Debian

    sudo apt update
    
    sudo apt upgrade
    
    sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg2
    
    curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
    
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
    
    sudo apt update
    sudo apt install docker-ce
    
    
    sudo usermod -aG docker $USER
    
    
  • Customize theme of twentyeleven

    Modify footer.php:

    Not display ‘Proudly powerd by…’

    Modify: add line of

    $utility_text = __(”)

  • Mysql database repair

    /opt/local/bin/mysqlcheck -c piwigo piwigo_history -u root -p

    /opt/local/bin/mysqlcheck -r piwigo piwigo_history -u root -p

    piwigo_history ==> Database table name

    piwigo ==> Database name

  • Tailscale vpn bypass firewall

    Sometime, we need to bypass the firewall.

    Suppose there are two linux box, a local box and a remote box, the local box unable to access some URL, due to the firewall limitation, while the remote box have no limitation.

    We setup one tailscale vpn between these two nodes, as describe in https://tailscale.com/kb/1017/install

    Now we config a exit node, to bypass the firewall of the local linux box.

    Remore linux: Enable IP forward & Add exit-node:

    sudo sed -i “s/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/” /etc/sysctl.conf

    sudo sed -i “s/#net.ipv6.conf.all.forwarding=1/net.ipv6.conf.all.forwarding=1/” /etc/sysctl.conf

    sudo sysctl -p /etc/sysctl.conf
    sudo tailscale up --advertise-exit-node

    Tailscale admin webpage: Approve the exit node

    Local linux:  Use exit-node:
    
    sudo sed -i "s/#net.ipv4.conf.all.rp_filter=1/net.ipv4.conf.all.rp_filter=2/"  /etc/sysctl.conf
    
    
    sudo sysctl -p /etc/sysctl.conf
    
    sudo tailscale up --accept-routes --exit-node-allow-lan-access --exit-node=RemoteIP

    Where RemoteIP is the vpn ip of remote node, say 100.113.189.45

  • gallery.zhenglei.net is online

    The personal photo gallery is online at the end of 2022.

    The open source piwigo suite is used to build the gallery, same as the blog site, the whole software stack, except the linux kernel layer, is built from souce, i.e, LFS (linux from scratch)

    Thanks to the LFS technology, the who software image can be run on almost any linux X64 enviroment. keep the file level compability, and cloned to the other machine with rsync, backup and restore with easy.