Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: jls on May 08, 2016, 09:30:36 AM

Title: usb pendrives don't appear anymore on the desktop
Post by: jls on May 08, 2016, 09:30:36 AM
Hi
After the recent dcore updates usb pendrives don't appear anymore on the desktop.
I'm using e20.

Thanks and happy sunday
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 08, 2016, 08:30:00 PM
Ok, I assume you are using dCore-trusty, I will mail you a dCore-trusty.gz with reverting of the recent changes but for the sce-update ones that would not affect it.  Please test, if it fixes it, I will make these changes the next RC.

Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 09, 2016, 10:51:43 PM
Please test the same download link sent in PM, this is with the changes reverted but for sce-update in recent weeks and let me know if the icons appear now.

There was an apparent glitch in the repacking in the last upload mentioned, as the errors you mention are not there now.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 10, 2016, 05:57:28 AM
FWIW I see the exact same behavior in the latest current RC as I do with the dCore-trusty in the link I mailed, both have freshly updated SCEs and do not show the usb icon on the desktop in e20.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 10, 2016, 09:02:54 AM
With the dcore from the link you emailed me the usb appear on the desktop.
Nb. Using enlightenment from the niko2040 ppa
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 10, 2016, 10:34:28 AM
Ok.  Rather than spend an open ended amount of time troubleshooting the new changes, I will revert them to what we know works and has been the same since the beginning.  As there is also no way to know what else may be also broken by the new RC.  I will revert tonight.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 12, 2016, 11:28:45 AM
disappeared again on the latest release candidate
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 12, 2016, 05:57:46 PM
So the rc just before the group file edit showed the icons?  If so I will revert the file change, just wanting to pinpoint it
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 12, 2016, 06:03:49 PM
Yes
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 13, 2016, 06:11:41 AM
HI
I'm sorry, with the latest RC the usb icons appear.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 13, 2016, 11:02:40 AM
That's great news, the latest rc is hopefully a keeper.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 17, 2016, 02:25:05 PM
Hi
correction:
Booting with user=jls and having /etc/passwd and /etc/shadow in my backup makes usb not appear, , while still booting with user=jls but without the 2 mentioned file in mydata icons appear
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 17, 2016, 05:31:19 PM
Ok, may be a user or group problem.  Can you post the contents of your backed up /etc/passwd and /etc/shadow?
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 18, 2016, 09:26:54 AM
Hi
Here they are:


EDITED:  Jason W
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: curaga on May 18, 2016, 02:09:29 PM
You should've removed your password hashes, now someone can brute-force them.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 18, 2016, 05:42:54 PM
I should have just asked for the relevant info which is the user/group info for the main user.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 18, 2016, 06:20:01 PM
@JW: have you looked at the files before deleting from the post or I should repost?.
@Curaga: if someone discover my pass what can he does?
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 18, 2016, 07:43:11 PM
Yes, I have saved what I need from it, I just deleted the /etc/passwd for your protection as it contained the password hashes.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: curaga on May 19, 2016, 04:22:53 AM
If you use the same password in some other place, or have sshd running to internet on that machine, it can be used to break into those.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 19, 2016, 05:56:25 AM
Thanks
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 21, 2016, 03:28:13 PM
Hi
On a pc where I have dCore on the hd and persistent home the icons appear even with shadow and passwd on mydata.

PS if the usb is plugged during boot it doesn't appear, if boot is finhished and so the desktop is ready ad I plug the usb the icons appear.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 22, 2016, 05:22:25 PM
Sounds like enlightenment is using udev or it's own way of seeing usb drives being inserted or removed. 
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 23, 2016, 04:42:23 AM
it uses udisks 2
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 23, 2016, 05:24:55 AM
see attachment
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 23, 2016, 06:25:17 PM
In the past did dCore-trusty with this enlightenment package show a usb icon when the usb was already inserted on boot?

I am running this enlightenment on dCore-trusty now and see that it works with the insertion and removeal of usb. 
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 24, 2016, 07:09:24 AM
Hi
Found a
dCore-trusty:2016.04.03.16.56
and with this version usb already plugged appears.
Tried also dCore-trusty:2016.05.09.23.25 with no luck
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 24, 2016, 08:53:04 AM
Ok, I will look in to it further.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 24, 2016, 08:54:58 AM
Could you upload dCore-trusty.gz version 2016.04.03.16.56 somewhere, google drive perhaps, and PM me a link to it?
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 24, 2016, 09:24:18 AM
Hi
I'll upload dCore-trusty:2016.04.22.20.54, which works too, since I think  I've deleted the previoulsy tested one.
Thanks
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 24, 2016, 08:56:57 PM
Turns out to be a file permission problem that crept in the base system.  Please test the current RC, it is working here to show an icon when booting with a pendrive already inserted.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 26, 2016, 06:10:40 AM
Hi
Unfortunately in my setup
dCore-trusty:2016.04.22.20.54
show icons of already inserted us while
dCore-trusty:2016.05.25.21.54
doesn't
Jason, you should now be able to download the working gz from my gdrive.

PS. newly inserted pendrives appear on the e20 desktop in both initrds

Thanks
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 26, 2016, 07:50:13 PM
Ok, though the current RC was working here with icons for usb drives already inserted at boot, I do see an oversight in the reversion to the previous user and group behavior.

Uploading now.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 27, 2016, 04:13:54 AM
Hi
works now, thank you very much Jason!
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 29, 2016, 05:00:56 PM
HI
pendrives icons disappeared again on dCore-trusty:2016.05.29.16.34
 :'(
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 29, 2016, 05:41:36 PM
Mine are still appearing.  There are no changes that should be able to cause this.  dCore-trusty:2016.05.29.18.17 is the rc I am using.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 31, 2016, 08:26:25 AM
Here is what I see now.  On dCore-wily the icons appear for both cdrom and usb when inserted or booted already inserted.  But on dCore-trusty the icons appear but there is a udisks permission error when trying to mount the drive via udiskctl command or with the icons. 
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 31, 2016, 02:20:00 PM
Hi
I use enlightenment from the niko2040 ppa under dCore- trusty.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on May 31, 2016, 03:20:45 PM
Ok, that is what I am using also on both dCore-trusty and dCore-wily.  Are you able to mount the usb as user with the command udiskctl mount -b /dev/sdc1 or whatever drive? 
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on May 31, 2016, 06:22:29 PM
I'm not on the pc right now, but when the usb icons where appearing on the "e" desktop, double clicking on the icon made a pendrive mount and a window with it's content appear.
there was a discussion in the past

 http://forum.tinycorelinux.net/index.php/topic,18007.msg117522.html#msg117522
 (http://forum.tinycorelinux.net/index.php/topic,18007.msg117522.html#msg117522)
but actually e was mounting usb fine on the prevoious dCore rc.
thanks
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on June 01, 2016, 09:24:26 PM
Ok, here is what I found.  Udisks2 needs policykit-1 as a dep, happens automatically in dCore-wily but not dCore-trusty.  And lower level deps often need to be installed before higher level ones can successfully run their startup scripts.   I installed policykit-1 several times after my desktop was running to no avail.  Now udisiks2 commands and the Enlightenment desktop mount and unmount usb and cdrom drives as user.  Anyone who is interested in the fix please re-import udisks2 and any SCE that contains it.

The only difference in what you said was working for you and now as far as base changes is what allows the cdrom to be seen on the desktop.  Reverting to previous will cause the cdrom to not be seen.  Now both dCore-trusty and dCore-wily with the enlightenment from the niko2040 ppa see cdrom and usb icons and can mount/unmount them with the desktop or udisks2. 

I am not sure why your results are different, but I would ask you re-import any SCEs that are relevant and please test.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on June 02, 2016, 08:56:35 AM
Hi
the policykit thing was already discussed:

http://forum.tinycorelinux.net/index.php/topic,18007.msg109896.html#msg109896
 (http://forum.tinycorelinux.net/index.php/topic,18007.msg109896.html#msg109896)
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on June 03, 2016, 10:57:10 AM
The thing of starting the policykit daemon and an editing of a config file was discussed, not the issue of needing policykit-1 as a dep of udisks2 to allow udisks2 to mount as regular user in dCore-trusty. 

If you would download a tarball of the dCore git area that is not the latest and get the /etc/udev/rules.d/60-cdrom_id.rules and place it in your live system and then run "udevadm trigger" and see if the usb icon reappears.   It should not as it only affected the cdrom icon on my system.  If that file makes the usb icon appear, I will pursue it further.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on June 03, 2016, 11:21:03 AM
hi
please read the first phrase of


 http://forum.tinycorelinux.net/index.php/topic,18007.msg109896.html#msg109896
 (http://forum.tinycorelinux.net/index.php/topic,18007.msg109896.html#msg109896)
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on June 03, 2016, 11:38:37 AM
Hi
Trying my usb pendrive with dCore I can confirm that using the latest RC I can see the usb icons on the desktop.
It's on the pc at home that don't appear.
thanks Jasonw.

Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on June 04, 2016, 09:11:04 AM
Hi
I've removed etc/passwod and etc/shadow from /opt/.filetool.lst, rebooted and now pendrives icons appear also on my home pc. Thanks Mr. Jason.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on June 04, 2016, 09:21:07 AM
Hi
what about adding udisks2 in PKGADDDEP for enlightenment and e20?
Thanks
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on June 04, 2016, 10:47:02 AM
Thanks, the deps are added.  I see enlightenment is listed in PKGEXTRAREPODEP, I forget why I felt the need for a separate dep list for things found in the /opt/debextra repos, but firefox is firefox and enlightenment is enlightenment whatever repo they come from, and entries in a dep list that are also found in the debinx are harmless redundancy.  I will have the extra repos look to the PKGADDDEP like main repo packages are, just like the exra repos also look at the main debinx as well as their own that may or may not have all the needed deps listed.
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: jls on June 04, 2016, 11:24:50 AM
Hi
I just re-imported enlightenment which I see it imports udisks2, but not policykit-1.
My local PKGADDDEP correctly lists policykit-1 as a dep for udisks2.
Another problem is that I twice imported enlightenment with the -p parameter but both times vlc-data_2.1.6-0ubuntu14.04.1_all.deb is re-downloaded.
The Vlc problem already reported long ago:
http://forum.tinycorelinux.net/index.php/topic,16708.msg99907.html#msg99907 (http://forum.tinycorelinux.net/index.php/topic,16708.msg99907.html#msg99907)
Below my setup:
Code: [Select]
jls@box:/mnt/sda2/tce/sce$ cat enlightenment-sis.sce.lst
enlightenment
jls@box:/mnt/sda2/tce/sce$ cat enlightenment-sis.sce.dep
xorg-sis
jls@box:/mnt/sda2/tce/sce$ cat xorg-sis.sce.dep
base
jls@box:/mnt/sda2/tce/sce$ cat base.sce.lst
alsa-utils
vim
wireless-tools
wpasupplicant
grep
Xprogs
base-locale
language-pack-it
language-pack-gnome-it-base
ntpdate
xdg-utils
connman
jls@box:/mnt/sda2/tce/sce$ cd
jls@box:~$ cat /opt/debextra/*
http://ppa.launchpad.net/niko2040/e19/ubuntu trusty main
http://ppa.launchpad.net/ferramroberto/lffl/ubuntu trusty main http://dl.google.com/linux/talkplugin/deb/ stable main
http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main
http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu trusty main
http://ftp5.gwdg.de/pub/opensuse/repositories/home:/jgeboski/xUbuntu_14.04 ./
http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main
http://packages.bodhilinux.com/bodhi trusty main
http://ubuntu.mirror.garr.it/mirrors/ubuntu-archive/ trusty-updates main
http://ubuntu.mirror.garr.it/mirrors/ubuntu-archive/ trusty-updates multiverse
http://ubuntu.mirror.garr.it/mirrors/ubuntu-archive/ trusty-updates restricted
http://ubuntu.mirror.garr.it/mirrors/ubuntu-archive/ trusty-updates universe
http://ubuntu.mirror.garr.it/mirrors/ubuntu-archive/ trusty-backports main
http://ubuntu.mirror.garr.it/mirrors/ubuntu-archive/ trusty-backports multiverse
http://ubuntu.mirror.garr.it/mirrors/ubuntu-archive/ trusty-backports restricted
http://ubuntu.mirror.garr.it/mirrors/ubuntu-archive/ trusty-backports universe
jls@box:~$ version -r
You are running dCore-trusty:2016.06.03.17.12, the latest release candidate.
jls@box:~$
Thanks
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on June 06, 2016, 04:50:40 PM
I had put up a fix then in the other thread back then for the vlc bug and didn't hear of any further issues on it as it appeared fixed on my setup, but I will look into it.

There was a release candidate last night,  latest trusty as of it is dCore-trusty:2016.06.04.17.36 and that is where the fix for using the main PKGADDDEP is in. 

I imported enlightenment on my box and policykit-1 is brought in as expected. 
Title: Re: usb pendrives don't appear anymore on the desktop
Post by: Jason W on June 06, 2016, 10:47:22 PM
vlc-data issue is due to it's being listed twice as a package in the debinx file it was found.   Have changed the awk routines that find package lists, .deb file name, and the size getting function to find the first matching and not list both which was messing up the md5sum function as well as the size of downloads, hd space..  I am not sure that Debian/Ubuntu allow a double listing of a package in the same Packages file, but if that is the case, we simply find the first match and go with it in the above mentioned functions. 

Fixed in the newest RC, please test, working here with vlc-data with the (main, universe, multiverse, restricted) backports and updates repos of Trusty in /opt/debextra/.