User Tools

Site Tools


linux:debian

Differences

This shows you the differences between two versions of the page.


linux:debian [2021/07/27 11:34] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +<code>export http_proxy=http://user:password@192.168.0.1:3128</code>
 +
 +====== Rename ethX ======
 +
 +<code>/etc/udev/rules.d/70-persistent-net.rules</code>
 +Warning: do not delete interface! otherwise it can appear something like enp3s0 (renamed from systemd)
 +
 +<code>lspci | grep -i eth
 +and remark the numbers at the front of each line. Example:
 +
 +Code:
 +03:00.0 Ethernet controller: Realtek [...]
 +04:00.0 Ethernet controller: Realtek [...]
 +Now, edit
 +Code:
 +/etc/udev/rules.d/70-persistent-net.rules
 +and add a KERNELS== parameter to match the addresses above. You'll have to prepend "0000:" to each:
 +
 +Code:
 +SUBSYSTEM=="net", [...] KERNELS=="0000:03:00.0", ATTR{address}=="00:25:90:02:c1:b0", [...] NAME="eth0"
 +SUBSYSTEM=="net", [...] KERNELS=="0000:04:00.0", ATTR{address}=="00:25:90:02:c1:b0", [...] NAME="eth1"
 +</code> 
 +
 +====== Distribution Upgrade ======
 +<code>
 +apt-get update
 +apt-get upgrade
 +apt-get dist-upgrade
 +
 +dpkg --audit
 +dpkg --get-selections | grep hold
 +</code>
 +\\
 +nano /etc/apt/sources.list -> change distribution here\\
 +<code>
 +apt-get update
 +apt-get upgrade
 +apt-get dist-upgrade
 +reboot
 +</code>
 +
 +====== Fix Upgrade ======
 +<code>apt -o Dpkg::Options::="--force-overwrite" --fix-broken install</code>
  
linux/debian.txt · Last modified: 2021/07/27 11:34 by Jan Forman