Skip Navigation
basic UI programming in linux
  • Wauw! So many answers in such a short time. Thanks all! 👍 (I will not spam the channel by sending a thank you to all but this is really greatly apriciated)

    Concerning ncurses. I did hear of it but never looked at it myself. What is not completely clear for me. I know you can use it for 'low-level' things, but does it also include 'high-level' concepts like windows, input fields and so?

    The blog mentioned in one of the other posts only shows low-level things.

  • basic UI programming in linux

    Hi all,

    Perhaps a stupid question. Some time ago, I received a rpi zeroW as a gift, but as I did not have any use for ii I passed it to somebody else in our electronics-group. Now, that person has had a +30 year carreer as self-taught programmer -starting out with BASIC on DOS machines- so he showed of some of his old BASIC applications in dosbox on the pi.

    So far so good, but he had an interesting question: Years ago, I wrote a library in BASIC for screen / window applications in DOS. (you know, pop-up text-windows and so on). How do I do that on linux (in C)?

    As I myself only do 'backend' coding (so no UI), I have to admit I did not have any answer to that.

    So, question, For somebody who has mostly coded in BASIC (first DOS and later Visual Basic) and now switched to C and python, what is the best / most easy tool to write a basic UI application with window-function on linux/unix. I know there exist things like QT and ncurses, but I never used these, so I have no idea.

    Any advice?

    Kr.

    19
    CrowdStrike offers a $10 apology gift card to say sorry for outage
  • As I mentioned earlier, I guess chrome is more like android where you have a much more strict seperation between the OS, applications and user data. (I remember reading about all the different partitions on android and what they are used for, but I should bruch up my knowledge on this).

    Thanks for the additional into on brtfs! 👍

  • CrowdStrike offers a $10 apology gift card to say sorry for outage
  • Just watched some videos on btrfs. I start to understand the conceps. Perhaps I should also look into how exactly

    On windows and the "recovery partion". I guess what you say is that it should always be possiblity to boot in some kind of system, but it will not happen automatically as there is no way for a system to detect that the system completely hangs.

    Thinking about it. It kind of strange. Embedded systems have watchdog interrupts that get fired if the system hangs (i.e. if it does not provide a "yes, I still live" signal every "x" milliseconds). Does a PC not have something similar?

  • CrowdStrike offers a $10 apology gift card to say sorry for outage
  • Yes, that was indeed the question.

    If I read it correct, you need a specialised distro for this. You cannot do this on a off-the-shelf Debian or Ubuntu?

    I'll do some searching on 'unmutable Linux'. Thanks for the (very quick) answer! 😀

  • CrowdStrike offers a $10 apology gift card to say sorry for outage
  • Concerning linux, yesterday I was watching this video on computerphile on the crowdstrike incident. https://www.youtube.com/watch?v=rlaNMJeA1EA (*)

    What is interesting is the comment made in the video on how chromebooks do software upgrades with dual "OS" disk-partitions and the ability to rollback to the previous OS-partition.

    Question: is something like this also possible on one of the major linux distros? (debian, ubuntu, rocky, ...) What would be the procedure to do this kind of "dual partition" system-upgrade?

    (*) a great video that explained some of the technical details in a very clear way, including some very interesting 'lessons learned' and "what if"s If you ever need to explain crowdstrike to your manager, this video is a good start.

  • CrowdStrike offers a $10 apology gift card to say sorry for outage
  • This is a typical mail a phishing campaign would send out, and we have already said to people "never believe this kind of messages. They are all fake.

    Now, if a genuine company sends out mails with a genuine gift-cards (what the article on techcrunch seems to indicate) .. this is NOT helpfull at all!!!

    And that comming from a cybersecurity company (rolling-eyes)

  • replacing memories
  • First .. thanks all for replying. Sorry for the late reply. .. know you .. summer .. holiday .. :-)

    Yes, that was indded my question. Some objective and scientific research into this. Interesting reading. Thanks.

    My idea was kind-of the result of what we see in cybersecurity: What we are seeing is that with AI disinformation has become so easy and cheap, and also easy to automate. Can we assume a senario where desinformation -like phishing moving into the area of spear phising- is becoming personal.

    Just wondering. Certain social media have a feature 'remember, x years ago, you took part in this event' (with some photo's you shared about that event)' What would happen if you start feeding people false information? Or semi-fake information? Including posts by other people?

    I agree. Getting people to believe they took part in <some event> x years ago might not be easy. But can you get people to question certain secundairy elements. "Did I really meet <some person> during <some event> 4 years ago?"

    I wonder. How many people rely on their own memories what they did in the fast? And how many rely on what the photos in their smartphone and/or social media account tell them?

    Kr.

  • replacing memories
  • Well, for some time now, I have this question in the back of my mind: is cyberpunk still the future or has it become reality.

    The photo-album on our smartphone has become our individual memory, stored on somebody else's computer ("the cloud"). Our photos on social media have become our collective memory, which determines how other people interact with us, based on algorithms controlled others.

    In 2024, is your memory still your own memory?

  • replacing memories

    An open question, related to cyberpunk culture.

    Considering the possibilities of current social-engineering as used by social media and desinformation, to what degree ido you think it is now possible to 'implant' fake memories into somebody's consciousness, without that person noticing it.

    7
    If you've ever wanted to know what Open Source Software is and why it's important to our hobby, here's some of my thoughts.
  • I run OpenRTX on a Retevis RT3s, which can be done without any hardware modification. (I do not know if original firmware is available somewhere -I have not checked-. If that is the case, it should be possible to reflash the stock firmware on the device).

    Anycase, I must say that M17 does not run correctly on that radio. There seems to be an issue that the first 300 ms or so of the transmission is not correctly modulated (something related to the FM modulator) and also the end of the transmission is broken of halfway the end-of-transmission frame.

    I am currenly at the stage of trying to understand how OpenRTX really works, and my first idea is to implement POCSAG-paging into it. (As I have the source-code for that here anyway) and I also have some ideas for APRS to want to delve in.

    (OK, that is, if I have some time left next to all the other stuff I am working on :-) ).

    73 kristoff - ON1ARF

  • If you've ever wanted to know what Open Source Software is and why it's important to our hobby, here's some of my thoughts.
  • Onno,

    The reason I added the cfp was to show that it is not a pure technical conference like FOSDEM or GRCON. We added a non-technical part and did that on purpose. In a way, our goal is to try to start a discussion on "how do we see the amateurradio hobby in the post-dinosaur era?"

    Looking at a distance, we see a number of different evolutions:

    • amateurradio is slowly starting to invert the "buy-and-use" attitude we have seen the last 20 to 30 years. Your remark on the opensourcing the firmware of radios fit into that, as does OpenRTX and similar projects.
    • We also see more and more an overlap of amateurradio with other communities, like the makers, developers (think FOSDEM), SDR-experts (think GNU Radio), IoT nerds, infosecurity people, science, etc. I get the impression that these communities start to understand the value of amateurradio as a technical / scientific hobby, which is probably related to the fact that radio/wireless communication technology has become part of almost any field of technology.
    • A 3th element is that the organisational structure of amateurradio is changing. The vast amount of subfields of amateurradio has shown the limits of the hierarchical 'IARU - IARU Region - National radio-society - local radioclub' structure. Using the internet (mailing-lists, webforums. telegram-groups, discord channels, matrix rooms, ...) radioamateurs with similar interests have set up virtual communities that live next to the local radioclubs.

    So, in essence, we kind-of see a return of amateurradio to a 'I-want-to-know-how-it-works / experimenter / challenges' hobby, probably by the evolution of radio-technology and the 'competion' with other scienfic and technical hobbies. In my personal opinion, that is surely a good thing.

    But, to get there, there are -as I see it- two big issues:

    • Knowledge. Most (technically minded) radio-amateurs have a background in standard electronics, or in 'building systems'.

    To return to your call for opensource firmware for radios, having access to the source-code is one thing, but actually understanding it and having the knowledge to modify or enhance it does require quite different knowledge that 'standard' analog electronics. You need knowledge of SDR and signal-processing techniques -which are much more based on math that standard electronics- plus possibly some HDL to program the FPGA and C/C++/rust for the RTOS that runs on the microcontroller inside the FPGA. Modern radio-communication equipement requires a much larger scale of knowledge then the radio-technology of 20 to 30 years ago that is the basis of the amateurradio exams (and hence courses).

    Now, I see two ways to fix this:

    1. Work on the knowledge-level of the amateurradio community by new and better courses that include modern radio-technology.
    2. Pull in people from communities (see point 2 above) into amateurradio.
    • Option 2 above looks for me the most easy option, but it does hit another big issue: how make the current amateurradio community (especially the local clubs) ready to receive these new people.

    When I am at an infostand on amateurradio at -say- FOSDEM or a Makerfaire, or you meet somebody at a infosecurity conference, the most difficult question you usually have is this: "wauw. That amateurradio hobby does look interesting. How do I begin? Where do I need to go?"

    I've had people at FOSDEM who said "I once went to the local radioclub in my city as I wanted some help on setting up a mesh network in my cities, so I thought that the radioamateur guys might be able to help me. There where just some old men and the only reply I got was that that is no real radio". I've come to a point where I sometimes advice people to go to their local hackerspace and see if there are no hams overthere, instead of sending them to a radioclub.

    As said, there are now these communities inside the amateurradio hobby who kind-of operate next to the local clubs, but in the end, you do still need a club for certain things -like courses, or doing an exam- and being in a local club does also include things like a local fieldday or taking part in a contest or so.

    Europe has the advantage -compaired to Australie- of having a larger population concentrated in a smaller area. For us, a conference is a good option to try to advance the hobby that way. I guess that, in the end, everybody has to find out what he/she can do.

    73 kristoff - ON1ARF

  • If you've ever wanted to know what Open Source Software is and why it's important to our hobby, here's some of my thoughts.
  • (Posted this as a seperate message so not to mix multiple subjects)

    As you mention "microcontrollers in the signal-chain of a transceiver", I am currently looking into OpenRTX.

    It is really a very nice example of exactly what you mention and something that has become possible to last 1 to 2 years. With these radios that support opensource firmware, It really has allowed amateurs a look of what is inside of the firmware of a "commercial-grade" handheld radio.

    Two weeks ago, I helped out in an infobooth on Amateurradio at a makerfaire here in Belgium. Things like OpenRTX allow to explain to IT-people (who normally only work on computers) how "embedded software" works, how software that runs in devices we use everyday operates. In that sense, FOSS is as much an educational tool as it is "just a piece of code that does something".

    Kristoff (ON1ARF)

  • If you've ever wanted to know what Open Source Software is and why it's important to our hobby, here's some of my thoughts.
  • I completely agree with your remarks.

    For people who are interested in opensource and amateurradio, I propose you have a look at the conferences on that topic.

    Overhere in Europe, there are two of them

    • FOSDEM ("Free and Open Source Developers European Meeting") is a yearly event held in Brussels every 1st weekend of February. In the 2024 edition, there was a devroom ("developers room") on SDR and Amateur-radio. https://fosdem.org/2024/schedule/track/radio/

    The videos of the talks are online. I propose to have a look at the talks on M17 and on OpenRTX.(*) Also open source hardware is becoming more interesting.

    • Next september, we will be hosting "spectrum24", a new conference on "novel ways to use the spectrum we -as citizens- are able to use. It puts a lot of emphesis on Open-source as yes, most -if not all- of the new projects coming out in amateur-radio are open source.

    For this conference, we are at the "cfp" (Call for Presentations) stage. See here: https://spectrum-conference.org/24/cfp

    I know that Europe is the opposite side of the globe for you in Autralia. Perhaps there are similar events on your side of the world.

    Kristoff (ON1ARF)

  • US government reportedly ponders crimping China's use of RISC-V
  • That is valid .. in peace-time when everybody accepts that.

    The problem is that the reality is a lot complex. Open source only exists, because of the open source licenses. The open source licenses are only valid, because of the copyright legislation. That legislation is only valid, .. because the nation-state has determined it is valid.

    Consider a scenario where a nation-state (whatever state that may be, just making a general starement here) decides that for sectors it conciders critical for the state, it -or companies that act on its behalve- are allowrd to use / copy / enclose whatever open source technology they want without being subject to the requirements that come with the opensource license. So they can use whatever open source technology they want but they do not have to return anything to it. They can even use it in closed products.

    How do you propose to handle such a scenario?

    Kr.

  • selfhosted service to share files to SSO-authenticated users ?

    Hi all,

    Well, my question is in the title of of post. :-)

    Does somebody know if there exists an easy sollution to share files to users (e.g. members of an organisation), based on the fact that the user is known in a SSO (authentik) ?

    I know nextcloud would be an option, but that would create a nextcloud account for all the users, .. which is quite overkill for what is needed here.

    I know we can probably build something based on apache, PHP or so, .. but if there would be a ready-to-use service for this, that would be nice. (and probably a lot more secure then what I would build myself :-) ).

    Kr.

    5
    Joplin alternative needed
  • What is your 'deleted files' policy? How long do you keep them? I had a similar issue but then found out that the nextcloud cron-process wasn't running so files in the 'deleted files' folder where never really deleted.

  • what if your cloud=provider gets hacked ?

    Hi all,

    As self-hosting is not just "home-hosting" I guess this post should also be on-topic here.

    Beginning of the year, bleeping-computers published an interesting post on the biggest cybersecurity stories of 2023.

    Item 13 is an interesing one. (see URL of this post). Summary in short A Danish cloud-provider gets hit by a ransomware attack, encrypting not only the clients data, but also the backups.

    For a user, this means that a senario where, not only your VM becomes unusable (virtual disk-storage is encrypted), but also the daily backups you made to the cloud-provider S3-storage is useless, might be not as far-fetches then what your think.

    So .. conclussion ??? If you have VMs at a cloud-provider and do daily backups, it might be usefull to actually get your storage for these backups from a different provider then the one where your house your VMs.

    Anybody any ideas or remarks on this?

    (*) https://www.bleepingcomputer.com/news/security/the-biggest-cybersecurity-and-cyberattack-stories-of-2023/

    41
    authentik .. how to backup ?

    Hi all,

    Short question. Does somebody here run authentik as single sign-on provider? (dockerised?)

    I'm looking for information on how to best backup a authentik server? Just do a backup of the postgres database and the docker-compose file? Something else? How crucial is the dump.rdb file of the redis container?

    Kr.

    3
    jitsi .. redundant setup ?

    H all, Somebody here selfhosting jitsi meet?

    I am working on a jitsi-meet setup for an organisation, now looking at the options for redundancy.

    I have noticed you can configure multiple XMPP servers on the jitsiivideobridge. What is the exact goal of this?

    Can you connect a jvb to multiple jitsj servers (domains)? or is this only for making the jitsii backend redundant?

    Kr.

    2
    Selfhosting jitsi meet ?

    With jitsi meet now requireing registration (something I do understand, .. but I just happen not to have a google, MS or meta account), I am looking at selfhosting a jitsi meet for personal use.

    Has somebody already done this? What are your experience? What are the hardware requirements? Docker or native? Linux or other OS? (FreeBSD)?

    14
    Lemmy community on disinformation

    Hi all,

    Small question. Does anybody know if there already exists a lemmy community on disinformation (in the infosec area or more broadly)?

    Thanks! :-)

    Kr.

    0
    disinformation videos on AI ?

    Hi all,

    Had a small chat on #AI with somebody yesterday, when this video came up: "10 Things They're NOT Telling You About The New AI" (*)

    What strikes me the most on this video is not the message, but the way it is brought. It has all the prints of #disinformation over it, .. especially as it is coming from a youtube-channel that does not even post a name or a person.

    Does anybody know this organisation and who is behind it?

    Is this "you are all going to lose your job of AI and that's all due to " message new? What is the goal behind this?

    (Sorry to post this message here. I have been looking for a lenny/kbin forum on disinformation, but did not find it, so I guess it is most relevant here)

    (*) https://www.youtube.com/watch?v=qxbpTyeDZp0

    10
    Morgan Blackhand bot @ mastodon
    corteximplant.com Morgan Blackhand :cyberpunk: (@blackhand@corteximplant.com)

    1.09K Posts, 1 Following, 224 Followers · The Classic Bot of the Dark Future. This bot toots random facts, information and trivia from the Cyberpunk RPGs (Cyberpunk 2013, Cyberpunk 2020, Cybergeneration 2027, Cyberpunk 203X, Cyberpunk RED...) every 6 hours. Sometimes also about the video game Cybe...

    Morgan Blackhand :cyberpunk: (@blackhand@corteximplant.com)

    I do not think this has already been mentioned. As I guess most of you are also an mastodon (or another fediverse-enabled playform)

    More info also here: https://github.com/revengeday/blackhand-mastodon-bot

    1
    documentary on the cyberpunk genre

    Hi,

    I don't know if this has already been posted here.

    Some time ago, I found this 3-part documentary on the cyberpunk genre:

    Part 1: https://www.youtube.com/watch?v=sttm8Q9rOdQ (also in the title of this post)

    Part 2: https://www.youtube.com/watch?v=0VoX3vr6CCM

    Part 3: https://www.youtube.com/watch?v=KczJNtexinY

    Enjoy! :-)

    3
    workshop Hacking Radiosignals: hackover 23 (14-16 July)
    talks.hackover.de Workshop hacking radio-signals Hackover 2023

    In this workshop, you'll learn how to receive and analyse radio-signals of the 433 MHz remote-control using different tools: gqrx, inspectrum and urh (Univeral Radio Hacker); and also multiple ways to retransmit (read: spoof) these signals yourself. The workshop requires your own laptop, the 'Drago...

    Workshop hacking radio-signals Hackover 2023

    HI all,

    For people who live in the neighbourhood of Hanover, Gernany. In almost 3 weeks from now, I will give a workshop "Hacking Radio-signals" in the summer edition of hackover 2023. The exact timeslot still has to be decided, but hackover is the weekend of 14, 15 and 16 July.

    In the workshop, we will capture, analyse and decode the signal of a 433 MHz remote-control. You do are required to bring your laptop and have some software installed beforehand.

    If you are interested, either drop a message in this thread or contact me at the email-address in the announcement

    4
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)KR
    kristoff @infosec.pub
    Posts 12
    Comments 58