Problem installing node.js and ZIP drive

New to SolydXK? This is the place to start.
Please check the other subforums to see if there's a more suitable place for your question.
sxphild
Posts: 46
Joined: 04 Jul 2016 10:30
Location: Iowa, USA

Problem installing node.js and ZIP drive

Postby sxphild » 23 Mar 2017 02:07

I am relatively new to Linux, but enjoying solydxk.
It's friendly and usable.

I ran across two blocks that I don't know how to deal with.

1. Installing node.js. Synaptic lists many many libraries for node,
but no main program. I tried the following command line download
& install:

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

It failed. It said that SolydXK was not a supported distro.

What's the best way to do this?

2. I have to use from time to time, an Iomega Zip100 parallel port
drive. I found this command:

modprobe -v ppa

This fails in SolydXK

I also tried modprobe imm
same result.

I finally found that the commdn works in Puppy Linux, but I'd prefer
not to have to distro-hop every time I need to do this.

Can you suggest a solution?

Thanks much,

Phil

User avatar
Arjen Balfoort
Site Admin
Posts: 9113
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Problem installing node.js and ZIP drive

Postby Arjen Balfoort » 23 Mar 2017 06:27

I don't have any experience with nodejs but I see this in the repository:

Code: Select all

$ apt policy nodejs
nodejs:
  Installed: (none)
  Candidate: 0.10.29~dfsg-2
  Version table:
     0.10.29~dfsg-2 0
        500 http://ftp.debian.org/debian/ jessie/main amd64 Packages
So, shouldn't this be enough?

Code: Select all

apt install nodejs


SolydXK needs you!
Development | Testing | Translations

User avatar
Zill
Posts: 1850
Joined: 13 Aug 2013 14:28
Location: Lincolnshire, UK

Re: Problem installing node.js and ZIP drive

Postby Zill » 23 Mar 2017 11:41

sxphild wrote:... I have to use from time to time, an Iomega Zip100 parallel port drive. I found this command:

modprobe -v ppa

This fails in SolydXK
Have you tried editing "/etc/modules" and adding "ppa" as suggested in the following link:
http://lifeofageekadmin.com/read-iomega ... ntu-linux/

Then reboot with the drive plugged in and powered on and enter the following:

Code: Select all

sudo cat /proc/scsi/scsi

sxphild
Posts: 46
Joined: 04 Jul 2016 10:30
Location: Iowa, USA

Re: Problem installing node.js and ZIP drive

Postby sxphild » 23 Mar 2017 17:21

Hi Arjen,

apt install nodejs worked just fine! Thank you.
The version seems to be 0.x.x.
Given that the current version is 7.x.x,
isn't this a bit old? As long as it will run
the scripts I am writing, I can have no complaint, though...

And thank you for the reference to apt policy [ app name ]
I'm learning linux quite fast...

Phil

sxphild
Posts: 46
Joined: 04 Jul 2016 10:30
Location: Iowa, USA

Re: Problem installing ZIP drive

Postby sxphild » 23 Mar 2017 17:34

Hi Zill,

OK. I tried the method you suggested.
1. I could not find a directory called "modules" in
/etc. Just /etc/modules-load.d/modules.conf.

I added ppa to this ( there was nothing else there.
Saved it, and rebooted with the ZIP100 drive connected
and turned on.

Then I did sudo cat /proc/scsi/scsi as you indicated.

result: "No such file or directory".

I put a disk in the zip drive...file manager didn't mount or show it.

Thanks for trying..

Phil

User avatar
Zill
Posts: 1850
Joined: 13 Aug 2013 14:28
Location: Lincolnshire, UK

Re: Problem installing ZIP drive

Postby Zill » 23 Mar 2017 21:06

sxphild wrote:1. I could not find a directory called "modules" in
/etc. Just /etc/modules-load.d/modules.conf.
I am puzzled by this as, on my system, /etc/modules does exist:

Code: Select all

roger@dino:~$ ls -l /etc | grep module
-rw-r--r--  1 root root       195 Nov  6  2014 modules
drwxr-xr-x  2 root root      4096 Jan 15 11:30 modules-load.d

roger@dino:~$ ls -l /etc/modules-load.d/
-rw-r--r-- 1 root root 119 Mar 11  2014 cups-filters.conf
lrwxrwxrwx 1 root root  10 Jan  7 03:34 modules.conf -> ../modules
If you get similar outputs then /etc/modules-load.d/modules.conf is simply a symbolic link to /etc/modules.
Unfortunately, this means that adding "ppa" to modules.conf is effectively the same as adding it to modules. :(

Just as a double-check, please post the full outputs of the following three commands:

Code: Select all

uname -a
ls -l /etc/modules
cat /etc/modules

sxphild
Posts: 46
Joined: 04 Jul 2016 10:30
Location: Iowa, USA

Re: Problem installing node.js and ZIP drive

Postby sxphild » 24 Mar 2017 02:03

Zill,

You were right. Modules.conf is a symlink to /etc/modules.
And my "ppa" entry is in there.

Here's the results of the commands yhou requested:

Code: Select all

uname -a
Linux sx201607 3.16.0-4-586 #1 Debian 3.16.36-1+deb8u1 (2016-09-03) i686 GNU/Linux

ls -l /etc/modules
-rw-r--r-- 1 root root 198 Mar 23 12:04 /etc/modules

cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
ppa
Do you have a suggestion what's needed to mount the zipdrive?

As I posted, I can do it in Puppy Linux, also in Ubuntu ...but SolydX
is the distro I use most in my work, and I'd rather avoid having to
reboot each time I use the zipdrive.

Thanks,

Phil

User avatar
Zill
Posts: 1850
Joined: 13 Aug 2013 14:28
Location: Lincolnshire, UK

Re: Problem installing node.js and ZIP drive

Postby Zill » 24 Mar 2017 11:32

I don't know when you last updated SolydXK but your kernel is six months behind the current version, which is Debian 3.16.39-1+deb8u2 (2017-03-07).
https://packages.debian.org/jessie/linu ... 16.0-4-586

This probably is not relevant to your problem but, I suggest, it is generally recommended to keep SolydXK reasonably up-to-date:

Code: Select all

apt update
apt upgrade
A reboot will then be necessary as the kernel should have been updated.

Please ensure that, when you do reboot, the zip drive is plugged in and powered on with a disk in place.

Then open a terminal and post the full output of the following two commands:

Code: Select all

ls -l /proc/ | grep sc
cat /proc/scsi/scsi
If you still do not see the zip drive listed then, regrettably, I have run out of ideas. :-(

All I can then suggest is that, as the zip drives are now ancient, you use either Puppy or Ubuntu to transfer all your zip files to more modern storage media, such as a hard drive or USB memory stick(s).

sxphild
Posts: 46
Joined: 04 Jul 2016 10:30
Location: Iowa, USA

Re: Problem installing node.js and ZIP drive

Postby sxphild » 24 Mar 2017 16:27

Zill,

Thanks for your ideas.

I had planned to install the latest SolydX ( 201701)
anyway. This should give me the latest kernel, yes?

And I'll run your suggested commands, and post.

BTW, I cannot do a transfer of files to other storage media.
I maintain some DOS machines in my work( talk about
ancient...) . When I need
to transfer new files ( which they are generating
from day to day ) from them to process in Linux, I have to go through
a zip disk. DOS PCs have no USB capability...

Phil

User avatar
ilu
Posts: 2298
Joined: 09 Oct 2013 12:45

Re: Problem installing node.js and ZIP drive

Postby ilu » 24 Mar 2017 16:32

Wait, don't do a new install now. Do the commands that Zill told you. Reinstall is not necessary. Lets first get your update media running.

Zill, have you seen this tool: https://packages.debian.org/jessie/jazip. It might solve the mounting issue. But not if he has the very old IDE version of ZIP drive (you never know if DOS machines are involved :D ). In that case also scsi kernel modules won't help.

sxphild: Since Zill was guiding you through installing scsi modules I hope you don't have the very old IDE model? Just to be sure, can you check? All newer ZIP drives are supported by a special debian package. After the commands Zill said to run, you could try to do

Code: Select all

apt install jazip
Jazip should then show up in the menu and should help you to mount the drive - at least I hope so :) .

sxphild
Posts: 46
Joined: 04 Jul 2016 10:30
Location: Iowa, USA

Re: Problem installing node.js and ZIP drive

Postby sxphild » 24 Mar 2017 21:34

ilu and zill,

I did the update,upgrade.
Then rebooted with the zip drive plugged in, and disk inserted.

It did not show in file manager.

I ran your two commands:

Code: Select all

ls -l /proc/ | grep sc
-r--r--r--  1 root        root                 0 Mar 24 16:20 misc
-r--r--r--  1 root        root                 0 Mar 24 16:20 sched_debug

cat /proc/scsi/scsi
cat: /proc/scsi/scsi: No such file or directory

[ilu wrote]
I hope you don't have the very old IDE model? Just to be sure, can you check? All newer ZIP drives are supported by a special debian package. After the commands Zill said to run, you could try to do

Code: Select all

apt install jazip
I tried this - configuration screen froze in my terminal...

I checked the ZIp drive I have - it's a DDX Z100P2 - looked it up online - dates from 1996.

So very possible it's not the newer one.

Anyway, there's where we are. I think it might be easier to just reboot into Puppy
whenever I need to do this. But I thank you all for your help...

Phil

User avatar
ilu
Posts: 2298
Joined: 09 Oct 2013 12:45

Re: Problem installing node.js and ZIP drive

Postby ilu » 24 Mar 2017 23:30

sxphild wrote:I checked the ZIp drive I have - it's a DDX Z100P2 - looked it up online - dates from 1996.
That's the Iomega Z100P2 Parallel Port Zip Drive which, internally , should be a scsi device. So Zill is on the right track.
sxphild wrote:

Code: Select all

cat /proc/scsi/scsi
cat: /proc/scsi/scsi: No such file or directory
Zill: /proc/scsi/scsi seems to be deprecated on debian and replaced with sysfs? http://serverfault.com/questions/236711 ... n-debian-6 and http://www.cyberciti.biz/faq/debian-ubu ... i-command/. Shouldn't the kernel support need loading with "modprobe ppa" first?

sxphild: It doesn't hurt to try: "apt install lsscsi" and post the output of "lsscsi -c" with your drive attached. Lets see whether that gives any information. Does the drive LED blink at least once?
sxphild wrote:

Code: Select all

apt install jazip
I tried this - configuration screen froze in my terminal...
We'll have to postpone this because it needs the working kernel scsi support which is still not there.
sxphild wrote:Anyway, there's where we are. I think it might be easier to just reboot into Puppy
whenever I need to do this. But I thank you all for your help...
I wouldn't want to give up that quickly. :ugeek:

sxphild
Posts: 46
Joined: 04 Jul 2016 10:30
Location: Iowa, USA

Re: Problem installing node.js and ZIP drive

Postby sxphild » 25 Mar 2017 02:00

ilu,

I won't give up if you won't! I like to make things work.

I installed lsscsi and ran the command ( with zip drive on and disk
in it..)

result:

Code: Select all

lsscsi -c
Attached devices: 
Host: scsi0 Channel: 00 Target: 00 Lun: 00
  Vendor: ATA      Model: WDC WD800BB-22JH Rev: 1C05
  Type:   Direct-Access                    ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Target: 00 Lun: 00
  Vendor: _NEC     Model: DVD_RW ND-3500AG Rev: 2.16
  Type:   CD-ROM                           ANSI SCSI revision: 05
The first seems to be my hard drive, and 2nd DVD drive.

BTW, I have tried several times to add the ppa module.
Here is the output:

Code: Select all

sudo modprobe -v ppa
modprobe: FATAL: Module ppa not found.

User avatar
ilu
Posts: 2298
Joined: 09 Oct 2013 12:45

Re: Problem installing node.js and ZIP drive

Postby ilu » 25 Mar 2017 06:49

Yes, the ZIP drive is not recognized. It should anounce itself as something with ZIP or with its internal controller name Adaptec AHA152X/2825.

So that means back to Zill: SCSI support still not working. There's also another module called imm but it's for the ZIP plus which I don't think you have.

Here's a rather thorough writeup about kernel configuration http://www.linuxhaven.de/dlhp/HOWTO/DE- ... WTO-3.html (sorry in german) but you shouldn't need to compile the kernel. Loading the module should work, but I'M not very experienced (as opposed to Zill). I hope he comes up with something.

sxphild
Posts: 46
Joined: 04 Jul 2016 10:30
Location: Iowa, USA

Re: Problem installing node.js and ZIP drive

Postby sxphild » 25 Mar 2017 11:22

ilu,

What's so confusing is that both Puppy Linux and Ubuntu distros
can load the ppa module- even the older Ubuntu versions -( and access the zip drive ).
SolydXK seems to follow the Ubuntu versions...so I figured it must have ppa available.

Is the ppa module able to be downloaded and installed?

But thanks for all your help so far. I'm cutting my linux teeth on these
little bumps in the road!

P

User avatar
ilu
Posts: 2298
Joined: 09 Oct 2013 12:45

Re: Problem installing node.js and ZIP drive

Postby ilu » 25 Mar 2017 21:38

To be honest I'm just digging in the dark here, but that's how you learn, right? If I understood this correctly, listing the module in /etc/modules should load it at boot time. So to check this, what do the following commands say?

Code: Select all

 lsmod | grep ppa
sudo dkms status
My problem in searching the internet is that "ppa" is quite common for an alternative type of repository used frequently in Ubuntu which has nothing to do with this issue. You might have noticed that too. :(

sxphild
Posts: 46
Joined: 04 Jul 2016 10:30
Location: Iowa, USA

Re: Problem installing node.js and ZIP drive

Postby sxphild » 26 Mar 2017 01:51

ilu,

OK. Here's the output of your two commands:

Code: Select all

lsmod | grep ppa
----- produced no output ( just returned the prompt ).

sudo dkms status
/etc/lsb-release: line 1: grep:: command not found
/etc/lsb-release: line 2: DISTRIB_grep:: command not found
/etc/lsb-release: line 3: DISTRIB_grep:: command not found
/etc/lsb-release: line 4: DISTRIB_grep:: command not found
tp-smapi, 0.41, 3.16.0-4-586, i686: installed (original_module exists) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)
tp-smapi, 0.41, 3.16.0-4-586, x86_64: installed (original_module exists) (WARNING! Diff between built and installed module!)

BTW, my PC is a Dell Dimension 3000 with a Pentium 4 and 2G RAM. ( 32-bit machine )

Thanks,

Phil

User avatar
ilu
Posts: 2298
Joined: 09 Oct 2013 12:45

Re: Problem installing node.js and ZIP drive

Postby ilu » 26 Mar 2017 03:50

Well the ppa module obviously doesn't get loaded and there is some problem with another kernel module tp-smapi, 0.41, 3.16.0-4-586 (control for HP battery status) which is installed in both a 32bit and 64bit version? Any idea where that is coming from?

Admittedly, now I don't know how to proceed. dkms supervises and updates kernel modules. Seems that something is already wrong there. Maybe the difference to Puppy and Ubuntu is just that the SolydX kernel got borked earlier on?

If nobody else comes to your help maybe that new install wasn't such a bad idea. And if you do, try installing the ppa module first thing. And report back please! Stick with Jessie though, don't try debian9 on that old machine.

User avatar
Zill
Posts: 1850
Joined: 13 Aug 2013 14:28
Location: Lincolnshire, UK

Re: Problem installing node.js and ZIP drive

Postby Zill » 26 Mar 2017 12:55

Gents... My apologies but I can't get involved with this at the moment as my wife, Marie, is currently in hospital and so I have other priorities.

I really don't have any specific knowledge about this problem and, from a quick glance, Ilu seems to be doing just what I would do... search around looking for solutions and trying different things. Stick with it and I will try to participate again asap. Good luck.

User avatar
ilu
Posts: 2298
Joined: 09 Oct 2013 12:45

Re: Problem installing node.js and ZIP drive

Postby ilu » 29 Mar 2017 21:05

All loadable kernel modules are listed by

Code: Select all

find -R /lib/modules/$(uname -r) -type f -name \*.ko
Something named "ppa" is not among them as you can see with

Code: Select all

find -R /lib/modules/$(uname -r) -type f -name *ppa*.ko
Edit: I have no idea why I did not find this earlier: http://unix.stackexchange.com/questions ... -11-kernel.

The bottom line seems to be: How do you get the IOMEGA ppa kernel module for the 3.16 kernel?
I found the source code here: https://github.com/torvalds/linux/blob/ ... scsi/ppa.c (newest) and here: http://lxr.free-electrons.com/source/dr ... a.c?v=3.16 (probably correct kernel version). You could try to compile it = nice experience. :geek:

Or you could try to look through the /lib/modules file hierarchy and see whether there is anything named ppa.ko on Ubuntu or Puppy. Please don't forget to do "uname -r" on Puppy and Ubuntu to see which kernels they are using. Maybe the Ubuntu one does work if it's not the newest Ubuntu. I checked an Ubuntu system and it did not have ppa.ko so no idea where your Ubuntu got it from.
Another source could be fli4l which is a minimal Linux focused on backwards compatibility. I found the module here https://ssl.nettworks.org/repo/browse/f ... csi/ppa.ko but that's not the right kernel.

I'd say compiling from source would be the safest way. No idea how to do that, never done it myself but can't be too difficult. You don't need to compile the kernel, just the module.

If an appropriate module gets found or compiles, installation would have to go along these lines: http://askubuntu.com/questions/299676/h ... ed-on-boot. Before trying to load anything you should first remove the "ppa"-line from /etc/modules to avoid ending up with an unbootable kernel. If I understand correctly the detrimental effects of loading a faulty or unworking module with "modprobe ppa" would only last until the next reboot.


Return to “Newbie Questions”

Who is online

Users browsing this forum: No registered users and 6 guests