Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-22-2020, 08:21 AM
|
#1
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,040
Rep: 
|
USB Network Server - setup help please
I have an NJ01JZ 4 Port USB Gigabit Network Server, bought from Maplins many years ago.
I've never managed to install it despite DuckDuckGoing for a solution, so I'd welcome some tips on how to do this on a Linux Mint 19.1 machine
|
|
|
06-22-2020, 09:54 AM
|
#2
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,269
|
What happens when you try to install the deb?
|
|
|
06-22-2020, 10:17 AM
|
#3
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,040
Original Poster
Rep: 
|
Quote:
Originally Posted by smallpond
What happens when you try to install the deb?
|
Well that's the problem, I don't know what to install, the device did not come with a disk or any instructions for Linux, and a web search hasn't helped.
I have no idea what the devices IP address is or whether it has one. Or a MAC address even.
|
|
|
06-23-2020, 12:29 AM
|
#4
|
Member
Registered: Jun 2020
Posts: 609
Rep: 
|
When you add it to your network, what does your DHCP server say? (hoping your network doesn't have a lot of devices so it should be easy to spot the 'new addition') That may at least be a start to figuring out its IP - maybe it has a web UI if you try to navigate to that IP in a browser.
|
|
1 members found this post helpful.
|
06-24-2020, 01:49 PM
|
#5
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,040
Original Poster
Rep: 
|
Quote:
Originally Posted by obobskivich
When you add it to your network, what does your DHCP server say? (hoping your network doesn't have a lot of devices so it should be easy to spot the 'new addition') That may at least be a start to figuring out its IP - maybe it has a web UI if you try to navigate to that IP in a browser.
|
I'll give that go and let you know
|
|
|
12-06-2020, 10:42 AM
|
#6
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,040
Original Poster
Rep: 
|
Six months on I finally got around to doing something on this USB Network server.
It's IP address is 192.168.1.98 so opening that in a web browser showed this - see attachments
So how can I use it - I would like to use it as a NAS and as a print server
I would like to attach my HP Deskjet 930c via it's usb port and attach a usb external drive.
BNot sure where to go next despite a quick ddg session
|
|
|
12-06-2020, 10:44 AM
|
#7
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,040
Original Poster
Rep: 
|
*** update ****
I plugged a usb stick into the server, and I can see it - it's device 2 - how do I access it - samba?
|
|
|
12-06-2020, 11:21 AM
|
#8
|
Moderator
Registered: Aug 2002
Posts: 26,519
|
Either the device requires drivers and if so using it with linux is probably not going to happen or it doesn't.
I would try plugging in a USB drive, either formatted as FAT32 or NTFS and see what happens. Which you have already accomplished. I would think the drive would be recognized and displayed on the web page. Use nmap to see what common ports are open if any particularly SMB/CIFS. If so you can check with smbclient to see the share names, it might be somewhat usable although it probably uses SMB version 1 which has been deprecated and removed in recent versions of samba.
The same would be true of the printer. Check ports like 9100 which you could set directly with cups or the print wizard.
Last edited by michaelk; 12-06-2020 at 11:22 AM.
|
|
1 members found this post helpful.
|
12-06-2020, 12:53 PM
|
#9
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,040
Original Poster
Rep: 
|
Quote:
Originally Posted by michaelk
Either the device requires drivers and if so using it with linux is probably not going to happen or it doesn't.
I would try plugging in a USB drive, either formatted as FAT32 or NTFS and see what happens. Which you have already accomplished. I would think the drive would be recognized and displayed on the web page. Use nmap to see what common ports are open if any particularly SMB/CIFS. If so you can check with smbclient to see the share names, it might be somewhat usable although it probably uses SMB version 1 which has been deprecated and removed in recent versions of samba.
The same would be true of the printer. Check ports like 9100 which you could set directly with cups or the print wizard.
|
Good start
Code:
sudo nmap 192.168.1.98
Starting Nmap 7.80 ( https://nmap.org ) at 2020-12-06 17:20 GMT
Nmap scan report for Unknown-00-0a-eb-f3-7d-b3.home (192.168.1.98)
Host is up (0.00021s latency).
Not shown: 998 filtered ports
PORT STATE SERVICE
80/tcp open http
515/tcp open printer
MAC Address: 00:0A:EB:F3:7D:B3 (Tp-link Technologies)
Nmap done: 1 IP address (1 host up) scanned in 4.36 seconds
jonke@charlie:~$
So I could configure cups to use port 515 I think - these are the commonly used ports:
Code:
- 21 – FTP
- 22 – SSH
- 25 – SMTP (sending email)
- 53 – DNS (domain name service)
- 80 – HTTP (web server)
- 110 – POP3 (email inbox)
- 123 – NTP (Network Time Protocol)
- 143 – IMAP (email inbox)
- 443 – HTTPS (secure web server)
- 465 – SMTPS (send secure email)
- 631 – CUPS (print server)
- 993 – IMAPS (secure email inbox)
- 995 – POP3 (secure email inbox)
631 is the usual cups port
I've also added my printer(see attached image) and I've installed hplip hplip-gui:
Code:
~$ sudo apt install hplip hplip-gui
Reading package lists... Done
Building dependency tree
Reading state information... Done
hplip is already the newest version (3.20.3+dfsg0-2).
The following additional packages will be installed:
python3-dbus.mainloop.pyqt5 python3-notify2
The following NEW packages will be installed
hplip-gui python3-dbus.mainloop.pyqt5 python3-notify2
0 to upgrade, 3 to newly install, 0 to remove and 111 not to upgrade.
Need to get 46.9 kB of archives.
After this operation, 261 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 python3-dbus.mainloop.pyqt5 amd64 5.14.1+dfsg-3build1 [16.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 hplip-gui all 3.20.3+dfsg0-2 [19.1 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/universe amd64 python3-notify2 all 0.3-4 [11.0 kB]
Fetched 46.9 kB in 0s (403 kB/s)
Selecting previously unselected package python3-dbus.mainloop.pyqt5.
(Reading database ... 395798 files and directories currently installed.)
Preparing to unpack .../python3-dbus.mainloop.pyqt5_5.14.1+dfsg-3build1_amd64.deb ..
.
Unpacking python3-dbus.mainloop.pyqt5 (5.14.1+dfsg-3build1) ...
Selecting previously unselected package hplip-gui.
Preparing to unpack .../hplip-gui_3.20.3+dfsg0-2_all.deb ...
Unpacking hplip-gui (3.20.3+dfsg0-2) ...
Selecting previously unselected package python3-notify2.
Preparing to unpack .../python3-notify2_0.3-4_all.deb ...
Unpacking python3-notify2 (0.3-4) ...
Setting up python3-dbus.mainloop.pyqt5 (5.14.1+dfsg-3build1) ...
Setting up hplip-gui (3.20.3+dfsg0-2) ...
Setting up python3-notify2 (0.3-4) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24+linuxmint1) ...
jonke@charlie:~$
All good so far now to find the network printer
Code:
hp-setup 192.168.1.98
HP Linux Imaging and Printing System (ver. 3.20.3)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
qt5ct: using qt5ct plugin
Searching for device...
error: Device not found. Please make sure your printer is properly connected and powered-on.
This might be a firewall problem
Code:
$ sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip
jonke@charlie:~$
Don't I need to open the printer port ?
|
|
|
12-06-2020, 01:34 PM
|
#10
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,040
Original Poster
Rep: 
|
I went through the setup wizard and waited for it to discover the network printer - last time I didn't wait long enough and cancelled it, this time it discovered it and I followed through the next next options, selecting desklet 930c on the way and it's online now.
Next step - install it on my other machines, any tips on what I could copy file wise to speed up installing it or do I just go through the wizard each time. Luckily I only have four machines, but what if I had a hundred? I know there must be a way to push this out to all.
Also I plan to hang this off the router so it should just work shouldn't it?
I'll wait for few replies and then mark as solved.
|
|
|
12-06-2020, 01:52 PM
|
#11
|
Moderator
Registered: Aug 2002
Posts: 26,519
|
Check the URL generated and you can manually add it on the others.
Since 515 port is the old lpd printer protocol it worked. Since the samba ports did not show up not sure unless the is some additional config setup on the device.
Last edited by michaelk; 12-06-2020 at 01:58 PM.
|
|
|
12-06-2020, 02:18 PM
|
#12
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,040
Original Poster
Rep: 
|
Update, just ran through the Add Printer wizard
Find Network Printer
(this takes quite a few minutes)
Probe
LPD/LPR Queue 'PASSTHRU'
Forward
Search for drivers
HP
Forward
Deskjet 930c (yes I know it's old but it works)
Forward
Print test page
Job done
Simples
|
|
|
12-06-2020, 04:43 PM
|
#13
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,040
Original Poster
Rep: 
|
Quote:
Originally Posted by michaelk
Check the URL generated and you can manually add it on the others.
Since 515 port is the old lpd printer protocol it worked. Since the samba ports did not show up not sure unless the is some additional config setup on the device.
|
There is no s/w to configure the device, not that I've found yet
|
|
|
12-07-2020, 07:53 AM
|
#14
|
Senior Member
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,040
Original Poster
Rep: 
|
I was going to buy a print server like this one - saved myself £63!!!
|
|
|
All times are GMT -5. The time now is 01:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|