Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: nitram on December 22, 2015, 09:46:04 PM

Title: [SOLVED] Control Panel -> Mouse Tool and Terminal Server does not work
Post by: nitram on December 22, 2015, 09:46:04 PM
Mouse works great, don't need to modify settings. Just reporting issues. Quick forum search did not appear to indicate the issue previously. Thanks.
dCore-jessie:2015.12.21.22.02
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: Jason W on December 22, 2015, 10:02:33 PM
Mouse tool works with my mice.  What does not work?  I will look into Terminal Server.
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: nitram on December 22, 2015, 10:38:48 PM
Clicking Mouse Tool in the Control Panel doesn't open the mouse GUI utillity. Reported version in first post. Should have mentioned also using Fluxbox. Everything otherwise works great, darn thing just don't open.
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: nitram on December 23, 2015, 01:54:06 AM
Running mousetool in terminal:
Code: [Select]
tc@box:/usr/local/bin$ mousetool
sh: xmodmap: not found
popen results returned NULL

Opening cpanel in terminal, then clicking on Terminal Server background outputs:
Code: [Select]
tc@box:~$ cpanel
xterm: bad command line option "+tr"

usage:  xterm [-/+132] [-C] [-Sccn] [-T string] [-/+ah] [-/+ai] [-/+aw]
    [-b number] [-/+bc] [-bcf milliseconds] [-bcn milliseconds] [-bd color]
    [-/+bdc] [-bg color] [-bw number] [-/+cb] [-cc classrange] [-/+cjk_width]
    [-class string] [-/+cm] [-/+cn] [-cr color] [-/+cu] [-/+dc]
    [-display displayname] [-e command args ...] [-fa pattern] [-fb fontname]
    [-/+fbb] [-/+fbx] [-fd pattern] [-fg color] [-fi fontname] [-fn fontname]
    [-fs size] [-/+fullscreen] [-fw fontname] [-fwb fontname] [-fx fontname]
    [%geom] [#geom] [-geometry geom] [-help] [-/+hm] [-/+hold] [-iconic]
    [-/+ie] [-/+im] [-into windowId] [-/+j] [-/+k8] [-kt keyboardtype] [-/+l]
    [-/+lc] [-lcc path] [-leftbar] [-lf filename] [-/+ls] [-/+maximized]
    [-/+mb] [-mc milliseconds] [-/+mesg] [-/+mk_width] [-ms color] [-n string]
    [-name string] [-nb number] [-/+nul] [-/+pc] [-/+pob] [-report-colors]
    [-report-fonts] [-rightbar] [-/+rv] [-/+rvc] [-/+rw] [-/+s] [-/+samename]
    [-/+sb] [-selbg color] [-selfg color] [-/+sf] [-sh number] [-/+si] [-/+sk]
    [-sl number] [-/+sm] [-/+sp] [-/+t] [-ti termid] [-title string]
    [-tm string] [-tn name] [-/+u8] [-/+uc] [-/+ulc] [-/+ulit] [-/+ut] [-/+vb]
    [-version] [-/+wc] [-/+wf] [-xrm resourcestring] [-ziconbeep percent]

Type xterm -help for a full description.

There does not appear to be anything related to Terminal Server in usr/local/bin:
Code: [Select]
tc@box:/usr/local/bin$ ls
cpanel                          fluxbox_makemenu     mousetool
datetool                        fluxbox_menu_common  network
editor                          fluxbox_ondemand     popask
emelfm                          fluxbox_restart      popup
exittc                          fluxbox_rmitem       screenshot.sh
filetool                        imlib2_conv          services
flrun                           imlib2_grab          setbackground
fluxbox-generate_menu           locale               stats
fluxbox-generate_menu-original  mirrorpicker         swapfile
fluxbox_initmenu                mnttool              wallpaper
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: Jason W on December 23, 2015, 07:58:59 AM
I added x11-xserver-utils to the dep of xorg-base which gets pulled in by any xorg package.  Please import and load or re-import xorg*.   That should solve the mouse tool issue.

The terminal server may be expecting aterm, I remember there being a symlink xterm > aterm at least at one point.  I will look at the source tonight.
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: nitram on December 23, 2015, 09:12:07 AM
Fresh xorg-intel fixed the mouse issue. Will await your respone regarding Terminal Server. Thanks.
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: nitram on December 23, 2015, 09:22:36 AM
Not sure this helps you troubleshoot, loading aterm did not help. Thanks.
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: Jason W on December 23, 2015, 09:30:16 AM
Perhaps Debian/Ubuntu xterm were compiled without transparency options.  If so, two options are: build custom xterm on dCore-wheezy so as to work across newer x86 ports, or a simple edit and recompilation of cpanel.  The latter would be more correct I think, I will put it on the agenda. 

We have aterm in the repo, and that would be the app to call and would have transparency, keeping the same look and feel across Core and dCore.
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: Jason W on December 23, 2015, 08:01:31 PM
Rebuilt cpanel for dCore.  Should all work now.  Re-import Xprogs or whatever SCE contains it and please test.
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: nitram on December 23, 2015, 08:30:51 PM
Updated Xprogs, installed wbar for testing. Control Panel looks nice, notice the new Sce Import button, used to install wbar. All buttons now work, thanks. Although i wasn't able to test was used to be Xvesa (running Xorg). Don't know what happens for Xvesa dCore users, maybe then no Sce Import button?

Anyway all good except one minor glitch. The Terminal Server window that opens can't be closed via close button, Fluxbox panel or even Alt-F4, requires xkill. It can be moved and resized, not closed. Don't remember this issue with TC6. The terminal that opens via Control Panel -> Sce Import does not have this problem.

Edit: Maybe supposed to be this way? The output window indicates:
Code: [Select]
This box is about to become a mothership for all your net-booting computers.
Existing config detected. Overwrite? [y/n]
n
Please leave this terminal open
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: Jason W on December 23, 2015, 08:54:48 PM
The terminal server window can be closed with CTRL-C, it is opened with sudo so perhaps that is why, and as we have Debian packages of sudo and others the window can't be x'd out by the user.  I will look into it. 

Xvesa does not work across x86 dCore ports.  It didn't with dCore-wheezy, but then did with dCore-jessie, but not with the newer dCore Ubuntu ports.  So not feasible to support Xvesa in dCore, I will adjust dCorePlus-jessie for this one day though it should work there. 

Thanks for testing.
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: nitram on December 24, 2015, 02:42:31 AM
Didn't realize Xvesa was being phased out in dCore.

Ctrl-C worked in Terminal Server, maybe good enough to add opening dialoge:
Code: [Select]
This box is about to become a mothership for all your net-booting computers.
Warning: runs as root, press Ctrl-C to close.

May have spoke too soon regarding the fix. Rebooted later in the day and had problems. Now i can't open editor, control panel, run exittc. On fresh boot these items seem to work, later in the session not. Not using the system any differently. Just ran sce-update -a again, no updates. Extensions checked include:
Xprogs
fluxbox
graphics-3.16.6-tinycore
x11-xserver-utils
xorg-intel

My sceboot.lst is:
Xprogs
xorg-intel
graphics-3.16.6-tinycore
fluxbox
dillo

Code: [Select]
tc@box:/mnt/sdb4/tce$ editor
ash: editor: not found

Code: [Select]
Xprogs is already installed!
xorg-intel is already installed!
graphics-3.16.6-tinycore is already installed!
x11-xserver-utils is already installed!
xorg-intel is already installed!
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: nitram on December 24, 2015, 03:38:52 AM
Problem again within 30 minutes of fresh boot. Not sure if it's related to Xprogs and the cpanel changes though that was my main system change of the day, other than installing qpdfview which isn't loaded at boot or presently. After checking that cpanel and editor were working, the only two things i remember doing was opening and using emelfm and using it's built-in terminal to mount a separate data partition. Then i was unable to open a text fle with editor, checked and all other cpanel type items were also broken. Odd...

This isn't latest: dCore-jessie:2015.12.21.22.02. Not sure why it would matter, but will refresh it and try again.

Nothing urgent, Merry Christmas all :)

tc@box:~$ cpanel
ash: cpanel: not found
tc@box:~$ editor
ash: editor: not found
tc@box:~$ screenshot.sh
ash: screenshot.sh: not found
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: nitram on December 24, 2015, 04:06:23 AM
Another PEBKAC moment, sorry about all this. Naturally lazy, usually use  umount -a  when done with data partitions. Query whether the behaviour is different in dCore than TC6, the way the extensions are mounted. Seems some looped items were getting umounted too. Anyway, the cpanel issues were present without this umount stuff, so i'm glad you fixed it, Sorry again and thanks.
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: Rich on December 24, 2015, 07:28:10 AM
Hi nitram
If you check here:
http://man7.org/linux/man-pages/man8/umount.8.html
It states:
Quote
       -a, --all
              All of the filesystems described in /etc/mtab are unmounted,
              except the proc filesystem.

If you look in  /etc/mtab  which is a link to  /proc/mounts  you will see all the  /tmp/tcloop/  mount points listed in there.
Any extension which does not have a file that is currently being used will be unmounted.
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: nitram on December 24, 2015, 08:47:44 AM
Thanks Rich. New Years res, stop being lazy with commands :)

Booted dCore and TC6 back to back, yielded a few interesting things. Running  sudo umount -a  in TC6.4 doesn't break anything, terminal output indicated not permitted or similar for the loop mounted extensions. In dCore lots breaks so definitely some difference in how the systems are set up or extensions built and mounted. In TC6 Control Panel -> Terminal Server can be closed in the usual manner, no Ctrl-C required, i think it uses Aterm. In both systems Control Panel -> Services, toggling dhcp on/off appears broken, the 'light' does not stay on/off as one would expect and even when dhcp is apparently disabled there is no problem pinging in a terminal. Will report this as a TC Base bug. Thanks.
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: Jason W on December 28, 2015, 01:38:37 PM
Terminal Server window close issue fixed in latest update of Xprogs.  Also, an fltk utility called "Sce Tools" has replaced "Sce Import" in cpanel.   Update Xprogs or whatever SCE contains the package to test.
Title: [solved] Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: nitram on December 31, 2015, 03:38:02 PM
Xprogs updated, new cpanel good, all items open, Terminal Server closes normally, new Sce Tools works.

Please mark thread solved - thanks.

Just being detail oriented, thoughts for future development:

- Inconsistent use of Sce and SCE. For example, Control Panel buttons are Sce *. open Sce Import and titlebar reads Import SCE Extensions. Since SCE is an anacronym, SCE likely preferred over Sce, also looks more macho :)

- Launching Sce Debpurge probably scary for new user. No startup prompt like the others, just starts searching and purging! Terminal then abruptly closes upon completion without termination message, like 'DEB purge completed'. Contrast to Sce Update for example, opens with 'Choose the SCE you want to check for updates', allows user opportunity to review or close terminal if decides not to update check.

- Might be nice to eventually have other buttons, like version checking, ondemand or onboot maintenance.
Title: Re: Control Panel -> Mouse Tool and Terminal Server does not work
Post by: Jason W on December 31, 2015, 04:29:31 PM
Thanks, I will note the suggestions.

Especially since we are launching sce-import and sce-update now with a graphical button, I would like to put a pgrep check on sce-import and sce-update so they could not launch when one or the other is already running and instead print an error message and exit.  I did do some tests using a lock file and then pgrepping the proccess id in that file, but before adding complexity I want to see that the current RC is stable, and when it is we move to release.  And then new features can be added.