Klunky Blog

Klunky Blog

  • Blog
  • Email
  • Feed
  • Log in

Pages

  • MacOS Finder - Make it show all of the files in the directory

Recent Posts

  • MacOS Finder - Make it show...
  • Previously, Logrotate was...
  • Pyramid Technology series...
  • Fighting typeset -r shell...
  • The Apt and I, disagree

Archive

  • December 2024
  • January 2024
  • November 2023
  • October 2023
  • September 2019
  • October 2016
  • March 2015
  • November 2014
  • June 2014
  • November 2013
  • May 2013
  • June 2012
Archive of 2024

November 2023

  • Pyramid...

    Copied from https://archive.computerhistory.org/resources/access/text/2015/07/102664506-05-01-acc.pdf

    Permanent link to “Pyramid Technology series 9000-9810 marketing brochure”
  • Fighting typeset...

    When somebody's policy makes varibles readonly, such as HISTFILE, with this in a /etc/profile.d/* file: typeset -r HISTFILE Lets us modify readonly the environment varibles. This works only if we have gdb installed. Done on RHEL7.9 export HISTFILE=abd -bash: HISTFILE: readonly variable $ echo $HISTFILE mailto:/home/myuser@AD-domain/.history/20231107.155621 $ gdb -ex 'call unbind_variable("HISTFILE")' --pid=$$ --batch 0x00007f7ec902d46c in waitpid () from /lib64/libc.so.6 $1 = 0 [Inferior 1 (process 35393) detached] $ HISTFILE=.bash_history $ touch .bash_history $ ls $ cat .bash_history HISTFILE=.bash_history touch .bash_history ls $ If gdb is available, then stick this into your .bashrc: [ -f /usr/bin/gdb ] && /usr/bin/gdb -ex 'call unbind_variable("HISTFILE")' --pid=$$ --batch' >/dev/null 2>&1 And now we can set up our history with something sensible ( at least sensible for me). export HISTFILESIZE= export HISTSIZE= unset HISTTIMEFORMAT export...

    Permanent link to “Fighting typeset -r shell environment variables with GDB”

October 2023

  • The Apt and I,...

    Thanks APT. Let's stop right there shall we, because I need fdisk (/sbin/fdisk /sbin/cfdisk /sbin/sfdisk) amoung other programme. Face-Palm. # apt-get autoremove --purge Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: bsdmainutils* cpp-8* fdisk* g++-10* geoip-database* glib-networking* glib-networking-common* glib-networking-services* ... ^c #

    Permanent link to “The Apt and I, disagree”
Archive of 2019
  • Blog
  • MacOS Finder - Make it show all of the files in the directory
  • Email
  • Feed
  • Archive
  • Log in
  • Menu