References:
From man page: man apt_preferences
References:
From man page: man apt_preferences
This is useful for trying to recover from an unresponsive system. However, by default, Ubuntu disables the key to gain raw keyboard access.\
Sometimes part of the issue is that X/Wayland display servers have crashed due to bad graphics drivers and keyboard input isn't processed anymore, whereby changing to another console, e.g. ctrl + alt + F1
doesn't work. Since the default disables keyboard control, alt + sysrq + r
, can't help salvage the situation. Hence the suggestion to at least enable system request raw keyboard control when trying to recover a system.
Ubuntu 16.04 LTS default value:
Some notes about:
These notes assume some basic background knowledge about memory management, ulimits and cgroups.
The assumed default setting in /etc/systemd/journald.conf
is Storage=auto
which implies that systemd journaling will only persist the journal if the expected storage location is available. Otherwise, the journal data is stored in memory and lost between reboots. On Ubuntu 16.04, /var/log/journal
does not exist by default. Create it to keep and query events from previous boots.
Considerations:
The newer versions of bash (>= 3.0) include a regex operator =~
Simple example
$ re='t(es)t'
$ [[ "test" =~ $re ]]
$ echo $?
0
$ echo ${BASH_REMATCH[1]}
es
Bash history was a convenience feature to help a user recall previous commands and not intended to meet any security requirements.
The Linux audit system (or alternate kernel level audit OS facility) is a more robust way to ensure user and process log events are recorded.
In this example
$'\n'
is the way to specify the newling within the subsitution$ t='1
> 2
Useful for:
.desktop
files to inject env proxy settingsGNOME proxy settings should normally get propergated into the shell (bash) environment via gnome-terminal, e.g. http_proxy
and no_proxy
. However:
.desktop
entries sometimes don't work. This happens when an app ignores org.gnome.proxy settings but can often use proxy env vars from the shell.A quick set of notes looking into Ubuntu mirror locations for South Africa from my home fiber (Vumatel). The examples should apply in general.
There are two phases
When testing performance of package list info downloads via upt-get update
, clear previous package info downloaded. If this isn't done, cached package info could skew results.