Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
docs/get-started.md: Stop discussing snappy-tools. #454
Conversation
dholbach
reviewed
Apr 15, 2016
| -installed via `sudo snappy install snapname.snap`. | ||
| +This is called "sideloading" and it can be done by copying the snap onto the | ||
| +Snappy system via `scp` and installing it with | ||
| +`sudo snappy install snapname.snap`. | ||
dholbach
reviewed
Apr 15, 2016
| -write new software for a snappy-based system easily. | ||
| +Ubuntu is an excellent OS for developers. The Snappy developer tools are | ||
| +readily available in Ubuntu, so porting and writing new software to target a | ||
| +Snappy-based system is particularly easy. | ||
dholbach
reviewed
Apr 15, 2016
| -You can transfer your newly-minted .snap to your Ubuntu Core machine and install | ||
| -it at the same time via `snappy-remote`, for example: | ||
| +Transfer your newly-minted .snap to your Ubuntu Core machine with `scp`, | ||
| +then install it: | ||
dholbach
Apr 15, 2016
Contributor
Wouldn't sideloading on a local machine with snapd installed be much easier?
dholbach
Apr 15, 2016
Contributor
sudo apt install snapd; sudo snap install ubuntu-core; sudo snap install <local-file.snap>
kyrofa
Apr 15, 2016
Member
Ah, that sounds very desktop-specific. I guess we need to come up with documentation that works for both now, eh?
kyrofa
Apr 15, 2016
Member
Or should we? Should we just assume people are running snaps on the desktop now?
dholbach
Apr 18, 2016
Contributor
Hohum... why desktop specific? This would work on a server or vm as well.
dholbach
reviewed
Apr 15, 2016
| - $ snappy-remote --url=ssh://<host>:<port> install \ | ||
| - ros-example_1.0_amd64.snap | ||
| + $ sudo snappy install ros-example_1.0_amd64.snap | ||
dholbach
reviewed
Apr 15, 2016
| -binary you requested, called `ros-example.launch-project`. Test it | ||
| -out: | ||
| +While on the Ubuntu Core machine, take a look in `/snaps/bin/`, and you'll see | ||
| +the binary you requested, called `ros-example.launch-project`. Test it out: | ||
kyrofa
Apr 15, 2016
Member
Not on snappy edge... but then again, they've been working on the desktop recently and haven't updated edge in a while, so I don't know. The snappy command still works there as well, so I'll hold off on this until edge is updated enough for me to know what's valid and what's not.
dholbach
reviewed
Apr 15, 2016
| - snappy-remote --url ssh://192.168.10.10 install downloader_1.0_amd64.snap | ||
| + $ scp downloader_1.0_amd64.snap ubuntu@192.168.10.10: | ||
dholbach
reviewed
Apr 15, 2016
| -After installing a summary of installed snaps will be presented, on vanilla | ||
| + $ sudo snappy install downloader_1.0_amd64.snap --allow-unauthenticated | ||
| + |
caldav
reviewed
Apr 15, 2016
| -installed via `sudo snappy install snapname.snap`. | ||
| +This is called "sideloading" and it can be done by copying the snap onto the | ||
| +Snappy system via `scp` and installing it with | ||
| +`sudo snappy install snapname.snap`. | ||
| Note that you have to use the `--allow-unauthenticated` tag for installing |
caldav
reviewed
Apr 15, 2016
| -installed via `sudo snappy install snapname.snap`. | ||
| +This is called "sideloading" and it can be done by copying the snap onto the | ||
| +Snappy system via `scp` and installing it with | ||
| +`sudo snappy install snapname.snap`. | ||
| Note that you have to use the `--allow-unauthenticated` tag for installing | ||
| unsigned snaps: `sudo snappy install --allow-unauthenticated snapname.snap`. |
kyrofa
added some commits
Apr 14, 2016
sergiusens
reviewed
Apr 29, 2016
| @@ -11,7 +11,7 @@ following command: | ||
| ``` | ||
| $ sudo -s | ||
| # ulimit -c unlimited | ||
| -# echo "/home/ubuntu/apps/hello-world.canonical/1.0.18/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern | ||
| +# echo "/home/ubuntu/snap/hello-world.canonical/1.0.18/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern |
sergiusens
Apr 29, 2016
•
Collaborator
oh, ic, sudo tee as well in the pipe and echo as a normal user ;-)
ulimit -c unlimited can be done as a user iirc.
elopio
Apr 29, 2016
Member
I think the path is not 1.0.18, but a sequential identifier.
IMO, we are missing a snapcraft command that gives us the path to a snap data dir. Roight now, I'm not sure how to fix this particular case.
kyrofa
Apr 29, 2016
Member
I think the path is not 1.0.18, but a sequential identifier.
Indeed-- I guess I can just <revision> here.
sergiusens
reviewed
Apr 29, 2016
| @@ -33,7 +33,7 @@ You can customize the core dump pattern with the following options | ||
| There is a debug snap that can be installed with: | ||
| - $ sudo snappy install snappy-debug | ||
| + $ sudo snap install snappy-debug |
sergiusens
Apr 29, 2016
Collaborator
So basically just leave the two last paragraphs in this section
This document will explain...
and
The reason...
kyrofa
Apr 29, 2016
Member
But it'll be back eventually, right? We'll have to add all this back in at that point.
elopio
Apr 29, 2016
Member
I'll just leave the note here that this is not yet working:
https://bugs.launchpad.net/snappy/+bug/1543118
I don't think it's necessary to remove it from the docs, at least not yet because I hope we'll get it back soon.
sergiusens
Apr 29, 2016
Collaborator
Yeah, but it may not be in the form of a snap; so this should ideally be removed, it is a VCS after all and we can recover it ;-)
sergiusens
reviewed
Apr 29, 2016
| -Alternatively the snap can be copied via scp into the Snappy system and | ||
| -installed via `sudo snappy install snapname.snap`. | ||
| +In order to test a new snap on a Snap-based system you need to install it first. | ||
| +This is called "sideloading" and it can be done with: |
sergiusens
Apr 29, 2016
Collaborator
Installing a snap is not called sideloading, installing a snap from a local storage/store is ;-)
sergiusens
reviewed
Apr 29, 2016
| @@ -165,8 +154,8 @@ on disk will be called `pastebinit.pastebinit`. | ||
| ### Find a binary in the file system hierarchy | ||
| -All binary names can be found in `/snaps/bin/`. The snappy tool will generate | ||
| -small wrapper script that ensures that the binary in the snap is called with | ||
| +All binary names can be found in `/snaps/bin/`. The `snap` tool will generate |
sergiusens
reviewed
Apr 29, 2016
| -All binary names can be found in `/snaps/bin/`. The snappy tool will generate | ||
| -small wrapper script that ensures that the binary in the snap is called with | ||
| +All binary names can be found in `/snaps/bin/`. The `snap` tool will generate | ||
| +a small wrapper script that ensures that the binary in the snap is called with |
sergiusens
reviewed
Apr 29, 2016
| +command can be used to see if the service starts and runs as expected, for | ||
| +example: | ||
| + | ||
| + systemctl status snap.<name>.<service> |
elopio
reviewed
Apr 29, 2016
| -service status". To inspect the logs run "snappy service logs". Both commands | ||
| -can take a snap name to limit to a specific snap (e.g. for the service | ||
| -in `shout.sergiusens` run: `sudo snappy service logs shout`). | ||
| - |
elopio
Apr 29, 2016
Member
Following @sergiusens request, I reported the bug here: https://bugs.launchpad.net/snapcraft/+bug/1576775
I'm going to link this PR so we can easily revert this change later.
elopio
reviewed
Apr 29, 2016
| -`snappy service status` command can be used to see if the service starts and | ||
| -runs as expected. The `snappy service logs` command is available to inspect | ||
| -the messages that the service send to `stdout`/`stderr`. | ||
| +To test a service it must be installed first. See the section "Testing a binary" |
kyrofa
Apr 29, 2016
Member
I'd rather not-- it stretches markdown and I'm worried the automatic import will barf on it.
elopio
reviewed
Apr 29, 2016
| -runs as expected. The `snappy service logs` command is available to inspect | ||
| -the messages that the service send to `stdout`/`stderr`. | ||
| +To test a service it must be installed first. See the section "Testing a binary" | ||
| +for the various ways to do that. Once it is installed systemd's `systemctl` |
elopio
reviewed
Apr 29, 2016
| - so the `setuid`/`setgid` and `chown` family of syscalls are blocked (since | ||
| - there is no appropriate user to change to. Optionally assigning | ||
| - users/groups to snaps is a planned feature). For example, | ||
| + 16 does not provide a mechanism of assigning users and groups to snaps, so the |
elopio
Apr 29, 2016
Member
I think it should be: a mechanism FOR assigning. But I might be wrong, it's your language, not mine :)
elopio
reviewed
Apr 29, 2016
| -and install the new one. Eg, after adding the `network-service` cap: | ||
| +`network-bind` in our 'plugs' in the yaml. At this point, you could simply | ||
| +add it to the `plugs` for that service, rebuild the snap, remove the old snap | ||
| +and install the new one. Eg, after adding the `network-bind` interface: |
sergiusens
Apr 29, 2016
Collaborator
e.g.; or e.g.,
http://english.stackexchange.com/questions/16172/should-i-always-use-a-comma-after-e-g-or-i-e
elopio
reviewed
Apr 29, 2016
| -working (and if working on custom policy, copying this back to your packaging | ||
| -files). | ||
| +For simple things like forgetting an interface, rebuilding and reinstalling the | ||
| +snap is enough. Other times you might be developing custom policy for a |
|
I'm leaving my +1 here. I just made some minor comments, most of them ignorable and some might be wrong because English is hard. |
kyrofa
added some commits
Apr 29, 2016
|
I insist on my |
kyrofa commentedApr 14, 2016
•
Edited 1 time
-
kyrofa
Apr 29, 2016
Remove any mention of snappy-remote, snappy-tools, snappy-debug, and other old Snappy things. This fixes LP: #1568113.