Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 24-06-2019, 16:06   #16
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,528
Images: 2
Re: WSL - Ubuntu - Install Travis CLI

Quote:
Norton360 Settings > Firewall > Program Control > Ruby
C:\Users\Rick\AppData\Local\Packages\CannonicalGro upLimited.Ubuntu1804onWindows-xxxx/Localstate/rootfs/home/rgleason/.rvm/rubies/ruby-2.6.3/bin/ruby


Norton360 Settings > Firewall > Program Control > Ruby2
C:\Users\Rick\AppData\Local\Packages\CannonicalGro upLimited.Ubuntu1804onWindows-xxxx/Localstate/rootfs/usr/bin/ruby2.5


Norton 360 > Settings > Firewall > Program Control > Add
C:\Windows\System32\wsl.exe Microsoft Windows Subsystem for Linux Launcher
These are the entries I found and made....


I've had these entries since almost the beginning!
Attached Thumbnails
Click image for larger version

Name:	Norton360.jpg
Views:	86
Size:	87.7 KB
ID:	194614   Click image for larger version

Name:	Noorton360-detail..jpg
Views:	45
Size:	60.2 KB
ID:	194615  

rgleason is offline   Reply With Quote
Old 24-06-2019, 16:34   #17
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,528
Images: 2
Re: WSL - Ubuntu - Install Travis CLI

Is this the same problem as GEM is having?

Quote:
rgleason@Dart:~$ snap install midori
error: cannot communicate with server: Post RIBnet Forums - Powered by vBulletin dial unix /run/snapd.socket: connect: no such file or directory
rgleason@Dart:~$
Reboot does not help.

It is "http://localhost/v2/snaps/midori:"

I don't have access to a webserver program maybe?, I am guessing. Maybe that did not get installed?
Something that processes http and https


Is my linux crippled somehow by not having this?


https://bugs.launchpad.net/ubuntu/+s...d/+bug/1821956


https://askubuntu.com/questions/1077...ndows-10-error


snaps use snapd which requires systemd which is not available under WSL.
https://forum.snapcraft.io/t/windows...-for-linux/216
rgleason is offline   Reply With Quote
Old 24-06-2019, 17:06   #18
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,528
Images: 2
Re: WSL - Ubuntu - Install Travis CLI

More about the problem.



Quote:
rgleason@Dart:~$ service snapd start
snapd: unrecognized service
rgleason@Dart:~$ systemctl status snapd
System has not been booted with systemd as init system (PID 1). Can't operate.
rgleason@Dart:~$
Quote:
rgleason@Dart:~$ snap version
snap 2.34.2+18.04
snapd unavailable
series -
rgleason@Dart:~$
Quote:
rgleason@Dart:~$ sudo snap install hello-world
[sudo] password for rgleason:
error: cannot communicate with server: Post http://localhost/v2/snaps/hello-world: dial unix /run/snapd.socket: connect: no such file or directory
rgleason@Dart:~$
Quote:

rgleason@Dart:~$ sudo apt-get install snapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
zenity | kdialog
The following packages will be upgraded:
snapd
1 upgraded, 0 newly installed, 0 to remove and 239 not upgraded.
Need to get 13.4 MB of archives.
After this operation, 7705 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 snapd amd64 2.38+18.04 [13.4 MB]
Fetched 13.4 MB in 24s (556 kB/s)
(Reading database ... 93232 files and directories currently installed.)
Preparing to unpack .../snapd_2.38+18.04_amd64.deb ...
Unpacking snapd (2.38+18.04) over (2.34.2+18.04) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Setting up snapd (2.38+18.04) ...
Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ...
md5sum: /etc/apparmor.d/usr.lib.snapd.snap-confine: No such file or directory
Processing triggers for man-db (2.8.3-2) ...
rgleason@Dart:~$ sudo snap install midori
Interacting with snapd is not yet supported on Windows Subsystem for Linux.
This command has been left available for documentation purposes only.
rgleason@Dart:~$
Phew! Stinko


Upgrade Ubuntu 18.04? and about the system


https://dev.to/david_j_eddy/how-to-u...4-to-18-10-203
rgleason is offline   Reply With Quote
Old 24-06-2019, 18:18   #19
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,528
Images: 2
Re: WSL - Ubuntu - Install Travis CLI

This started as an idea of a simpler way to use Travis encryption of github tokens. It is not simple and it is using almost 300-400mb.


I think I am going to stop this. Perhaps if I upgrade my Linux Opencpn operation to WSL2 install or Vbox, I will also install Travis CLI. I've looked at a windows install and it looks a bit iffy too, needs Ruby (exe is 10mb but will expand) then gems.


Somewhat disappointing because I wanted to package Sean's plugins for OSX more easily.
rgleason is offline   Reply With Quote
Old 24-06-2019, 20:20   #20
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,528
Images: 2
Re: WSL - Ubuntu - Install Travis CLI

Can't give up so easily. If using snap install midori
does not work, what about using ppa install?


Need to make sure the ppa system is installed first..

https://www.howtogeek.com/261449/how...tu-bash-shell/

https://askubuntu.com/questions/6765...untu-using-ppa

Quote:
sudo apt-add-repository ppa:midori/ppa

sudo apt-get update

sudo apt-get install midori

Or build it https://wiki.xfce.org/midori/contribute



Then I just have to get GEM going.
rgleason is offline   Reply With Quote
Old 25-06-2019, 00:37   #21
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: WSL - Ubuntu - Install Travis CLI

Rick, as you wish. My motivation is to get you up and running with Travis deployment of which this is one step.

You guys love this WSL thing and want to do all possible things with it. Plus you have Norton. It is not easy.

You don't have to give up with Travis CLI, just set up your priorities. If making an encrypted GitHub API key is your priority, you would install a VirtualBox, and on that a minimal Linux with no bells and whistles. Two hours of work.

But if you like, I can walk with you through the WSL nightmare.

Your call.
Canne is offline   Reply With Quote
Old 25-06-2019, 05:14   #22
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: WSL - Ubuntu - Install Travis CLI

https://itsfoss.com/install-linux-in-virtualbox/



Some shameless propaganda, in case you are hesitating.
Canne is offline   Reply With Quote
Old 25-06-2019, 06:52   #23
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,528
Images: 2
Re: WSL - Ubuntu - Install Travis CLI

Well, this is not so easy a decision, believe it or not.

1. Using WSL Ubuntu with OpenCPN is multi step to get running, but it acts like a Windows program insofar as minimize and maximize and I can interrupt and do other things.

2. I do not like the fact that WSL is not a 'complete' linux solution. It is really a pita as I don't even know linux yet!

3. Virtual Box is fine,
  • VirtualBox interoperability is in some respects better than WSL with xRDP & xFCE, but neither is ideal.
  • Sometime ago I had a linux virtualbox.
  • I recently had virtualbox running Windows10 set up to compile for Ov50 that was so slow and big it dogged down my computer. I hated it.
  • I was going to put Linux on it too, but abandoned that and scrubbed it all and got back my disk space.
  • Scrubbed Vbox after using appveyor to compile/build for both ov42 and ov50 on different branches.
  • I love CI, it rocks & I want to get Travis working better.
  • Jon Gough is doing git push tags, to push from travis/appveyor to github Release for ocpn_draw now.
Decision:
1. Leave or hopefully remove the ruby, gems & travis stuff on WSL for Opencp to gain back the 300mb.
2. Install Virtualbox again with my account.
3. Install Linux on the Virtualbox. (Which version?) (How much space?)
4. Install Travis CLI
5. Maybe move Opencpn back to Linux Vitualbox.

So in summary, yes! Travis Deployment using virtualbox.
Can we install a Linux version that will also run Opencpn someday? (How much space do you think?) Right now I have 190gb free but I want at least 80gb free.

I can probably do most of this but your guidance re some critical decisions, would be really appreciated. I think I've learned more about WSL now, It will definitely run Opencpn in Linux and it is very useful. I just can't use the linux part for doing other useful things. I am very grateful to TransmitterDan for guiding me through that process and I am going to keep it for awhile.

- Maybe someday Microsoft WSL2 will be better, but I don't have time to waste on that now.
rgleason is offline   Reply With Quote
Old 25-06-2019, 08:11   #24
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: WSL - Ubuntu - Install Travis CLI

Quote:
Originally Posted by rgleason View Post
1. Leave or hopefully remove the ruby, gems & travis stuff on WSL for Opencp to gain back the 300mb.
sudo apt-get remove --purge <package name> will do that.
Quote:
Originally Posted by rgleason View Post
2. Install Virtualbox again with my account.
https://www.virtualbox.org appears to have new version 6.0 - never tried that but will try in case you run in difficulties, promised!
Quote:
Originally Posted by rgleason View Post
3. Install Linux on the Virtualbox. (Which version?) (How much space?)
I would recommend Ubuntu 18.04.2 LTS (Bionic Beaver) for stability and latest patches. It says it requires 25 GB but you need to add some contingency for the future possible extensions (like installing OpenCPN...), use "Dynamic disk allocation" and say that the upper limit is between 35 - 50 GB whatever you think you can afford in the future. With Dynamic allocation, however it will use only what the Ubuntu instance actually needs.
Quote:
Originally Posted by rgleason View Post
4. Install Travis CLI
Now, at least theoretically the recording of my actions on WSL 18.04LTS should give you the same results: http://www.cruisersforum.com/forums/...ml#post2915207
Maybe you want to disable Norton firewall while doing this. If you don't, please remember that now it is the VirtualBox virtual manager who is presenting all your actions to the firewall. Unlike with WSL, there is no mangled namespaces and Norton will not know the name of the ruby program. I would recommend to leave the firewall disabled first, though.
Quote:
Originally Posted by rgleason View Post
5. Maybe move Opencpn back to Linux Vitualbox.
Don't jump on it, but it should be as easy as sudo apt-get install opencpn ! Later on, when Travis has created you the *.deb packages for your plugins, you can test them with sudo dpkg -i <plugin>.deb and then apt-get install -f to update the package database.

Quote:
Originally Posted by rgleason View Post
So in summary, yes! Travis Deployment using virtualbox.
For now, you use only travis CLI to generate the encoded GitHub API key. Remember, this is the primary objective.

It is true that travis can do much more on your machine and you may find more ways to automate your work,but let's concentrate to .travis.yml to do the deployment on GitHub. For that, you only need the encrypted key for now.

Quote:
Originally Posted by rgleason View Post
Can we install a Linux version that will also run Opencpn someday?
Yes, that's why I propose Ubuntu 18.04LTS.

Quote:
Originally Posted by rgleason View Post
(How much space do you think?) Right now I have 190gb free but I want at least 80gb free.
See above, you have more than enough disk space, Ubuntu will not eat it all.

Quote:
Originally Posted by rgleason View Post
I can probably do most of this but your guidance re some critical decisions, would be really appreciated.
I will walk you through the travis business. If and when you get autonomous in generating three distros, Windows, Linux and Mac for the key plugins, that's going to be a big asset to the entire community and for the early adopters. That's why I am committed to this (and you can help maybe Ron, too...).

Quote:
Originally Posted by rgleason View Post
I think I've learned more about WSL now, It will definitely run Opencpn in Linux and it is very useful.
WSL is surprisingly useful for its small size and I will perhaps use it instead of cmake GUI bash for git(1), find(1) etc. when I work on Windows and need bash shell.
Quote:
Originally Posted by rgleason View Post
- Maybe someday Microsoft WSL2 will be better, but I don't have time to waste on that now.
Not so far away, the WSL2 - maybe this summer already! Anyway, it would require a fresh installation, I guess, since it will introduce a Linux kernel in Windows(!). That would improve its usability a lot. Also it would be more useful for testing since it supports docker containers. But it is not here yet and we have to progress, meanwhile.

Let me know how you are doing. Take your time, read the instructions again https://itsfoss.com/install-linux-in-virtualbox/ - don't install any extra software, just get to the command line, install ruby (probably already there) -> gem -> travis and let's hope this time less worries (with Norton disabled, that is).
Canne is offline   Reply With Quote
Old 25-06-2019, 11:18   #25
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,528
Images: 2
Re: WSL - Ubuntu - Install Travis CLI

Don't know where I got 300mb, but this removed 65+14
Did not remove NTS and I had 2 versions of Ruby 2.5 and 2.6, it took out 2.5.



Quote:
rgleason@Dart:~$ sudo apt-get remove --purge snapd
[sudo] password for rgleason:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
snapd*
0 upgraded, 0 newly installed, 1 to remove and 239 not upgraded.
After this operation, 65.5 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 93241 files and directories currently installed.)
Removing snapd (2.38+18.04) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for man-db (2.8.3-2) ...
(Reading database ... 93173 files and directories currently installed.)
Purging configuration files for snapd (2.38+18.04) ...
Final directory cleanup
Discarding preserved snap namespaces
Removing extra snap-confine apparmor rules
Removing snapd cache
Removing snapd state
E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true: Success
rgleason@Dart:~$ sudo apt-get remove --purge bundler
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'bundler' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 239 not upgraded.
rgleason@Dart:~$ sudo apt-get remove --purge ruby
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
fonts-lato ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert
rubygems-integration
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libruby2.5* rake* ruby* ruby-test-unit* ruby2.5*
0 upgraded, 0 newly installed, 5 to remove and 239 not upgraded.
After this operation, 14.8 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 93169 files and directories currently installed.)
Removing ruby (1:2.5.1) ...
Removing ruby2.5 (2.5.1-1ubuntu1.4) ...
Removing libruby2.5:amd64 (2.5.1-1ubuntu1.4) ...
Removing rake (12.3.1-1) ...
Removing ruby-test-unit (3.2.5-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2) ...
rgleason@Dart:~$
rgleason is offline   Reply With Quote
Old 25-06-2019, 11:22   #26
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,528
Images: 2
Re: WSL - Ubuntu - Install Travis CLI

Looks like it is 5.2 due to O being 32bit. When will O become 64 bit I wonder?

VirtualBox 5.2 packages, see VirtualBox 5.2 builds. Please also use version 5.2 if you still need support for 32-bit hosts, as this has been discontinued in 6.0. Version 5.2 will remain supported until July 2020.
rgleason is offline   Reply With Quote
Old 25-06-2019, 12:36   #27
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: WSL - Ubuntu - Install Travis CLI

Quote:
Originally Posted by rgleason View Post
Looks like it is 5.2 due to O being 32bit.
No, Rick, you are mixing again things: it is for the host system. You do not have Windows XP, your "host system" is 64-bit Windows 10, reassure me!? Your "guest system" will be Ubuntu. Only in very very old hardware case it may happen that Intel CPU does not support virtualization of 64-bits guests. But if you have like /i5 or /i7 there this will not happen.

Quote:
Originally Posted by rgleason View Post
When will O become 64 bit I wonder?
Why you are asking me? You should know... If I look the PPA repository for Ubuntu

https://launchpad.net/~opencpn/+arch..._filter=bionic

and we open package "opencpn" to observe the following:

Click image for larger version

Name:	2019-06-25_ppa_opencpn.JPG
Views:	69
Size:	75.7 KB
ID:	194663

You are worrying for nothing. Go for it! Target is Travis CLI. Keep your eyes on the road!
Canne is offline   Reply With Quote
Old 25-06-2019, 13:01   #28
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: WSL - Ubuntu - Install Travis CLI

Quote:
Originally Posted by rgleason View Post
Did not remove NTS and I had 2 versions of Ruby 2.5 and 2.6, it took out 2.5.
That's interesting, in my installation (working with Travis CLI) I have but Ruby 2.5 (see below). Never mind, no way back:

NTP is such a small thing that forget it.

One big consumer is the RVM Ruby Version Manager. If you still have gem, say:
Code:
gem uninstall rvm
If you do not have gem anymore, don't worry, most of the RVM stuff is in your home directory, we will clean it below.

For the rest of the ruby, do it the hard way if you are interested in deep clean:

Code:
$ apt list --installed | grep ruby

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libruby2.5/bionic-updates,now 2.5.1-1ubuntu1.4 amd64 [installed,automatic]
ruby/bionic,now 1:2.5.1 amd64 [installed]
ruby-did-you-mean/bionic,now 1.2.0-2 all [installed,automatic]
ruby-minitest/bionic,now 5.10.3-1 all [installed,automatic]
ruby-net-telnet/bionic,now 0.1.1-2 all [installed,automatic]
ruby-power-assert/bionic,now 0.3.0-1 all [installed,automatic]
ruby-test-unit/bionic,now 3.2.5-1 all [installed,automatic]
ruby2.5/bionic-updates,now 2.5.1-1ubuntu1.4 amd64 [installed,automatic]
rubygems-integration/bionic,now 1.11 all [installed,automatic]
(note the warning, yet another sign that WSL1 comes with numerous limitations).

Now, with the above in your case (the list will be different) you would start to uninstall ruby2.6 as you have already learned. Then submit the above list command again and check what remains, if anything. Remove any pending packages one by one.

You probably have, in your home directory a folder for RVM Ruby Version Manager. Check this (~, btw is your home directory, it helps to know):

Code:
ls -al ~ | grep rvm
If there is something, check its size, mine is
Code:
$ du -sh ~/.rvm
91M     /home/petri/.rvm
To remove that (careful what you type,y!)

Code:
cd
rm -rf .rvm
Keep your eyes on the road, Rick, destination is Travis CLI!
Canne is offline   Reply With Quote
Old 25-06-2019, 14:34   #29
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,528
Images: 2
Re: WSL - Ubuntu - Install Travis CLI

Ok, I can upgrade vbox to the latest. OpenCPN for Linux is 64bit anyway and beside as you say there is virtuallization. Thanks for straightening that question out.


So I will download Vbox 6.0.8 or most current. Then I think I will download Ubuntu again .
rgleason is offline   Reply With Quote
Old 25-06-2019, 15:00   #30
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: WSL - Ubuntu - Install Travis CLI

Quote:
Originally Posted by rgleason View Post
...OpenCPN for Linux is 64bit anyway and beside as you say there is virtuallization. Thanks for straightening that question out.
Ok, but I think you still need to get on the map: Your Win 10 is 64-bit, so is your CPU. Hence Vbox needs to be 64-bit. It can host any guest operating system, 32-bit or 64-bit. Vbox does not know _anything_ about the OpenCPN, the guest operating system does.
Quote:
Originally Posted by rgleason View Post
So I will download Vbox 6.0.8 or most current.
Good (disaster avoided! ).
Quote:
Originally Posted by rgleason View Post
Then I think I will download Ubuntu again .
No need if you downloaded amd64 iso from the link I referred to: consider the ISO image as an installation DVD. No need to get a new DVD.

Move slowly and do not start making trial and error problem resolving, please, but ask me if you get stuck. Be patient.
Canne is offline   Reply With Quote
Reply

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
Unable to install opencpn in Ubuntu 14 bhcva OpenCPN 3 03-06-2014 13:35
Logbook connie - How to Install on Ubuntu? Jd1 OpenCPN 3 24-03-2013 08:47
OCPN 3.2.0 install on Ubuntu 12.04 - dependencies RobbieW OpenCPN 6 17-03-2013 06:43
How to Install OpenCPN on Ubuntu claire OpenCPN 3 01-11-2012 00:26

Advertise Here


All times are GMT -7. The time now is 12: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.