NekoBoxForAndroid配置Hysteria2

服务器安装Hysteria2 root@bwg:~# bash <(curl -fsSL https://get.hy2.sh/) Checking for installed version ... not installed Checking for latest version ... v2.1.1 Downloading hysteria binary: https://github.com/apernet/hysteria/releases/download/app/v2.1.1/hysteria-linux-amd64 ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 13.0M 100 13.0M 0 0 15.4M 0 --:--:-- --:--:-- --:--:-- 36.0M Installing hysteria executable ... ok Install /etc/hysteria/config.yaml ... ok Creating user hysteria ... ok Install /etc/systemd/system/hysteria-server.service ... ok Install /etc/systemd/system/[email protected] ... ok Congratulation! Hysteria 2 has been successfully installed on your server. What's next? + Take a look at the differences between Hysteria 2 and Hysteria 1 at https://hysteria.network/docs/misc/2-vs-1/ + Check out the quick server config guide at https://hysteria.network/docs/getting-started/Server/ + Edit server config file at /etc/hysteria/config.yaml + Start your hysteria server with systemctl start hysteria-server.service + Configure hysteria start on system boot with systemctl enable hysteria-server.service 配置文件/etc/hysteria/config.yaml示例如下: ...

五月 29, 2025 · JQX

KDE neon live镜像用户密码修改

KDE Neon live镜像默认用户名为neon,密码为空。 但超时锁屏后,neon用户无法使用空密码登录。 这时候可以使用Alt+F3切换sesseion,在cli模式下用空密码登录neon账号,然后使用passwd neon修改密码。 完成后使用Alt+F1切换回桌面session,然后使用修改后的密码登录即可。

五月 11, 2025 · jqx

修改grub配置文件

对于安装多系统的主机来说,有时需要修改grub配置来进行一些个性化定制。 最新版的grub配置文件位于/etc/default/grub,我们可以对其进行修改,然后再使用grub-mkconfig命令来生成引导配置。 以下是一个/etc/default/grub文件实例 # 启动菜单显示时间,这里是3秒 GRUB_TIMEOUT=3 # 系统标识名,这里使用sed命令来生成 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" # 默认启动项,这里是3,序号从0开始排,本机0是fedora,3是windows GRUB_DEFAULT=3 # 禁用子菜单,所有选项同级菜单显示 GRUB_DISABLE_SUBMENU=true # 输出设备,这里为本机终端console GRUB_TERMINAL_OUTPUT="console" # linux内核附带参数 GRUB_CMDLINE_LINUX="resume=UUID=c0821d08-d462-46b9-b56b-40105a046cdf rhgb quiet" # 禁用显示恢复模式 GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true 按需修改完/etc/default/grub后,就可以使用grub-mkconfig命令来生成引导配置 bbq@op36:~$ sudo grub-mkconfig -o /boot/grub/grub.cfg Generating grub configuration file ... Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi Adding boot menu entry for UEFI Firmware Settings ... done 注 有的系统使用的是grub2-mkconfig命令,配置文件为/boot/grub2/grub.cfg

五月 4, 2025 · jqx

debian修改主机名的几种方法

debian修改主机名的几种方法 通过hostname命令修改主机名 使用hostname命令来查看/修改主机名 #查看当前主机名 ➜ ~ hostname tkvm #修改为新名字box ➜ ~ hostname box ➜ ~ hostname box 以上修改的主机名是临时的,重启后还会恢复。如果需要永久修改,还需要编辑/etc/hostname和/etc/hosts两个文件。 #将/etc/hostname中的字符改为新名称 ➜ ~ cat /etc/hostname box #将/etc/hosts中127.0.1.1后面的字符改为新名称 ➜ ~ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 box # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 通过如上修改后,主机名将永久变更为新的名称。 通过hostnamectl命令修改主机名 新的debian基于systemd进行管理,systemd提供了一个hostnamectl命令可以方便的进行主机名管理。 #使用hostnamectl查看当前主机信息 ➜ ~ hostnamectl Static hostname: bbq Icon name: computer-vm Chassis: vm 🖴 Machine ID: 5e07831af04e410dbce86f486718a532 Boot ID: a7b7b947133943c994e7b1bbbee3b95a Virtualization: kvm Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-32-amd64 Architecture: x86-64 Hardware Vendor: QEMU Hardware Model: Standard PC _i440FX + PIIX, 1996_ Firmware Version: 1.16.2-debian-1.16.2-1 #修改新主机名 ➜ ~ hostnamectl set-hostname tkvm #检查修改结果 ➜ ~ hostnamectl Static hostname: tkvm Icon name: computer-vm Chassis: vm 🖴 Machine ID: 5e07831af04e410dbce86f486718a532 Boot ID: a7b7b947133943c994e7b1bbbee3b95a Virtualization: kvm Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-32-amd64 Architecture: x86-64 Hardware Vendor: QEMU Hardware Model: Standard PC _i440FX + PIIX, 1996_ Firmware Version: 1.16.2-debian-1.16.2-1 可以看出使用hostnamectl可以方便的进行主机名更改,省去了手动修改/etc/hostname和/etc/hosts两个文件的麻烦。 ...

四月 24, 2025 · jqx

vps配置jupyterlab远程访问服务

vps配置jupyterlab远程访问服务 撸了个小鸡鸡,打算用来做jupyter server,在此记录下此次配置全过程。 安装JupyterLab # 更新系统 apt update&&apt upgrade -y # 安装python apt install python3 #安装JpyterLab和中文语言 pip3 install jupyterlab jupyterlab-language-pack-zh-CN 配置jupyterlab 生成配置文件,存放路径为.jupyter/jupyter_lab_config.py root@hcss-ecs-279f:~# jupyter lab --generate-config Writing default config to: /root/.jupyter/jupyter_lab_config.py 编辑配置文件vi .jupyter/jupyter_lab_config.py,参考以下配置 # 允许任意IP访问 c.ServerApp.allow_origin = '*' c.ServerApp.ip = '0.0.0.0' # 自定义端口号 c.ServerApp.port = 8888 # 允许root运行 c.ServerApp.allow_root = True 下来设置访问密码 root@hcss-ecs-279f:~# jupyter lab password Enter password: Verify password: [JupyterPasswordApp] Wrote hashed password to /root/.jupyter/jupyter_server_config.json 然后就可以使用jupyter lab来运行服务。 root@hcss-ecs-279f:~# jupyter lab ... ... [I 2025-04-10 10:41:35.533 ServerApp] jupyterlab | extension was successfully loaded. [I 2025-04-10 10:41:35.536 ServerApp] notebook | extension was successfully loaded. [I 2025-04-10 10:41:35.537 ServerApp] Serving notebooks from local directory: /root [I 2025-04-10 10:41:35.537 ServerApp] Jupyter Server 2.15.0 is running at: [I 2025-04-10 10:41:35.537 ServerApp] http://hcss-ecs-279f:9876/lab [I 2025-04-10 10:41:35.537 ServerApp] http://127.0.0.1:9876/lab ... ... 按提示通过IP:9876方式来远程访问JupyterLab服务即可。 ...

四月 10, 2025 · JQX