- 在终端输入
gnome-session-properties
打开工具

- 勾选/取消程序项来设置是否开机启动
- 点击「添加」,输入启动程序的路径
- 点击编辑,在「命令」内容前加上
sleep 120;
来设置延迟120秒启动
gnome-session-properties
打开工具sleep 120;
来设置延迟120秒启动/etc/netpaln/br0.yaml
network:
version: 2
ethernets:
eno1:
dhcp4: false
dhcp6: false
bridges:
br0:
interfaces: [eno1]
dhcp4: true
parameters:
stp: false
dhcp6: false
network:
version: 2
ethernets:
eno1:
dhcp4: false
dhcp6: false
bridges:
br0:
interfaces: [eno1]
dhcp4: false
addresses: [192.168.0.13/24]
routes:
- to: default
via: 192.168.0.1
nameservers:
addresses: [114.114.114.114]
parameters:
stp: false
dhcp6: false
sudo netplan apply
更多配置:https://netplan.io/examples#integration-with-a-windows-dhcp-server
sudo apt update
sudo apt install build-essential dkms linux-headers-$(uname -r)
sudo ./VBoxLinuxAdditions.run
dpkg: 处理归档 /var/cache/apt/archives/xxxxxx(–unpack)时出错
尝试以下方法解决:
dpkg -i --force-overwrite /var/cache/apt/archives/xxxxxx
安装方法:
sudo apt-add-repository ppa:wireshark-dev/stable
sudo apt-get update
sudo apt-get install wireshark
安装过程中需要设置,选择“是”。如果错过了或选错了,就安装好之后,运行下面命令行,出现上述页面选择“是”即可。
sudo dpkg-reconfigure wireshark-common
出于安全方面的考虑,普通用户不能够打开网卡设备进行抓包,Wireshark不建议用户通过sudo在root权限下运行,应当设置当前用户权限:
sudo usermod -aG wireshark $(whoami)
注销登录。
ip addr
通常会返回至少两个设备,固定的 lo
和 不固定的设备名,假设为 eth0
。
/etc/network/interfaces
,常见配置如下:auto eth0
iface eth0 inet static
address 192.168.0.5
netmask 24
gateway 192.168.0.1
dns-nameservers 114.114.114.114
dpkg -l | grep ^rc | cut -d' ' -f3 | sudo xargs dpkg --purge
dpkg 常见用法
docker-compose.yml
文件The other day a reader asked me that she had troubles with this kind of error:
E: Could not get lock /var/cache/apt/archives/lock – open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
She was trying to follow one of the tips mentioned in things to do to after installing Ubuntu 14.04 when she encountered this error. Its one of the common occurring update errors in Ubuntu and also one of the least annoying ones.