• 2 Posts
  • 177 Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle
  • shirro@aussie.zonetoLinux@lemmy.mlIs Linux on Android as secure..?
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    11 hours ago

    There is no simple answer. Its is almost entirely dependent on implementation. All systems are vulnerable to things like supply chain attacks. We put a lot of trust in phone vendors, telcos and Google.

    If you are going to compare to something like termux you need to compare with an equivalent sandboxed environment on regular linux, like a docker/podman container with appropriate permissions. As far as I know they use the same linux kernel features like cgroups and namespaces under the hood.

    Traditionally Linux desktop apps run with the full permissions of the user and the X window system lets apps spy on each other which is less secure than Android sandboxing by design. There have been attempts to do better (eg flatpak/flatseal, wayland) but they are optional.


  • Having comprehensive unicode language coverage on a free OS is amazing. I wish the font system was smart enough to hide Noto variants in creative apps but leave them available for browsers. There is a workaround to do that but its a huge pain. I wouldn’t delete any files managed by the package system. They will just keep coming back anyway. There are smaller collections of noto fonts in AUR that will satisfy the noto-fonts dependency which should keep KDE Plasma happy. They should be a straight swap if you are comfortable with an AUR dependency for a functioning desktop. The newer one is noto-fonts-main updated this year or there is an older noto-fonts-lite. Not tried either. Usual stuff about backups and taking advice from strangers on the internet.

    Segoe might benefit more from the embedded bitmap or autohint settings than the regular open source fonts I am likely to use. Microsoft would optimise the hell out of it to take advantage of their proprietary, patented font rendering system. I wouldn’t be surprised if it rendered poorly with distro defaults. Its the kind of blind spot a lot of open source devs and packagers could easily have. Its probably packed full of embedded bitmaps for small sizes and proprietary hinting stuff that linux won’t understand.


  • I don’t doubt you. Linux font rendering has been good enough for so long now that its surprising when people say its worse than some other system but I think it is still a reasonably common complaint so there has to be something to it. A lot of distros probably don’t have a very good font selection installed out of the box compared with proprietary systems and I am sure that plays a role.

    My desktop has a 38" ultrawide and the pixel density is a lot lower than your dual 4k monitors so I want to do everything I can for font rendering and your post has got me asking questions. I am in the process of configuring a minimal, low distraction tiling wm setup for a bit of fun (also another nvim conf spring clean). I hadn’t considered changing the font rendering defaults.

    I think I have all the fonts you list installed except for Hack. Inter is also a good one for UI. I don’t use Fira Code anymore for code/terminal but I keep it around. It is a nice code font with ligature support but it didn’t have an Italic variant and I like subtle use of italics in code and docs. Currently using Iosevka for mono but next week it might be something different.


  • This post is fascinating. Most distros have good defaults for font rendering now and I haven’t used hacks like infinality to fix font rendering on Linux for years. That project doesn’t even exist anymore. I would be really interested to know which setting made the difference for OP and why.

    I am writing this on a little HiDPI laptop with over 200dpi and to be honest hinting and sub-pixel rendering are invisible to my eyes on this device. Apple dropped sub-pixel rendering ages ago when all their products moved to retina displays. But its still really useful on low dpi displays and I thought it generally worked well enough out of the box.

    A file almost identical to the local.conf has been posted to forums in the past but back then fontconfig often shipped with outdated defaults. My distro defaults have aliasing, slight hinting and sub-pixel rgb enabled out of the box.

    Arch has these defaults. Bookworm lacks the sub-pixel-rgb (its just a link away) but my guess is Ubuntu derivatives probably include it:

    • 10-hinting-slight.conf
    • 10-sub-pixel-rgb.conf
    • 10-yes-antialias.conf
    • 11-lcdfilter-default.conf

    The differences I see are the last 3 options in local.conf:

    • disabling embedded bitmaps. I think this would change rendering for old MS Office fonts. And perhaps break some emoji fonts. I have Noto Color Emoji but I don’t have any old MS fonts. This seems like it would have limited impact.
    • enabling autohinting. If you have slight hinting enabled and the font contains hinting information it should automatically use it. So I thought it made no difference if you have good fonts installed. I might be wrong. But again if you use good fonts I am not sure this has an impact.
    • setting font weight to medium. This is an odd one. Does this mean that every font query returns a medium weight or that if you don’t give a weight you get medium? Fattening up thin fonts might be a user preference but you can also select desired font weights in your desktop settings and apps.

    Fontconfig is a compiled database for font queries, it doesn’t do rendering. Whatever you put in fontconfig, an app like kitty will not implement sub-pixel rgba rendering for performance and implementation reasons but many other terminals will. I think gtk4 might be heading the same way. Depending on variations in colour vision and displays people tend to disagree on the value of sub-pixel rgb but it looks like it is a common distro default anyway.


  • The local.conf file should work on any distro. It’s an opinionated override and might not be ideal for everyone but you can use the settings as a starting point to research further. Don’t modify the other files in /etc/fonts as they will be updated by the distro. Claude’s other suggestions apart from selecting some better fonts generally do nothing as far as I can tell. I connected to one of my debian machines and the symbolic links Claude gave to /etc/conf.avail are a debianism as I suspected. If you don’t install or use bitmap fonts and you override the rgb aliasing in local.conf I don’t see the point of either of those symbolic links but whatever meatbag wrote them in a stackoverflow or reddit post intended them for a debian distro.


  • Freetype2, fontconfig and cairo are going to be pulled in as dependencies when you install just about any desktop app/library eg firefox, gtk so this is a no-op. Same for installing the jre and fontconfig again. Its pointless. The freetype2.sh line is commented out because that has been the default setting for the last 8 years so it makes no difference. The gfx.webrender.all setting in firefox is an override to force something it is most likely already doing based on the detected environment. If you check about:support the chances are you are already using hardware rendering. And its a performance and not quality setting. Half of this makes no sense.

    Installing nicer fonts is always a good idea and also setting your desktop and application default fonts.

    Some of the local.conf settings could potentially makes a big difference if your desktop environment defaults/user settings aren’t good. Don’t know a huge amount about freetype settings but I suspect using assign in there might override desktop environment settings which some people might not want. I set mine in a gui like the monkey I am.

    My conversation with any llm tends to go, “you got a, b, c wrong, it should be d, e and f” and it says “sorry, ofcourse it should be d, e and f, my mistake, here it is with d, e, f, g and h”. Then I say “g and h are wrong it should be i and j”. And it keeps going. In the end I write it myself. Huge time wasters.

    Edit: didn’t pick up on it immediately but the two symbolic link commands are suss (they are for debian based distros). Endeavor is arch based and fontconfig on arch has the configs in /usr/share/fontconfig and the ones in the conf.default directory should already be linked into /etc/fonts/conf.d. 10-sub-pixel-rgb is in /usr/share/fontconfig/conf.default so that is already linked for me so attempting to do another link without deleting it would be an error - another no-op. I don’t like rgb sub-pixel rendering so its overridden in my desktop settings. It shouldn’t be necessary on high dpi IMO. The proper path for 70-no-bitmaps is in the /usr/share/fontconfig/conf.avail directory if you want to link it properly. If you use the wrong path as Claude suggested, its another no-op. If, like me, you don’t have any bitmap fonts installed it won’t make any difference anyway. Also /etc/fonts/conf.d is created by the fontconfig package so that is another no-op.

    Edit 2: The setting’s name might be inaccurate but Cleartype is the name of Microsoft’s proprietary font renderer and isn’t available on Linux. So possibly gfx.font_rendering.cleartype_params.rendering_mode was picked up from some StackOverflow discussion about Firefox font rendering on Windows. I won’t say it doesn’t work without reading the Firefox source code and/or trying it but I suspect a setting with that name would not have any effect on Mac or Linux.




  • The SA Libs sold off the rights to charge rent on our electricity grid for the next 200 years to a foreign owned company. Yeah, its not the wind farms and solar panels that are the problem. I want to hate the government that did it but the whole state was plunged into a lost decade after a state government backed bank collapsed and the taxpayer was left to cover their debts. So I should blame the Labor party in government at the time of the collapse? They were cleared by the subsequent investigation. The bank management were the problem.

    Most of the blame falls to an establishment private school alumni with a double barrel surname who managed the bank like a personal plaything buying bad assets. They set a whole state’s economic and population growth back even further compared with the rest of the country for years and doomed us to paying the highest worlds highest electricity prices for a couple of centuries. Nice. I suspect this is kind of the norm. People gain positions of great trust and responsibility as much by who they know as what they know and then proceed to fuck it up while receiving praise and pocketing bonuses then fuck off with no real consequences and leave the rest of us to clean up.

    The worst SA premier imaginable is incomparable to the damage caused to this state by this one establishment idiot.


  • Reagan undeniably paved the way for Christian nationalism to take over the republican party.

    I disagree on Thatcher and Howard accelerating fundamentalism, though neoliberalism is a fair call. You were damned if you did or didn’t and Hawke/Keating set a lot of reforms in motion prior to Howard. We weren’t equipped to cope with global changes without major economic reforms. The decision to have reforms advantage some while leaving others further behind was pure shitfuckery and Thatcher did everything as contentiously as possible.

    Blair and Rudd strike me more as god botherers than Howard or Thatcher and the ALP have perpetuated and extended Howard’s drive towards private religious education and service delivery. The ALP right has an equivalent group in the Libs. Its all the same here. Organised religion has an each-way bet on Australian politics and in 2 horse race they can never lose. The conservatives have had some obvious problems with religious branch stackings and people leaving in frustration and its arguable the party has shifted to its detriment. Labor and some unions have a complex history with organised religion. In some ways it might be symbiotic and reflective of membership but it can appear like cronyism.


  • There are lots of contradictory things about Howard. I get why people feel very strongly about him one way or another.

    In the end a lot of people voted for him because he put money in their pockets whether it was tax refunds for families, economic reforms, wealth transfer or a booming resource economy. Honestly I wouldn’t mind a bit of that right now. And that is the shitty bit isn’t it. Like you know we wasted opportunities, increased social divides etc. Fundamentally we are just a meaner, nastier bunch. But I kind of get why Trump won so decisively despite being such a disgusting person. You have to grab those swing voters by the pussy and one of the best ways to do that is put money in their pockets and Howard understood that.



  • I can’t be sure if Howard’s government changed Australian society for the worse or if we were already changing and he was a reflection of that. Either way there is pre-Howard Australia and post-Howard Australia and they are basically different countries. A lot of people did very well under Howard, even a lot of battlers were better off for a time. He is always going to be a highly notable PM. There have been a few since who were just hopeless, ineffective, incompetent and its a struggle to pin that label on Howard regardless of politics.

    The trouble with labeling Howard as best or worst is that there were very definitely winners and losers under Howard. I would say he was the worst in terms of impact on society but unfortunately I think he was more a symbol of the times. I think we probably got nasty, greedy and divided all by ourselves.




  • I think it is more about framing. The leading media frame the discussion in biased and emotive terms that then carries over unquestioning into other media, the pub, workplace and social media. Lidia isn’t the only person speaking up for indigenous rights or questioning the monarchy but the others rarely get coverage. Lidia seeks attention and the media uses it for their own purposes and they both get what they want.

    The media tells us there is nothing more Australian than disrespect for authority when they are exploiting the ANZAC mythology. What could be more Aussie than a digger not saluting British officers? The media tells us implicitly who can protest and who can’t, who is deserving of a voice and who isn’t and which authorities can be questioned and which can not.


  • It is historical. We have a reasonably stable political system as does the UK and so our government has evolved through consensus since the restoration of the British monarchy.

    Australia slowly but steadily made all the necessary legal changes to become a fully independent sovereign nation but we retained an Australian monarch who follows the same rules of succession as the British monarch. I expect the people who worked to obtain our sovereign independence thought the monarchy would be dealt with next. There was an attempt and it got sunk by a nasty scaremongering campaign. Some of the misinformation still circulates today and it has become part of many people’s beliefs.

    We need a massive campaign to educate the population so we can achieve the sort of constructive and sensible consensus that are the hallmark of our successful and stable democracy. Unfortunately both social and mainstream media will promote increasingly partisan and divisive misinformation for their own purposes. I am sure many advocates for reform don’t want to deal with the hyper-partisan negativity and army of cookers that will arise flying monarchist flags. Perhaps if the monarchy is left alone they will disappear up their own arses and make it easier.




  • The expense of tools, equipment and supplies can be a huge barrier to car maintenance but there is so much legitimately free software for computers (even ignoring the pirated stuff) that people never had so much opportunity.

    If is like learning another language or a musical instrument, people have to be committed and practice to get good and few people can make the effort. Businesses have trained people to seek instant gratification from fast food, social media, tik tok, gambling, loot boxes, and consumerism in general because short lived and unfulfilling experiences produce an endless monetization opportunity. The rare people with the discipline and support to focus their efforts have massive advantages with access to information and tools which were very difficult in the past. There are some prodigies out there in a sea of mediocrity.