WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TinyCore/RaspberryPi Photo Scanning Project  (Read 17374 times)

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #45 on: January 03, 2021, 07:06:06 PM »
Try this. Create a file called  /opt/NFSmount.sh ...

I read through your script, copied it over NFS, and adjusted ownership and permissions. I'm trying to modify it to fit my needs. I'm not entirely sure what's happening when it is making the mountpoint. By context, it looks like it's checking for the mountpoint and creating one if it returns false. I'm also a little confused about specifying NFS 3 specifically. I know the server itself can go up to 4 and even 4.1.

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #46 on: January 03, 2021, 07:14:06 PM »
...
If it crashes, the place to look for errors is:
Code: [Select]
/tmp/wm_errors

Here's the error:
Code: [Select]
shadow8472@Shadow8472-Laptop:/mnt/PhotoTrunk/Personal$ cat wm_errors
JWM: warning: /home/tc/.jwmrc[9]: invalid include: ./.jwmrc-ondemand
GEGL-Message: 03:10:51.551: Module '/usr/local/lib/gegl-0.4/sdl2-display.so' load error: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
This is a development version of GIMP.  Debug messages may appear here.


** (gimp-2.99:2109): WARNING **: 03:10:54.567: AT-SPI: Could not obtain desktop path or name


** (gimp-2.99:2109): WARNING **: 03:10:54.640: atk-bridge: GetRegisteredEvents returned message with unknown signature

** (gimp-2.99:2109): WARNING **: 03:10:55.182: atk-bridge: get_device_events_reply: unknown signature

** (gimp-2.99:2109): WARNING **: 03:10:57.153: atk-bridge: get_device_events_reply: unknown signature
GIMP-Message: Some fonts failed to load:
- /usr/local/share/gimp/2.99/fonts/

GIMP-Warning: Module '/usr/local/lib/gimp/2.99/modules/libcontroller-midi.so' load error: libasound.so.2: cannot open shared object file: No such file or directory

set device 'USB Optical Mouse  Consumer Control' to mode: disabled
set device 'Virtual core XTEST pointer' to mode: disabled
set device 'USB Optical Mouse  Mouse' to mode: disabled
/usr/local/lib/gimp/2.99/plug-ins/file-mng/file-mng: error while loading shared libraries: libmng.so.2: cannot open shared object file: No such file or directory
GIMP-WARNING: gimp-2.99: gimp_wire_read(): error

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11282
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #47 on: January 03, 2021, 07:16:31 PM »
Hi Shadow_8472
Code: [Select]
[ -d /mnt/NFS ] || mkdir /mnt/NFSYou mentioned creating a mount point so I included that. You are correct, the mount point is created only if it does not exist.
I think I used NFS 3 because my older machine doesn't support NFS 4. At any rate, 3 is a safe choice. Feel free to try 4 if
you feel you need to.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11282
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #48 on: January 03, 2021, 07:21:29 PM »
Hi Shadow_8472
Code: [Select]
JWM: warning: /home/tc/.jwmrc[9]: invalid include: ./.jwmrc-ondemand
Did you install  jwm.tcz  ondemand?  If you did, move it to  onboot.

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #49 on: January 03, 2021, 08:42:51 PM »
Hi Shadow_8472
Code: [Select]
[ -d /mnt/NFS ] || mkdir /mnt/NFSYou mentioned creating a mount point so I included that. You are correct, the mount point is created only if it does not exist.
I think I used NFS 3 because my older machine doesn't support NFS 4. At any rate, 3 is a safe choice. Feel free to try 4 if
you feel you need to.

I've just been leaving it be and letting it float however, and it's worked. Modified script is working as intended.

...
Did you install  jwm.tcz  ondemand?  If you did, move it to  onboot.

I have not yet. I'm not sure where to find it. What does it do?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11282
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #50 on: January 03, 2021, 08:44:06 PM »
Hi Shadow_8472
Disregard the previous post.

Does the file  ~/.jwmrc-ondemand  exist?

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #51 on: January 03, 2021, 08:45:55 PM »
Hi Shadow_8472
Disregard the previous post.

Does the file  ~/.jwmrc-ondemand  exist?

Yes.

And for some reason, GIMP is giving new errors. I'll go ahead and install the other packages to clean up those other errors to focus on the new ones.

Edit: Reboot fixed the inability to open, but warnings remain.
Edit2: ... And gimp-2.99 > gimp.txt no longer directs the output to the text file. echo will still divert though.
« Last Edit: January 03, 2021, 09:04:01 PM by Shadow_8472 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11282
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #52 on: January 03, 2021, 09:03:44 PM »
Hi Shadow_8472
If the file exists, I don't think you should be getting this error:
Quote
JWM: warning: /home/tc/.jwmrc[9]: invalid include: ./.jwmrc-ondemand

Does the file  ~/.jwmrc  also exist?

Do you run a backup before shutting down?

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #53 on: January 03, 2021, 09:05:28 PM »
Hi Shadow_8472
If the file exists, I don't think you should be getting this error:
Quote
JWM: warning: /home/tc/.jwmrc[9]: invalid include: ./.jwmrc-ondemand

Does the file  ~/.jwmrc  also exist?

Do you run a backup before shutting down?

Yes, ~/.jwmrc exists, but it's empty.

I think I've been forgetting backups lately.
« Last Edit: January 03, 2021, 09:08:13 PM by Shadow_8472 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11282
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #54 on: January 03, 2021, 09:59:40 PM »
Hi Shadow_8472
Please post the results of the following commands:
Code: [Select]
showbootcodes
cat /opt/.filetool.lst

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #55 on: January 03, 2021, 10:19:54 PM »
showbootcodes
Code: [Select]
cat /mnt/PhotoTrunk/Personal/showbootcodes
coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  zswap.compressor=lz4 zswap.zpool=z3fold console=tty1 root=/dev/ram0 elevator=deadline rootwait quiet nortc loglevel=3 noembed

/opt/.filetool.lst
Code: [Select]
opt
home
ect/asound.conf
ect/group
ect/gshadow
ect/passwd
ect/shadow
usr/local/etc/ssh_host_dsa_key
usr/local/etc/ssh_host_dsa_key.pub
usr/local/etc/ssh_host_ecdsa_key
usr/local/etc/ssh_host_ecdsa_key.pub
usr/local/etc/ssh_host_ed25519_key
usr/local/etc/ssh_host_ed25519_key.pub
usr/local/etc/ssh_host_rsa_key
usr/local/etc/ssh_host_rsa_key.pub
« Last Edit: January 03, 2021, 10:22:48 PM by Shadow_8472 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11282
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #56 on: January 03, 2021, 11:23:48 PM »
Hi Shadow_8472
/opt/.filetool.lst
Code: [Select]
ect/asound.conf
ect/group
ect/gshadow
ect/passwd
ect/shadow

Did you misspell  etc  or are you still copying by hand?

If your  ~/.jwm*   files have any customizations, save you changes somewhere safe.
Delete (or move) the  ~/.jwm*   files.
Run a backup:
Code: [Select]
filetool.sh -bReboot so that  jwm  recreates the  ~/.jwm*   files.

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #57 on: January 04, 2021, 12:08:08 AM »
I copied that one by hand, but the other one, I did properly.

I did customize a .jwm file to move the tray to the bottom and to show only one virtual desktop.

...

I moved the files to a directory and wow! Yeah, I'll say there was some custom theming going on there. My generic TinyCore background is gone and I have a menu button. No file regeneration took place though. Perhaps a backup and reboot.

...

Reboot appears to have regenerated things. .jwmrc-ondemand is still empty, though.

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #58 on: January 04, 2021, 12:39:20 AM »
Thanks for your help this past week. I'll be sure to mention you in my blog post. Unfortunately, I tend to burn out hard if I focus for too long on a single task, and I feel myself approaching that again. I'll try to be back in a couple days to a week. I feel tantalizingly close to getting this project actually underway, and I've been on it for a week most months for a year.

Until then, the other end is shaping up like so:
I did my first test of regular SANE and got the usual errors that get in the way of plug and play scanning. I need to adjust permissions in places I forget where.

XSANE does not appear to be in the repository. If someone's willing to compile it, might as well aim for aarch64, as I'm itching to learn that when I get a spare SD card -- I used my last one for this project as it is.

Note: I was warned that XSANE may only support 24 bit color depth, and I'm looking to work in the scanners' native 48.
« Last Edit: January 04, 2021, 12:46:24 AM by Shadow_8472 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11282
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #59 on: January 04, 2021, 10:23:28 AM »
Hi Shadow_8472
... Reboot appears to have regenerated things. .jwmrc-ondemand is still empty, though.
If you don't install extensions  ondemand , that file will be empty.

What do you mean  "is still empty" ? Earlier you stated:
... Yes, ~/.jwmrc exists, but it's empty. ...
I'm beginning to think you were being less than honest with me when you made that statement. ::)
Did you mean  ~/.jwmrc-ondemand ?
« Last Edit: January 04, 2021, 10:25:06 AM by Rich »