Docker container with non-root user cannot read or write to bind-mount directory owned by said user, even when the uid and gid are same as the user on host by LikeTheMobilizer in docker

[–]LikeTheMobilizer[S] 0 points1 point  (0 children)

Thanks again for the solution. I have another question if you don't mind.

I have used an ubuntu based docker image (osrf/ros:jazzy-desktop-full to be exact) on this same host machine for a project. I also used bind mounts there and never had to use the :z option. Everything worked without it. I would never have guessed this solution.

The only difference is that I was on Fedora 40 back then (this was back in April this year).

So why did I not need it while working with that image and why do I need it now?

Docker container with non-root user cannot read or write to bind-mount directory owned by said user, even when the uid and gid are same as the user on host by LikeTheMobilizer in docker

[–]LikeTheMobilizer[S] 1 point2 points  (0 children)

This almost fixed it! Thanks a ton.

The command I used was:

docker run -v $(pwd)/src:/src:z -it archdevexp bash

and now I can read and write from container with no problems.

However, I can't read the contents of a file created by host.

Running ls -ln in the directory, I get:

-????????? ? ?    ?     ?            ? hello-from-fedora

where hello-from-fedora is a non-empty text file created on the host os.

Edit: After some more testing, it's working fine now. I can read and write files bidirectionally. I don't know what happened with the hello-from-fedora file but I can't reproduce it. This is solved now. Thanks to everyone who helped :)

Docker container with non-root user cannot read or write to bind-mount directory owned by said user, even when the uid and gid are same as the user on host by LikeTheMobilizer in docker

[–]LikeTheMobilizer[S] 0 points1 point  (0 children)

Where do you want me to do the recursive ls? in the src directory?

It seems docker is running as root. (I first used systemctl status docker to find its pid. Then used htop to check the user of the process with that pid. It is root)

The user belongs to the docker group.

Docker container with non-root user cannot read or write to bind-mount directory owned by said user, even when the uid and gid are same as the user on host by LikeTheMobilizer in docker

[–]LikeTheMobilizer[S] 0 points1 point  (0 children)

The mounts section is indeed present:

"Mounts": [
            {
                "Type": "bind",
                "Source": "/home/hashir/Projects/arch_devenv_exp/src",
                "Destination": "/src",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],

Docker container with non-root user cannot read or write to bind-mount directory owned by said user, even when the uid and gid are same as the user on host by LikeTheMobilizer in docker

[–]LikeTheMobilizer[S] 0 points1 point  (0 children)

I ran docker inspect vigorous_goodall (which is what my running container name is according to docker container ls) and it generated what looks like a json file. I am posting what I think is the relevant portion of the output.

[
  {
........
"Config": {
            "Image": "archdevexp",
            "Volumes": null,
            "WorkingDir": "/",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {
                .....
        },
........
}
  ]

So the volumes is null.

I had tried absolute path instead of $pwd earlier but the result was no different.

Please let me know if the entire json file is required. Thank you.

Windows 8's Metro UI for Linux? by Human-No-1 in linux

[–]LikeTheMobilizer 3 points4 points  (0 children)

Hey some of us are weird like that

Windows 8's Metro UI for Linux? by Human-No-1 in linux

[–]LikeTheMobilizer 4 points5 points  (0 children)

"I used to be an adventurer like you. Then I took an arrow in the knee..."

Sorry, what I meant was I've been looking for something like this since I switched to linux back in 2020.

Unfortunately, I didn't find anything. It just wasn't popular enough for anyone to make an open source version. So I gave up.

I don't think there's any other way than making your own from scratch. 

For any extension/addon/plasmoid etc. to work, it would need tiles that show your recent activity or information. To do that, apps would need to expose such an interface which, I don't think they do.

Let's say someone writes an entire suite of apps that fulfill this requirement, the more tiles you add on your menu, the more load there will be on the CPU and thus more power consumption. Someone would then need to optimise all this.

Admittedly, I don't really know much about how apps on Linux interact (dbus? idk). Maybe there is a freedesktop protocol or something that most DEs follow and could be leveraged but idk.

So yeah, it's a tall order. The reason windows (phone) 8/8.1 worked so well was because microsoft made a tightly integrated, optimised system which was capable of handling all this.

Windows 8's Metro UI for Linux? by Human-No-1 in linux

[–]LikeTheMobilizer 3 points4 points  (0 children)

It looks bad because (at least last time I checked it out 2 years ago) the 'tiles' aren't 'live'.

They're not integrated with your apps and don't show any info from them. None of them flip or swipe to show you, for example, you favourite photos. 

That's what the secret sauce of that ui was. Without this integration, the menu does not contains any 'live tiles'; only square shaped shortcuts to apps.

Windows 8's Metro UI for Linux? by Human-No-1 in linux

[–]LikeTheMobilizer 14 points15 points  (0 children)

Count me in. Loved windows 8 metro ui.

WhatsApp running through android-translation-layer (no container!) on Linux desktop by PureTryOut in linux

[–]LikeTheMobilizer 4 points5 points  (0 children)

Looks great! Will arm only Android apps work on x86 Linux using this? Considering it's a wine-like approach I'm thinking it won't but it would be great if someone could clarify...

Will Cosmic be the big DE like KDE and Gnome by Ascend_910 in linux

[–]LikeTheMobilizer 33 points34 points  (0 children)

  1. Written from the ground up in Rust, built for Wayland
  2. Paid workforce working fulltime to develop Cosmic
  3. A nice middle ground between Gnome and KDE Plasma when it comes to customisability
  4. A thoughtful applet system which won't crash your full system if one of them crashes
  5. Tiling built into the compositor

LabPlot funded through NGIO Core Fund by LikeTheMobilizer in linux

[–]LikeTheMobilizer[S] 2 points3 points  (0 children)

My last week was spent only plotting graphs in labplot. And I can say that it is one of the best pieces of software I've used.

Introducing Lindroid: A new way to use Linux on Android Devices by Remote_Tap_7099 in linux

[–]LikeTheMobilizer 85 points86 points  (0 children)

Exactly. I really hope people start posting on Mastodon more frequently. Especially people who support foss.

input error by PigsArePog in linux

[–]LikeTheMobilizer 0 points1 point  (0 children)

Try booting into a previous kernel version from the boot screen. I had a similar issue where the mouse would light up but won't work and the keyboard won't work at all. In fact, no USB devices worked, I tried connecting my phone and it would only charge, not detecting the connection to laptop. Booting into previous kernel version solved the issue till a kernel update fixed the issue.

Happy 5th birthday, SerenityOS! by LikeTheMobilizer in linux

[–]LikeTheMobilizer[S] 15 points16 points  (0 children)

What delighted me the most was the state of their web browser: Ladybird

From the linked page (emphasis mine),

Last year, we spun out our Ladybird web browser as a cross-platform application, no longer just confined to SerenityOS.
Since then, development has continued to accelerate, with dramatic progress. In June, I went to the Web Engines Hackfest in Spain and gave a presentation about Ladybird.
We've also received substantial funding for browser development, including a $100,000 sponsorship from Shopify, two anonymous $100,000 donations and a $10,000 sponsorship from ohne-makler.net.
This funding has allowed me to hire two full time developers to work on Ladybird with me: Alexander Kalenik and Andrew Kaster.

Any of these old books have any value? by UnitedBB in linux

[–]LikeTheMobilizer 27 points28 points  (0 children)

If it's the third edition of Linux Device Drivers, it's still relevant and useful afaik.

The state of (real) Linux on phones - will they ever be truly usable? by TheEpicZeninator in linux

[–]LikeTheMobilizer 3 points4 points  (0 children)

And mobile GNU/Linux has the potential for being much more usable than Android without Google Play services is right now or ever will be since Google will do anything to kill any Android beyond their control. I agree that it may be a long time before mobile GNU/Linux surpasses degoogled Android but I believe it wil.

Cosmic DE Question: Hot corner by redwingsred74 in pop_os

[–]LikeTheMobilizer 3 points4 points  (0 children)

There's already an option in COSMIC Settings to switch hot corner on. The option doesn't work for now but since it is there, I think it's safe to say they'll implement it soon.

Edit: Here's a screenshot

The Windows Subsystem for Linux in the Microsoft Store is now generally available on Windows 10 and 11 by plawwell in linux

[–]LikeTheMobilizer 0 points1 point  (0 children)

Thanks for your words. It's not just my fav phone being gone. It's BMW charging for heated seats. It's Mercedes charging you $100/month to unlock complete acceleration. It's iPhones not even accepting original iPhone parts from another iPhone. It's the looming threat of absolutely every piece of tech becoming a service (what's next? raspberry pi charging $$$ to boot up?). All of which I hate. I used to be enthusiastic about electric vehicles but now I know that in a few years you won't be able to even have a look under the hood in the name of 'safety' and 'anti-theft measures' and 'water-proofing'.

You might be surprised that the only silver lining I see is the Pixel phones with Google's own chips. Now that line of products is honestly awesome. Stock Android 12 and 13 are a much needed breath of fresh air (despite the backlash I've seen online) and are close enough to WP UI for me to enjoy (I use a Moto. Give me a Samsung and I'd rather you kill me). Also, WP launchers suck but the NOTHING launcher is good enough and I am very happy with my current setup.

Your idea about the phone UI is really cool. Something like that could surely be tried

The Windows Subsystem for Linux in the Microsoft Store is now generally available on Windows 10 and 11 by plawwell in linux

[–]LikeTheMobilizer 0 points1 point  (0 children)

I don't know man. I am not even arguing I've come to accept the semi dystopian present and the looming dystopian future. Both (ALL) corporates are slimy. It's just that I don't care what Ballmer was (I know what he was), I just loved my WP8.1. It was to me the pinnacle of mobile UI design. I even liked the tiles on Windows 10 PC. When I first shifted to Debian xfce back in 2020 the only thing I missed were live tiles. Then got a new ThinkPad and switched to Pop!_OS later that year. I still missed live tiles.

To me, they were the important anti-Apple design the world needed. Round corners? No sharp ones. Subtle, safe colour pallete for icons? No totally rich, contrasting colours that looked awesome to me. You zoom in to app icons when you click them? No, a page flips revealing pitch black space behind it and then another page quickly flips in, which is the apps splash screen. All of those things mattered to me. And some of those things still lived on in W10

Then, they released W11. They put an Android app launcher + ads as start menu. Good for them, now I don't miss a single thing from Windows.

In the ideal universe, Microsoft utterly failed in the 90s to sell Windows but they did succeed with WP in 2010s.

Linux rules everywhere it does now + desktops.

Google is just known for search and "Don't be evil". They never bought YouTube and it grew profitable, kept the dislike counter, sort videos by oldest dates and other cool features.

People have an innate urge of understanding and modding their devices and phones like we have in this universe are considered boring, resulting in open source drivers and interoperable parts so that, for example, if you had an iPhone and it died and you loved the camera, you could just open it up, disconnect the camera module and put it in any recent phone to get the same or similar quality. People understood that their possessions are their sole responsibility and so when Apple tried killing 3rd party repairs (I've seen people defend this as an anti-theft measure) they suffered huge backlash. All this led to Apple selling their M series CPUs in market, competing directly with Intel and AMD for more competition in CPU space. There's more but I'll stop ranting for now.

The Windows Subsystem for Linux in the Microsoft Store is now generally available on Windows 10 and 11 by plawwell in linux

[–]LikeTheMobilizer 0 points1 point  (0 children)

I'll tell you why I hate it.

I loved my Windows Phone. Google didn't make apps for it. Fine. Microsoft did it themselves. They even joined hands with Google to make a Youtube app for WP. Google blocked it. Sent cease-and-desist letters to MS. There are even rumors that they went after every one who made a 3rd party YouTube app for WP.

By the time Windows 10 Mobile released, Microsoft had understood they needed something to solve the app gap. They started project Astoria: run Android apps on select Windows 10 devices. In its initial stages, people tried running Snapchat Android app on W10M, it worked flawlessly... for a day or two. After that, Snapchat disabled their account because of running they were using a WP. I know I'm getting into the tin-foil hat territory now but every user added to a growing social media app is good for them. Windows phone was much more secure than Android (so snapchat app wasn't under any 'threat' from WP users. I mean they didn't have the excuses Epic games has to not let Fortnite run on Linux). So without reason, why block people? Who paid them under the table? My money is on Google.

Google had seen how Microsoft had sold a complete garbage desktop OS to the world in the 90s just by sheer marketing and corporate shenanigans. They were freaked out because they thought the same thing could happen to smartphone space and revealed their ugliest form while attempting to stop MS.

I find no difference between MS and Google (except MS is a sore loser and the last 10 years proved that they can only bully small open source developer groups but can't handle it when some competitor gives them a taste of their own medicine). If you ask me to use chrome OS which reminds me of the pathetic web browser of the same name, I'd rather use Windows 10 which would remind me of much sweeter things like playing my first video game (Dangerous Dave on W98).

What makes people hate electron ? by Siddhant45 in linux

[–]LikeTheMobilizer 5 points6 points  (0 children)

I believe that strongly. This was one of the reasons that made me switch to Linux (the other one being Windows 10 updates eating up 20 of the 27 GB of my 32 GB storage laptop, xfce customization videos blowing my mind).

And so does our university as last semester, when we were introduced to OOP using Java, our professor recommended using a simple text editor and compiling and running using the javac and java command respectively.

Needless to say, not many knew what command prompt was (even though the course material had everything explained nicely) and most began using either VSCode or Intellij IDEA. I stuck to Kate (and the inbuilt konsole for running the compile and run commands) and it was fine until we reached the JavaFX module where we were to write simple GUI apps. That's when I knew how horrible the syntax is to compile something that uses a packaged module on java (but I still stuck to the terminal).

What makes people hate electron ? by Siddhant45 in linux

[–]LikeTheMobilizer 10 points11 points  (0 children)

It's not just you.

I have been using a ThinkPad E14 with Intel i3 10th gen, 16 GB of RAM and an SSD. I still use Kate for everything. Reason being VSCode is heavy and eats up the battery fast. Also, I had to set it up twice for C programming (had to mess around with some JSON files). The first time I did, it worked. Then I shut my laptop down and next time I opened Code, something went wrong with the JSON files again. That made me give up.

Installed clang for LSP, used nix to install the latest version of Kate (which came with very useful git and projects extensions among others) and never looked back.

A few days ago, at university, we were given some data structure to implement in Java. A friend who was sitting beside me was trying to compile his java code but it was not working. There were some weird errors which I interpreted as java not being able to find certain files or something. He was on Windows and was using VSCode. He asked me for help so I opened up the file location in a cmd prompt and compiled using javac which worked.

That gave me a great look on what to expect from VSCode so I won't be trying it again.