Install Jupyter notebook on Ubuntu 24.04 and allow remote access.

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 access Install Jupyter Notebook with pip Update the APT package index: sudo apt update Install the virtualenv package: sudo apt install python3-virtualenv -y Create a virtual environment: virtualenv jupyter_env Activate the virtual environment: source jupyter_env/bin/activate Install Jupyter Notebook: pip install jupyter Verify the installed version: jupyter-notebook --version You can deactivate the virtual environment at any time by running deactivate. ...

Ubuntu Server Notes

This note records the notes that need to be set when using Ubuntu daily. systemd-networkd-wait-online.service systemd-networkd-wait-online.service is a service unit of Systemd, mainly used to wait for the network connection to be ready when the system starts. Function: This service will wait for systemd-networkd to complete the network configuration and confirm that at least one network interface is online before it is marked as ready, allowing other network-dependent services to start. By default, it monitors all network interfaces managed by systemd-networkd until the connection is successful or times out. ** FAQ **: If DHCP takes a long time to obtain an IP, the system startup may be stuck in this service; when there is no network connection, it may also wait until it times out. ** optimization method **: You can adjust the timeout, disable services, or check the network configuration. Adjust timeout Set TimeoutStartSec to 2sec: ...

ikuai installation script

The steps to install ikuai in vps are as follows Command operation part Check the IP address and gateway address of the current vps 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.14Add script #!/bin/bash # 檢查是否以 root 用戶運行 if [ "$EUID" -ne 0 ]; then echo "請以 root 用戶運行此腳本" exit 1 fi # 詢問用戶下載 32 位或 64 位版本 read -p "請選擇要下載的 iKuai8 版本 (32/64): " arch # 根據用戶選擇下載對應的 ISO 鏡像 if [ "$arch" == "32" ]; then url="https://www.ikuai8.com/download.php?n=/3.x/iso/iKuai8_x32_3.7.20_Build202506041743.iso" filename="ikuai8_x32.iso" elif [ "$arch" == "64" ]; then url="https://www.ikuai8.com/download.php?n=/3.x/iso/iKuai8_x64_3.7.20_Build202506041743.iso" filename="ikuai8_x64.iso" else echo "無效的選擇,請重試" exit 1 fi # 下載 ISO 鏡像 echo "正在下載 $filename..." wget "$url" -O "$filename" echo "下載完成" # 掛載 ISO 鏡像 echo "正在掛載 $filename..." sudo mount -o loop "$filename" /mnt if [ $? -ne 0 ]; then echo "掛載 $filename 失敗,請手動檢查" exit 1 fi echo "掛載成功" # 複製啟動文件 echo "正在複製啟動文件..." sudo cp -rpf /mnt/boot / # 檢查操作結果 echo "檢查操作結果:" if [ -f "$filename" ]; then echo "- $filename 存在" else echo "- $filename 不存在" fi if mountpoint -q /mnt; then echo "- 掛載成功" else echo "- 掛載失敗" fi if [ -d "/boot" ]; then echo "- 啟動文件已複製" else echo "- 啟動文件複製失敗" fi # 檢查主機 IP 地址和網關地址 ip_address=$(ip addr show | grep 'inet ' | awk '{print $2}' | cut -d'/' -f1) gateway=$(ip route show | grep default | awk '{print $3}') echo "- IP 地址: $ip_address" echo "- 網關地址: $gateway" echo "所有操作完成,請執行 reboot 重啟 VPS,並通過 VNC 連接控制台"Execute script chmod +x install_ikuai.sh bash install_ikuai.shFollow the prompts to restart the vps and connect to the vps through the vns console ...

Installation of ERPNext in Ubuntu 24.04 LTS Notes Step by Step

Article Directory | Table of Contents Introduction to ERPnext Prerequisites Installation steps Summary & Quotes Prerequisites | System environment requirements Ubuntu 24.04 A user with sudo privileges Python 3.11+ pip 20+ MariaDB 10.3.x Node.js 18 Yarn 1.12+ Hardware requirements 2 Process 2 Core 4GB ram 40GB Storage Intenet Installation Steps | Installation Steps Package upgrades and creating new users Update and Upgrade Packages sudo apt-get update -y && sudo apt-get upgrade -y Create a New user ...

Share an Old Printer on Your Local Network - CUPS

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 /etc/cups/cupsd.conf cupsd.conf.bak Editing the CUPS configuration file #add user simith to lpadmin group sudo usermod -aG lpadmin simith #edit cupsd.conf sudo vim cupsd.conf Edited cupsd.conf contents. (Configuration options not mentioned should be left as default.) #allow access port Port 63100 LogLevel warn PageLogFormat MaxLogSize 200 # Show shared printers on the local network. Browsing on BrowseLocalProtocols dnssd # Web interface setting... WebInterface Yes # Restrict access to the server... <Location /> Order Allow,deny Allow @LOCAL Allow From 127.0.0.1 Allow From 192.168.0.0/16 </Location> # Restrict access to the admin pages... <Location /admin> #access user simith can visit admin page Require user simith Order Allow,deny Allow @LOCAL Allow 127.0.0.1 Allow From 192.168.0.0/16 </Location> # Restrict access to configuration files... <Location /admin/conf> AuthType Default Require user simith Order allow,deny Allow @LOCAL Allow 127.0.0.1 Allow From 192.168.0.0/16 </Location> # Restrict access to log files... <Location /admin/log> AuthType Default Require user simith Order allow,deny Allow @LOCAL Allow 192.168.0.0/16 </Location> Restart CUPS service and add to starup sudo systemctl restart cups sudp systemctl enable cupsEnd Finally, you can visit the Ubuntu IP address and configuration ...

SoftEther VPN Server Ubuntu Installation Notes

SoftEther is an open source VPN project developed by the University of Tsukuba, Japan. You can freely use it to set up a virtual LAN for your home or company. It has multi-platform servers and clients, and a convenient and simple operation interface, which has been loved by many people. Next, let’s learn how to do it with me. Introduction to SoftEther https://www.softether.org/9-about SoftEherDownload https://www.softether.org/5-download Server environment Ubuntu 16.4.1 & Centos 7.6 ...

搜尋文章

輸入標題、分類或文章內容

Plz typing to search for articles.