Category: Linux

  • getent is a Unix command that helps a user get entries in a number of important text files called databases

    The databases it searches in are: ahosts, ahostsv4, ahostsv6, aliases, ethers (Ethernet addresses), group, gshadow, hosts, netgroup, networks, passwd, protocols, rpc, services, and shadow.

  • Unix, Linux: how to do a proper and secure file transfer in a cronjob

    I got advised to do sftp with an empty passphrase. I got that working. Was pretty straight forward. But is there a better way? With a non-empty passphrase? But how to deal with that passphrase? https://en.wikipedia.org/wiki/ssh-agent https://linuxhandbook.com/transfer-files-ssh/ https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/ my buzzword web search: ssh file transfer best practice I do my ordinary SSH handling with an…

  • Linux: extending the capacity of a filesystem

    https://learning.oreilly.com/library/view/centos-7-linux/9781785887284/ch05s06.html#ch05lvl2sec149 – context: XFS, LVM https://learning.oreilly.com/library/view/linux-powerful-server/9781788293778/ch19s06.html#ch05lvl2sec0151 (by the same authors) In 2022 it looks a little unreasonable to not use LVM but only partitions. Resizing a filesystem on a partition (as opposed to on an LVM volume) should only be done, if / as long as the filesystem is not mounted on that partition. https://linuxconfig.org/how-to-resize-ext4-root-partition-live-without-umount…

  • how to check (scan) for open ports from outside in Linux

    https://linuxize.com/post/check-open-ports-linux/

  • Alpine Linux is a Linux distribution based on BusyBox – it is perfect for containers providing quick boot-up times

    https://en.wikipedia.org/wiki/Alpine_Linux

  • how to set default user for manually installed WSL distro?

    https://superuser.com/questions/1566022/how-to-set-default-user-for-manually-installed-wsl-distro My preferred approach: /etc/wsl.conf inside the distro.

  • how to access a Linux desktop from Windows via RDP

    https://www.makeuseof.com/tag/remote-control-linux-windows/ https://www.makeuseof.com/tag/windows-remote-desktop-connection-custom-configurations/ https://www.ubuntupit.com/how-to-install-and-use-xrdp-server-remote-desktop-on-linux-system/ https://duckduckgo.com/?q=xrdp+session+xvnc+%22login+failed+for+display%22 https://superuser.com/questions/1143359/xrdp-session-login-failed-for-display-0 https://github.com/neutrinolabs/xrdp/issues/1412 https://unix.stackexchange.com/questions/473209/connect-directly-to-xvnc-started-by-xrdp#473275

  • pkgs.org : packages search for Linux and Unix

    https://pkgs.org very useful website!

  • deprecated Linux networking commands and their replacements – net-tools vs iproute2

    https://learning.oreilly.com/library/view/mastering-linux-network/9781784399597/ – Mastering Linux Network Administration (PacktPub) !!!!! https://learning.oreilly.com/library/view/mastering-linux-network/9781784399597/ch02s04.html !!!!! https://learning.oreilly.com/library/view/linux-networking-cookbook/9780596102487/ – O’Reilly https://learning.oreilly.com/library/view/linux-network-administrators/0596005482/ – O’Reilly https://dougvitale.wordpress.com/2011/12/21/deprecated-linux-networking-commands-and-their-replacements/ – great article showing how to do modern Linux networking on the command line https://en.wikipedia.org/wiki/iproute2 – includes a rather compact but useful (mapping) table https://wiki.linuxfoundation.org/networking/iproute2 https://wiki.linuxfoundation.org/networking/iproute2_examples https://lartc.org/howto/ http://www.policyrouting.org/iproute2.doc.html https://www.lisenet.com/2013/finding-open-ports-and-listening-services-on-linux/ https://www.lisenet.com/tag/netstat/ https://linuxize.com/post/check-listening-ports-linux/ – how to check for listening ports…

  • WSL commands and launch configurations

    https://docs.microsoft.com/en-us/windows/wsl/wsl-config