<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.bgzashtita.es/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=172.20.0.0%2F24</id>
	<title>Bgzashtita Official wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.bgzashtita.es/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=172.20.0.0%2F24"/>
	<link rel="alternate" type="text/html" href="https://wiki.bgzashtita.es/index.php?title=Special:Contributions/172.20.0.0/24"/>
	<updated>2026-11-20T11:22:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.bgzashtita.es/index.php?title=Linux/manual&amp;diff=28</id>
		<title>Linux/manual</title>
		<link rel="alternate" type="text/html" href="https://wiki.bgzashtita.es/index.php?title=Linux/manual&amp;diff=28"/>
		<updated>2023-08-05T22:35:11Z</updated>

		<summary type="html">&lt;p&gt;172.20.0.2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;sudo du -hsx / | sort -rh | head -20&amp;quot;&lt;br /&gt;
&lt;br /&gt;
What&#039;s the output of `df -h | nc termbin.com 9999` ?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And this? sudo du -sh /var /usr /lib&lt;br /&gt;
&lt;br /&gt;
du -sh /lib /home ==&amp;gt; check both lib and home as well&lt;br /&gt;
&lt;br /&gt;
Your /var is a bit big too, maybe log is a lot; try: du -sh /var/* | sort -h&lt;br /&gt;
&lt;br /&gt;
You may continue with `sudo du -sh /var/lib/* | sort -h` if you wish to pinpoint it&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
how to purge and install efi:&lt;br /&gt;
&lt;br /&gt;
Okay, let&#039;s walk through the full steps start to finish to get your system booting properly again:&lt;br /&gt;
&lt;br /&gt;
Boot from a Debian live USB/CD in UEFI mode.&lt;br /&gt;
&lt;br /&gt;
Use fdisk or gdisk to verify your partition table - make sure you have partitions setup for EFI, root, and any others needed.&lt;br /&gt;
&lt;br /&gt;
Format the EFI partition as FAT32 if needed.&lt;br /&gt;
&lt;br /&gt;
Mount the root and EFI partitions:&lt;br /&gt;
&lt;br /&gt;
mount /dev/nvme0n1p2 /mnt   # Root partition&lt;br /&gt;
mount /dev/nvme0n1p1 /mnt/boot/efi # EFI partition&lt;br /&gt;
Chroot into the mounted root partition:&lt;br /&gt;
chroot /mnt /bin/bash&lt;br /&gt;
Install the GRUB and Linux packages:&lt;br /&gt;
apt update&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
apt install grub-efi-amd64 grub-common linux-image-amd64&lt;br /&gt;
Generate an initramfs image:&lt;br /&gt;
update-initramfs -c -k all&lt;br /&gt;
Verify the kernel and initrd files now exist in /boot&lt;br /&gt;
&lt;br /&gt;
Edit /etc/fstab to match partitions if needed.&lt;br /&gt;
&lt;br /&gt;
Generate a GRUB config file and reinstall GRUB:&lt;br /&gt;
&lt;br /&gt;
grub-mkconfig -o /boot/grub/grub.cfg&lt;br /&gt;
grub-install&lt;br /&gt;
update-grub&lt;br /&gt;
Reboot and verify you can boot into GRUB and then Linux!&lt;br /&gt;
Let&#039;s take it step-by-step. Let me know if you get stuck or have any errors at any point in the process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Pissed: with every new version ubuntu IS SHIT:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So on ubuntu 23.04 there is pain in all body, as they change ip static changes: It is not like classic unknown where put code, it is in yaml and it use netplan, not restarting networwking. So here is config:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 nano /etc/netplan/00-installer-config.yaml                                                  &lt;br /&gt;
&lt;br /&gt;
# This is the network config written by &#039;subiquity&#039;&lt;br /&gt;
network:&lt;br /&gt;
  ethernets:&lt;br /&gt;
        ens160:&lt;br /&gt;
            addresses: [&#039;192.168.3.237/24&#039;]&lt;br /&gt;
            gateway4: 192.168.3.1&lt;br /&gt;
            nameservers:&lt;br /&gt;
                addresses: [192.168.3.1, 8.8.4.4, 8.8.8.8]&lt;br /&gt;
                search: [localdomain]&lt;br /&gt;
  version: 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After safe and exit&lt;br /&gt;
&lt;br /&gt;
Now here is SHIT CATCH:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
to apply for getting ip:&lt;br /&gt;
&lt;br /&gt;
get admin rights and write:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 netplan apply&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now you have internet:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
managed-keys-zone: Key 20326 for zone . is now trusted (acceptance timer complete)&lt;br /&gt;
2023-07-25T00:11:45.272385+00:00 ns1 named[39807]: managed-keys.bind.jnl: open: permission denied&lt;br /&gt;
2023-07-25T00:11:45.272407+00:00 ns1 named[39807]: managed-keys-zone: keyfetch_done:dns_journal_open -&amp;gt; unexpected error&lt;br /&gt;
2023-07-25T00:11:45.272428+00:00 ns1 named[39807]: managed-keys-zone: error during managed-keys processing (unexpected error): DNSSEC validati&lt;br /&gt;
&lt;br /&gt;
this is solution for ubuntu and debian&lt;br /&gt;
&lt;br /&gt;
 sudo chown -R root:bind  /var/cache/bind&lt;br /&gt;
 sudo chown -R root:bind  /var/cache/bind/managed-keys.bind&lt;br /&gt;
 sudo chown -R root:bind  /var/cache/bind/managed-keys.bind.jnl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iptables -n -L --line-numbers&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iptables -D fail2ban-jailname &amp;lt;linenumber&amp;gt;&lt;br /&gt;
&lt;br /&gt;
rsync -aP --numeric-ids /mnt/source/ /mnt/destination/ just for confirm&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In case someone need to recover his hard disk:&lt;br /&gt;
&lt;br /&gt;
 /sbin/losetup -o 537919488 /dev/loop12/dev/sda &lt;br /&gt;
&lt;br /&gt;
 rsync -aP --numeric-ids /mnt/source/ /mnt/destination/ just for confirm&lt;/div&gt;</summary>
		<author><name>172.20.0.2</name></author>
	</entry>
</feed>