分类: 笔记

  • Windows 上 aria2 的基本用法

    aria2 是一个轻量级的多协议和多源点命令行下载工具。它支持 HTTP/HTTPS、FTP、SFTP、BitTorrent 和 Metalink。aria2 可以通过内置的 JSON-RPC 和 XML-RPC 接口进行操作。

    GitHub 上下载最新版本,并解压

    在程序目录 X:\aria2 新建配置文件 aria2.conf

    # aria2 OPTIONS
    # https://aria2.github.io/manual/en/html/aria2c.html#options
    
    # Basic Options
    dir=X:\Downloads
    input-file=X:\aria2\aria2.session
    continue=true
    
    # HTTP/FTP/SFTP Options
    max-connection-per-server=5
    min-split-size=10M
    
    # BitTorrent Specific Options
    bt-force-encryption=true
    bt-min-crypto-level=arc4
    bt-require-crypto=true
    
    # RPC Options
    enable-rpc=true
    rpc-allow-origin-all=true
    rpc-listen-all=true
    
    # Advanced Options
    save-session=X:\aria2\aria2.session

    新建 aria2.vbs 加载配置,后台运行

    CreateObject("WScript.Shell").Run "aria2c.exe --conf-path=aria2.conf",0

    管理使用 AriaNg

    参考资料

  • Screen 的基本用法

    Screen 是一个全屏窗口管理器,它在多个进程(通常是交互式 Shell)之间复用一个物理终端。这里简单介绍 Screen 的安装和一些基本命令的用法。

    通过 apt 安装 screen

    $ apt update
    $ apt install screen

    使用方法

    screen -S sessionname    # 将新会话的名称设置为 sessionname。
    
    screen -ls    # 显示会话标识字符串列表。 
    
    screen -d sessionname    # 分离在其他地方运行的屏幕会话。
    
    screen -r sessionname    # 恢复分离的屏幕会话。
    
    screen -R    # 恢复唯一一个分离的屏幕会话。 
    
    Ctrl + A + D    # 从该终端分离屏幕。 

    参考资料

  • Debian 9 启用 DHCPv6

    查看网络设备信息

    $ ip addr show

    编辑 /etc/network/interfaces

    $ nano /etc/network/interfaces

    启用 DHCPv6

    # 注意将 eth0 修改为你的网络设备名称
    auto eth0
    allow-hotplug eth0
    iface eth0 inet dhcp
    iface eth0 inet6 dhcp

    重启网络

    $ systemctl restart networking.service

    参考资料

  • 隐私友好

    操作系统

    Qubes OS | Debian | Whonix | Tails
    Ubuntu | Windows

    浏览器

    Mozilla Firefox | Tor Browser | Brave
    Google Chrome | Microsoft Edge

    搜索引擎

    SearX | Startpage | DuckDuckGo
    Google | Bing
  • 一些许可证

    GNU Affero General Public License v3 (AGPL-3.0)
    MIT License (X11 License)
    Do What The Fuck You Want To But It's Not My Fault Public License v1 (WTFNMFPL-1.0)
    Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
    SIL Open Font License v1.1 (OFL-1.1)