You are not logged in.

#21 2017-05-28 19:24:41

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: S11 needs Conky help.

OK, thanks .... still checking here on Stable.  0 at the moment.

@ HoaS

 28 May 17 @ 16:20:04 ~
   $ apt update && apt list --upgradable
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
 
 28 May 17 @ 16:20:06 ~
   $ 

Needs root access. sad sad


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#22 2017-05-28 19:29:52

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,063
Website

Re: S11 needs Conky help.

Sector11 wrote:

Needs root access

Ah yes, apologies S11, I was using the "#" symbol to indicate that root privileges are required — stock Debian doesn't include `sudo` and I don't use it myself.

Last edited by Head_on_a_Stick (2017-05-28 19:30:44)

Offline

#23 2017-05-28 19:35:06

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,897

Re: S11 needs Conky help.

Head_on_a_Stick wrote:
Sector11 wrote:

Needs root access

Ah yes, apologies S11, I was using the "#" symbol to indicate that root privileges are required — stock Debian doesn't include `sudo` and I don't use it myself.

I set up sudo on my system to make it quick and easy to run something as root. I added only my main user to the sudo group in sudoers file.


Real Men Use Linux

Offline

#24 2017-05-28 19:42:48

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,063
Website

Re: S11 needs Conky help.

^ I remove `sudo` then edit /etc/pam.d/su to restrict `su` access to members of the wheel group, as it is in the BSDs.

Linux is too lax, IMO neutral

Offline

#25 2017-05-28 19:55:53

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: S11 needs Conky help.

Just leave out the update - sudo isn't needed for the list. As long as you can live with a possible error with the list of packages since the last update of course.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#26 2017-05-28 20:15:46

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: S11 needs Conky help.

DeepDayze wrote:

I set up sudo on my system to make it quick and easy to run something as root. I added only my main user to the sudo group in sudoers file.

Yea, I'm not going down that road, S12 and I share the same login.  I don't want her to have sudo access and I certainly will not give it to conky.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#27 2017-05-28 20:17:22

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: S11 needs Conky help.

Head_on_a_Stick wrote:

^ I remove `sudo` then edit /etc/pam.d/su to restrict `su` access to members of the wheel group, as it is in the BSDs.

Linux is too lax, IMO neutral

?????????


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#28 2017-05-28 20:21:31

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: S11 needs Conky help.

Head_on_a_Stick wrote:

Ah yes, apologies S11, I was using the "#" symbol to indicate that root privileges are required

Not a problem, sometimes ya win, sometimes ya loose.  And you have a much better winning streak than I do  big_smile

And I 'should have known':

 28 May 17 @ 17:18:50 ~
   $ sudo su -
[sudo] password for sector11: 
root@bunsen:~# exit
logout
 
 28 May 17 @ 17:19:22 ~
   $ 

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#29 2017-05-28 20:22:41

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,063
Website

Re: S11 needs Conky help.

Sector11 wrote:

?????????

Pop quiz hotshot: what if your good wife got hold of the root password and learned about the `su` command?

What do you do? What do you do?

8o

EDIT: I'm just joking here, sorry about the noise.

Last edited by Head_on_a_Stick (2017-05-28 20:25:35)

Offline

#30 2017-05-28 20:26:01

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: S11 needs Conky help.

damo wrote:

Just leave out the update - sudo isn't needed for the list. As long as you can live with a possible error with the list of packages since the last update of course.

I realize that, use it all the time but it is needed for the first part of the line:

apt update && --- 

I'm still waiting for results on:

aptitude search "~U" | wc -l

if that works I'll go with it.

also:

 28 May 17 @ 17:28:47 ~
   $ apt list --upgradable
Listing... Done
 
 28 May 17 @ 17:28:48 ~
   $ 

with a 1 second time to complete it's not going online and checking, just checking the list here.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#31 2017-05-28 20:29:58

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,063
Website

Re: S11 needs Conky help.

Sector11 wrote:
aptitude search "~U" | wc -l

That command would also need the sources to be updated beforehand in order to return an accurate result, I think.

Offline

#32 2017-05-28 20:46:41

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: S11 needs Conky help.

Well, PackRat said it worked when he ran SID so I'm checking.  smile
Worst that can happen is it fails to pickup on something and I move on.  But it's running in a conky while I do other things with "The Keyboard"


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#33 2017-05-28 22:28:52

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,611

Re: S11 needs Conky help.

Been a while since I've used aptitude, but I think the:

search "~U"

handles updating the sources when aptitude searches for updated packages.


You must unlearn what you have learned.
    -- yoda

Online

#34 2017-05-28 23:05:02

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: S11 needs Conky help.

Head_on_a_Stick wrote:

Pop quiz hotshot: what if your good wife got hold of the root password and learned about the `su` command?

What do you do? What do you do?

8o

hahahahahah I mean: HAHAHAHAHA
JUMP!  And hope you're on a narrow bridge over a slow moving deep river y/o Kiss You Butt G'Bye

PS: You apologize way too often.  And that was an excellent movie!  What a heroine!!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#35 2017-05-28 23:31:08

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: S11 needs Conky help.

PackRat wrote:

Been a while since I've used aptitude, but I think the:

search "~U"

handles updating the sources when aptitude searches for updated packages.

Found this:

?upgradable	~U	Select packages that are installed and can be upgraded.

Clicked on ?upgradable

?upgradable, ~U

    This term matches any installed package which can be upgraded.
    [Note]    Note

    Note that this only tests whether there are upgrades available for a package, not whether an upgrade could be performed (with actions such as safe-upgrade or full-upgrade).

    For instance, there can be upgrades available for several packages, but maybe the upgraded versions of a subset conflict with each other, so they cannot be co-installed or not all of them upgraded at the same time.

doesn't say clearly either way but the language leads me to believe it just might work - for "upgrades" not updates.

the word "update" does not exist in "Table 2.3. Quick guide to search terms"

This is a little clearer:

?action(action), ~aaction

    Matches packages upon which the given action is going to be performed. action can be “install”, “upgrade”, “downgrade”, “remove”, “purge”, “hold” (tests whether a package has been placed on hold), or “keep” (tests whether a package will be unchanged).
    [Note]

    Note that this only tests whether an action is actually queued up to be performed on a package, not whether it could be performed. Thus, for instance, ?action(upgrade) matches exactly those packages that you have already decided to upgrade, not packages which could be upgraded in the future (for that, use ?upgradable).

so much for "updates"!  It's a no go.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#36 2017-06-07 21:40:28

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: S11 needs Conky help.

I've got another one: Firewall: ufw status, thanks to Naik
2017-06-07_183810_Scrot11.th.jpg
Slowly it's getting stuff - with some stuff in reserve as well.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#37 2017-07-27 09:58:00

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: S11 needs Conky help.

What about disk usage?

du --max-depth=1 -x -k | sort -n | awk 'function human(x) { s="KMGTEPYZ"; while (x>=1000 && length(s)>1) {x/=1024; s=substr(s,2)} return int(x+0.5) substr(s,1,1)"iB" } {gsub(/^[0-9]+/, human($1)); print}'

Output is sorted by size and it is in human size presentation.

Offline

#38 2017-07-27 15:15:58

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: S11 needs Conky help.

^ Nice, but how do I put that on a "key" on the keyboard  big_smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#39 2017-07-27 18:00:46

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,641

Re: S11 needs Conky help.

really nice   tongue

[OT
To find space guzzlers on the HDDs, i always found the @BitJam (antiX-forum) top
as root

du -h $(find / -size +10M) | sort -h

OT]  big_smile

Offline

#40 2017-08-01 10:52:53

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: S11 needs Conky help.

Well, it does not make much sense on a desktop machine, but

acpi -b -i

might be useful on laptops (thanks to nobody for mentioning this command).

Offline

Board footer

Powered by FluxBB