Fatdog64-700/701 [April 22 2015] [CLOSED]

A home for all kinds of Puppy related projects
Message
Author
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

CUPS

#261 Post by L18L »

CUPS version is 1.7
Missing a default PDF "printer" which was in former versions.
User avatar
SFR
Posts: 1799
Joined: Wed 26 Oct 2011, 21:52

Re: Find 'N Run

#262 Post by SFR »

L18L wrote:
SFR wrote:IMHO something like this (I'm not saying it has to be this one) could be a useful addition to razor/openbox(/jwm) menus.
What do you think?
I like it.
And I have been thinking:
Could use Name[pl]
and Comment[pl] as tooltip.
:wink:
Thanks L18L!
As for the tooltips I just tried to use tooltip-column property, but it doesn't seem to work in Gtkdialog, unfortunately...
Anyway, feel free to take, modify as you like and re-post it. 8)

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
User avatar
Billtoo
Posts: 3720
Joined: Tue 07 Apr 2009, 13:47
Location: Ontario Canada

#263 Post by Billtoo »

SFR wrote:razor-panel

Some plugins don't work: Color picker, Launch screensaver, Network monitor, Removable media, Sensors.
I see they just weren't included, but what about including at least Network monitor and Sensors (see scrsht)?
It's quite useful to have these kind of informations on the panel.
As for the rest, after removing corresponding .desktop files from /usr/share/razor/razor-panel/, the dead entries from 'Add plugins' dialog will disappear as well.

Greetings!
I have conky installed and adding this to the conky.conf file monitors
the cpu temp on my single core amd athlon processor:

${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
Temperature:$alignr${acpitemp} degrees C
$hr

If you feel like compiling conky of course :)
I see that there is an older version of conky in the fatdog64 repo, I'm
using version 1.9.0
Attachments
conky.jpg
(41.3 KiB) Downloaded 655 times
DrDeaf
Posts: 69
Joined: Sat 30 Dec 2006, 14:10

Re: CUPS

#264 Post by DrDeaf »

L18L wrote:CUPS version is 1.7
Missing a default PDF "printer" which was in former versions.
Hi L18L,
Everyone here has a higher skill level than I do, so it is very possible that I don't grasp your post... However, I checked what I am using and it is the same as you mention (v 1.7.3 to be precise) and I recall noticing that the "look" is different than before. But if you are meaning the "print to pdf" ability, it is not missing just under a new menu. See "File", "Print", then in the box choose "Print to file", then pick from pdf or postscript. Type in the complete file name you want for the pdf and you are done.
Again, if I didn't understand your post, sorry for the noise... :oops:
Sage
Posts: 5536
Joined: Tue 04 Oct 2005, 08:34
Location: GB

#265 Post by Sage »

..monitors the cpu temp..
We don't, a priori, know what that means (cf. long discussion about a decade ago). A figure of 40C suggests the outside top surface temperature because the core(s) generally run hotter than that according to the published data. That raises the question of how it's measured. In the olden days there was a flexi thermocouple that rested on the underside of the chip, but that isn't possible now because the entire area is occupied by pin connectors. Sometimes there's crude SW/HW interpolation based on the data sheet, but that's cheating. AMD (probably Intel too?) have been incorporating a diode junction on-chip for a long time, but the literature is unclear as to how the voltage is interpreted. This is the means of citing a figure in BIOS, but not all of them show this and we may be about to wave goodbye to the BIOS. Chip makers are quick to point up the voracity of their published data, but listening closely to opinions from insiders suggests the figures are less than kosher.
Notwithstanding, most commentators recommend watching whatever value shows up on any individual machine and making sure it doesn't vary too widely and hopefully not take an excursion.
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: Find 'N Run

#266 Post by L18L »

SFR wrote:
L18L wrote:
SFR wrote:IMHO something like this (I'm not saying it has to be this one) could be a useful addition to razor/openbox(/jwm) menus.
What do you think?
I like it.
And I have been thinking:
Could use Name[pl]
and Comment[pl] as tooltip.
:wink:
Thanks L18L!
As for the tooltips I just tried to use tooltip-column property, but it doesn't seem to work in Gtkdialog, unfortunately...
Anyway, feel free to take, modify as you like and re-post it. 8)

Greetings!
Just the one line changed for translated Names:

Code: Select all

LANG=pl
echo '
<window title="Find'\''N'\''Run" icon-name="edit-find" window-position="2" width-request="260" height-request="400">
  <vbox>
    <entry>
      <variable>varENTRY</variable>
      <action>refresh:varLIST</action>
      <action signal="activate">grabfocus:varLIST</action> 
    </entry>
   
    <tree enable-search="false" exported-column="0" headers-visible="false">
      <variable>varLIST</variable>

      <input>grep "^Name\[${LANG%_*}\]=" /usr/share/applications/*.desktop | cut -d "=" -f2| grep -F -i -- "$varENTRY"</input>

      <action>`grep -m1 -- "^Exec=" "/usr/share/applications/${varLIST}.desktop" | cut -f2- -d "=" | cut -f1 -d "%"` &</action>
      <action>exit:EXIT</action>
    </tree>
  </vbox>
</window>' | gtkdialog -s
I am at the end of my skills. No exec. Can you :?:
Attachments
findNrun.png
(4.64 KiB) Downloaded 581 times
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: CUPS

#267 Post by L18L »

DrDeaf wrote:
L18L wrote:CUPS version is 1.7
Missing a default PDF "printer" which was in former versions.
Hi L18L,
Everyone here has a higher skill level than I do, so it is very possible that I don't grasp your post... However, I checked what I am using and it is the same as you mention (v 1.7.3 to be precise) and I recall noticing that the "look" is different than before. But if you are meaning the "print to pdf" ability, it is not missing just under a new menu. See "File", "Print", then in the box choose "Print to file", then pick from pdf or postscript. Type in the complete file name you want for the pdf and you are done.
Again, if I didn't understand your post, sorry for the noise... :oops:
Hm.. there was a default "pdf printer" in CUPS and some notes in
http://www.murga-linux.com/puppy/viewtopic.php?p=835319
That's why I have posted it here for the experts.
Thank you.
User avatar
SFR
Posts: 1799
Joined: Wed 26 Oct 2011, 21:52

Re: Find 'N Run

#268 Post by SFR »

Billtoo wrote:I see that there is an older version of conky in the fatdog64 repo
In fact, it was me who compiled and upload this particular version, because in newer versions transparency on ROX desktop doesn't work, unless we use some tricks like feh...
Anyway, it's always nicer to have such a functionality OOTB and on the panel...
___________
L18L wrote:Just the one line changed for translated Names:
[...]
I am at the end of my skills. No exec. Can you :?:
Looks nice, but there is a problem - many (the most of them, actually) .desktop files don't have translated Names, only the default Name= line...

As for the exec, this one is quite dirty, but should do:

Code: Select all

<action>`grep -h -A1000 -B1000 "^Name.*=.*${varLIST}" /usr/share/applications/*.desktop | grep -m1 "^Exec=" | cut -f2 -d "=" | cut -f1 -d "%"` &</action>
I think that, in order to implement this Name/Name[lang]+Comment stuff, we would need to parse all *.desktop files on start, sort (and do some other nasty things to) them, save results to a temporary file and then operate on that file's contents.

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#269 Post by 01micko »

Hello SFR

Transparency in Rox has had problems in main stream apps mainly because of the lack of distros that use it. I'm guessing you use Patriot's old conky source?

Anyway, I solved this problem for xonclock with a little library I wrote called pmdesktop https://github.com/01micko/pmdesktop

And modified (forked) xonclock https://github.com/01micko/xonclock. Patriot's original hack for that was to pass the desktop window id as a parameter on the command line but I managed to avoid that.

Works in all DE/WM's I have tried.

I have no idea if it would be useful to conky, but if you get bored one day you could try :wink:
Puppy Linux Blog - contact me for access
User avatar
SFR
Posts: 1799
Joined: Wed 26 Oct 2011, 21:52

#270 Post by SFR »

Hey Mick, good to see you're back. :)
Nope, it was the upstream source...didn't know about the other one...

Thanks for the heads up about pmdesktop - I don't know C, but I'll see. ;)

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#271 Post by BarryK »

kirk wrote:
The 'dc' utility seems to be broken in Fatdog.

Try this:

Code:
# dc 1 2 + p
3
# busybox dc 1 2 + p
3


Both of these work in Quirky and other puppies, but only the busybox applet works in FD64.
Actually I think the busybox one is broke, the man page says dc will think those expressions are files. But if debian is patching gnu dc to work like busybox, I wonder what is expected now. For the old dc the syntax is:

Code: Select all

dc <<< '1 2+pq'

or for gnu dc:

dc -e '1 2 +p'
That's interesting, I never looked at the dc man page!

I think, many years ago, I was using the busybox dc, then tried the proper one and discovered that "bug". I then applied the patch from Debian and that "fixed" it.
bc/dc PET package that I supplied for puppy builders had this patch.
I also use the patch in T2, which is why the example I posted "works".

Note, there are some scripts out there, well, some that I wrote anyway, that assume dc works the "busybox way".
[url]https://bkhome.org/news/[/url]
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: Find 'N Run

#272 Post by L18L »

SFR wrote:
L18L wrote:Just the one line changed for translated Names:
[...]
I am at the end of my skills. No exec. Can you :?:
Looks nice, but there is a problem - many (the most of them, actually) .desktop files don't have translated Names, only the default Name= line...

As for the exec, this one is quite dirty, but should do:

Code: Select all

<action>`grep -h -A1000 -B1000 "^Name.*=.*${varLIST}" /usr/share/applications/*.desktop | grep -m1 "^Exec=" | cut -f2 -d "=" | cut -f1 -d "%"` &</action>
I think that, in order to implement this Name/Name[lang]+Comment stuff, we would need to parse all *.desktop files on start, sort (and do some other nasty things to) them, save results to a temporary file and then operate on that file's contents.

Greetings!
Thank you very much for the "action" line.
No translation is no problem...SOLVED.

/usr/local/apps/find_N_run attached.
Without the "Comments" stuff, leave it to next version.
Was fun.
Who will ever never need any menu now :idea: :lol:

Integration into panel would be nice.
Attachments
findNrun.png
(50.85 KiB) Downloaded 580 times
find_N_run.tar.gz
(1.45 KiB) Downloaded 165 times
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

find_N_run

#273 Post by L18L »

Change line 31 from

Code: Select all

  sort -u ${CACHE}_u > ${CACHE}; rm ${CACHE}_u
to

Code: Select all

  sort -f -t '=' -k 2 -u ${CACHE}_u > ${CACHE}; rm ${CACHE}_u
please for better sort
and comment line 12 if want results in your LANG (fd64_nls loaded)
Sorry :oops:
User avatar
SFR
Posts: 1799
Joined: Wed 26 Oct 2011, 21:52

#274 Post by SFR »

Hey L18L

Thanks for the new version! I tried few approaches and managed to get rid of caching, while preserving the ability to fallback to the default Name= if no lang, basing on the assumption that practically always Name[lang]= is after Name=.
The line is long and ugly, but efficient enough (no delay whatsoever on my i3@2.13GHz).

Code: Select all

<input>grep -d skip -r -E "^Name\['${LR}'\]=|^Name\['${L}'\]=|^Name=" /usr/share/applications/*.desktop | tac | sort -t: -u -k1,1 | cut -f2 -d "=" | sort -f -u | grep -F -i -- "$varENTRY"</input>
I believe it could be done much more elegant and efficient using awk, but I don't know it good enough...
Script alone attached.
___________

Just noticed Gslapt's .desktop file has malformed Polish Name & Comment:

Code: Select all

Name[pl]=Gslapt MenedĹźer PakietĂłw
Comment[pl]=Instalacja, usuwanie i aktualizacja pakietĂłw z oprogramowaniem
Should read:

Code: Select all

Name[pl]=Gslapt Menedżer Pakietów
Comment[pl]=Instalacja, usuwanie i aktualizacja pakietów z oprogramowaniem
Greetings!
Attachments
findandrun.tar.gz
Version 0.3
(886 Bytes) Downloaded 166 times
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

find_N_run

#275 Post by L18L »

SFR wrote:...The line is long and ugly, but efficient enough (no delay whatsoever on my i3@2.13GHz).
Hey SFR
That is awesome!
A tiny bit faster:

Code: Select all

# time grep -d skip -r -E "^Name\['${LR}'\]=|^Name\['${L}'\]=|^Name=" /usr/share/applications/*.desktop | sort -t= -u -k2 | cut -f2 -d "=" | sort -f -u
18 -22 msec on my 1.8GHz box.

The malformed Polish Names & Comments remind me of my work with momanager.
And the condition "Name[lang]= is after Name=" will have to be checked and fixed. No problem: just work!
Will need some more time.

I like find_N_run very much.
It is working very nice if pasted into console.

Does anybody need /usr/local/apps/find_n_run ?

Greetings!
User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#276 Post by LazY Puppy »

Regarding Find and Run at Version 0.3

Since this is really a pretty cool script and also works in other Puppies (some may just need to change gtkdialog to gtkdialog4), this should have its own topic - probably in Utilities...

Really...
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:
User avatar
SFR
Posts: 1799
Joined: Wed 26 Oct 2011, 21:52

#277 Post by SFR »

LazY Puppy wrote:Regarding Find and Run at Version 0.3

Since this is really a pretty cool script and also works in other Puppies (some may just need to change gtkdialog to gtkdialog4), this should have its own topic - probably in Utilities...

Really...
Yep, good idea. Besides I don't want to hijack this thread too much anyways. :oops:
So, all present (L18L) and future contributors/testers/users are welcome to drop their 2 cents in this thread.

@RSH: actually, no need for gtkdialog4 - it turned out that Gtkdialog 0.7.21 gets pissed off if <tree> widget has no <label>, so it's enough to add one (<label>Name</label>); it's not visible anyway...
L18L wrote:

Code: Select all

# time grep -d skip -r -E "^Name\['${LR}'\]=|^Name\['${L}'\]=|^Name=" /usr/share/applications/*.desktop | sort -t= -u -k2 | cut -f2 -d "=" | sort -f -u
Hmm, I have problems with this one - it displays both Name=... and Name[lang]=... entries...
tac and sorting the first segment of /usr/share/...:Name=... are crucial, I'm afraid, at least in this particular approach...

Ok, EOT here -> to the new thread. 8)

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

getjava

#278 Post by tlchost »

can someone point me to the getjava script....I can't run 64 bit on my system.

thanks
dbabits
Posts: 42
Joined: Sat 17 Nov 2007, 01:50

Fatdog64 does not auto-reconnect to wireless interface

#279 Post by dbabits »

Fatdog64 does not automatically reconnect to wireless interface.
Every time after reboot, I have to operate Network Wizard(net-setup.sh) ->"Activate Settings now" to have it reconnect to my wireless access point.

It does not auto-connect.

Also, while net-setup.sh works, wpa-gui doesn't
User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#280 Post by ally »

I have the same issue on reboots, resume after sleep ok (lenovo x201)

:)
Post Reply