Re: [DNG] grep handles ISO-8859 encoded text file as binary file.

2016-04-27 Thread Noel Torres
Hughe Chung escribió: Hi, I got to use -a option to search words on C code files. $ grep tesselate dome_math.c Binary file dome_math.c matches Is this only due to encoding, or may be due to a DOS/Unix difference? If I were to bet, I would say that the file dome_math.c is not correctly

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Noel Torres
Didier Kryn escribió: This isn't just a theoretical thing, lots of people don't label their thumb drives. Another issue is a lot of thumb drives have the same label. I bet there are millions with the label "backup". But there are tools on Linux to add a label to a filesystem; here is th

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Didier Kryn
Le 28/04/2016 02:16, Steve Litt a écrit : I think my original handled that, by creating a database of UUID, label and device name (and now it's going to need to include user mounting it too). So a little universal shellscript can go in the database (which of course is a simple file), find the lab

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Noel Torres
Steve Litt escribió: I don't know of a way to tell pmount or udev/vdev/eudev to assign a particular device to a thumb drive, without manually doing all the mknod and all that. Excellent idea, very useful. But if something's already assigned to that device, you're sol. Insert pendrive labeled B

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Didier Kryn
Le 28/04/2016 01:29, Steve Litt a écrit : No matter what you do, somebody's going to pull one out without umounting. I've done it. Lots of people have. Oops! Perhaps we can include a daemon that runs sync command every 10 seconds. I doubt that would have much effect, but would probably minimize

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Didier Kryn
Le 28/04/2016 01:24, Steve Litt a écrit : On Wed, 27 Apr 2016 19:35:08 +0200 Didier Kryn wrote: Le 27/04/2016 19:13, Steve Litt a écrit : Not all filesystems have labels. For my information, could you list some? Every filesystem I ever used to format disks had one (ext?, reiserfs, btrf

Re: [DNG] chroot sees wrong version of libc

2016-04-27 Thread Didier Kryn
Le 27/04/2016 23:29, Haines Brown a écrit : I found I had to bind mount /sys before I could install grub2. A few tricks: It is most of the times necessary to bind-mount /proc and /sys when working in a chroot. Depending what you do, /dev may also be necessary. Also copy /etc/hosts an

[DNG] grep handles ISO-8859 encoded text file as binary file.

2016-04-27 Thread Hughe Chung
Hi, I got to use -a option to search words on C code files. $ grep tesselate dome_math.c Binary file dome_math.c matches $ file *.c 3ds_utils.c: C source, ISO-8859 text dome_3ds.c: C source, ASCII text dome.c: C source, ASCII text dome_cover.c: C source, ASCII text dome_file.c: C source, ASCII

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Simon Walter
On 04/28/2016 09:28 AM, fsmithred wrote: You could get the label from lsblk, do 'pmount label' and it will be mounted at /media/label. Every time you plug in a thumb drive labeled backup, it'll go to the same place. If you unmount the drive, /media/label will no longer exist, so you could even h

Re: [DNG] For all you automounter programmers

2016-04-27 Thread fsmithred
On 04/27/2016 08:16 PM, Steve Litt wrote: > On Wed, 27 Apr 2016 19:51:54 -0400 > Hendrik Boom wrote: > >> On Wed, Apr 27, 2016 at 07:24:29PM -0400, Steve Litt wrote: >>> >>> Another issue is a lot of thumb drives have the same label. I bet >>> there are millions with the label "backup". >> >> A

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Hendrik Boom
On Wed, Apr 27, 2016 at 08:16:31PM -0400, Steve Litt wrote: > On Wed, 27 Apr 2016 19:51:54 -0400 > Hendrik Boom wrote: > > > On Wed, Apr 27, 2016 at 07:24:29PM -0400, Steve Litt wrote: > > > > > > Another issue is a lot of thumb drives have the same label. I bet > > > there are millions with the

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 19:51:54 -0400 Hendrik Boom wrote: > On Wed, Apr 27, 2016 at 07:24:29PM -0400, Steve Litt wrote: > > > > Another issue is a lot of thumb drives have the same label. I bet > > there are millions with the label "backup". > > And I'd like all my drives labelled "backup" to be

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Hendrik Boom
On Wed, Apr 27, 2016 at 07:24:29PM -0400, Steve Litt wrote: > > Another issue is a lot of thumb drives have the same label. I bet there > are millions with the label "backup". And I'd like all my drives labelled "backup" to be mounted at the same mountpoint so I can use one backup script for all

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 19:22:06 +0200 Didier Kryn wrote: > Le 27/04/2016 19:17, Steve Litt a écrit : > > On Wed, 27 Apr 2016 09:10:25 +0200 > > Didier Kryn wrote: > > > > > >> Wishlist: the "automounter" shouldn't mount automatically, by > >> default. It should rather offer an easy mount-ha

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 19:35:08 +0200 Didier Kryn wrote: > Le 27/04/2016 19:13, Steve Litt a écrit : > > Not all filesystems have labels. > For my information, could you list some? Every filesystem I ever > used to format disks had one (ext?, reiserfs, btrfs, vfat) > > Didier You can

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Marlon Nunes
Hi, what about -> https://ignorantguru.github.io/udevil ? On 2016-04-26 15:08, Steve Litt wrote: Hi all, It seems like everyone in the Devuan community has written his or her own usb drive automounter, and I've just discovered something that will help us all. The thumb drive you buy at the sto

Re: [DNG] For all you automounter programmers

2016-04-27 Thread fsmithred
On 04/27/2016 01:27 PM, Steve Litt wrote: >> >> That's pretty much what my usb-mounter does. Inotifywait runs when >> you log into the desktop, and when you plug in a thumb drive, it pops >> up a window showing you the partitions on that device. You then >> choose one to mount, and the script runs

Re: [DNG] chroot sees wrong version of libc

2016-04-27 Thread Rainer Weikusat
Haines Brown writes: > On Wed, Apr 27, 2016 at 06:05:56PM +0200, Didier Kryn wrote: >> Le 27/04/2016 17:47, Haines Brown a écrit : >> > >> >I'm doing a cross install of devuan Alpha 4 onto a newly partitioned >> >hard disk (/dev/sda1) in same box as my running Debian Wheezy system >> >(/dev/sdb1).

Re: [DNG] chroot sees wrong version of libc

2016-04-27 Thread Haines Brown
On Wed, Apr 27, 2016 at 06:05:56PM +0200, Didier Kryn wrote: > Le 27/04/2016 17:47, Haines Brown a écrit : > > > >I'm doing a cross install of devuan Alpha 4 onto a newly partitioned > >hard disk (/dev/sda1) in same box as my running Debian Wheezy system > >(/dev/sdb1). I partitioned, formatted and

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Hendrik Boom
On Wed, Apr 27, 2016 at 01:27:08PM -0400, Steve Litt wrote: > On Wed, 27 Apr 2016 08:25:02 -0400 > fsmithred wrote: > > > On 04/26/2016 09:32 PM, Steve Litt wrote: > > > On Tue, 26 Apr 2016 18:19:32 -0400 > > > fsmithred wrote: > > > > > > > > >> I like pmount for mounting usb devices. It's

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Didier Kryn
Le 27/04/2016 19:13, Steve Litt a écrit : Not all filesystems have labels. For my information, could you list some? Every filesystem I ever used to format disks had one (ext?, reiserfs, btrfs, vfat) Didier ___ Dng mailing list Dng@lists.dyne

Re: [DNG] Tochpad scrolling on devuan

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 11:25:19 +0200 aitor_czr wrote: > On 04/27/2016 11:21 AM, aitor_czr wrote: > > If so, try doing: > > synclient TouchpadOff=1 > > > > for enabling the touchpad, and: > > > > synclient TouchpadOff=0 > > > > for disabling it. > > Sorry, it's in the other way around: > > syncl

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 08:25:02 -0400 fsmithred wrote: > On 04/26/2016 09:32 PM, Steve Litt wrote: > > On Tue, 26 Apr 2016 18:19:32 -0400 > > fsmithred wrote: > > > > > >> I like pmount for mounting usb devices. It's pretty smart. For > >> removable devices, you don't need to list them > >> in

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Didier Kryn
Le 27/04/2016 19:17, Steve Litt a écrit : On Wed, 27 Apr 2016 09:10:25 +0200 Didier Kryn wrote: Wishlist: the "automounter" shouldn't mount automatically, by default. It should rather offer an easy mount-handle, and the umount counterpart. What is an "easy mount-handle"? I mean

Re: [DNG] chroot sees wrong version of libc

2016-04-27 Thread Rainer Weikusat
Haines Brown writes: [...] > # LANG=C.UTF-8 chroot /mnt/debinst /bin/bash > /bin/bash: /lib/i386-linux-gnu/i686/cmov/libc.so.6: version >`GLIBC_2.15' not found (required by /bin/bash) > /bin/bash: /lib/i386-linux-gnu/i686/cmov/libc.so.6: version >`GLIBC_2.15' not fo

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 09:10:25 +0200 Didier Kryn wrote: > Wishlist: the "automounter" shouldn't mount automatically, by > default. It should rather offer an easy mount-handle, and the umount > counterpart. What is an "easy mount-handle"? SteveT Steve Litt April 2016 featured book: Rapi

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 06:47:38 + Noel Torres wrote: > Steve Litt escribió: > > Therefore: pmount, when combined with the inotifywait automounters > > we've all made, should be perfect. > > > > Those pmount automounter commands should run as the user who plugs > > in the thumb, so rather than r

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 06:46:24 + Noel Torres wrote: > Joel Roth escribió: > > As a suggestion for an aspiring automounter writer (or > > reminder to self) I was thinking that if we can get a > > sufficiently unique identifier from the device (UUID, etc.) > > it might be nice to map that to a m

Re: [DNG] chroot sees wrong version of libc

2016-04-27 Thread Didier Kryn
Le 27/04/2016 17:47, Haines Brown a écrit : A question I raised was left unanswered because the thread drifted into other issues. So let me repose the question in an appropriately named thread. I'm doing a cross install of devuan Alpha 4 onto a newly partitioned hard disk (/dev/sda1) in same box

[DNG] chroot sees wrong version of libc

2016-04-27 Thread Haines Brown
A question I raised was left unanswered because the thread drifted into other issues. So let me repose the question in an appropriately named thread. I'm doing a cross install of devuan Alpha 4 onto a newly partitioned hard disk (/dev/sda1) in same box as my running Debian Wheezy system (/dev/sdb1

Re: [DNG] For all you automounter programmers

2016-04-27 Thread David Hare
Problem to come with pmount is, it doesn't seem to be maintained any longer. I use version 0.9.99-alpha-1 (in experimental at 25 Mar 2011, still there, install to Jessie). That one handles "loopback" and luks files, far as I know earlier versions did not, or not properly. D On 27 April 2016 at 13

Re: [DNG] Tochpad scrolling on devuan

2016-04-27 Thread David Hare
Good you got scrolling to work. In case it helps, this is what works for me to enable tap functions, rather than mess with xorg configs: synclient TapButton1=1 LBCornerButton=2 RBCornerButton=3 MaxTapTime=140 SingleTapTimeout=140 MaxDoubleTapTime=140 Try first in a user terminal, if it works scri

Re: [DNG] Tochpad scrolling on devuan

2016-04-27 Thread fuumind
Hi all! Thank you for all the great help with getting my touchpad working better! I now have two finger scrolling working (I discovered in the process that my hardware do support it.) Adding the option line 'Option "VertTwoFingerScroll" "on"' to the file /usr/share/X11/xorg.conf.d/50-synaptics.

Re: [DNG] For all you automounter programmers

2016-04-27 Thread fsmithred
On 04/26/2016 09:32 PM, Steve Litt wrote: > On Tue, 26 Apr 2016 18:19:32 -0400 > fsmithred wrote: > > >> I like pmount for mounting usb devices. It's pretty smart. For >> removable devices, you don't need to list them in /etc/pmount.allow, >> and it handles encrypted filesystems (cryptsetup/luks

Re: [DNG] Tochpad scrolling on devuan

2016-04-27 Thread aitor_czr
On 04/27/2016 11:21 AM, aitor_czr wrote: If so, try doing: synclient TouchpadOff=1 for enabling the touchpad, and: synclient TouchpadOff=0 for disabling it. Sorry, it's in the other way around: synclient TouchpadOff=0 enables the touchpad :) Aitor.

Re: [DNG] Tochpad scrolling on devuan

2016-04-27 Thread aitor_czr
Hi fuumind, On 04/26/2016 10:32 PM, aitor_czr wrote: On 04/26/2016 08:04 PM, fuumind wrote: >>Hi fuumind, >> > >> >On 04/26/2016 02:00 PM, fuumind wrote: >>> >>Thanks for the link! >>> >> >>> >>My kernel went from 3.16 to 4.4 but still no scrolling. >>> >> >>> >>also: >>> >> >>> >>lsmod|

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Didier Kryn
Le 27/04/2016 09:08, Joel Roth a écrit : Do you label all your filesystems? I don't, but you're right that is a different function that needed be confuted with an automounter. I do, even for the hard disk; it's a reminder of where are /usr, /var and /home. The labels show up in cfdisk.

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Didier Kryn
Le 27/04/2016 08:46, Noel Torres a écrit : Joel Roth escribió: As a suggestion for an aspiring automounter writer (or reminder to self) I was thinking that if we can get a sufficiently unique identifier from the device (UUID, etc.) it might be nice to map that to a memorable mount target. It co

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Joel Roth
On Wed, Apr 27, 2016 at 06:46:24AM +, Noel Torres wrote: > Joel Roth escribió: > >As a suggestion for an aspiring automounter writer (or > >reminder to self) I was thinking that if we can get a > >sufficiently unique identifier from the device (UUID, etc.) > >it might be nice to map that to a