Page 1 of 4

[App] Dialog. Bash GUI C/D/E/F/H

Posted: Sun Mar 22, 2015 5:21 pm
by sectroyer
Unpack attached file and put libdialog.so.11 in some directory within LD_LIBRARY_PATH, then copy dialog binary to some directory within PATH.
Test if it works by running this:

Code: Select all

dialog --extra-label Info --extra-button  --menu "Choose one:" 10 30 3 1 red 2 green 3 blue; echo $?
mods. mirror :)

Re: [App] Dialog. Bash GUI C/D/E/F/H

Posted: Wed Mar 25, 2015 3:02 pm
by joskevermeulen
What exactly does this do?

Re: [App] Dialog. Bash GUI C/D/E/F/H

Posted: Wed Mar 25, 2015 3:32 pm
by zoelechat
It opens a dialog asking for you to choose between red, green and blue, then it exits whatever you select :)

Re: [App] Dialog. Bash GUI C/D/E/F/H

Posted: Wed Mar 25, 2015 3:42 pm
by Lordbyte
sectroyer is in the process of making a brand new TV GUI :-)

Re: [App] Dialog. Bash GUI C/D/E/F/H

Posted: Thu Mar 26, 2015 10:11 am
by sectroyer
Lordbyte wrote:sectroyer is in the process of making a brand new TV GUI :-)
Something like this. Posting it now before it will be required for future patches :)

Re: [App] Dialog. Bash GUI C/D/E/F/H

Posted: Sun Mar 29, 2015 4:01 pm
by tempinbox
i want to try if it works on c series but as noob i don't understand where i have to copy these files i try to excute with ./dialog but as i expected it can not find shared libraries

Code: Select all

SELP#> ./dialog --extra-label Info --extra-button  --menu "Choose one:" 10 30 3 1 red 2 green 3 blue; echo $?
./dialog: error while loading shared libraries: libdialog.so.11: cannot open shared object file: No such file or directory
i put dialog binary in \dtv\usb\sda1\SamyGO\opt\privateer\usr\bin and the lib in dtv\usb\sda1\SamyGO\opt\privateer\lib
other test
dialog binary in SamyGO\opt\privateer\usr\bin lib in dtv\usb\sda1\SamyGO\opt\privateer\lib and another copy of dialog binary in SamyGO\opt\privateer\usr\sbin

Code: Select all

SELP#> ./dialog --extra-label Info --extra-button  --menu "Choose one:" 10 30 3 1 red 2 green 3 blue; echo $?
sh: ./dialog: Text file busy
2
anyone can confirm that this works also on c series?
as noob i understand that on unix systems when something doesn't work is ever a path problems :oops: :D
Now i'm trying again and again i also set chmod+x to dialog but i got " error while loading shared libraries: libdialog.so.11: cannot open shared object file: No such file or directory" sectroyer or other can explain my where copy the files?

Re: [App] Dialog. Bash GUI C/D/E/F/H

Posted: Sun Mar 29, 2015 4:58 pm
by juusso
always when you need to use samygo environment in bash, use
. /dtv/SGO.env
at the begining. Something like this. Place dialog in /mtd_down, and execute:

Code: Select all

. /dtv/SGO.env
cd /mtd_down
chmod 755 /mtd_down/dialog 
./dialog  blah blah bla
@sectroyer
btw, does not work on D series due xterm problems

Code: Select all

Error opening terminal: xterm.
1

Re: [App] Dialog. Bash GUI C/D/E/F/H

Posted: Sun Mar 29, 2015 5:40 pm
by sectroyer
What was the value of $TERM on your TV?

Re: [App] Dialog. Bash GUI C/D/E/F/H

Posted: Sun Mar 29, 2015 5:43 pm
by juusso

Code: Select all

root@[TV] /> echo $TERM
xterm
root@[TV] /> . /dtv/SGO.env
root@[TV] /> echo $TERM
xterm
root@[TV] />

Re: [App] Dialog. Bash GUI C/D/E/F/H

Posted: Sun Mar 29, 2015 5:44 pm
by sectroyer
Confirmed here it works like a charm on my C so all C/D problems you experience have to be caused by incorrectly setup telnet/ssh :)