Original article
dpkg -l | awk '/^rc/{ print $2}' | sudo xargs dpkg --purge
Saturday, 24 September 2011
Monday, 12 September 2011
Disable ~/.xsession-errors in (K)Ubuntu
Sick of having ~/.xsession-errors filling your disk? Want a 'clean' way to disable XSession logging? I Came across this mailing list entry. There's a slight change required to use this under Kubuntu in that Xsession.d is located in /etc/X11 not /etc/. I simply created a file called /etc/X11/Xsession.d/05-noerrfile containing:
# This is a -*- shell-script -*- fragment called by /etc/X11/Xsession # Redirect all errors to /dev/null instead of $ERRFILE # (~/.xsession-errors by default), to avoid filling up users home # directory with error messages. Allow the user to disable this by # creating ~/.xsession-errors-enable if [ ! -f "$HOME/.xsession-errors-enable" ] ; then # Report the change to the log file before switching echo "info: Redirecting xsession messages to /dev/null." echo "info: touch '$HOME/.xsession-errors-enable' to disable this." exec >> /dev/null 2>&1 fi
Subscribe to:
Posts (Atom)