Category: Linux

  • getent – “get entries from administrative database”

    https://en.wikipedia.org/wiki/Getent https://manpages.debian.org/unstable/manpages/getent.1.en.html The getent command displays entries from databases supported by the Name Service Switch libraries, which are configured in /etc/nsswitch.conf. If one or more key arguments are provided, then only the entries that match the supplied keys will be displayed. Otherwise, if no key is provided, all entries will be displayed (unless the database does not support enumeration). My DS713+ (Intel…

  • comparing /proc/12345/cmdline on Linux — “diff –text” vs “diff –brief –text” vs “cmp –silent”

    https://en.wikipedia.org/wiki/Procfs#Linux A cmdline “file” contains NUL characters, so “diff” needs to be used with “–text” otherwise it will fail anyway. I chose process ID 12345 deliberately, it is just a placeholder. $ cp /proc/12345/cmdline $HOME/cmdline $ ll /proc/12345/cmdline ~/cmdline -r–r–r– 1 root root 0 2018-06-12 09:22:50 /proc/12345/cmdline -r–r–r– 1 user users 45 2018-06-12 09:48:19 /homes/user/cmdline #…

  • dpk-query: why are certain packages being shown as “un … (no description available)”?

    Solution: Some other package depends on this package, but only optionally resp. as an alternative; of the alternatives … one is indeed installed, but not this one, but still this is gets listed. This is how the package first showed up: $ dpkg-query –list foo… Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/… |/ Err?=(none)/… ||/ Name Version Architecture Description…

  • “Oracle Instant Client” for Linux x86-64 (RPM) – why not “*.so.X.2”?

    Why is this: 10.2.0.5 (why not “.so.10.2“?): ./usr/lib/oracle/10.2.0.5/client64/lib/libocci.so.10.1 ./usr/lib/oracle/10.2.0.5/client64/lib/libclntsh.so.10.1 ./usr/lib/oracle/10.2.0.5/client64/lib/libclntsh.so -> libclntsh.so.10.1 ./usr/lib/oracle/10.2.0.5/client64/lib/libocci.so -> libocci.so.10.1 ./usr/lib/oracle/10.2.0.5/client/lib/libsqora.so.10.1 11.2.0.2.0 (why not “.so.11.2“?): ./usr/lib/oracle/11.2/client64/lib/libocci.so.11.1 ./usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1 ./usr/lib/oracle/11.2/client64/lib/libclntsh.so -> libclntsh.so.11.1 ./usr/lib/oracle/11.2/client64/lib/libocci.so -> libocci.so.11.1 ./usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1 11.2.0.4.0 (why not “.so.11.2“?): ./usr/lib/oracle/11.2/client64/lib/libocci.so.11.1 ./usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1 ./usr/lib/oracle/11.2/client64/lib/libclntsh.so -> libclntsh.so.11.1 ./usr/lib/oracle/11.2/client64/lib/libocci.so -> libocci.so.11.1 ./usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1 12.2.0.1.0 (why not “.so.12.2“?): ./usr/lib/oracle/12.2/client64/lib/libocci.so.12.1 ./usr/lib/oracle/12.2/client64/lib/libclntshcore.so.12.1 ./usr/lib/oracle/12.2/client64/lib/libclntsh.so.12.1 ./usr/lib/oracle/12.2/client64/lib/libclntshcore.so -> libclntshcore.so.12.1 ./usr/lib/oracle/12.2/client64/lib/libclntsh.so -> libclntsh.so.12.1…

  • Debian: network install from a minimal CD

    https://www.debian.org/CD/netinst/ https://www.debian.org/doc/manuals/debian-faq/ch-choosing.en.html#s3.1.11 – “I am currently tracking stable. Can I change to testing or unstable? If so, how?“

  • “Oracle Instant Client” vs Debian (resp. Ubuntu)

    http://www.oracle.com/technetwork/database/database-technologies/instant-client/ http://www.oracle.com/technetwork/database/database-technologies/instant-client/overview/ http://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/ Of course “Oracle Instant Client” is closed source, does not comply with Debian rules, and cannot / may not be distributed through Debian channels. Oracle supplies RPM files for “Linux x86-64” but no “.deb” files. And presumably both Oracle and also the “Debian Project” disallow redistribution of “Oracle Instant Client” components as Debian…

  • how to create a Debian package from an RPM package? “rpm2deb”

    I moved the content to a wiki article, so this article is a little obsolete. https://en.wikipedia.org/wiki/Rpm_(software) https://en.wikipedia.org/wiki/Alien_(software) https://www.howtoforge.com/converting_rpm_to_deb_with_alien : alien -k … https://salsa.debian.org/perl-team/modules/packages/libdbd-oracle-perl/blob/master/debian/README Open questions: how to deal with dependencies specified within the RPM package? …

  • unsuccessful installation of DSM 6.1.6-15266 on my Synololgy DiskStation DS713+

    https://www.synology.com/en-uk/releaseNote/DS713+ I do not succeed installing DSM 6.1.6-15266 on my DS713+: Unknown error occurs (21). This has happened repeatedly since Thursday/Friday midnight. Update: rebooted, re-downloaded the update, update succeeded.

  • using “sudoedit” on Linux

    https://stackoverflow.com/questions/22084422/what-is-the-difference-between-sudoedit-and-sudo-vim#22084506 http://www.wingtiplabs.com/blog/posts/2013/03/13/sudoedit/ This protects /etc/crontab against concurrent editing and corruption: $ sudoedit /etc/crontab