← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 55
  1. So, not everywhere.

  2. This is a short one, for me own notes.

  3. In an earlier post I was using existing floppy disk images with qemu and 86box.

  4. Install the createrepo_c tool if it is not already installed. sudo dnf install createrepo_c Create a directory for the repo and copy the packages sudo mkdir /srv/repos/local Create the repository metadata sudo createrepo_c /srv/repos/local Create a repo

  5. Push Emtpy Git Commit

    Sometimes I need to push an emtpy commit just to trigger a pipeline. # git commit --allow-empty -S -s -m 'chore: trigger pipeline'

  6. This is probably wrong, but it's what I did to fix not being able to run GOG Games on Fedora. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/jdm/.local/share/Steam/ubuntu12_32/steam-runtime/lib/x86_64-linux-gnu/ If it works for you to, that's great!

  7. I often find myself commit changes to main that I should of put in a different branch.

  8. I recently moved my Plex Media Server from a Docker container to installed directly on a server.

  9. Working with cURL you can get lots of useful and detailed information.

  10. Remove all comments from a Bash script :g/^\#/d Remove all blank lines :g/^$/d

  11. Using grep with tail

    Sometimes I want to tail a file but only print certian things. $ tail -f /var/log/messages | grep --line-buffered 'important-message'

  12. End an active telnet session with CTRL+] and then quit.

  13. Use the QEMU monitor by entering CTRL+ALT+2.

  14. When EscapeChar has not been disabled, and EnableEscapeCommandline is enabled it's possible to use the SSH command line to enabled Port Forwarding in an already active SSH session.

  15. Installing Webmin on AlmaLinux is fairly straightforward.

  16. Quick way to determine what model of Raspberry Pi you have from the command line. cat /sys/firmware/devicetree/base/model Raspberry Pi 4 Model B Rev 1.5sysop@pi5:~$

  17. When you have entered a service-module session, for example connecting to NM-16ES-1G-P switch module, and you would like to disconnect and return back to the host router you need to press Ctrl+Shift+6, then X.

  18. With systemd, it is easy to configure a service to automatically restart when it's crashed.

  19. When using cloud-images from various distrobutions, sometimes the qemu-guest-agent isn't installed.

  20. Useful OpenSSL Tips

    Examine a single certificate Examine a file that contains multiple certificates Verify a certificate is valid using a specific root.

  21. If you have a private SSH key but need to regenerate the public key again, use ssh-keygen with -y.

  22. netboot.xyz lets you PXE boot various operating system installers or utilities from a single tool over the network. — netboot.xyz Enable TFPT service on Synology DSM Control Panel > File Services > Advanced Check "Enable TFTP service" Select TFPT root fol…

  23. After many months of using Synology Storage Analyzer to create automatic reports recently these have been failing with the error Storage Analyzer: A data write error occurred while generating the usage report.

  24. Both grep and cat can include line numbers.

  25. Add an override. sudo systemctl edit systemd-resolved [Service] Environment=SYSTEMD_LOG_LEVEL=debug Make changes active. sudo systemctl restart systemd-resolved View logs. journalctl -u systemd-resolved -f And when you're done, undo all these changes. su…

  26. This is a work in progress.

  27. I use healthchecks.io to monitor several cronjobs and this works great.

  28. Kill a hung SSH session

    End a hung ssh sessions with ~ + ..

  29. Octoprint Plugins

    Just a list of the 3rd party plugins I have installed in Octoprint.

  30. View Markdown from Terminal

    You can view markdown files using any file viewer.

  31. There are times when your home directory might not be available.

  32. Yum keeps a local cache.

  33. Check SSH Key Fingerprints

    Show the fingerprint of an SSH key $ ssh-keygen -l -f ~/.ssh/id_rsa The default hashing is sha256, however it might be more useful to see the fingerprint in md5. $ ssh-keygen -l -f ~/.ssh/id_rsa Less useful, but sometimes fun, is showing the randomart a…

  34. Force chrony to update time

    $ chronyc -a 'burst 4/10' $ sleep 5 $ chronyc -a makestep References chrony - chronyc(1)

  35. virt-customize can be used to customize a virtual machine image by installing packages, editing configuration files, and so on.

  36. Prepare the clone Use the virt-sysprep command to reset a virtual machine.

  37. Configuring libvirt First libvirt needs to be configured.

  38. Clear systemd journal

    If the journal is configured to archive entires these can take up unnecessary disk space when not properly maintained.

  39. How to reset an unknown root password using rd.break on RHEL 7.

  40. Using screen you can connect to any serial device in /dev.

  41. Discover IPv6 Neighbors

    Ping nodes on the local network segment using multicast1 ping6 -c2 -I <interface> ff02::1 Then, view IPv6 neighbors ip -f inet6 neigh References https://en.wikipedia.org/wiki/Multicast_address ↩

  42. Renew Expired GPG Keys

    To renew an expiring, or extend the expiration of a gpg key edit the key and set a new expiration date. gpg --edit-key <keyid> command> list command> key [keyid] command> expire command> save Where keyid above is the key that is expiring.

  43. Set time with NTPd

    Use ntpd -gc to start the NTP daemon and set the time regardless of what the offset between the local and remote clock is.

  44. Modify iptables rules

    Show all iptables rules and include line numbers iptables -L INPUT --line-numbers Replace iptables rule at a specific line number iptables -R X INPUT <new rule here>

  45. Grow LVM physical volume

    The pvresize command can be used to grow an existing physical volume so long as you grow the parition on the underlying device.

  46. Using ssmtp with FastMail

    # a config file for sSMTP sendmail

  47. These are my notes on getting caff configured and working in order to send signed keys after the OhioLinuxFest keysigning.

  48. Packages and Services On RHEL7Server the OpenIPMI and ipmitool are necessary to configure and use IPMI. $ yum install OpenIMPI ipmitool Networking Configure a static ip address on the first port.

  49. After failing to update the initrd after making changes to the plymouth boot I was unable to boot into the kernel.

  50. Two changes are needed to have dovecot update lastlog when a user logins with either imap or pop3.