References: Vultr How to Install Jupyter Notebook on Ubuntu 24.04 https://docs.vultr.com/how-to-install-jupyter-notebook-on-ubuntu-24-04 Prerequisites Ubuntu 24.04 Internet Using pip Install Jupyter Notebook on Ubuntu 24.04 Update APT package index.. sudo apt update Install the virtualenv package: sudo apt install python3-virtualenv -y Create a new virtual environment named jupyter_env. virtualenv jupyter_env Activate the virtual environment. source jupyter_env/bin/activate Install Jupyter Notebook using pip. pip […]

August 12, 2025 Read all

这篇笔记记录了日常使用ubuntu时需要设置的笔记 systemd-networkd-wait-online.service systemd-networkd-wait-online.service 是 Systemd 的一个服务单元,主要用于在系统启动时等待网络连接就绪‌。以下是关于该服务的详细信息: ‌作用‌ 该服务会等待 systemd-networkd 完成网络配置,并确认至少有一个网络接口在线后,才会标记为 ready,从而允许其他依赖网络的服务启动‌。 默认情况下,它会监视所有由 systemd-networkd 管理的网络接口,直到它们连线成功或超时(默认超时时间为 120 秒)‌。 ‌常见问题‌ 启动延迟‌:如果网络接口(如 DHCP 获取 IP)耗时较长,可能导致系统启动卡在该服务,延长启动时间‌。 无网络连接时‌:在不插网线的情况下,服务可能会等待 3-5 分钟,直到超时‌。 ‌优化方法‌ (1) ‌调整超时时间‌ 修改服务的超时配置,例如将 TimeoutStartSec 设置为 2sec,以减少等待时间‌: sudo vim /etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service 在 [Service] 部分添加: TimeoutStartSec=2sec 保存后重启系统生效‌。 sudo systemctl daemon-reload (2) ‌禁用服务‌ 如果不需要严格等待网络就绪,可以直接禁用该服务: sudo systemctl disable systemd-networkd-wait-online.service sudo systemctl mask systemd-networkd-wait-online.service 或者删除服务 sudo Removed /etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service. sudo Removed /etc/systemd/system/sockets.target.wants/systemd-networkd.socket. […]

July 24, 2025 Read all

在vps中安裝ikuai的操作步驟如下 命令操作部分 查看當前vps的ip地址和網關地址 ip router ------- root@VM-0-14-ubuntu:~# ip route default via 10.0.0.1 dev eth0 proto dhcp src 10.0.0.14 metric 100 10.0.0.0/22 dev eth0 proto kernel scope link src 10.0.0.14 root@VM-0-14-ubuntu:~# ------------ 新增腳本 #!/bin/bash ## 檢查是否以 root 用戶運行 if [ "$EUID" -ne 0 ]; then echo "請以 root 用戶運行此腳本" exit 1 fi ## 詢問用戶是否下載 32 位或 64 位版本 read -p "請選擇要下載的 […]

June 19, 2025 Read all

ERPNext 在 Ubuntu 24.04 LTS 中的安装笔记 Step by Step 文章目录 | Table of Contents ERPnext 简介 先决条件 安装步骤 总结 & 引用 先决条件 | Prerequisites 系统环境要求 Ubuntu 24.04 A user with sudo privileges Python 3.11+ pip 20+ MariaDB 10.3.x Node.js 18 Yarn 1.12+ 硬件要求 2 Process 2 Core 4GB ram 40GB Storage Intenet 安装步骤 | Installtion Steps 包升级和创建新用户 Update and Upgrade […]

March 5, 2025 Read all

In this article, I will share with you about my second time installing CUPS on Ubuntu. Requriement Ubuntu 18.04 LTS Install on an Old Computer Canon E410 Series Printer Internet CUPS Installation and Configuration Step by Step Install CUPS on your system #install cups sudo apt-get install cups cups-pdf cups-bsd Back up the configuration file #copy configuration file sudo cp […]

June 16, 2024 Read all

SoftEther 是一个由日本筑波大学开发的开源VPN 项目,你可以自由的使用它为你的家庭或者公司组建虚拟局域网。它拥有多平台服务端和客户端,方便简易的操作界面,得到了很多人的喜爱。接下来就跟着我的操作一起来学习一下吧。 SoftEther 简介 https://www.softether.org/9-about SoftEher下载 https://www.softether.org/5-download 服务端环境 Ubuntu 16.4.1 & Centos 7.6 操作步骤 通过SSH 客户端连接到Linux服务器,更新下载gcc工具 sudo apt-get update sudo apt-get install build-essential 将SoftEther服务端下载到Linux服务器(需要科学上网环境,根据你的系统版本下载相对应版本) wget https://www.softether-download.com/files/softether/v4.34-9745-rtm-2020.04.05-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-x64-64bit.tar.gz 解压SoftEther服务端 tar -zxvf softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-x64-64bit.tar.gz 进入VPNserver 目录 进行make(make后会有3个问题询问。一直同意按1回车即可) cd vpnserver make 在vpnserver目录启动VPNServer ./vpnserver start #启动服务 ./vpnserver stop #停止服务 启动服务之后可以直接通过Softher管理工具进行连接管理和初始化配置了。 这里就不一一介绍了。此笔记只记录服务端配置。 ubuntu 设置开机启动(编辑rc.local 目录把vpnserver 启动添加进去即可) vi /etc/rc.local /home/ubuntu/vpnserver/vpnserver start #exit 0 之前写入 Centos 7.6设置开机启动请参阅此文章https://www.itiohub.com/log/centos6run.html 这样一来服务端就配置完成。 […]

May 10, 2021 Read all