Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #274037

Re: lower cpu speed

From eben@gmx.us
Newsgroups linux.debian.user
Subject Re: lower cpu speed
Date 2024-10-25 15:20 +0200
Message-ID <JBsop-48bt-7@gated-at.bofh.it> (permalink)
References <JBifn-4211-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 10/24/24 22:20, David Wright wrote:
> On Thu 24 Oct 2024 at 20:34:18 (-0400), eben@gmx.us wrote:
>> On 10/24/24 20:01, David Wright wrote:
>>> Because of the ownership:
>>>
>>>     $ ls -l /var/cache/apt/archives/
>>>     total 4
>>>     -rw-r----- 1 root root    0 Apr 16  2022 lock
>>>     drwx------ 2 _apt root 4096 Oct 22 19:00 partial
>>>     $
>>>
>>> we can assume that _apt is the user that actually downloads packages
>>> (into partial/) before APT installs them. But your assumption that
>>> tmp_sh can be read by any user (including _apt) is wrong: you need
>>> execute permission on all directories traversed along the path, even
>>> when you “know what you're looking for”.
>
> Apologies ditto.
>
>> Fair enough.  Should I chmod a+x /root/.synaptic/tmp then, or is there a
>> nicer way?
>
> Not using synaptic, I don't know why that path was chosen. But
> you'd need world-execute all the way down from /root itself.
>
> When I install yt-dlp, being lazy I download the package from
> packages.debian.org, choosing the most recent version, typically
> trixie's. I store it under /home/debian/trixie (or whatever), and
>    # apt-get install full-path
> I consider this safe, and ignore the warning that's issued. IIRC,
> my warning starts with "N: Download is performed … ".
>
> I do this because I'm too lazy to change my sources.list, and
> that has the side-effect that I can't accidentally install any
> non-stable packages by way of Depends/Recommends/Suggests.
>
> In the past I have placed packages in /var/cache/apt/archives/,
> but I'm not sure whether I used apt-get with a full path,
> or dpkg -i; it was so long ago.
On 10/24/24 22:20, David Wright wrote:
> On Thu 24 Oct 2024 at 20:34:18 (-0400), eben@gmx.us wrote:
>> On 10/24/24 20:01, David Wright wrote:
>>> Because of the ownership:
>>>
>>>     $ ls -l /var/cache/apt/archives/
>>>     total 4
>>>     -rw-r----- 1 root root    0 Apr 16  2022 lock
>>>     drwx------ 2 _apt root 4096 Oct 22 19:00 partial
>>>     $
>>>
>>> we can assume that _apt is the user that actually downloads packages
>>> (into partial/) before APT installs them. But your assumption that
>>> tmp_sh can be read by any user (including _apt) is wrong: you need
>>> execute permission on all directories traversed along the path, even
>>> when you “know what you're looking for”.
>
>> Fair enough.  Should I chmod a+x /root/.synaptic/tmp then, or is there a
>> nicer way?
>
> Not using synaptic, I don't know why that path was chosen. But
> you'd need world-execute all the way down from /root itself.

Well the chmod thing is not acceptable.

> Well, I'll admit that I'm mystified as to what the 283682-byte file
> called tmp_sh actually is, and how it was obtained.

eben@cerberus:~$ sudo file /root/.synaptic/tmp/tmp_sh
[sudo] password for eben:
/root/.synaptic/tmp/tmp_sh: PNG image data, 825 x 861, 8-bit/color RGBA,
non-interlaced

I asked for a screenshot of some package, and that appears to be it.  As to
why it's there, couldn't say.  I don't need to save it for posterity or
anything.

It's only a warning so not critical to fix, so I guess I have time to try
non-destructive means of making it not happen.  Thanks.

--
                Maturity is when you stop
              complaining and making excuses,
                 and start making changes.
                     -- Ngoma_r on Reddit

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: lower cpu speed David Wright <deblis@lionunicorn.co.uk> - 2024-10-25 04:30 +0200
  Re: lower cpu speed David Wright <deblis@lionunicorn.co.uk> - 2024-10-25 04:40 +0200
    Re: lower cpu speed eben@gmx.us - 2024-10-25 15:20 +0200
      Re: lower cpu speed Hans <hans.ullrich@loop.de> - 2024-10-25 15:50 +0200
  Re: lower cpu speed eben@gmx.us - 2024-10-25 15:20 +0200
    Re: lower cpu speed David Wright <deblis@lionunicorn.co.uk> - 2024-10-25 21:20 +0200

csiph-web