Agility0971

joined 2 years ago
[–] Agility0971@lemmy.world 2 points 5 hours ago

yep. that did it. I had to wrap the entire thing in quotes though

sh -c "echo 'test' | sudo tee newfile"
[–] Agility0971@lemmy.world 1 points 5 hours ago* (last edited 5 hours ago)

no way. I'm in /tmp for this one

echo 'test' | tee newfile
tee: newfile: Permission denied
test
echo 'test' | sudo tee newfile #the prompt never returns when running this in zsh
[–] Agility0971@lemmy.world 1 points 5 hours ago

sudo does not prompt for password in my container. It just elevates the privileges straight away. Yeah, it's hard to tell. Or test for that matter.

[–] Agility0971@lemmy.world 1 points 5 hours ago (2 children)

what I was saying was that echo "text" | sudo tee newfile would hang and never return and needs to be interrupted. I just noticed this does not happen in bash but I was testing in zsh.

Guessing that file doesn't exist already is the problem, and you don't even need to use tee in this example.

you've missed the point here I'm afraid. But I'll blame it on my for not explaining properly what I was intending to do.

[–] Agility0971@lemmy.world 2 points 6 hours ago (4 children)

I just switched over to bash and it worked lol. It just didn't return for me in zsh...

[–] Agility0971@lemmy.world 1 points 6 hours ago (1 children)

yeah indeed. I'm setting up a container with these instructions for ROS2. There you'll have to add a repository to the apt sources list.

18
submitted 6 hours ago* (last edited 5 hours ago) by Agility0971@lemmy.world to c/linux@lemmy.ml
 

Can someone explain why this would make the command wait forever? What is tee waiting for?

echo "test" | sudo tee newfile

What would be a scriptable workaround for such cases?

Edit: this command would not terminate in zsh. This works fine in bash tho.

[–] Agility0971@lemmy.world 2 points 1 week ago* (last edited 1 week ago) (1 children)

I've always wanted to try running alpine on hardware. Is this your daily driver? Talk about clean home directory lol

[–] Agility0971@lemmy.world -4 points 1 week ago (3 children)

So this means even more demand for electricity in EU then?

[–] Agility0971@lemmy.world 9 points 2 weeks ago (4 children)

I use neovim but i think helix is honestly better ootb.

[–] Agility0971@lemmy.world 1 points 2 weeks ago (1 children)

Why is that a switch? Is there any reason to have HDR disabled?

[–] Agility0971@lemmy.world 3 points 1 month ago

The most profitable sowing machine company in the world

[–] Agility0971@lemmy.world 14 points 1 month ago

Then dips it in soy sauce

 

Do anyone know how to disable the touchscreen on wayland? All I find is only relevant for x11

20
submitted 2 months ago* (last edited 2 months ago) by Agility0971@lemmy.world to c/selfhosted@lemmy.world
 

I'm looking for a simple remote system monitoring and alerting tool. Nothing fancy. Do you know of any? Features:

  • monitors CPU, memory and disk space
  • can accept multiple hosts to watch
  • has some sort of alerting system
  • can be deployed as a single docker container
  • can be configured using a text file
  • configs can be imported and exported inside the docker compose file

I like uptime-kuma but it only records the uptime. Other containers I've found seemed to be overly complicated. They requires multiple docker containers for log aggregation etc...

 

In every country there are several mobile service providers. And with current EU regulations no mobile provider can charge extra for traveling within EU. Mobile providers in my country are definitely more expensive that average European mobile plan. I was wondering, can I downgrade my current plan to only keep my current phone number and purchase a plan from a cheaper mobile provider in another EU country with unlimited data and just use roaming all the time since I'm in EU? What are your thoughts? Do you know about a cheap mobile data plan?

83
Deduplication tool (lemmy.world)
submitted 8 months ago* (last edited 8 months ago) by Agility0971@lemmy.world to c/linux@lemmy.ml
 

I'm in the process of starting a proper backup solution however over the years I've had a few copy-paste home directory from different systems as a quick and dirty solution. Now I have to pay my technical debt and remove the duplicates. I'm looking for a deduplication tool.

  • accept a destination directory
  • source locations should be deleted after the operation
  • if files content is the same then delete the redundant copy
  • if files content is different, move and change the name to avoid name collision I tried doing it in nautilus but it does not look at the files content, only the file name. Eg if two photos have the same content but different name then it will also create a redundant copy.

Edit: Some comments suggested using btrfs' feature duperemove. This will replace the same file content with points to the same location. This is not what I intend, I intend to remove the redundant files completely.

Edit 2: Another quite cool solution is to use hardlinks. It will replace all occurances of the same data with a hardlink. Then the redundant directories can be traversed and whatever is a link can be deleted. The remaining files will be unique. I'm not going for this myself as I don't trust my self to write a bug free implementation.

28
submitted 9 months ago* (last edited 9 months ago) by Agility0971@lemmy.world to c/linux@lemmy.ml
 

I've run passwd and sudo su; passwd to change password for root and my account. Password is set correctly when using sudo and su but whenever I get prompted by pkexec it accepts only the old password. I've rebooted my system to make sure it was not an issue.

Edit: Solved Turns out the password were changed for root account but not my user account. I think the reason is that there are no password quality requirements on root accounts, but there are on the default account in ubuntu. Changing the password from root account passwd user worked fine.

 
while true; do; sudo pacman -Syu --noconfirm; done
 

It is common for companies to neglect financing in cyber security for a quick short term gain. And at the same time the laws are created such that an offensive hacker would be the criminal. By turning the law around the blame would be on the company for building insecure systems, just like it is right now companies get problems if they would create unsafe products for consumers.

What do you think would happen if laws would change in such a way, that gaining unauthorized access would become legal? Note that I've intentionally excluded permission to share sensitive information. Would love to read your responses and thoughts

 

Hi, what do you use to cooperate on simulink projects? I tried using git on GitHub at first but the issue is that GitHub has a size limitation on blobs. It suggested to use git-lfs however that filled the storage space up almost instantly. is there any other solutions you've found useful?

 

has anyone had any success with squad 6.0 yet?

 

I'm looking for an extension that makes the workspace on multi monitor setup independent. Right now If I switch workspace on my laptop it changes on the big screen as well.

view more: next ›