Ubuntu
桌面快捷方式
vim ~/.local/share/applications/idea.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Idea
Icon=/data/soft/idea-IU-241.18034.62/bin/idea.svg
Exec=/data/soft/idea-IU-241.18034.62/bin/idea.sh
- https://askubuntu.com/a/1329039/1792429
离线安装软件
apt install aptitude
sudo aptitude --download-only install <package-name>
# 或者
apt-get -d install <package-name>
# deb 包会下载到 /var/cache/apt/archives 目录
# 将它拷贝到离线环境的服务器后执行
dpkg -i *.deb
其他
# sources.list 只使用 x84_64 源
deb [arch=amd64] http://pathtoserver/ubuntu bionic main
修改 HotSpot 密码
sudo nm-connection-editor
apt 使用代理
sudo apt -o acquire::http::proxy="http://127.0.0.1:1080" install fluent-bit
修改网段和IP
sudo vim /etc/NetworkManager/system-connections/Hotspot
[ipv4]
dns-search=
method=shared
address1=10.0.0.1/24,10.0.0.1
sudo service network-manager restart
Links