system information

Core libraries and systems
Post Reply
Message
Author
User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

system information

#1 Post by 8-bit »

This is a system information script that I modified for and on Lupu 520.
It requires zenity which is part of Lupu520. Edited to not part of Lucid 520. Evidently, zentiy was a forgotten install I did when making the script.
It might work with yad, but I have not tried it.
Some of the information coding is specific to Lupu 520 so if you try to use it on another version of Puppy results may vary.
If you are into coding, modify it as you wish.
The link to the original was found on http://code.google.com/p/gtkdialog/.

I did some minor modifications as including some files needed by the system_info script and created a pet package complete with a menu entry. The application should now work with Puppy 4 versions as well as Puppy 5 versions. But zenity or yad with a system link to it named zenity is required.
The Pet is attached.
I should mention that this is the second upload as I had to modify the Pet.
Look further down in this thread for an updated version posted by me.
It was sort of a test to me of using the button imaging position widget.
Attachments
system_info1.tar.gz
A version of system_info for smaller screens. Rename extracted file to "system_info.sh" and copy to /usr/bin
(2.14 KiB) Downloaded 772 times
system_info.pet
Requires zenity or yad with a system link to it named zenity.
Should work on Puppy 4 and 5 versions.
(146.3 KiB) Downloaded 789 times
system_info.tar.gz
Requires zenity may work with yad, modified for and on Lupu 520 and may only work there.
(2.14 KiB) Downloaded 771 times
Last edited by 8-bit on Sat 13 Aug 2011, 18:53, edited 3 times in total.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: system information

#2 Post by L18L »

Hi 8bit,

downloaded tgz using wary511q
changing
# gtkdialog --program=MAIN_DIALOG
gtkdialog3 --program=MAIN_DIALOG

and running.
Very nice but it is a bit tall for resolution 1280*720
8-bit wrote:The application should now work with Puppy 4 versions as well as Puppy 5 versions. But zenity or yad with a system link to it named zenity is required.
Is zenity running in puppy 4 ?
Yad is not running in puppy 431.(PuppyMaster is not interested)
Edited some hours later:
Yes, he is interested in all woof-builts
:lol: http://bkhome.org/blog/?viewDetailed=02387 Thank you, Barry :)

cheers
Attachments
system_tools.png
1280*720
(23.88 KiB) Downloaded 1672 times
Last edited by L18L on Sat 06 Aug 2011, 08:27, edited 1 time in total.

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#3 Post by seaside »

Here's a link for yad compiled for pup431
http://murga-linux.com/puppy/viewtopic. ... h&id=38895
in case anyone would like it.

Cheers,
s

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#4 Post by 8-bit »

Thank you seaside for that.
I went back and tried to redesign the script display to be wider and less tall. But it is proving to be a real pain.

But while I am here, I want to mention that all the features of the script will not work in Puppy 4 series unless one uses the Pet package.
The main one that will not work is the Sensors button as it needs files that do not exist in Puppy 4 series but are included in the PET..

The gui is open source, so anyone want to take a try at resizing it to get it to fit on a smaller screen?

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#5 Post by seaside »

8-bit,

Perhaps you could cut out the last frame "System Tools" and put the info and quit icons underneath "/root/.bashrc".

That part is just extra decoration and will take off some height.

Regards,
s

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#6 Post by 8-bit »

seaside,
Thank you for the suggestion. I now have attached a version for smaller screens using your suggestion.

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#7 Post by seaside »

8-bit,

I downloaded the shorter "system_info1.tar.gz" and it erred out in gtkdialog.

Here's one that should work.

(Not really a tar)

Regards,
s
Attachments
system-info-short.tar
Shorter dialog for system information
(10.5 KiB) Downloaded 680 times

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#8 Post by 8-bit »

From what I can see, the main differences between your mod and my short display script are
(1) The change of /boot/grub/menu.lst to /mnt/home/boot/grub/menu.lst
(2) The removal of the text line that displays System Tools in blue
(3) Changing gtkdialog to gtkdialog3

On my system, gtkdialog is a link that points to gtkdialog3, so the app works but is wider than your offering.
I found that the line that displays "System Tools" in blue was the cause of that.

Thank you for the modified script though as It does take up less screen room.

And since your mod works, I will leave mine alone and state that users with a smaller display use your offering.

As I said before, I am not that great a programmer and am more of a cut and paste guy.

Bruce_n_Duane
Posts: 71
Joined: Wed 02 Nov 2005, 01:40
Location: Washington State

Bug fixes and mods

#9 Post by Bruce_n_Duane »

Great program 8-bit!!!!

installed the /usr/bin/system_info.sh version 8/1/2011 on Lucid 5.2.5
Had to add ln -s link for zenity to yad

Fixed some bugs: Line: original ===> change

12: "System Tools" ===> "/usr/bin/system_info.sh"

81: "Version" ===> "Whereis"

86: "Version" ===> "Which"

323: --info ===> --title="/usr/bin/system_info.sh"

338 gtkdialog ===> gtkdialog3

=======================================

Added comments to top of program and code to respond to --help and --version.
# System Info Program
# Original by 8-bit 8/5/2011
# Modified 8/6/2011 BQ add -version --help and fixes
PROGRAM=$0
ARGNUM=$#
ARGUMENTS="$*"
VERSION="1.0.1"
HELP="no help"


if [ $ARGNUM -eq 1 ] && [ $ARGUMENTS = "--version" ]
then echo $0 "Version=" $VERSION
exit 0
fi

if [ $ARGNUM -eq 1 ] && [ $ARGUMENTS = "--help" ]
then echo $0 "Help=" $HELP
exit 0
fi

=====================================================
I named my version for testing /usr/bin/system_info.b1

below is the output of # diff system_info.sh system_info.b1

1a2,21
> # System Info Program
> # Original by 8-bit 8/5/2011
> # Modified 8/6/2011 Bruce add -version --help and fixes
> PROGRAM=$0
> ARGNUM=$#
> ARGUMENTS="$*"
> VERSION="1.0.1"
> HELP="no help"
>
>
> if [ $ARGNUM -eq 1 ] && [ $ARGUMENTS = "--version" ]
> then echo $0 "Version=" $VERSION
> exit 0
> fi
>
> if [ $ARGNUM -eq 1 ] && [ $ARGUMENTS = "--help" ]
> then echo $0 "Help=" $HELP
> exit 0
> fi
>
12c32
< <window window_position="1" title="System Tools">
---
> <window window_position="1" title="/usr/bin/system_info.sh">
81c101
< <action>which $VAR1 | zenity --text-info --width=200 --height=200 --title $"Version" &</action>
---
> <action>which $VAR1 | zenity --text-info --width=200 --height=200 --title $"Whereis" &</action>
86c106
< <action>which $VAR1 | zenity --text-info --width=200 --height=200 --title $"Version" &</action>
---
> <action>which $VAR1 | zenity --text-info --width=200 --height=200 --title $"Which" &</action>
91c111
< <action>$VAR1 --version | zenity --text-info --width=200 --height=200 --title $"Version" &</action>
---
> <action>$VAR1 --version | zenity --text-info --width=400 --height=200 --title $"Version" &</action>
323c343
< <action>zenity --info --text="This utility was found at PCLinuxOS Magazine: \\n\\nand originally written by musonio.: \\n\\nI modified it somewhat to work with Puppy Linux: \\n\\n with Lupu 520 as my base.: \\n\\n Feel free to use it or modify it as you wish. \\n\\nLink is http://pclosmag.com/html/issues/200910/page21.html \\n\\n8-bit"</action>
---
> <action>zenity --title="/usr/bin/system_info.sh" --text="This utility was found at PCLinuxOS Magazine: \\n\\nand originally written by musonio.: \\n\\nI modified it somewhat to work with Puppy Linux: \\n\\n with Lupu 520 as my base.: \\n\\n Feel free to use it or modify it as you wish. \\n\\nLink is http://pclosmag.com/html/issues/200910/page21.html \\n\\n8-bit" &</action>
338c358
< gtkdialog --program=MAIN_DIALOG
---
> gtkdialog3 --program=MAIN_DIALOG
#
======================================================
Thank you for this great tool!!

Thank you for this chance to do some programming again!.
-Bruce.

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#10 Post by 8-bit »

Bruce,
Would you care to share your version if it adds additional features?
Also, in Programming, you can add a button after the button labeled "Loaded Modules" without messing up the window.
I tried adding "dmesg" piped to zenity and also tried a button to display the contents of /tmp/xerrs.log.
Both worked without a problem.
You can look at other buttons to see how it works with zenity for display purposes.

scsijon
Posts: 1596
Joined: Thu 24 May 2007, 03:59
Location: the australian mallee
Contact:

#11 Post by scsijon »

8bit,

puppy525, stock standard full install with apps added, ethernet and satellite to internet.

Top & Htop buttons work.

Exit button works.

However !Problems

Kernal messages frame:
Nothing works

Commands Information Frame:
Manual button flashes, nothing happens
nothing works for the rest

Third frame down on the left:
Hardware Info works, nothing else does anything

Third frame down on the right:
nothing does anything

System Files frame:
Only thing that does anything is the "monitor" button, and that just shuts the program down

Frame to right of System Files:
Simmilar with "home" icon shutting it down

end of report

:D Just something to get your teeth into.

regards
scsijon

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#12 Post by 8-bit »

scsijon,
It sounds like you need to install yad and make a system link to it called zenity.
The buttons you have that are working do not require it.
I have to agree that the monitor icon next to /etc/X11/xorg.conf when clicked on does kill system_info.
Thank you for that insight. I will check it out.

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#13 Post by 8-bit »

First, I want to say that I did not write the original script and only made a few modifications to it. I evidently did not go far enough as the original maker of the script used the button to display some icons next to some of the text buttons.
When those icon buttons are clicked on, there is no action associated with them and either nothing will happen or the program will crash.
The solution is to copy the action from the text button to the area of the icon button right after the closing input tag.
For those of you that know a little about gtkdialog scripts, you will know what I am talking about.
But the creator of the script did not have the luxury of thunor's updated gtkdialog that lets one position icons.

If this is a really big problem, I can modify the script so that clicking on the icon does the same thing as clicking on the text button.

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#14 Post by 8-bit »

The attached is a version of system_info2.sh and requires thunor's updated gtkdialog as well as zenity or yad with a system link to it called zenity.
The gtkdialog on my PC is thunor's gtkdialog renamed to gtkdialog3 and a system link to it called gtkdialog is made.
It uses some additions to gtkdialog and may not work with the original version that ships with Puppy.

The original script used some work arounds to place the icons for the buttons and that is why the icon buttons were separate from the text.
Attachments
system_info2.tar.gz
requires zenity or yad with system link to it called zenity and thunor's gtkdialog. The sensors button requires files from the PET in my first post.
(2.11 KiB) Downloaded 689 times

Bruce_n_Duane
Posts: 71
Joined: Wed 02 Nov 2005, 01:40
Location: Washington State

modified 8/5/2011 version of system_info.sh

#15 Post by Bruce_n_Duane »

Below is my modified version of system_info.sh
named: system_info.b1

Code: Select all

#! /bin/bash
# System Info Program
#
#This program executes the following external applications:
#         zenity gtkdialog3 rxvt sensors hardinfo xdpyinfo glxinfo kdesu
#         top htop dmesg grep ifconfig iwconfig lspci uname fdisk blkid
#         mount df lsusb groups cat lsmod finduserinstalledpkgs.sh
#
# This utility was found at PCLinuxOS Magazine: 
#           Link is http://pclosmag.com/html/issues/200910/page21.html
# Original written by musonio.
#
# Modified 08/05/2011 by 8-bit modified to work with Puppy Linux: Lupu 520
# Modified 08/06/2011 by Bruce added -version --help and bug fixes
# Modified 08/15/2011 by Bruce changed all zenity popup windows to have 
#                        single "Close" button and have dialog seperator
#                        changed some zenity windows to be undecorated.
#                        added comments.
#
#--------------------------------------------------------------------------
PROGRAM=$0
ARGNUM=$#
ARGUMENTS="$*"
VERSION="1.0.2"
HELP="no help"

#  if single argument = --version then echo $VERSION and exit
if [ $ARGNUM -eq 1 ] && [ $ARGUMENTS = "--version" ] 
	then  echo $0 "Version=" $VERSION 
    exit 0
fi

#  if single argument = --help then echo $HELP and exit
if [ $ARGNUM -eq 1 ] && [ $ARGUMENTS = "--help" ] 
	then  echo $0 "Help=" $HELP 
    exit 0
fi

Encoding=UTF-8

FILE1=/etc/X11/xorg.conf
FILE2=/etc/fstab
FILE3=/mnt/home/boot/grub/menu.lst
FILE6=/etc/rc.d/rc.local
FILE8=/root/.bashrc
#FILE9=/root/.bashrc

export MAIN_DIALOG='
<window window_position="1" title="/usr/bin/system_info.sh">

<vbox>
  <hbox homogeneous="True">
    <frame>
    <hbox homogeneous="True">
      <hbox>
        <button>
          <input file>"/usr/share/midi-icons/console48.png"</input>
          <action>rxvt &</action>
        </button>  
      </hbox>

      <vbox homogeneous="True">
        <button>
          <label>TOP</label>
          <action>rxvt -e top &</action>
        </button>

        <button>
          <label>HTOP</label>
          <action>rxvt -e htop &</action>
        </button>
      </vbox>
    </hbox>
    </frame>

    <vbox>
      <frame Kernel messages>

        <button>
          <label>View messages</label>
          <action>dmesg | zenity --text-info --width=700 --height=500 --title $"View kernel messages" --button="Close:0" --dialog-sep &</action>
        </button>

        <entry><variable>VAR2</variable></entry>

        <hbox>
          <button>
            <label>search</label>
            <input file icon="gtk-find"></input>
            <action>dmesg | grep $VAR2 | zenity --text-info --width=700 --height=500 --title $"$VAR2 in kernel messages" --button="Close:0" --dialog-sep &</action>
          </button>

          <button>
            <label>search & save</label>
            <input file icon="gtk-find-and-replace"></input>
            <action>dmesg | grep $VAR2 > '$HOME'/dmesg_output_$VAR2.txt &</action>
            <action>'$HOME'/dmesg_output_$VAR2.txt</action>
          </button>
        </hbox>
        </frame>
      </vbox>
    </hbox>

    <frame Commands Information>
    <hbox>
      <text> <label>Command:</label> </text>
      <entry><variable>VAR1</variable></entry>
    </hbox>

    <hbox>
      <button>
        <label>Help</label>
        <action>$VAR1 --help | zenity --text-info --width=600 --height=600 --title $"Help" --button="Close:0" --undecorated --dialog-sep &</action>
      </button>

      <button>
        <label>Whereis</label>
        <action>which $VAR1 | zenity --text-info --width=200 --height=200 --title $"Whereis" --button="Close:0" --undecorated --dialog-sep &</action>
      </button>

      <button>
        <label>Which</label>
        <action>which $VAR1 | zenity --text-info --width=200 --height=200 --title $"Which" --button="Close:0" --undecorated --dialog-sep &</action>
      </button>

      <button>
        <label>Version</label>
        <action>$VAR1 --version | zenity --text-info --width=400 --height=200 --title $"Version" --button="Close:0" --undecorated --dialog-sep &</action>
      </button>

      <button>
        <label>Manual</label>
        <action>rxvt -e pman $VAR1 | zenity --text-info --width=400 --height=500 --title $"Manual" --button="Close:0" --undecorated --dialog-sep &</action>
      </button>

    </hbox>
    </frame>
    <hbox homogeneous="True">

    <frame>
      <vbox>
        <button>
          <input file icon="gtk-info"></input>
          <label>Sensors</label>
          <action>sensors | zenity --text-info --width=700 --height=500 --title $"Sensors" --button="Close:0" --undecorated --dialog-sep &</action>
        </button>

        <button>
          <input file icon="gtk-network"></input>
          <label>Ethernet Interfaces</label>
          <action>ifconfig | zenity --text-info --width=700 --height=500 --title $"View an ethernet network interface" --button="Close:0" --undecorated --dialog-sep &</action>
        </button>

        <button>
          <input file icon="gtk-network"></input>
          <label>Wireless Interfaces</label>
          <action>iwconfig | zenity --text-info --width=700 --height=500 --title $"Current wireless network interface" --button="Close:0" --undecorated --dialog-sep &</action>
        </button>

        <button>
          <input file>"/usr/share/midi-icons/word24.png"</input>
          <label>Bootkernel log</label>
          <action>zenity --title="Bootkernel Log" --text-info --width 500 --height 400 --filename='"/tmp/bootkernel.log"' --button="Close:0" --dialog-sep &</action>
        </button>

        <button>
          <input file>"/usr/share/midi-icons/utility24.png"</input>
          <label>Hardware information </label>
          <action>hardinfo &</action>
        </button>


        <button>
          <input file>"/usr/share/midi-icons/word24.png"</input>
          <label>PCI devices</label>
          <action>lspci | zenity --text-info --width=700 --height=500 --title $"PCI devices" --button="Close:0" --dialog-sep &</action>
        </button>
      </vbox>
    </frame>

    <frame>
      <vbox>
        <hbox>
          <pixmap>
            <input file>"/usr/share/midi-icons/pc24.png"</input>
          </pixmap>

          <menubar>
          <menu>
            <menuitem>
              <label>Running kernel</label>
              <action>uname -a | zenity --text-info --width=900 --height=20 --title $"Current running kernel" --button="Close:0" --dialog-sep &</action>
            </menuitem>


            <menuitem>
              <label>Show Path</label>
              <action>echo '$PATH' | zenity --text-info --width=900 --height=10 --title $"PATH" --button="Close:0" --undecorated --dialog-sep &</action>
            </menuitem>
          <label>System Information</label>
          </menu>
          </menubar>
        </hbox>

        <hbox>
          <pixmap>
            <input file>"/usr/share/midi-icons/puppy_menu_logo.png"</input>
          </pixmap>

          <menubar>
          <menu>
            <menuitem>
              <label>View Installed Applications</label>
			  <action>/usr/local/petget/finduserinstalledpkgs.sh</action>
            <action>zenity --title="Installed Packages" --text-info --width 500 --height 400 --filename='"/tmp/installedpkgs.results"' --button="Close:0" --dialog-sep &</action>
            </menuitem>


          <label>Installed Applications</label>
          </menu>
          </menubar>
        </hbox>

        <hbox>
          <pixmap>
            <input file>"/usr/share/midi-icons/drives24.png"</input>
          </pixmap>

          <menubar>
          <menu>
            <menuitem>
              <label>Hard drive partitions</label>
              <action>kdesu "fdisk -l | zenity --text-info --width=700 --height=500 --title $"Hard drive partitions" --button="Close:0"  --dialog-sep " &</action>
            </menuitem>

            <menuitem>
              <label>Hard drive UUID</label>
              <action>blkid | zenity --text-info --width=700 --height=500 --title $"Hard Drive UUID" --button="Close:0" --dialog-sep &</action>
            </menuitem>

              <menuitem>
              <label>Current mount points</label>
              <action>mount | zenity --text-info --width=700 --height=500 --title $"Current mount points" --button="Close:0" --dialog-sep &</action>
            </menuitem>

            <menuitem>
              <label>Available disk space</label>
              <action>df -h | zenity --text-info --width=700 --height=500 --title $"Available disk space" --button="Close:0" --dialog-sep  &</action>
            </menuitem>

            <menuitem>
              <label>Connected USB devices</label>
              <action>lsusb | zenity --text-info --width=700 --height=500 --title $"Connected USB devices" --button="Close:0" --dialog-sep &</action>
            </menuitem>

          <label>Devices</label>
          </menu>
          </menubar>
        </hbox>

        <hbox>
          <pixmap>
            <input file>"/usr/share/midi-icons/console24.png"</input>
          </pixmap>

          <menubar>
          <menu>
            <menuitem>
              <label>X-Server information</label>
              <action>xdpyinfo | zenity --text-info --width=700 --height=500 --title $"Information about the X-server" --button="Close:0"  --dialog-sep &</action>
            </menuitem>

            <menuitem>
              <label>GLX/OpenGL Information</label>
              <action>glxinfo | zenity --text-info --width=700 --height=500 --title $"Information about glx and opengl" --button="Close:0"  --dialog-sep &</action>
            </menuitem>

          <label>X-Server</label>
          </menu>
          </menubar>
        </hbox>

        <hbox>
          <pixmap>
            <input file>"/usr/share/midi-icons/chat24.png"</input>
          </pixmap>

          <menubar>
          <menu>
            <menuitem>
              <label>Group memberships</label>
              <action>groups | zenity --text-info --width=700 --height=100 --title $"View group memberships" --button="Close:0" --dialog-sep &</action>
            </menuitem>

            <menuitem>
              <label>Groups</label>
              <action>cat /etc/group | zenity --text-info --width=700 --height=500 --title $"View Groups" --button="Close:0" --dialog-sep &</action>
            </menuitem>

          <label>Groups</label>
          </menu>
          </menubar>
        </hbox>

        <button>
          <label>Loaded modules</label>
          <action>lsmod | zenity --text-info --width=700 --height=500 --title $"View loaded modules" --button="Close:0" --dialog-sep &</action>
        </button>


      </vbox>
    </frame>
    </hbox>

    <hbox>
      <frame System Files>
        <hbox>
          <button><label>'"$FILE1"'</label><action>zenity --title='"$FILE1"' --text-info --width 500 --height 400 --filename='"$FILE1"' --button="Close:0" --dialog-sep &</action></button>
          <button><input file>"/usr/share/midi-icons/console24.png"</input></button>
        </hbox>

        <hbox>
          <button><label>'"$FILE2"'</label><action>zenity --title='"$FILE2"' --text-info --width 500 --height 400 --filename='"$FILE2"' --button="Close:0" --dialog-sep &</action></button>
          <button><input file>"/usr/share/midi-icons/word24.png"</input><action>kdesu "kate '"$FILE2"'" &</action></button>
        </hbox>

        <hbox>
          <button><label>'"$FILE3"'</label><action>zenity --title='"$FILE3"' --text-info --width 500 --height 400 --filename='"$FILE3"' --button="Close:0" --dialog-sep &</action></button>
          <button><input file>"/usr/share/midi-icons/word24.png"</input><action>kdesu "kate '"$FILE3"'" &</action></button>
        </hbox>

      </frame>

      <frame>

        <hbox>
          <button><label>'"$FILE6"'</label><action>zenity --title='"$FILE6"' --text-info --width 500 --height 400 --filename='"$FILE6"' --button="Close:0" --dialog-sep &</action></button>
          <button><input file>"/usr/share/midi-icons/word24.png"</input><action>kdesu "kate '"$FILE6"'" &</action></button>
        </hbox>


        <hbox>
          <button>
            <label>'"$FILE8"'</label>
            <action>zenity --title='"$FILE8"' --text-info --width 500 --height 400 --filename='"$FILE8"' --button="Close:0" --dialog-sep &</action>
          </button>

          <button>
            <input file>"/usr/share/midi-icons/home24.png"</input>
          </button>

        </hbox>
      </frame>
    </hbox>

    <frame>
    <hbox homogeneous="True">
      <button>
        <input file icon="gtk-info"></input>
        <action>zenity --title="/usr/bin/system_info.sh" --text="This utility was found at PCLinuxOS Magazine: \\n\\nand originally written by musonio.: \\n\\nI modified it somewhat to work with Puppy Linux: \\n\\n with Lupu 520 as my base.: \\n\\n  Feel free to use it or modify it as you wish. \\n\\nLink is http://pclosmag.com/html/issues/200910/page21.html \\n\\n8-bit" --button="Close:0" --undecorated --dialog-sep &</action>
      </button>

      <text use-markup="true"><label>"<span color='"'blue'"' font-family='"'purisa'"' weight='"'bold'"' size='"'large'"'><small>System Tools</small></span>"</label></text>

      <button>
   <input file icon="gtk-quit"></input>
        <action type="exit">exit 0</action>
      </button>
    </hbox>
    </frame>
  </vbox>
  </window>
  '

  gtkdialog3 --program=MAIN_DIALOG
-Bruce.

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#16 Post by 8-bit »

Bruce,
I am running Lucid 520 frugal install and I copied and pasted your code into geany, saved it and made it executable. But even though it shows the initial screen, the buttons that use zenity fail to work.

That brings me to the question of if you are using zenity or yad with a system link to it called zenity.

Also, what flavor of Puppy are you using?

Bruce_n_Duane
Posts: 71
Joined: Wed 02 Nov 2005, 01:40
Location: Washington State

modified 8/5/2011 version of system_info.sh

#17 Post by Bruce_n_Duane »

8-bit

I am using Lucid Puppy 5.25
yad 0.12.4 with link to zenity

from install applications

Code: Select all

yad-0.12.4-i486|GUI maker
picscale-0.1b|image conversion
simpleWALL-0.3|SimpleWALL set wallpaper 
yad_DOC-0.12.4-w5|gui frontend for shell scripts
yad_NLS-0.12.4-w5|gui frontend for shell scripts
yad-0.12.4-w5|gui frontend for shell scripts
I installed the yad from link:
http://www.murga-linux.com/pupp ... p?t=58306

hope this helps.
-bruce.

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#18 Post by 8-bit »

Ok, I found the problem.
I use zenity as in the script.
You are using yad and the parameters you passed although supported by yad, are not supported by zenity.

Bruce_n_Duane
Posts: 71
Joined: Wed 02 Nov 2005, 01:40
Location: Washington State

missing apps

#19 Post by Bruce_n_Duane »

8-bit

I am using Lucid Puppy 5.2.5.

There are two missing apps on my system used in system_info.sh
kdesu
glxinfo GLX/OpenGL info

Where would I get these two apps?

This is still a great application even without those two functions.

-Bruce.

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#20 Post by 8-bit »

To get the glx/OpenGL info to work, you have to have a proprietary video driver installed that uses glx./OpenGL.
I have the nvidia driver installed and part of it I assume installs the gktinfo command.

I am only guessing here as I did not write the original script and only changed the action commands that did not work with Puppy.

And as to the kdesu command, I assume it has to do with a version of linux that uses the KDE desktop and su in other versions of linux is short for switch user.
You could also ask about Kate. I also have no idea what that is.

My only exposure to linux has been through using Puppy so I am somewhat of a dummy as far as other linux releases go.

Post Reply