You are not logged in.

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,862

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.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,862

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

?????????


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,862

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 ~
   $ 

The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

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

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
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?

monkey

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

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


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,862

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.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

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

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
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.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,862

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"


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

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

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,516

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

Offline

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,862

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?

monkey

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!!


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,862

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.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,862

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.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

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
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,862

Re: S11 needs Conky help.

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


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

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

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

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 Twoion for mentioning this command).

Offline

#41 2017-08-01 12:30:59

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,862

Re: S11 needs Conky help.

Yes, desktop here:

 01 Aug 17 @ 09:27:21 ~
   $ acpi -b -i
No support for device type: power_supply
 
 01 Aug 17 @ 09:27:26 ~
   $ power_suply
bash: power_supply: command not found
 
 01 Aug 17 @ 09:27:40 ~
   $ 

See how well I read and obey the instructions it said to type: power_supply  big_smile


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#42 2017-08-09 22:45:21

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

Re: S11 needs Conky help.

^How is that even possible? Or did you change "suply"? Bash does not change it for me if I mistype the word.

One more idea: What about showing Amps and Voltage on a key?

I was thinking about a nice graph for voltage (and maybe amps too) in conky. I got this idea after I had a look on a windows battery manager. ops

Offline

#43 2017-08-09 23:59:44

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,862

Re: S11 needs Conky help.

Yea, I could do that with volts ... I have a few here, but no amps.  Also I have no what of knowing what the volts are for:

 09 Aug 17 @ 20:58:05 ~
   $ sensen
alias for: sensors && echo =-=-=-=-=-=-= && inxi -s

acpitz-virtual-0
Adapter: Virtual device
temp1:        +30.0°C  (crit = +110.0°C)

f71862fg-isa-0a00
Adapter: ISA adapter
+3.3V:        +3.49 V  
in1:          +1.00 V  
in2:          +1.50 V  
in3:          +0.86 V  
in4:          +0.00 V  
in5:          +0.00 V  
in6:          +0.00 V  
3VSB:         +3.39 V  
Vbat:         +2.99 V  
fan1:        1940 RPM
fan2:           0 RPM  ALARM
fan3:           0 RPM  ALARM
temp1:        +41.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = transistor
temp2:        +43.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
temp3:       +127.0°C  (high = +70.0°C, hyst = +68.0°C)  ALARM (CRIT)
                       (crit = +85.0°C, hyst = +83.0°C)  sensor = transistor

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +32.5°C  (high = +70.0°C)

=-=-=-=-=-=-=
Sensors:   System Temperatures: cpu: 43.0C mobo: 32.9C gpu: 40C
           Fan Speeds (in rpm): cpu: 1940 fan-2: 0 fan-3: 0
 
 09 Aug 17 @ 20:58:08 ~
   $ 

The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#44 2017-08-10 08:51:54

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

Re: S11 needs Conky help.

Assuming "energy-rate" is the wattage...

#!/bin/bash
##
## power

# get info of all devices:  "upower -d"

V=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -i voltage)
Volts=$(echo "$V" | awk '{print $2}' | cut -c 1-5)

W=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -i "energy-rate")
Watts=$(echo "$W" | awk '{print $2}' | cut -c 1-5)

Amps=$(echo "$Watts / $Volts" | bc -l | cut -c 1-3)

echo "$Watts W"
echo "$Volts V"
echo "$Amps A"

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

#45 2017-08-10 13:07:21

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

Re: S11 needs Conky help.

^That script is awesome! cool   I suppose these values would make a nice graph (or actually three graphs) in conky.

Offline

#46 2017-08-10 13:10:42

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

Re: S11 needs Conky help.

I just had a quick look at upower, and figured that it probably provides all the info you conky guys might need wink


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

#47 2017-08-10 15:49:02

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,862

Re: S11 needs Conky help.

IF I had a laptop and IF I had upower installed, it just might.

 10 Aug 17 @ 12:41:20 ~
   $ upower -d
bash: upower: command not found

My power management is very simple, push the power button in the morning and shut down at night.  big_smile

I've lost interest in that conky.  I doubt it will ever get done, too many keys to few commands.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

Board footer

Powered by FluxBB