Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: PCManiac on June 26, 2015, 08:59:48 AM
-
Greetings,
I have been looking around on tiny core for a project.
I work at the local hospital and here we have plenty of terminal clients connected to 5 windows 2003 terminal servers.
Those terminal clients load the Linux image to RAM using PXE boot.
The actual image we have is quite outdated since no one knew linux around (before I joined them) so, as time went by, new terminals don't work (well or at all) since it's just not supported by the image.
I have been looking at changing that and so I stumbled upon tiny core which is just perfect for the job.
I got the PXE server configured to load the new image on some (2 old) test devices, it starts rdesktop with no problems at boot and all.
The problem I am facing in this moment is that I need some sort of a popup button so the user clicks it to start the rdesktop so the program isn't always bashing our old servers.
I have been looking around and found out about zenity, which could work but that means I would have to add more packages and, I am trying to keep it small for the low ram devices.
I then found out about popup and popask and, to my disappointment, found out as well they have no arguments or options.
So, I decided to post a call for help as I am not exactly a programmer.
I need a way to have a on-screen (preferably centered) button where the user presses to start working (aka: open rdesktop).
Thank you for any and every help.
PCManiac
-
One possibility is Xialog, see http://xdialog.free.fr/ It requires GTK2 packages, but TC extensions (packages) are loop mounted and do not use RAM itself, so it is not an issue.
-
Look at idesk
-
#!/bin/sh
while :
do
Xdialog --screen-center --title "rdesktop" --msgbox "Start rdesktop?" 0x0 && rdesktop
sleep 1
done
-
Thank you for your swift replies guys.
Will try the Xdialog approach then.
Thank you.
-
Once again, thank you for your replies, everything is working. :)
But I have another question if I may, is there a way to disable/remove the minimize and the 2 "restore" buttons or change what they do on Xdialog?
-
If you use a WM that supports per-app configuration, then yes. flwm does not support such.
-
Depends on the window manager you are using.
I only know how to do this for Openbox and Fluxbox.
If you use this parameter on Xdialog, you can make the WM treat it individually with its own window decorations etc.
--wmclass "RDesktop-Xdialog"
~/.config/openbox/rc.xml
...
<application name="RDesktop-Xdialog" class="RDesktop-Xdialog">
<decor>false</decor>
<focus>false</focus>
<layer>Normal</layer>
<iconic>false</iconic>
<skip_pager>false</skip_pager>
<skip_taskbar>true</skip_taskbar>
</application>
...
~/.fluxbox/apps
[app] (name=RDesktop-Xdialog) (class=RDesktop-Xdialog)
[Deco] {0x25}
[end]
-
ugh.. I am indeed using FLWM.. :\
Didn't really want to think about other windows managers to cut on the size of the image..
-
Greetings,
Apparently, for some reason, I was using an older version of TC (3.6)..
Now, I am remastering the newest version (6.3) but I am having some issues, namely the fact that I am trying to include software like the previously said rdesktop, cifs utils and some others but, it seems it refuses to add things like Xapps or Xvesa (and their deps) giving the attached timeouts while trying to download.
If I try to dl manually, I can reach and dl those files.. :\
Any idea? :-\
-
Have you picked an alternate mirror via Apps tool? 'Apps' button -> Cloud (Remote) -> Select mirror
If so, try http://repo.tinycorelinux.net
(I cannot download attached file, sorry.
Not sure if that's a Firefox issue.)
-
Here it is:
(http://i.imgur.com/gyvBLpG.png)
I have tried both the repo.tinycore and the mirror provided by the vim project with no success..
I must add that I am behind a corporate proxy but I have no troubles to bypass it, hence how I can download rdesktop and what not. ???
-
I can access those files fine, on all mentioned mirrors. Before downloading it checks for them in your tce dir, so "tce-load -w fltk-1.3" before that should help.
-
Oh crap!..
I apologise for "wasting" your time guys..
I forgot that when a "sudo" happens, the http_proxy variable doesn't carry on to the new environment.
:-X
--- Edit ---
Is there a way to pass the variable to the temporary root env?
-
sudo VAR=xyz sh
-
Thank you for all your help guys (incl: gerald_clark).
Since this is deviating from my original post, I am going to start a new one explaining where I am at currently and asking for some more help.