friendica (DFRN) - Link to source

Look the short AI answer here is at this prompt

What does the file command do on Linux, and how can it identify file types without relying on extensions?

Short answer:
The file command analyzes file content using magic numbers and heuristics to determine type, bypassing extensions. It supports MIME types, compressed files (-z), and symlinks (-L).

mine does this or I do it..



answer is ungoing because I did not precised the context of what I want, rather the whole.


@tante this is the few %

in reply to Plan-A

@Plan-A

Magic numbers are used by most OSes even MS/Windows. They are typically the first two to four bytes, in some instances more. Every graphics format has their own magic number. Also the bash shebang #! is a magic number. Elf binaries have a magic number as well a MS/Windows PE files and other executable formats on MS/Windows. When it come to plain text files such as json and source files file uses heuristics as their are no magic numbers to count on.

Unlike MS/Windows file extensions are meaningless in regards to the filesystems used on Unix derivatives such as Linux. Though file can make assumptions based on a file extension. This does not mean you should use them in places where they do not belong.

A basic rule for file extensions, greatly ignored from those coming from MS/Windows, is that if the file will be consumed by another app or service then we give it a file extension so its MIME type can be used. An example would be files that are served by your httpd daemon. We DO NOT use file extensions on any program that is intended to be invoked from the CLI ever. There are some issues. Such as when Microsoft had the standards for .NET drawn up they required the .exe extension for executables. Most .NET applications developed on 'nix systems are not run at the CLI so this is not an issue. When they are we create a symbolic link to the .exe file so that users do not have to use the .exe extension when invoking the command.

This is an ongoing issue as many developers turning to 'nix from a Windows environment do not seem capable of understanding that file extension are not typically used in many cases on 'nix. That is why we have a file in the first place. It is sad that even those at a professional level often do not get this simple concept.

We can also use the symbolic link technique when we are writing python programs that are meant to be invoked at the command line though our tool chain likes file extensions. We do typically use file extensions on source code for compiled programs as they are not directly invoked and are consumed by the compiler. You will note that there are many python and perl scripts used on a 'nix system and none of them have a file extension. If a python, perl or other script has a shebang line and you set the executable bit then it should not have a file extension. If it is run by an interpreter and does not have a shebang line and does not have the execution bit turned on it is fine to have a file extension.

This entry was edited (18 hours ago)

friendica (DFRN) - Link to source

After 2 days..


Finally got this Podman up to do Osint without root privs

I hit like button by accident... reload page was the shift that was there when I clicked.



miscalculated the 1st image any view of the commands
podman run --rm -it -p 5001:5001 bodane/osint:latest
podman run --rm -it -p 5001:5001 docker.io/bodane/osint:latest


for those that wonder about the --rm and --it flags> --rm you could imagine is remove or Automatically removes the container when it exits. Ensures no leftover containers consume disk space. Useful for temporary tasks like OSINT scans.
the --it flag however has 2 functions > 1st is is interactibve or keeps you on it simply and 2nd is Allocates a pseudo-terminal, giving you a shell prompt inside the container.

Plan-A doesn't like this.

in reply to Plan-A

friendica (DFRN) - Link to source

Plan-A

 — (0.0.0.0)

Save outside that container
podman save -o osint-image.tar docker.io/bodane/osint:latest
So it saves it offline all your docs as well
in that case re run with
podman load -i osint-image.tar

best restart Pod command is (for a new case)
podman run --rm -it -p 5001:5001 docker.io/bodane/osint:latest


Tools are : BlackBird, IntelX. io CLI, Sherlock and Spiderfoot.
I can add self made tools.

in reply to chrisrich4892

@chrisrich4892

I do not currently have XMPP setup on this Instance.

It really depends on what you mean by "login to the server". There is an XMPP addon for Friendica, though it requires the admin (me) to set that up. It also requires that I setup an actual XMPP server as that is not an integral part of a Friendica Instance. This adds an XMPP interface to the Instance to be used for messaging instead of just DM (Direct Messaging, which is very poorly implemented on the Fediverse in general).

If I setup XMPP then you would be able to use XMPP from the Instance though you would not be able to access the Instance via an XMPP client that is not how the addon works.

IRC is already setup on the Instance. I may consider adding XMPP when I have time though it is not something that is very popular these days (like IRC is right 😉 but I do not have to setup another server for that addon).

I was actually considering setting up a Matrix Server for the Instance, would you prefer XMPP over Matrix?

In any case you will not be able to access this Instance, or any other Friendica Instance, via a XMPP client. As they do not support any of the current protocols for the Fediverse. Please keep in mind that every second party App I have tried is Mastodon centric and work poorly for Friendica. Currently there are no Friendica specific apps. I use a PWA on my mobile devices in lieu of an actual app. A lot of popular apps are little more than a very limited webui in any case so this is not really an issue.

Gaza, where pain and suffering prevail.


Hello my friend, I'm Israa from Gaza and a mother of three. I'm sorry to be writing to you so hesitantly, but I've lost everything and I'm living a harsh reality. My three children need food, warmth, education, and medical care. Every contribution from you makes a huge difference in our lives.🇵🇸✋🏻🥺💔
#Gaza #palestine #genocide #Israel #freepalestine #save gaza children #SupportGaza #Humanity #HelpUsSurvive #life
.

friendica (DFRN) - Link to source

Network Pod


It won't work in Toolbox because Toolbox runs as a rootless Podman container. Buildah is the low-level tool used to build the network-tools container image. It executes Dockerfile-like instructions (e.g., FROM, RUN, COPY) without needing a daemon, creating each image layer efficiently and securely
Buildah requires specific kernel capabilities and access to the host's container storage (/var/lib/containers or ~/.local/share/containers) to create and mount filesystems, which are restricted when running inside another container for security and isolation reasons.

in reply to Plan-A

@Plan-A

That is not actually a pod, it is an OCI Container. There is a difference. It is explained in the book I gave you. It is tempting to think of containers as pods since the name is podman, though they really are just containers. You can build pods with podman though those are used with kubernete and not just podman itself. I do not believe you will need a pod or kubernete any time soon 😉.

in reply to Plan-A

friendica (DFRN) - Link to source

Plan-A

 — (0.0.0.0)

The --rm flag makes many wonder I guess.. it removes that process and all one did at exit.
Makes it a use and delete all at each usage.

more mambo Jam
to update those tools a simple dnf update -y
then
plan@fedora:~$ podman commit git-tools network-tools:latest
Getting image source signatures
Copying blob 459e3912f8fb skipped: already exists
Copying blob 13c1089acb08 done |
Copying config 766a6f037c done |
Writing manifest to image destination

Back Online!


Hey folks, the vagaries of distributed server systems tanked me once again!

My Friendica account, which I use to manage all my federated social media accounts, was on a server that crashed with unrecoverable backups last week. This is technically a new account with the same name, content, and photo, but it's still me, I promise!

Anyway, follow me. Let me follow you. Help me rebuild my online life once again!

reshared this

friendica (DFRN) - Link to source

Chess


The name "chess" is derived from the Arabic word shatranj, which itself evolved from the Persian shatranj (from Middle Persian chatrang), ultimately tracing back to the Sanskrit word caturanga, meaning "four divisions of the military" (elephants, horses, chariots, and infantry). The Arabic term shatranj was introduced to Europe through the Islamic world, particularly via Al-Andalus (modern Spain), and influenced the development of the game and its terminology in Europe. The word "checkmate" comes from the Arabic shāh māt, meaning "the king is helpless," further highlighting the Arabic linguistic influence on chess.

mat means dead in Arabic not helpless btw.
Sjeik mat, meaning the sjeik is dead.
Chess-Mate


en.wikipedia.org/wiki/History_…

Unus Nemo reshared this.

friendica (DFRN) - Link to source

I don't get the hype about Age Verification on Linux


about: leginfo.legislature.ca.gov/fac…

the California age verification law for operating systems, including Linux, does not require users to provide ID or undergo any form of verification.

The law, known as AB 1043, mandates that operating system providers collect age information during account setup, but it only requires self-reporting—users simply enter their date of birth or select an age bracket.
There is no requirement for photo ID, facial recognition, or any other form of identity verification.
As noted in multiple sources: as theregister.com/2026/03/13/opi…
The system relies on user honesty, and users can lie about their age with no consequences.
The collected data is intended to be used by apps to determine age-appropriate content, but the OS itself does not verify the information.

Some Linux distributions are exploring minimal implementations (like a D-Bus interface or local config file) to comply without storing sensitive data.

In short, it's a declaration-based system, not a verification system.

@Fou

@Fou

Unus Nemo reshared this.

in reply to Unus Nemo

@Unus Nemo @Fou No it's not gonna happen soon beyond that age verification but there are options at least for the savy. I'm learning about containers not making an OS image on my own so wish me good luck.
Also I want it to be immutable but that is not an issue if I make it myself.
This entry was edited (5 days ago)

Unus Nemo reshared this.

in reply to Plan-A

@Plan-A @Fou

Why should I care if the Nazis are killing the Jews? I am not Jewish.

Besides it effects you. As I stated above Fedora is funded by Red Hat, Red Hat is owned by IBM which is based in Colorado. Which means after 1-Jan-2027 Fedora will have to age verify. This will indirectly effect many that do not believe it effects them.

This also effects the many distros based on Fedora.

This entry was edited (5 days ago)
in reply to Plan-A

#Australia has introduced age verification to socials.

You can bet, if there is some kind of #civilliberties shitfuckery about, it's a global initiative by #technonazis and/or our owners.

This "age verification" bullshit is purely about ending anonymity on the net.
Full surveillance with no court orders to #deidentify.

reshared this

in reply to adingbatponder 👾

@adingbatponder 👾 @Plan-A

This is a known issue between privacy and other network types on the Fediverse. Because they do not all use an agreed upon protocol to verify users when you make something private on one Fediverse network it will exclude your friends on other networks. The same would be true if you posted something private on Mastodon, even though we are considered friends Mastodon has noway of verifying our identity so it would just block us.

in reply to Plan-A

@Plan-A @adingbatponder 👾

Many of the privacy settings on Friendica or any other type of Instance are not going to work across the whole Fediverse. Unless it is your intention to keep everything so only those on Friendica Instances or logged into our Instance it is best to turn those settings off. Until the day when privacy on the Fediverse has a unified way of implementation across network types.

This entry was edited (1 week ago)
in reply to Plan-A

@Plan-A @adingbatponder 👾

If you wanted to share something that only those on this Instance, or a Friendica Instance can see then it would be fine. Though quite often we want all our friends on the Fediverse to be able to view our posts.

Keep in mind that all propagation off this Instance is considered anonymous guests. So you essentially kill your posts ability to propagate to your friends off of this Instance by turning that feature on.

in reply to Plan-A

I need to solve this, the answer is per prompt new thread with reference to this or that documentation.
Sys message tells it to look there and if not fall back on normal given knowledge from source, but the context matters more> hence the prompt in my case is important for accuracy as I catched all his 2nd continue thread answers as pure lies if it comes to high grade things.
Repeating prompts with addition is a way out of many others.
Contentious seen from the context perception of each single prompt following!


I was first introduced to the wonderful world of programming when I was 9 years old (46 years ago as of this writing). My middle school had just gotten some Franklin Ace 2000s (Think Apple IIe clone) and my father bought us a Commodore 64 for the house. While my siblings were most interested in playing games on the Commodore I wanted to program. Armed with books like Jim Butterfield's 'Machine Language for the Commodore 64' I began writing my own BASIC wedges and creating portable software from the Commodore 64 to the Apple IIe (which had similar CPUs in the 6502 family based on the Z80). I loved programming. It gave me a space that I felt like I had some control and my life was not just a tail spin of undesirable events.



Unus Nemo


Tips & Donations


#Computer Science #My History

Plan-A reshared this.


I occasionally get asked about my moniker Unus Nemo. If you are familiar with Latin then you already know that Unus Nemo means no one. Though that is applicable my moniker is multi-faceted. Meaning there are several reasons that I chose this moniker to name myself. As opposed to my given name which I was labeled with at birth.



Unus Nemo


Tips & Donations


#moniker #Unus Nemo


The recent database loss on Rogue Project's Friendica really woke me up to just how fast all my posts can disappear. Even before that I have been meaning to make more use of my blog for posts that I would like more persistence. I initially created the blog when I first came to the Fediverse. I stumbled upon Mastodon after my exodus from Meta and thought I would need to provided links for longer posts, as I am a little on the verbose side 😉. Well, my five minutes on Mastodon was not a surprise. I have never liked a microblogging environment. I found out about Friendica and quickly jumped on board. I was having a difficult time finding a stable Friendica Instance with an open registration so I did the most reasonable thing I could think of. I got another VPS and started a Friendica Instance. I was initially going to make it a single user Instance though I thought that would be a waste of resources and decided to open registration. I am going to tell you now that I fully understand why a stable Friendica Instance is not so easy to find 😉. I have learnt a lot in the last year of maintaining Rogue Project's Friendica and I definitely understand the frustrations of other Instance admins.

So I am now going to share my blog with the Fediverse. Rogue Project's Blog , I have comments turned off on the blog so I do not have to spend time managing spam. Feel free to comment here, or share a link yourself and mention me in it if you want my feedback. The entire blog is static so you can link to any category or individual essay, poem or rambling at your discretion. There is no login and there are no ads of any type.


Unus Nemo


Tips & Donations


#blog #poetry #essays #ramblings

reshared this

RAG'd LLM


Hallucination checks completed 100% correct and works even (for the sake of a test), answer prompt way too long to screenshot but it did it due to the manuals fed.
at time of screenshot it was still busy as the downside of this all is response speed if it gets it feeds from official doc's.. Again as I said checks ok and it works.
Privately, no API.
And free.
in reply to Unus Nemo

@Unus Nemo What the people care of are the least of my concerns neither what they think of me. I'm not threat level 5 so far I checked I'm traceable with just 1 aspect and that is more than enough. Even my router I managed to DNSCrypt it even after reboot or power shut downs. A choice of roaming the net and that is not necessarily meaning I'm a bad guy as that is prejudice and a thing I learned many many years before to maintain my privacy as much and as long as possible.
If I were a professional I would even maintain another persona as real person.
The very ground reason began from a security viewpoint.
Prof Messer is responsible for this! 😀
And Kevin Mitnick as well a bunch of other guy's
This entry was edited (1 week ago)

Boycott ChatGPT!


There are other free AI chatbots you can choose that are faster, , have better privacy protection, get better reviews, don't target you with advertising, and don't allow the Pentagon to use their technology for killer robots or mass surveillance. Consider, for example, Proton's Lumo, Mistral's LeChat or Anthropic's Claude. quitgpt.org/

Unus Nemo reshared this.