WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #30 on: January 03, 2021, 06:17:53 AM »
Rebuild everything in 64-bit

Only nfs-utils is missing, no?

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #31 on: January 03, 2021, 07:00:41 AM »
I haven't looked that far into it, though what good is a tech project without something going wrong and iterative learning taking place? If/when I rebuild everything for 64 bit, I'll want a separate SD card so I can fall back to this one.

And here's my list again because new page.
Complete:
  • PiCore Installation
  • Xorg/JWM/aterm Installed
  • GIMP Installed
  • nfs-utils Installed
  • Underscan Adjusted
  • Hostname

To Do:
  • GIMP alias
  • GIMP scanning plugin(s)
  • Persistent NFS drive mounting
  • Test workflow: Scan into GIMP, save directly to NFS
  • Benchmark on Pi 4 and 400 (Units in use elsewhere)

Wishlist [Lower = less priority]:
  • Username (without locking myself out)
  • Make Ctrl+Alt+T bring up a Terminal
  • Compare JWM to FLWM_Topside, each configured to my liking
  • Rebuild everything in 64-bit
« Last Edit: January 03, 2021, 07:04:01 AM by Shadow_8472 »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11696
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #32 on: January 03, 2021, 09:52:48 AM »
Hi Shadow_8472
Well, now. I've started poking about in GIMP, but I don't like the colorless icons. Switching to colored icons, ...
Do the icons all look like little terminals?

Open a terminal and start gimp like this:
Code: [Select]
gimp-2.99Is it spitting out any warnings or errors?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #33 on: January 03, 2021, 10:00:36 AM »
nfs-utils posted to the aarch64 repo

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #34 on: January 03, 2021, 03:37:13 PM »
Hi Shadow_8472
Well, now. I've started poking about in GIMP, but I don't like the colorless icons. Switching to colored icons, ...
Do the icons all look like little terminals?

Open a terminal and start gimp like this:
Code: [Select]
gimp-2.99Is it spitting out any warnings or errors?
Yes, a few. None that hinder apparent normal operation.
Code: [Select]
** (gimp-2.99:2195): WARNING **: <timestamp>: AT-SPI: Could not obtain desktop path or name

** (gimp-2.99:2195): WARNING **: <timestamp>: atk-bridge: GetRegisteredEvents returned message with unknown signature

** (gimp-2.99:2195): WARNING **: <timestamp>: atk-bridge: get_device_events_reply: unknown signature

** (gimp-2.99:2195): WARNING **: <timestamp>: 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
And it goes on about USB Optical Mouse Consumer Control, Virtual core XTEST pointer, and USB Optical Mouse Mouse being set to disabled mode. There's an error with libmng.so.2 and loading shared libraries. There's a gimp_wire_read() error. And it finishes with a bit about trying to unset GdkDevice of GimpDeviceInfo with regard to the mouse and rehashing the mouse and mouse control disable mode. Other than that, I'm copying this by hand.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11696
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #35 on: January 03, 2021, 04:19:45 PM »
Hi Shadow_8472
... I'm copying this by hand.
This should redirect all messages into gimp.txt
Code: [Select]
gimp-2.99 > gimp.txt 2>&1

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #36 on: January 03, 2021, 04:30:48 PM »
Hi Shadow_8472
... I'm copying this by hand.
This should redirect all messages into gimp.txt
Code: [Select]
gimp-2.99 > gimp.txt 2>&1

I don't even have a browser on PiCore. Should I put a mount command into bootlocal.sh or bootsync.sh?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11696
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #37 on: January 03, 2021, 04:52:25 PM »
Hi Shadow_8472
By redirecting the error messages into a file, you will have an accurate record of what occurred. I suppose there are several
possible ways of getting the file off of your Rpi. You could mount an NFS share and copy it there. You could copy it to the
SD card you boot from, and use another machine to read the file back. If you have a USB port available, you could plug
in a thumb drive and copy it there.

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #38 on: January 03, 2021, 06:19:23 PM »
I'm working on that. First, I want to get NFS working on boot. I've already gotten it to make a mountpoint, and I'm sputtering along in /opt/bootlocal.sh and /opt/bootsync.sh. I'll do a manual boot and get the GIMP error shortly.

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #39 on: January 03, 2021, 06:34:41 PM »
Finally got Gimp to start. I just needed a little self lesson in when to use chmod and not chown.

Code: [Select]
GEGL-Message: 23:30:26.517: 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:2201): WARNING **: 23:30:29.545: AT-SPI: Could not obtain desktop path or name


** (gimp-2.99:2201): WARNING **: 23:30:29.618: atk-bridge: GetRegisteredEvents returned message with unknown signature

** (gimp-2.99:2201): WARNING **: 23:30:30.159: atk-bridge: get_device_events_reply: unknown signature

** (gimp-2.99:2201): WARNING **: 23:30:32.108: 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

The program is running normally to the best of my knowledge, allbeit a bit slow because of the Pi 3.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11696
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #40 on: January 03, 2021, 08:22:39 PM »
Hi Shadow_8472
Code: [Select]
GEGL-Message: 23:30:26.517: 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
Installing  SDL2.tcz  should make that stop.

Code: [Select]
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
Installing  libasound.tcz  should make that stop.

Code: [Select]
/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
Installing  libmng.tcz  should make that stop.

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #41 on: January 03, 2021, 08:49:47 PM »
I don't plan on using sound at all, so I'm fine leaving those off. I'll post the error later where JWM crashed, if I can reproduce it. I'm working on a weekly write up for my blog at the moment.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11696
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #42 on: January 03, 2021, 09:19:05 PM »
Hi Shadow_8472
... First, I want to get NFS working on boot. ...
Try this. Create a file called  /opt/NFSmount.sh
Code: [Select]
#!/bin/sh
# Wait for network to come up
SEC="60"
while [ $SEC -gt 0 ]
do
        SEC=$(($SEC - 1))
        ifconfig | grep -q "Bcast:" && break
        sleep 1
done
# Create your mount point
[ -d /mnt/NFS ] || mkdir /mnt/NFS
# Start NFS service
sudo /usr/local/etc/init.d/nfs-client restart
# Mount NFS share.
sudo mount -o v3 192.168.1.30:/home/tc /mnt/NFS

Make it executable:
Code: [Select]
sudo chmod 775 /opt/NFSmount.sh
Then add this to your  /opt/bootlocal.sh  file:
Code: [Select]
/opt/NFSmount.sh &
If you happen to power up your NFS server after you Rpi, you should still be able to connect by running:
Code: [Select]
/opt/NFSmount.sh

Offline Shadow_8472

  • Newbie
  • *
  • Posts: 39
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #43 on: January 03, 2021, 09:42:47 PM »
I don't plan on using sound at all, so I'm fine leaving those off. I'll post the error later where JWM crashed, if I can reproduce it. I'm working on a weekly write up for my blog at the moment.

Hmm, I crashed JWM again by switching the icons. No change in GIMP's log with respect to the one I already posted. Perhaps if I were to capture JWM's log.

...

Looks like starting jwm in a terminal separately after a crash has some errors: It's looking in the present directory for jwmrc-[tray|theme|keys]. I did capture a Segmentation fault, though

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11696
Re: TinyCore/RaspberryPi Photo Scanning Project
« Reply #44 on: January 03, 2021, 10:00:08 PM »
Hi Shadow_8472
If you look in your  ~/.xsession  file you should see a line that looks like this:
Code: [Select]
"$DESKTOP" 2>/tmp/wm_errors &That's where your window manager gets started.

If it crashes, the place to look for errors is:
Code: [Select]
/tmp/wm_errors