User Tools

Site Tools


software:linux

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:linux [2016/10/12 18:54] – [Backup a lot of data from a remote (not directly accessible) VM with minimum overhead] Michele Porellisoftware:linux [2021/12/06 10:54] (current) – [Quick HTTP server] Michele Porelli
Line 12: Line 12:
   * [[http://www.torino19.org/mike/pool/apt/fixgpgkeys|script]] to fix GPG keys errors   * [[http://www.torino19.org/mike/pool/apt/fixgpgkeys|script]] to fix GPG keys errors
   * Manual remove of a package (last resort!!)   * Manual remove of a package (last resort!!)
-  - First try:<code>dpkg -P --force-all nagios-common</code> +  - The cleanest way to remove the package is:<code>dpkg -P --force-all nagios-common</code> 
-  - If still no joy:<code>List the package contents and take a note of this list+  - If the process fails:<code>List the package contents and take a note of this list
 $ dpkg -L nagios-common $ dpkg -L nagios-common
  
Line 27: Line 27:
 to finish up, remove all files you found previously with 'dpkg -L'</code> to finish up, remove all files you found previously with 'dpkg -L'</code>
   * [[http://snipplr.com/view/13856/remove-all-rc-files-as-listed-in-dpkg/| Remove remaining configuration of all packages uninstalled]]   * [[http://snipplr.com/view/13856/remove-all-rc-files-as-listed-in-dpkg/| Remove remaining configuration of all packages uninstalled]]
 +    * <code>apt list | grep 'residual-config'</code>
 +    * <code>sudo aptitude purge ~c</code>
   * [[http://www.linuxcertif.com/man/1/dlocate/|dlocate]] is a really useful software to find which installed package provide a file on your system   * [[http://www.linuxcertif.com/man/1/dlocate/|dlocate]] is a really useful software to find which installed package provide a file on your system
   * [[http://alioth.debian.org/projects/cruft/|cruft]] search for orphans files (not unpacked by dpkg)   * [[http://alioth.debian.org/projects/cruft/|cruft]] search for orphans files (not unpacked by dpkg)
Line 69: Line 71:
 search "ao=alsa" and replace it with "ao=pulse"</code> search "ao=alsa" and replace it with "ao=pulse"</code>
   * To automatically mount NFS shares at boot time put in /etc/default/rcS<code>ASYNCMOUNTNFS="no"</code>   * To automatically mount NFS shares at boot time put in /etc/default/rcS<code>ASYNCMOUNTNFS="no"</code>
 +  * [[https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Buster%20Root%20on%20ZFS.html|Install Debian Buster using ZFS as RootFS]]. If you face problems with the rootfs not being found, you may want to increase the sleep time in initrd [[https://forum.proxmox.com/threads/failed-to-import-rpool-on-bootup-after-system-update.37884/post-273229|as described here]].
 ===== Kernel related ===== ===== Kernel related =====
   * [[http://www.makelinux.net/kernel_map/|Interactive kernel map]]   * [[http://www.makelinux.net/kernel_map/|Interactive kernel map]]
Line 108: Line 110:
 <code>sudo dnsmasq -i eth0 -d --dhcp-range=192.168.89.90,192.168.89.100</code> <code>sudo dnsmasq -i eth0 -d --dhcp-range=192.168.89.90,192.168.89.100</code>
 ==== Quick HTTP server ==== ==== Quick HTTP server ====
-<code>python -m SimpleHTTPServer 8000</code>+<code>python -m SimpleHTTPServer 8000 
 +python3 -m http.server 8080</code>
  
 ==== Quick FTP server ==== ==== Quick FTP server ====
Line 266: Line 269:
   - Open a new terminal and start the receiver<code>nc localhost 1900 | tar zx</code>   - Open a new terminal and start the receiver<code>nc localhost 1900 | tar zx</code>
  
 +==== Copy a big amount of data as fast as possible ====
 +  * <code>tar cpf - . | pv | (cd /dst; tar xf -)</code>
 ==== Add a disk to extend a LVM logical volume ==== ==== Add a disk to extend a LVM logical volume ====
   - Mark your disk/partition as LVM<code># pvcreate /dev/sdX</code>   - Mark your disk/partition as LVM<code># pvcreate /dev/sdX</code>
software/linux.1476291290.txt · Last modified: 2016/10/12 18:54 by Michele Porelli