Non-standard parallel port address

Support questions and answer and latest software.
jbrove
member
Posts: 19
Joined: Wed Feb 14, 2018 11:08 pm

Re: Non-standard parallel port address

Post by jbrove » Sun Mar 25, 2018 9:32 pm

I take no responsibility for anything that might go awry when doing this. You will need to run as root and that can be dangerous if you aren't familiar with the risks involved. That being said - this should do what you need.

I don't have the machine in front of me. So, this is off the top of my head:

You have to be root first:
sudo su
[user password]

You will need to mount your usb stick. You can look up how to do this on Google. The usb stick is mounted at /path/to/usb/mount in this example.

First update to 2.25. With the nucore 2.25 update on your usb stick:
cd /root/nucore/bin
/path/to/usb/mount/n_update copyfiles /path/to/usb/mount
/path/to/usb/mount/n_update updatebin /path/to/usb/mount

unmount the usb stick and put the nucore 2.25.3 update on it. Then remount it. Alternatively, you can turn the PC off and then take the usb out to put the update on it.

Then update to 2.25.3. With the nucore 2.25.3 update on your usb stick:
cp /path/to/usb/mount/nucore /root/nucore/bin/

To specify the parallel port address your card uses you will need to invoke nucore with:
cd /root/nucore/bin
./run nucore -parallel [parallel port address]

You can get your parallel port address by running:
cat /proc/ioports | grep parport (There may be more than one address range here depending on your system. You may need to try each.)

Shredso
member
Posts: 36
Joined: Wed May 04, 2011 10:02 pm

Re: Non-standard parallel port address

Post by Shredso » Mon Mar 26, 2018 9:04 pm

Thanks! I think I am going to start from scratch. What version of Ubuntu is the best to use? 10.04?

jbrove
member
Posts: 19
Joined: Wed Feb 14, 2018 11:08 pm

Re: Non-standard parallel port address

Post by jbrove » Tue Mar 27, 2018 4:09 am

I use 10.04 but only because I was having issues with 17.10 on my machine and I already had 10.04 downloaded.

Wizboy
member
Posts: 25
Joined: Wed Aug 23, 2017 6:04 am

Re: Non-standard parallel port address

Post by Wizboy » Tue Mar 27, 2018 9:06 am

I have made the experience that newer ubuntu versions needs more ressources... and a lot longer boottime.

Shredso
member
Posts: 36
Joined: Wed May 04, 2011 10:02 pm

Re: Non-standard parallel port address

Post by Shredso » Tue Mar 27, 2018 12:27 pm

Awesome. I started a (slow) Ubuntu disc download last night. I'll mess with it later. Are the original directions still the best way to go?

Shredso
member
Posts: 36
Joined: Wed May 04, 2011 10:02 pm

Re: Non-standard parallel port address

Post by Shredso » Sun Apr 01, 2018 9:39 am

Any tips on a scratch install? The NuCore install is failing, I presume because it's trying to download files that are no longer available.

jbrove
member
Posts: 19
Joined: Wed Feb 14, 2018 11:08 pm

Re: Non-standard parallel port address

Post by jbrove » Sun Apr 01, 2018 6:36 pm

Make sure you're connected to the internet and run this:

sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

then run:

sudo apt-get update

Rerun the nucore install. It should complete now after grabbing a bunch of stuff. You'll probably be missing libstdc++5. If I recall - it was removed from the package repo. If Nucore complains that it needs libstdc++5.so when you try to start it - you can install it by doing this:

wget http://launchpadlibrarian.net/14359502/libstdc++5_3.3.6-15ubuntu6_i386.deb
sudo dpkg -i libstdc++5_3.3.6-15ubuntu6_i386.deb

Shredso
member
Posts: 36
Joined: Wed May 04, 2011 10:02 pm

Re: Non-standard parallel port address

Post by Shredso » Sun Apr 01, 2018 8:00 pm

Are these commands for 10.04 or does it matter? Thanks!

Ed.

jbrove
member
Posts: 19
Joined: Wed Feb 14, 2018 11:08 pm

Re: Non-standard parallel port address

Post by jbrove » Sun Apr 01, 2018 8:10 pm

I intended for them to be used on 8.04 but it doesnt really matter as long as you arent on an Ubuntu release after ~17.04 (would just set a bunch of invalid sources).

Shredso
member
Posts: 36
Joined: Wed May 04, 2011 10:02 pm

Re: Non-standard parallel port address

Post by Shredso » Mon Apr 02, 2018 8:58 pm

Ok,

Here are the errors from the install.

Mon Apr 2 20:52:19 EDT 2018 [ERROR] apt-get -y upgrade failed to run.
Mon Apr 2 20:52:19 EDT 2018 [ERROR] apt-get -y install libsdl-mixer1.2 failed to run.
Mon Apr 2 20:52:19 EDT 2018 [ERROR] apt-get -y install libsdl-image1.2 failed to run.
Mon Apr 2 20:52:19 EDT 2018 [ERROR] apt-get -y install libstdc++5 failed to run.
Mon Apr 2 20:52:19 EDT 2018 [ERROR] apt-get -y install usbmount failed to run.

You had mentioned I may get a libstdc error so I tried your fix. First line ran fine. 2nd gave me this error.

root@nucore-desktop:~# sudo dpkg -i libstdc++5_3.3.6-15ubuntu6_i386.deb
(Reading database ... 123170 files and directories currently installed.)
Preparing to replace libstdc++5 1:3.3.6-15ubuntu6 (using libstdc++5_3.3.6-15ubuntu6_i386.deb) ...
Unpacking replacement libstdc++5 ...
dpkg: dependency problems prevent configuration of libstdc++5:
libstdc++5 depends on gcc-3.3-base (>= 1:3.3.6-15ubuntu6); however:
Package gcc-3.3-base is not installed.
dpkg: error processing libstdc++5 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:

Any ideas? Thanks!

Ed.

jbrove
member
Posts: 19
Joined: Wed Feb 14, 2018 11:08 pm

Re: Non-standard parallel port address

Post by jbrove » Mon Apr 02, 2018 10:23 pm

Try just running this and let me know what it reports back:

apt-get install libsdl-image1.2

Shredso
member
Posts: 36
Joined: Wed May 04, 2011 10:02 pm

Re: Non-standard parallel port address

Post by Shredso » Tue Apr 03, 2018 6:19 pm

root@nucore-desktop:~# apt-get install libsdl-image1.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsdl-image1.2 is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libstdc++5: Depends: gcc-3.3-base (>= 1:3.3.6-15ubuntu6) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

jbrove
member
Posts: 19
Joined: Wed Feb 14, 2018 11:08 pm

Re: Non-standard parallel port address

Post by jbrove » Tue Apr 03, 2018 8:02 pm

Odd. Lets do some cleanup and try to continue. Looks like 'process' saw a failure when the package was indeed installed.

sudo apt-get clean
sudo apt-get -f install
sudo dpkg --configure -a

I think the required packages were installed with the possible exception of libstdc++5 but we can forcibly install that later. I'd wager the install script still created the /root/nucore folder.

sudo su
cd /root/nucore/bin
ldd nucore | less

Look for any unresolved dependencies.

Shredso
member
Posts: 36
Joined: Wed May 04, 2011 10:02 pm

Re: Non-standard parallel port address

Post by Shredso » Wed Apr 04, 2018 6:28 pm

linux-gate.so.1 => (0x0069d000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x009c6000)
libz.so.1 => /lib/libz.so.1 (0x00bff000)
libSDL_mixer-1.2.so.0 => /usr/local/lib/libSDL_mixer-1.2.so.0 (0x00702000)
libSDL_image-1.2.so.0 => /usr/lib/libSDL_image-1.2.so.0 (0x005f1000)
libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0x00e43000)
libltdl.so.3 => /usr/local/lib/libltdl.so.3 (0x0088e000)
libmpg123.so.0 => /usr/local/lib/libmpg123.so.0 (0x00110000)
libftd2xx.so.0 => /usr/local/lib/libftd2xx.so.0 (0x00425000)
libftchipid.so.0 => /usr/local/lib/libftchipid.so.0 (0x00861000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x001e1000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x008b1000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00613000)
/lib/ld-linux.so.2 (0x00f8f000)
libtiff.so.4 => /usr/lib/libtiff.so.4 (0x00f03000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00166000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00a5d000)
libstdc++.so.5 => not found
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00b21000)
libpulse-simple.so.0 => /usr/lib/libpulse-simple.so.0 (0x0037d000)
libpulse.so.0 => /usr/lib/libpulse.so.0 (0x00187000)
libdirectfb-1.2.so.0 => /usr/lib/libdirectfb-1.2.so.0 (0x00382000)
libfusion-1.2.so.0 => /usr/lib/libfusion-1.2.so.0 (0x00b70000)
libdirect-1.2.so.0 => /usr/lib/libdirect-1.2.so.0 (0x00ece000)
libpulsecommon-0.9.21.so => /usr/lib/libpulsecommon-0.9.21.so (0x00a85000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x001c9000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x0043f000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00343000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x00d04000)
libXtst.so.6 => /usr/lib/libXtst.so.6 (0x00570000)
libwrap.so.0 => /lib/libwrap.so.0 (0x00ca9000)
libsndfile.so.1 => /usr/lib/libsndfile.so.1 (0x00576000)
libdbus-1.so.3 => /lib/libdbus-1.so.3 (0x0062c000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00e28000)
libuuid.so.1 => /lib/libuuid.so.1 (0x00bed000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00849000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x001d2000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0x0035c000)
libFLAC.so.8 => /usr/lib/libFLAC.so.8 (0x0069e000)
libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0x00d0d000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x003f9000)
libogg.so.0 => /usr/lib/libogg.so.0 (0x00373000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x0055c000)

jbrove
member
Posts: 19
Joined: Wed Feb 14, 2018 11:08 pm

Re: Non-standard parallel port address

Post by jbrove » Wed Apr 04, 2018 8:25 pm

Yeah, looks like you've got everything you need now except for the libstdc++5 package. Here's a hacky way to force install it.

dpkg --force-all -i libstdc++5_3.3.6-15ubuntu6_i386.deb

That should do it. You should be able to start nucore now. If that fails - use a bigger hammer:

extract the .deb package for libstdc++5 you downloaded earlier. You can do this off-box with 7-zip or some other archive utility or you can do it on the box with:

dpkg -x libstdc++5_3.3.6-15ubuntu6_i386.deb /some/output/folder (change this to some desired path)
cd /some/output/folder
tar -xvf data.tar

copy the libstdc++.so.5.0.7 file from ./usr/lib folder(from the archive that was extracted) to /usr/local/lib/ (root file system path)
cd /usr/local/lib
ln -s libstdc++.so.5.0.7 libstdc++.so.5
ldconfig

---

Now you should be able to start nucore. If it complains about missing the libstdc++ library - check "ldd nucore" and make sure it can "see" the libstdc++.so.5 library under /usr/local/lib

Post Reply