You are not logged in.
Yes, that's right.
Here's mine:
COM =\
components/battery\
components/datetime\
components/load_avgI also cut up the load_avg component so that it only displays the first value (from the last minute) ![]()
Did you remove the unwanted stuff from the components directory and delete the lines relating to them in the Makefile? That reduces the size of the binary considerably.
I've never tried to log in to a government website but it certainly renders well in text browsers.
What features does your package have as default settings?
I cut the guts out of the suckless original, here's my de-commented config.def.h:
const unsigned int interval = 1000;
static const char unknown_str[] = "n/a";
#define MAXLEN 2048
static const struct arg args[] = {
{ load_avg, " %s • ", NULL },
{ battery_perc, "%s", "BAT0" },
{ datetime, "%s", "% • %F • %T" },
};I also removed the unwanted components and associated lines in the Makefile.
The resultant binary is tiny:
-rwxr-xr-x 1 root root 22656 May 12 2019 /usr/bin/slstatusBut the memory usage is about the same as a (dash) shell script:
268.0 KiB + 338.0 KiB = 606.0 KiB status
240.0 KiB + 392.0 KiB = 632.0 KiB slstatus*shrugs*
Any web page that doesn't render reasonably in a terminal-based web browser is fundamentally broken IMO.
The UK government website is tested with elinks and so is perfectly usable in all browsers.
The best way to create .deb packages is with the debmake command.
any good tutorials
Have you seen https://www.debian.org/doc/manuals/debmake-doc/?
I made a package for slstatus a while ago, here's a link to my debian directory tarball: https://download.opensuse.org/repositor … ian.tar.xz
ln -s slstatus.1.gz debian/slstatus/usr/share/man/man1/slstatus.default.1.gz
Was the man page not installed automatically by dh_installman(1)?
EDIT: corrected download link.
Never thought it would have a problem.
The script on GitHub does actually have the backticks, you must have missed them when you copied it.
Head_on_a_Stick wrote:POSIX sh ftw!
Don't quite follow you
The original script used bash but didn't contain anything that actually needed bash. The tests ([[...]]) were the bash version but the /bin/sh (POSIX) test ([...]) works just as well. I always prefer /bin/sh over /bin/bash because it's faster, lighter and less buggy. The Debian developers also prefer /bin/sh for the same reasons and went to quite some effort replacing all of the bash system scripts with /bin/sh versions. Ubuntu also did this: https://wiki.ubuntu.com/DashAsBinSh
elinks or links2
Bloat!
https://pkginfo.devuan.org/cgi-bin/poli … q=edbrowse
Oops, I did it again...
Use https://www.shellcheck.net/ to test scripts. That would have identified the problem along with several other issues.
Better version:
#!/bin/sh
if [ $# -gt 1 ] || [ "$1" != enable ] && [ "$1" != disable ]; then
echo "Usage: $0 <enable|disable>"
exit 1
fi
if [ "$1" = enable ]; then
TOGGLE=$(grep '\*disabled' /proc/acpi/wakeup | cut -d ' ' -f1)
else
TOGGLE=$(grep '\*enabled' /proc/acpi/wakeup | cut -d ' ' -f1)
fi
for DEV in $TOGGLE ; do
echo "$DEV"
echo "$DEV" > /proc/acpi/wakeup
donePOSIX sh ftw!
It can be simplified further if all you want to do is disable everything:
#!/bin/sh
dev=$(awk '/*enabled/{print $1}' /proc/acpi/wakeup)
for i in $dev ; do
echo "$i" > /proc/acpi/wakeup
done^ Shouldn't /tmp be mounted in RAM?
$ findmnt /tmp
TARGET SOURCE FSTYPE OPTIONS
/tmp tmpfs tmpfs rw,nosuid,nodev,size=8048848k,nr_inodes=409600,inode64
$I know systemd does that by default, not sure about sysvinit.
Well the systemd unit files supplied by the upstream developers load the module at boot (ie, before the DE starts) so I presume that is the expected behaviour.
When does that file get read, though? I was talking about being able to change the settings for a running instance of urxvt on the fly in a hassle-free way.
The file is read on startup. Urxvt doesn't do "on the fly" changes (AFAIK).
Throwing the “command line and plain text” paradigm at everything is indeed an anti-pattern and doesn't really have anything to do with minimalism per se.
I was just stating my preference, that's all.
At the risk of treading on fsmithred's toes (sorry):
I commented out my regular repos and only used the two that were posted above
You should probably post the actual content of the file(s) rather than a vague description.
Can you please give me the command for searching "experimental" ?
aptitude search '?narrow(?archive(experimental), mesa)'I've never fully understood the apt pinning, can you provide a comprehensive tutorial link?
You don't need to pin experimental packages (unless you want them to be updated from that repository) because experimental has a default pin value of 1 (one).
For a guide see https://www.debian.org/doc/manuals/debi … al_literal and read apt_preferences(5).
Which functionality will not work?
My suggested configuration files load the module and apply the sysctl setting at boot so they do exactly what your suggested script does.
What was the actual command you used? There are several packages that provide Mesa.
the mental overhead and frustration involved in editing ~/.Xresources and then reloading the settings manually
Urxvt will read ~/.Xdefaults automatically (if no X resources are already set) with no need to reload with xrdb.
GUIs are horrible — why would I want to waste my life scrolling through endless reels of menu options when I can just edit a file directly in a fraction of the time?
Whonix has a DKMS .deb package for LKRG:
https://www.whonix.org/wiki/Linux_Kerne … ource_Code
Their current version is 0.8.1 but the git repository has a debian/watch file so it can be updated with uscan.
The .deb only supplies the systemd unit files but the same effect can be achieved by adding this line to /etc/modules (or in it's own file under /etc/modules-load.d/):
p_lkrgAnd also add this line to /etc/sysctl.conf (or in it's own file under /etc/sysctl.conf.d/):
lkrg.clean_message = 0No need for lkrg.sh or any additions to /etc/sudoers ![]()
ash is superseded by Dash in Debian since DebianSarge
You can still use ash in De??an:
# apt install busybox
# ln -s /bin/busybox /bin/ash
# echo '/bin/ash' >> /etc/shellsAlpine Linux uses busybox's ash as their default shell and it's very nice.
EDIT: actually I think that's the same as dash: https://www.in-ulm.de/~mascheck/various/ash/#busybox
Hello:
Head_on_a_Stick wrote:... but X is now abandonware ...
Hmm ...
Maybe it's too soon to sign the certificate?
The maintainer of the X codebase described it as such himself: https://ajaxnwnk.blogspot.com/2020/10/o … erver.html
With respect to the matter of X, if Red Hat, IBM et al are attempting to sink it, don't count me in.
I have faith in the resilience of the Linux ecosystem albeit not in its constituents.
X has been maintained by Red Hat almost exclusively because nobody else has bothered. Now they can't be bothered either. It's not a case of "trying to sink it", much as the conspiracy theorists would like to convince themselves otherwise.
But this is all off-topic for this thread so we should probably continue any discussion in your other thread.
Robert Johnson — The Complete Collection 1937
The sound quality is awful but the music is sublime.
whether it is a red herring
Probably. See https://www.phoronix.com/scan.php?page= … ble-Atomic
There are fixes for the atomic modesetting glitches but X is now abandonware so they are unlikely to ever be applied.
EDIT: is there anything printed in the X.Org log when you experience the problem?
Does removing the xserver-xorg-video-intel package help? The Intel DDX driver is reportedly pretty buggy, Debian recommend using X's builtin modesetting driver instead.
Or just use an X.Org configuration file to test the modesetting driver: http://dev1galaxy.org/viewtopic.php?pid=28863#p28863
everything is apparently unconfined, so what does it actually do? Am I missing some configuration file/s?
The default configuration supplies a mandatory access control framework to confine some but not all programs. This confinement prevents compromised software from altering your system even if it has root privileges. It is actually very useful, which is why it is enabled by default. There are extra profiles available if you want to extend the protection and you can also write your own profiles to specify the exact level of confinement.
See also https://wiki.debian.org/AppArmor/HowToUse & https://debian-handbook.info/browse/sta … armor.html
What label/name, format, size and code (ef??) is required for this _special_ bootloader partition, inorder for minimal-liveCD installation to boot kernel?
For gparted (or parted) the bios_grub flag should be applied. For gdisk use the ef02 code. Do not apply a filesystem to the BIOS boot partition.
Yes, I think so.
But I would just use the size option described in logrotate(8) to control how big the files get before being rotated.
EDIT: and I would delete ~/.xsession-errors at the start of every X session because there doesn't seem much point keeping error logs from old sessions.
To wit:
echo 'rm ~/.xsession-errors' >> ~/.xsessionrcSee also https://wiki.debian.org/Xsession