The officially official Devuan Forum!

You are not logged in.

#1 2021-06-07 14:30:42

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Today I Learned

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

#2 2021-06-07 14:38:27

starbreaker
Member
From: United States
Registered: 2021-06-03
Posts: 23  
Website

Re: Today I Learned

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. smile


"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

#3 2021-06-07 14:46:18

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Today I Learned

starbreaker wrote:

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. smile

that looks useful, do you use this in a script?

Last edited by dice (2021-06-07 14:46:35)

Offline

#4 2021-06-07 15:00:17

starbreaker
Member
From: United States
Registered: 2021-06-03
Posts: 23  
Website

Re: Today I Learned

dice wrote:

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

#5 2021-06-07 20:22:12

starbreaker
Member
From: United States
Registered: 2021-06-03
Posts: 23  
Website

Re: Today I Learned

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

#6 2021-06-07 23:06:23

ComputerBob
Member
From: The Sunshine State
Registered: 2018-10-11
Posts: 83  
Website

Re: Today I Learned

dice wrote:

what did you learn today in the unix world?

I learned to understand about 1/4 of what you learned today.  wink


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

#7 2021-06-08 13:27:52

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Today I Learned

starbreaker wrote:

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 wink

Offline

#8 2021-06-08 13:29:27

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Today I Learned

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.  wink

Hey glad you did, its bare bones type of stuff, that most dont even care about as the desktop environments handle all this.

Offline

#9 2021-06-08 13:41:06

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Today I Learned

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.

https://wiki.archlinux.org/title/EXWM

Offline

#10 2021-06-08 13:55:50

ComputerBob
Member
From: The Sunshine State
Registered: 2018-10-11
Posts: 83  
Website

Re: Today I Learned

dice wrote:
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.  wink

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).  wink


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

#11 2021-06-20 15:48:28

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Today I Learned

Today i learned about this very cool link.

https://oldcomputers.net/

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

#12 2021-06-20 16:17:19

Camtaf
Member
Registered: 2019-11-19
Posts: 436  

Re: Today I Learned

Disappointingly, no Flytech Carry1 twin 3.5" floppy, my first computer. sad

Offline

#13 2021-06-20 19:35:13

andyprough
Member
Registered: 2019-10-19
Posts: 327  

Re: Today I Learned

dice wrote:

Today i learned about this very cool link.

https://oldcomputers.net/

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. big_smile

Offline

#14 2021-06-21 11:51:40

zapper
Member
Registered: 2017-05-29
Posts: 967  

Re: Today I Learned

andyprough wrote:
dice wrote:

Today i learned about this very cool link.

https://oldcomputers.net/

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. big_smile

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. sad


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

#15 2021-06-21 12:31:37

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Today I Learned

andyprough wrote:
dice wrote:

Today i learned about this very cool link.

https://oldcomputers.net/

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. big_smile

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

#16 2021-06-21 15:06:05

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: Today I Learned

@andyprough:

How do you run linux on a computer with only 64k RAM???

Offline

#17 2021-06-21 15:34:10

golinux
Administrator
Registered: 2016-11-25
Posts: 3,316  

Re: Today I Learned

dice wrote:

Today i learned about this very cool link.

https://oldcomputers.net/

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

Offline

#18 2021-06-21 15:46:05

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Today I Learned

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.

Offline

#19 2021-06-21 15:48:23

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Today I Learned

golinux wrote:
dice wrote:

Today i learned about this very cool link.

https://oldcomputers.net/

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

Thanks for sharing, i particularly liike the ESoCop link, good works.

Offline

#20 2021-06-21 17:16:12

zapper
Member
Registered: 2017-05-29
Posts: 967  

Re: Today I Learned

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... smile


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

#21 2021-06-21 20:12:37

sgage
Member
Registered: 2016-12-01
Posts: 341  

Re: Today I Learned

zapper wrote:
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... smile

Not just the 64K of RAM, either. When was the kernel ported to 8-bit 6502 (or 6509 - whatever variant they used)? Never.

Offline

#22 2021-06-22 05:23:33

andyprough
Member
Registered: 2019-10-19
Posts: 327  

Re: Today I Learned

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/

Offline

#23 2021-06-22 11:17:45

sgage
Member
Registered: 2016-12-01
Posts: 341  

Re: Today I Learned

andyprough wrote:
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

#24 2021-06-22 12:15:00

zapper
Member
Registered: 2017-05-29
Posts: 967  

Re: Today I Learned

sgage wrote:
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... smile

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... tongue

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

#25 2021-06-23 06:59:29

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 644  

Re: Today I Learned

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

Board footer