Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 17-05-2018, 10:04   #1
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
OS Linux specific

This thread is dedicated to Linux specific questions.
rgleason is offline   Reply With Quote
Old 23-05-2018, 09:28   #2
Registered User

Join Date: Feb 2015
Posts: 4
Re: OS Linux specific

I have a Ubuntu OpenCPN installation on my boat that has no connection to the internet. How do I upgrade my OpenCPN using a USB drive?
Bob Brunius is offline   Reply With Quote
Old 23-05-2018, 10:29   #3
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 719
Re: OS Linux specific

It is possible to download each required package to the usb and install all packages to update manually, but it is time consuming.


Better find a way to connect your ubuntu pc to internet and then disconnect after update.


I assume your boat/plotter is in an area where your phone can connect to internet?, if so, use your phone to setup a wireless hotspot and connect your plotter to that hotspot over wifi and do the upgrade
Code:
sudo apt-get update && sudo apt-get upgrade opencpn*

If your plotter does not have wifi, buy a Raspberry Pi USB WiFi Dongle - it costs less than $10,- plug in to the plotter, connect to the mobile hotspot and run the command above

Quote:
Originally Posted by Bob Brunius View Post
I have a Ubuntu OpenCPN installation on my boat that has no connection to the internet. How do I upgrade my OpenCPN using a USB drive?
petter5 is offline   Reply With Quote
Old 23-05-2018, 11:20   #4
Registered User

Join Date: Feb 2015
Posts: 4
Re: OS Linux specific

Quote:
Originally Posted by petter5 View Post
It is possible to download each required package to the usb and install all packages to update manually, but it is time consuming.


Better find a way to connect your ubuntu pc to internet and then disconnect after update.


I assume your boat/plotter is in an area where your phone can connect to internet?, if so, use your phone to setup a wireless hotspot and connect your plotter to that hotspot over wifi and do the upgrade
Code:
sudo apt-get update && sudo apt-get upgrade opencpn*

If your plotter does not have wifi, buy a Raspberry Pi USB WiFi Dongle - it costs less than $10,- plug in to the plotter, connect to the mobile hotspot and run the command above
My computer has a WiFi but is configured to be a hotspot to serve TCP data to other devices.
Bob Brunius is offline   Reply With Quote
Old 23-05-2018, 11:41   #5
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,145
Re: OS Linux specific

Go to https://launchpad.net/~opencpn/+arch...ncpn/+packages and download the deb package manually. Then install using
Code:
sudo dpkg -i DEB_PACKAGE
If you have some older OpenCPN already installed, there is a decent chance you will not be missing any dependencies. If you will, get those and install them first.

Or disable the hotspot for 5 minutes, connect to the internet and do the upgrade normally.
nohal is offline   Reply With Quote
Old 23-05-2018, 12:54   #6
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 719
Re: OS Linux specific

If adding a (additional) USB dongle and using this for connecting to the internet for doing the upgrade, you will have two networks on your plotter/pc when doing the upgrade - one net for connecting to internet and the other for TCP hotspot services.


You must use another ip address range for the dongle connection to the internet via your mobile hotspot/ wireless than your net using for serving TCP data.
I do that regularly. Just plut in an usb dongle, connect to the internet and do the upgrade - disconnect form internet and remove the usb dongle. DONE :-)

Quote:
Originally Posted by Bob Brunius View Post
My computer has a WiFi but is configured to be a hotspot to serve TCP data to other devices.
petter5 is offline   Reply With Quote
Old 23-05-2018, 13:26   #7
Registered User
 
Reefmagnet's Avatar

Join Date: May 2008
Location: puɐןsuǝǝnb 'ʎɐʞɔɐɯ
Boat: Nantucket Island 33
Posts: 4,864
Re: OS Linux specific

Quote:
Originally Posted by Bob Brunius View Post
My computer has a WiFi but is configured to be a hotspot to serve TCP data to other devices.
Choices are;

Buy a second wifi usb dongle for occasional use and configure. Double check the dongle chip is compatible with Ubuntu first (easy google search).

Tether a data enabled phone via usb. This is a cinch to do in Ubuntu.

If you device has wired Ethernet, a wireless router can be used to get internet access from a WiFi hotspot onto the wired port.
Reefmagnet is online now   Reply With Quote
Old 23-05-2018, 14:16   #8
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 719
Re: OS Linux specific

If in need for a usb dongle, buy a buy a Raspberry Pi USB WiFi Dongle - it is compatible with ubuntu and coats less than $ 10,-

Quote:
Originally Posted by Reefmagnet View Post
Choices are;

Buy a second wifi usb dongle for occasional use and configure. Double check the dongle chip is compatible with Ubuntu first (easy google search).

Tether a data enabled phone via usb. This is a cinch to do in Ubuntu.

If you device has wired Ethernet, a wireless router can be used to get internet access from a WiFi hotspot onto the wired port.
petter5 is offline   Reply With Quote
Old 23-05-2018, 20:51   #9
Registered User

Join Date: Feb 2015
Posts: 4
Re: OS Linux specific

Quote:
Originally Posted by petter5 View Post
I assume your boat/plotter is in an area where your phone can connect to internet?, if so, use your phone to setup a wireless hotspot and connect your plotter to that hotspot over wifi and do the upgrade
Code:
sudo apt-get update && sudo apt-get upgrade opencpn*
I brought my little compter home and hooked it up to a ethernet. So I ran the commands and I get the following error:

E: unable to locate package opencpn.log
E: Couldn't find any package by 'regex opencpn.log'

What's up with that?
Bob Brunius is offline   Reply With Quote
Old 23-05-2018, 23:36   #10
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 719
Re: OS Linux specific

Try to do a full upgade:

Code:
sudo apt-get update && sudo apt-get upgrade
Quote:
Originally Posted by Bob Brunius View Post
I brought my little compter home and hooked it up to a ethernet. So I ran the commands and I get the following error:

E: unable to locate package opencpn.log
E: Couldn't find any package by 'regex opencpn.log'

What's up with that?
petter5 is offline   Reply With Quote
Old 23-05-2018, 23:54   #11
Registered User

Join Date: Feb 2015
Posts: 4
Re: OS Linux specific

That worked. There was so much text and it took so long that I thought it was doing a distribution upgrade. If it had I was worried my instrumentation code written in Node.js would be broken. I think it's OK. Tomorrow I take it to the boat -- fingers crossed.

Thanks for your help.
Bob Brunius is offline   Reply With Quote
Old 10-09-2018, 14:34   #12
Registered User
 
samoorelex's Avatar

Join Date: May 2011
Location: Hilton Head Is, SC
Boat: Sabre 402 - 40'
Posts: 75
Re: OS Linux specific

I have a new system I've setup with Ubuntu 18.04.
I've successfully installed OpenCPN 4.8.6 but I can't get any new plugins to install.
My first impression is that there is something wrong with the package manager.
This is where is has installed from:
Index of /opencpn/opencpn/ubuntu bionic main
Here is what I get when I attempt to install from the terminal.

samoore@samoore-PD10BI:~$ sudo apt-get install opencpn-plugin-draw
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package opencpn-plugin-draw

both draw and b24radar are no-go for now.

Any help would be appreciated.

Cheers,
Sam Moore
__________________
Sam Moore
Muse 10
Sabre 402
samoorelex is offline   Reply With Quote
Old 10-09-2018, 19:53   #13
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,145
Re: OS Linux specific

Many plugins are still missing the Bionic builds in our PPA. For practical reasons I mostly ignore new Ubuntu releases until a new plugin version is available or I have excess of free time to rebuild the old ones. I currently do not have excess of free time.

Pavel
nohal is offline   Reply With Quote
Old 11-09-2018, 06:07   #14
Registered User
 
samoorelex's Avatar

Join Date: May 2011
Location: Hilton Head Is, SC
Boat: Sabre 402 - 40'
Posts: 75
Re: OS Linux specific

Thanks Pavel,
Is there any chance you can outline the manual install process for Ubuntu plugins?

Thanks,
Sam
__________________
Sam Moore
Muse 10
Sabre 402
samoorelex is offline   Reply With Quote
Old 11-09-2018, 06:39   #15
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,145
Re: OS Linux specific

Quote:
Originally Posted by samoorelex View Post
Thanks Pavel,
Is there any chance you can outline the manual install process for Ubuntu plugins?

Thanks,
Sam
A plugin source tree usually contains a README file outlining this process.
nohal is offline   Reply With Quote
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking For Specific Watermaker Tech in Trinidad Sonosailor Plumbing Systems and Fixtures 3 30-07-2009 11:54
Where can I find specific owners forums? ejlindahl Multihull Sailboats 8 27-02-2009 05:00
Tollycraft - anything specific to beware of? denmanislander Powered Boats 3 20-12-2008 14:08
are sails boat specific? desertmonk Deck hardware: Rigging, Sails & Hoisting 2 30-03-2008 03:55

Advertise Here


All times are GMT -7. The time now is 01:13.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.