Posts

Showing posts from October, 2021

Set hard drive spin down time

  Use lsblk to see disks and partitions You will get something like: NAME                      MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT loop0                       7:0    0  61.9M  1 loop  /snap/core20/1169 loop1                       7:1    0 116.6M  1 loop  /snap/docker/1125 loop2                       7:2    0  67.3M  1 loop  /snap/lxd/21545 loop3                  ...

PI Hole on Ubuntu 20

https://www.youtube.com/watch?v=NqjavM4WljA

Run docker as non-root user

  After creating the docker group and adding my user to it with sudo groupadd docker sudo usermod -aG docker $USER ... I still had to give the /var/run/docker.sock socket and /var/run/docker directory the proper permissions to make it work: sudo chown root:docker /var/run/docker.sock sudo chown -R root:docker /var/run/docker Logout and login again (with that user) then you'll be able to run docker commands without sudo : docker run hello-world   In case of: docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied  run: sudo chmod 666 /var/run/docker.sock  

Ubuntu Print server

   Tutorial:  https://www.youtube.com/watch?v=eDT1A6q_RFk   Install brlaser driver: https://github.com/pdewacht/brlaser#installation apt-get install printer-driver-brlaser sudo apt install ghostscript       CUPS CONFIG  /etc/cups/cupsd.conf     # # Configuration file for the CUPS scheduler. See "man cupsd.conf" for a # complete description of this file. # # Log general information in error_log - change "warn" to "debug" # for troubleshooting... LogLevel warn PageLogFormat # Deactivate CUPS' internal logrotating, as we provide a better one, especially # LogLevel debug2 gets usable now MaxLogSize 0 # Only listen for connections from the local machine. Listen 631 Listen /run/cups/cups.sock # Show shared printers on the local network. Browsing On BrowseLocalProtocols dnssd # Default authentication type, when authentication is required... DefaultAuthType Basic # Web interface setting... WebInterface Yes # Restrict access to the server... ...