You are not logged in.
That if you have have a fontconfig file in ~/.config/fontconfig/fonts.conf the setting for monospace family fonts will set the line inside ~/.Xresources
*vt100.faceName: Mono:style=Regular:size=12
to the font font specified in the the fonts.conf file.
I think this is only xterm behaviour though, possibly urxvt but i dont use it.
fontconfig...
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
<edit mode="assign" name="autohint" >
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle" >
<const>hintslight</const>
</edit>
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>PT Mono</family>
</prefer>
</alias>
</fontconfig>
what did you learn today in the unix world?
Last edited by dice (2021-06-07 14:31:19)
Offline
I learned that if I wanted to trim the front matter and end matter off of a text file so I could insert the text into an Atom feed entry's <content> tag, I could use head and tail like so:
tail -n +5 $filename | head -n -5
Much easier than using sed.
"Out of order? [BLEEP!] Even in the future nothing works."
desktop: refurbished ThinkCentre M92p (i7, 32GB RAM, 1TB SSD, 2TB HDD)
laptop: refurbished Thinkpad T60 (Core 2 Duo, 3GB RAM, 1TB SSD)
gemini capsule: starbreaker.org
Offline
I learned that if I wanted to trim the front matter and end matter off of a text file so I could insert the text into an Atom feed entry's <content> tag, I could use head and tail like so:
tail -n +5 $filename | head -n -5
Much easier than using sed.
that looks useful, do you use this in a script?
Last edited by dice (2021-06-07 14:46:35)
Offline
that looks useful, do you use this in a script?
As a matter of fact, I do.
#!/usr/bin/env bash
# atomgen: Atom feed generator for textblogs
# © 2021 Matthew Graybosch <contact@matthewgraybosch.com>
# available under GPLv3
# based on code by Len Falken
# http://len.falken.ink/misc/writing-for-the-internet-across-a-human-lifetime.txt
SETTINGS=${1}
FLAG=${2}
# $FLAG should be --full for a full text feed
# read settings file
. ${SETTINGS}
# find posts for processing
POSTS=$(
find . -name '*.txt' | \
grep -v .git | \
xargs ls -Stl --time-style=long-iso | \
awk '{ print $8 }' | \
sed 's/.\/public\///')
# begin atom feed
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<feed xmlns=\"http://www.w3.org/2005/Atom\">
<title>${TITLE}</title>
<subtitle>${DESCRIPTION}</subtitle>
<id>${DOMAIN}feed.xml</id>
<link href=\"${DOMAIN}feed.xml\" rel=\"self\"/>
<icon>${DOMAIN}icon.png</icon>
<updated>$(atomdate)</updated>
<rights>© $(date '+%Y') $AUTHOR, $LICENSE</rights>
<generator>atomgen</generator>
<author>
<name>${AUTHOR}</name>
<email>${EMAIL}</email>
<uri>${DOMAIN}about.txt</uri>
</author>";
#generate entries
echo "$POSTS" | while read -r FILE; do
POST_DATE=$(tail -n 1 ${PUBLIC_DIR}${FILE} | cut -d' ' -f 2);
POST_TITLE=$(head -n 1 ${PUBLIC_DIR}${FILE});
POST_SUMMARY=$(head -n 2 ${PUBLIC_DIR}${FILE} | tail -n 1);
POST_CATEGORY=$(echo ${POST_TITLE} | cut -d' ' -f 1 | sed -e 's/\[//' -e 's/\]//' | tr '[:upper:]' '[:lower:]')
echo " <entry>
<title>${POST_TITLE}</title>
<id>${DOMAIN}${FILE}</id>
<link href=\"${DOMAIN}${FILE}\"/>
<category term=\"$POST_CATEGORY\"/>
<summary>${POST_SUMMARY}</summary>
<author>
<name>${AUTHOR}</name>
<email>${EMAIL}</email>
<uri>${DOMAIN}about.txt</uri>
</author>
<updated>${POST_DATE}</updated>";
# pull content for full-text feeds
if [ "$FLAG" = "--full" ]; then
POST_CONTENT=$(tail -n +5 ${PUBLIC_DIR}${FILE} | head -n -5)
echo " <content type='text'>
$POST_CONTENT
</content>";
fi
echo " </entry>";
done
echo "</feed>";
"Out of order? [BLEEP!] Even in the future nothing works."
desktop: refurbished ThinkCentre M92p (i7, 32GB RAM, 1TB SSD, 2TB HDD)
laptop: refurbished Thinkpad T60 (Core 2 Duo, 3GB RAM, 1TB SSD)
gemini capsule: starbreaker.org
Offline
Also, I just learned about using heredocs in bash scripts.
"Out of order? [BLEEP!] Even in the future nothing works."
desktop: refurbished ThinkCentre M92p (i7, 32GB RAM, 1TB SSD, 2TB HDD)
laptop: refurbished Thinkpad T60 (Core 2 Duo, 3GB RAM, 1TB SSD)
gemini capsule: starbreaker.org
Offline
what did you learn today in the unix world?
I learned to understand about 1/4 of what you learned today.
ComputerBob - Making Geek-Speak Chic (TM)
ComputerBob.com - Nearly 6,000 Posts and 22 Million Views since 1998
My Massive Stroke
Help! (off-topic)
Offline
Also, I just learned about using heredocs in bash scripts.
Yep they good to use for relaying info inside the script itself. You can use also EOM (end of message) or EOF with heredocs, you can also use PURPLEMONSTERS if you like
Offline
dice wrote:what did you learn today in the unix world?
I learned to understand about 1/4 of what you learned today.
Hey glad you did, its bare bones type of stuff, that most dont even care about as the desktop environments handle all this.
Offline
So today i learned you can install the window manager EXWM from inside emacs.
not very well documented on debian, but archlinux has a nice wiki on it.
Offline
ComputerBob wrote:dice wrote:what did you learn today in the unix world?
I learned to understand about 1/4 of what you learned today.
Hey glad you did, its bare bones type of stuff, that most dont even care about as the desktop environments handle all this.
Yup -- I thank God for desktop environments (Xfce here, for many years).
ComputerBob - Making Geek-Speak Chic (TM)
ComputerBob.com - Nearly 6,000 Posts and 22 Million Views since 1998
My Massive Stroke
Help! (off-topic)
Offline
Today i learned about this very cool link.
Steve's Old Computer Museum!
Early personal computers were nothing like present day computers - they had personality!
Each was different and more exciting than the previous, with new features and capabilities.
old computer This website is dedicated to the preservation and display of these vintage computer systems.
To the left you can "click" and explore old computers from the dawn of time!
For fun, view 150 old computers all at the same time to appreciate how diverse and interesting they are
Offline
Disappointingly, no Flytech Carry1 twin 3.5" floppy, my first computer.
Offline
Today i learned about this very cool link.
Steve's Old Computer Museum!
Early personal computers were nothing like present day computers - they had personality!
Each was different and more exciting than the previous, with new features and capabilities.
old computer This website is dedicated to the preservation and display of these vintage computer systems.
To the left you can "click" and explore old computers from the dawn of time!
For fun, view 150 old computers all at the same time to appreciate how diverse and interesting they are
Bet you guys didn't know before now that my Commodore 64 was the highest selling computer system ever. I wonder how many of those original 17 million systems are now running Beowulf like mine? Must be at least 5 million machines, I'm thinking.
Offline
dice wrote:Today i learned about this very cool link.
Steve's Old Computer Museum!
Early personal computers were nothing like present day computers - they had personality!
Each was different and more exciting than the previous, with new features and capabilities.
old computer This website is dedicated to the preservation and display of these vintage computer systems.
To the left you can "click" and explore old computers from the dawn of time!
For fun, view 150 old computers all at the same time to appreciate how diverse and interesting they areBet you guys didn't know before now that my Commodore 64 was the highest selling computer system ever. I wonder how many of those original 17 million systems are now running Beowulf like mine? Must be at least 5 million machines, I'm thinking.
I would say given humankind's lack of intelligence, its probably more like less than a million...
lol... sorry, but I think your overestimating people's intelligence here... ;p
Not to be a downer, but the world is way too corporate for even a million probably.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Offline
dice wrote:Today i learned about this very cool link.
Steve's Old Computer Museum!
Early personal computers were nothing like present day computers - they had personality!
Each was different and more exciting than the previous, with new features and capabilities.
old computer This website is dedicated to the preservation and display of these vintage computer systems.
To the left you can "click" and explore old computers from the dawn of time!
For fun, view 150 old computers all at the same time to appreciate how diverse and interesting they areBet you guys didn't know before now that my Commodore 64 was the highest selling computer system ever. I wonder how many of those original 17 million systems are now running Beowulf like mine? Must be at least 5 million machines, I'm thinking.
Did not know that, always thought it would be an apple?
Closest i even came to a computer from that era was an old atari 2600 console playing pong and space invader lol.
Offline
@andyprough:
How do you run linux on a computer with only 64k RAM???
Offline
Today i learned about this very cool link.
Steve's Old Computer Museum!
Early personal computers were nothing like present day computers - they had personality!
Each was different and more exciting than the previous, with new features and capabilities.
old computer This website is dedicated to the preservation and display of these vintage computer systems.
To the left you can "click" and explore old computers from the dawn of time!
For fun, view 150 old computers all at the same time to appreciate how diverse and interesting they are
Well, here is some Devuan trivia that's not so trivial. The Devuan Board of Trustees has 3 members who are involved with computer preservation!
Gabriele “Asbesto” Zaverio (MusIF) :: director, “Museo dell’Informatica Funzionante” computer museum
Emiliano Russo (MIAI) :: director, “Museo Interattivo di Archeologia Informatica” computer museum
Stefania Calcagno (ESOCOP) :: president, European Society for Computer Preservation
You can find that info on our website at https://www.devuan.org/os/team
Online
@andyprough:
How do you run linux on a computer with only 64k RAM???
Good question, i was thinking the same. Perhaps the 64 has some mods? I highly doubt a computer from 1982 would be able to run devuan beowulf, but i would be happy to be proven wrong.
Offline
dice wrote:Today i learned about this very cool link.
Steve's Old Computer Museum!
Early personal computers were nothing like present day computers - they had personality!
Each was different and more exciting than the previous, with new features and capabilities.
old computer This website is dedicated to the preservation and display of these vintage computer systems.
To the left you can "click" and explore old computers from the dawn of time!
For fun, view 150 old computers all at the same time to appreciate how diverse and interesting they areWell, here is some Devuan trivia that's not so trivial. The Devuan Board of Trustees has 3 members who are involved with computer preservation!
Gabriele “Asbesto” Zaverio (MusIF) :: director, “Museo dell’Informatica Funzionante” computer museum
Emiliano Russo (MIAI) :: director, “Museo Interattivo di Archeologia Informatica” computer museum
Stefania Calcagno (ESOCOP) :: president, European Society for Computer Preservation
You can find that info on our website at https://www.devuan.org/os/team
Thanks for sharing, i particularly liike the ESoCop link, good works.
Offline
fsmithred wrote:@andyprough:
How do you run linux on a computer with only 64k RAM???
Good question, i was thinking the same. Perhaps the 64 has some mods? I highly doubt a computer from 1982 would be able to run devuan beowulf, but i would be happy to be proven wrong.
Wait 64mb of ram? you say? That seems a bit unlikely, I mean I could understand 32mb... and maybe jwm if its 32 bit and be using something like console-tdm to start it, if you turn off certain services... *cough* dbus *cough*
Even then, 32mb seems like a stretch, but yeah, 64K sounds insanely low to be able to run devuan...
You'd have a better chance of using OpenBSD for something that small...
Just sayin...
I would also love to be proven wrong...
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Offline
dice wrote:fsmithred wrote:@andyprough:
How do you run linux on a computer with only 64k RAM???
Good question, i was thinking the same. Perhaps the 64 has some mods? I highly doubt a computer from 1982 would be able to run devuan beowulf, but i would be happy to be proven wrong.
Wait 64mb of ram? you say? That seems a bit unlikely, I mean I could understand 32mb... and maybe jwm if its 32 bit and be using something like console-tdm to start it, if you turn off certain services... *cough* dbus *cough*
Even then, 32mb seems like a stretch, but yeah, 64K sounds insanely low to be able to run devuan...
You'd have a better chance of using OpenBSD for something that small...
Just sayin...
I would also love to be proven wrong...
Not just the 64K of RAM, either. When was the kernel ported to 8-bit 6502 (or 6509 - whatever variant they used)? Never.
Offline
Not just the 64K of RAM, either. When was the kernel ported to 8-bit 6502 (or 6509 - whatever variant they used)? Never.
No, it wasn't ported, and I'm not really running Beowulf on one, but a unix-like kernel was written in 6502 assembly by the LUnix (Little Unix) project folks between 1993 and 2004. The LUnix home page is still up for anyone wanting to download LUnix and take it for a spin on their favorite Commodore 64 rig: http://lng.sourceforge.net/
Offline
sgage wrote:Not just the 64K of RAM, either. When was the kernel ported to 8-bit 6502 (or 6509 - whatever variant they used)? Never.
No, it wasn't ported, and I'm not really running Beowulf on one, but a unix-like kernel was written in 6502 assembly by the LUnix (Little Unix) project folks between 1993 and 2004. The LUnix home page is still up for anyone wanting to download LUnix and take it for a spin on their favorite Commodore 64 rig: http://lng.sourceforge.net/
Wow, that's pretty cool! I was pretty good at 6502 assembly language back in the late 70's/early 80's - strange days! My first computer was a Commodore PET/CBM. It's amazing what you can do in assembly!
Offline
zapper wrote:dice wrote:Good question, i was thinking the same. Perhaps the 64 has some mods? I highly doubt a computer from 1982 would be able to run devuan beowulf, but i would be happy to be proven wrong.
Wait 64mb of ram? you say? That seems a bit unlikely, I mean I could understand 32mb... and maybe jwm if its 32 bit and be using something like console-tdm to start it, if you turn off certain services... *cough* dbus *cough*
Even then, 32mb seems like a stretch, but yeah, 64K sounds insanely low to be able to run devuan...
You'd have a better chance of using OpenBSD for something that small...
Just sayin...
I would also love to be proven wrong...
Not just the 64K of RAM, either. When was the kernel ported to 8-bit 6502 (or 6509 - whatever variant they used)? Never.
Ah, lots of problems then! Well, I wonder though, if any BSD's support 8 bit still...
OpenBSD supposedly could, but it probably has very slow support I imagine...
If it does at all.
Looks like it doesn't at the moment...
https://www.openbsd.org/plat.html
Although it does support this:
luna88k
Dunno about NetBSD though. That might lol.
Yep it does:
https://wiki.netbsd.org/ports/amiga/
Last edited by zapper (2021-06-22 12:21:35)
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Offline
Today I Learned: that if I follow the simple instructions on the webpages that come with the distro (Beowulf 3.1.1)
I can tether my iphone to usb and have the internet working rather that wait for wicd to start asking questions
and then waiting some more. (on my laptop (Toshiba r552j))
Thank you for the well documented web pages that are included with the (unpacked) .iso
pic from 1993, new guitar day.
Offline