Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 25-05-2019, 09:30   #16
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

Linux on Windows 10 does work for opencpn !
(Ubuntu 18.04, at least with W10 1903)
with xfce4 and an Xming server
However a dual boot Ubuntu is the way to go !
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 001.JPG
Views:	86
Size:	319.7 KB
ID:	192670  
sailorF54 is offline   Reply With Quote
Old 26-05-2019, 06:12   #17
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

Full setup...
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 001.jpg
Views:	91
Size:	301.2 KB
ID:	192704  
sailorF54 is offline   Reply With Quote
Old 26-05-2019, 07:16   #18
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

Compiling, running and displaying O is fine !
sailorF54 is offline   Reply With Quote
Old 26-05-2019, 14:41   #19
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

Quote:
Originally Posted by sailorF54 View Post
However a dual boot Ubuntu is the way to go !
It depends. With dual boot I can’t run Windows and Linux programs at the same time. But with WSL it’s easy. I have really grown to like WSL. It’s powerful, fairly complete and well supported. Linux programs in WSL run as fast or faster than in a dual boot system.
transmitterdan is offline   Reply With Quote
Old 26-05-2019, 17:07   #20
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,730
Images: 2
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

Since GTK seems to be one problem https://www.gtk.org/download/linux.php


Do I install one from gtk.org? If so, which one?
or

https://launchpad.net/ubuntu/+source/gtk+3.0 ?


Also I haven't installed a compressed package yet. Uncompress and then execute?


I am going to try to xrdp. I looks fairly involved but it is all sudo commands.
rgleason is offline   Reply With Quote
Old 26-05-2019, 17:10   #21
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,730
Images: 2
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

BTW I did


Quote:
rgleason@Dart:~$ dpkg -l libgtk[0-9]* | grep ^i
ii libgtk2.0-0:amd64 2.24.32-1ubuntu1 amd64 GTK+ graphical user interface library
ii libgtk2.0-bin 2.24.32-1ubuntu1 amd64 programs for the GTK+ graphical user interface library
ii libgtk2.0-common 2.24.32-1ubuntu1 all common files for the GTK+ graphical user interface library
rgleason is offline   Reply With Quote
Old 26-05-2019, 17:11   #22
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

Rick,

Don’t install anything except via sudo apt. Don’t add any extra PPAs except for OpenCPN.

Most of the blogs you read are wrong. Everything needed is available from the regular PPA that installs with WSL from the App Store. You don’t need to doctor up the PPA. That will just lead to heartache.
transmitterdan is offline   Reply With Quote
Old 27-05-2019, 01:47   #23
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

OK Transmitterdan, you're right
Using xrdp is much better than using Xming
However VNC on W10 seems to enter an infinite loop when connecting

Using W10 integrated app works fine
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2019-05-27 10-36-31.png
Views:	73
Size:	164.7 KB
ID:	192726   Click image for larger version

Name:	Screen Shot 002.jpg
Views:	71
Size:	246.0 KB
ID:	192727  

sailorF54 is offline   Reply With Quote
Old 27-05-2019, 04:45   #24
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

Quote:
Originally Posted by sailorF54 View Post
OK Transmitterdan, you're right
Using xrdp is much better than using Xming
However VNC on W10 seems to enter an infinite loop when connecting

Using W10 integrated app works fine
Yes, pointing a VNC client to its own display is like pointing a video camera at its own view screen. It becomes an infinite set of mirrors.
transmitterdan is offline   Reply With Quote
Old 27-05-2019, 06:06   #25
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,730
Images: 2
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

Quote:
Originally Posted by sailorF54 View Post
OK Transmitterdan, you're right
Using xrdp is much better than using Xming
However VNC on W10 seems to enter an infinite loop when connecting

Using W10 integrated app works fine
That's great to know, but how do I install it using sudo commands? What directions and version of XRDP should I be installing?
Regarding xrdp This does not appear to be the way to install it https://github.com/neutrinolabs/xrdp/releases
I need to use sudo apt.

Is this the right place to start executing commands?
https://github.com/neutrinolabs/xrdp...ng-on-Debian-8
Regarding the second problem, installation of GDK+ what version do I need and how should I install it? [no launchpad please, just using sudo apt, as per TDan]

Quote:
rgleason@Dart:~$ export DISPLAY=:0.0
rgleason@Dart:~$ opencpn
ALSA lib confmisc.c:767parse_card) cannot find card '0'
ALSA lib conf.c:4528_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
....

ALSA lib pcm.c:2495snd_pcm_open_noupdate) Unknown PCM dmix
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
....
20:23:51: Error: Unable to initialize GTK+, is DISPLAY set properly?
Quote:
rgleason@Dart:~$ dpkg -l libgtk[0-9]* | grep ^i
ii libgtk2.0-0:amd64 2.24.32-1ubuntu1 amd64 GTK+ graphical user interface library
ii libgtk2.0-bin 2.24.32-1ubuntu1 amd64 programs for the GTK+ graphical user interface library
ii libgtk2.0-common 2.24.32-1ubuntu1 all common files for the GTK+ graphical user interface library
So it does have libgtk2.0-0 , gtk 2.0 but that's not good enough for OpenCPN?
I started this thread to establish the steps necessary to complete this install such that I could run Opencpn in linux. It is useful to know that you "can" do things, but right now, for me, the question is "how"?

I have
1. Changed windows settings to enable WSL "Windows System Linux"
2. Installed from Windows Store the App "Ubuntu 18.004LTS"
3. Installed the PPA for Opencpn.

That is it. I don't want to make false moves and have to start over, although I could try that "black box, dumb monkey" approach.
rgleason is offline   Reply With Quote
Old 27-05-2019, 06:31   #26
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

While you're apt-getting....... why not install signalk for a play?

Rasp Pi worked for debian though couldn't get avahi working, the server still works though.

https://github.com/SignalK/signalk-s...nstallation.md
conachair is offline   Reply With Quote
Old 27-05-2019, 06:34   #27
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
O5 Linux in Ubuntu 18.04LTS for Windows10

Open the Ubuntu terminal. Then run:

sudo apt install xrdp xfce4 openssh-server
sudo service xrdp start
sudo service ssh start

You don’t actually need ssh but it can be handy especially if you run WinSCP on Windows.

Also, from the OpenCPN developer’s manual:

sudo apt-get install build-essential cmake gettext git-core gpsd gpsd-clients libgps-dev wx-common libwxgtk3.0-dev libglu1-mesa-dev libgtk2.0-dev wx3.0-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev libarchive-dev liblzma-dev libexif-dev libelf-dev libsqlite3-dev

Then:

git clone https://github.com/user/opencpn.git (use your github username in place of “user”.

cd opencpn
mkdir build
cd build
cmake ..
sudo make install

After that finishes start Remote Desktop Client in Windows. Connect to Computer:

localhost:3389

Use the same username and password you used for Ubuntu for Windows.

Do not use dpkg, tarballs or other packages of unknown provenance.
transmitterdan is offline   Reply With Quote
Old 28-05-2019, 06:31   #28
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,730
Images: 2
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

Thank you TDan for all the help. It was surprisingly easy, but would not have been, if it were not for your guidance. I'll make a page in the manual for this and hope others will advise and augment it.
Attached Thumbnails
Click image for larger version

Name:	xrdp.png
Views:	80
Size:	49.9 KB
ID:	192831   Click image for larger version

Name:	xrdp-file-manage-opencpn.jpg
Views:	97
Size:	412.0 KB
ID:	192832  

rgleason is offline   Reply With Quote
Old 28-05-2019, 06:48   #29
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,730
Images: 2
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

I found the Ubuntu files under

C:\Users\[User]\AppData\Local\Packages\CanonicalGroupLimited.Ubun tu18.04onWindows_...

and it occupies just 950mb!
rgleason is offline   Reply With Quote
Old 28-05-2019, 08:15   #30
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: O5 Linux in Ubuntu 18.04LTS for Windows10

Quote:
Originally Posted by rgleason View Post
I found the Ubuntu files under

C:\Users\[User]\AppData\Local\Packages\CanonicalGroupLimited.Ubun tu18.04onWindows_...

and it occupies just 950mb!
Rick,

The names and locations of these files move around. Don’t access the Linux files using Windows Explorer. You can do some harm to the Linux file system by writing a file to those Canonical folders.

The simplest way to access Linux file system from Windows is using a tool called WinSCP. It is sort of like Explorer as it can safely transfer files between Linux and Windows. But Windows Explorer does not fully understand the Linux file system.
transmitterdan is offline   Reply With Quote
Reply

Tags
linux, wind


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
OpenCPN Linux / Ubuntu Issues and Questions yachtmanforfun OpenCPN 65 24-01-2018 08:06
s63 plugin doens't work anymore in 16.04LTS Mbjh9acu OpenCPN 4 23-10-2016 09:27
How can I use a remote under Ubuntu Linux ? NahanniV OpenCPN 1 17-10-2016 12:42
How Can I Download Saved Tracks from Garmin GPS 72 on Ubuntu Linux? fgd3 OpenCPN 6 13-01-2015 16:34
OpenCPN GPS/AIS fix for Linux Mint 13 or Ubuntu 12.04 stephenippolito OpenCPN 3 20-10-2012 19:31

Advertise Here


All times are GMT -7. The time now is 22:00.


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.