SELF 2014: PBI v10: Application Management Made Easy
-
Upload
ken-moore -
Category
Technology
-
view
252 -
download
0
description
Transcript of SELF 2014: PBI v10: Application Management Made Easy
![Page 1: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/1.jpg)
PBI v10:Application Management
Made Easy
Ken Moore PC-BSD/iXsystems
SouthEast LinuxFestJune 20-22, 2014
![Page 2: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/2.jpg)
Definitions
● PBI: Push Button Installer
– This encompasses all the various subsystems required to use 3rd party applications on a PC-BSD system
Example Toolchain:
– Fetching/building the application from source
– Packaging that application for distribution– Downloading/installing package
![Page 3: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/3.jpg)
Source Build
Old PBI System● FreeBSD Ports● /usr/pbi/<app>
system base● Compilation
options set on individual application basis (including for all dependencies)
PBI Version 10● FreeBSD Ports● /usr/local system
base● Compilation
options set for individual applications on a system-wide basis
![Page 4: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/4.jpg)
App Packaging
Old PBI System● Single file for each
application (*.pbi)● Large file size● Fixed download
size● No internet
required
PBI Version 10● Single file for each
port/package● Small file sizes● Variable download
size● Requires internet
connection
![Page 5: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/5.jpg)
App Installation
Old PBI System● Single Method
– Specialized Containers
PBI Version 10● Multiple methods
– System Integrated
– FreeBSD Jails– Other
Containers?
![Page 6: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/6.jpg)
10.x Summary
Old PBI System
Various independent subsystems
PBI Version 10
Unified subsystem framework
FreeBSD OS FreeBSD OS
PBI System Jails
1 2 3 4
PBI w/pkgng
Jails Other?System
![Page 7: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/7.jpg)
AppCafe
● Graphical interface for end-user interaction with the PBI system
● Simple access to different installation methods or locations
● Easily use custom package repositories
![Page 8: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/8.jpg)
Management
● Easily see installed applications
● Filtering Options
– Apps Only– Orphan Packages– Base Packages– “Raw” Packages
● Bulk Actions
– Uninstall– Desktop Shortcuts– Version Locking
![Page 9: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/9.jpg)
Browsing
● At-a-glance:
– Name/summary– Rating– Recommended– Install status– Type of application
● Filter Options
– Graphical Apps– Text Apps– Server Apps– “Raw” Packages
![Page 10: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/10.jpg)
Searching
● Smart Search Algorithm
– Name Matches– Tag Matches– Description
Matches
![Page 11: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/11.jpg)
App Details
● Push Button Install● Detailed Information
– Version– User Rating– User Tips– Author– Download Size– License– Platform/Arch– Description– Screenshots– Plugins Available– Similar Applications– Build Options (static)
![Page 12: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/12.jpg)
App Access
● Launch Application● Contact Maintainer● Desktop Shortcuts● The “Size” is now
the actual size the package occupies on disk
![Page 13: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/13.jpg)
FreeBSD Jails
What is it?● Self-contained
system environment● Independant
root/users● Secure environment● Distinct IP/Hostname● Not a Linux chroot!
Features● Extremely low
overhead● Start/Stop● Invisible oversight
from main system
Tip: Think of a jail as a full virtual machine, but with such low overhead that hundreds can be used simultaneously
![Page 14: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/14.jpg)
Warden
● Jail Management● Import/Export● ZFS snapshot/restore● Multiple Jail Types
– Traditional (command line)
– Ports Jail (graphical access)
– Linux Jail (experimental)
![Page 15: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/15.jpg)
AppCafe Jails
● Jails must be running in order to be used
– The warden can start jails automatically● When installing an application into a jail,
it will sync the pkg configuration between the jail and the main system.
● Jails can be updated from the AppCafe using the existing pkg configuration in the jail.
![Page 16: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/16.jpg)
PBI Summary
● Improvements– Stability (no custom localbase)– Simplicity (distribution system and
management)– Standards (the underlying FreeBSD pkg system)
● New Features– Support for multiple installation methods– Ability to use/manage FreeBSD jails– Application plugin support– Version locking– More Application Info (ratings, tips, screenshots)
Remember: The *.pbi file format becomes obsolete with the new system!
![Page 17: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/17.jpg)
Get Involved!
● See an error with an application's info?● Want to fix or add an icon for an
application?
– Modules are on the PC-BSD GitHub repo
● Is the AppCafe missing a particular application?
– Add it to the FreeBSD ports tree!
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/
https://github.com/pcbsd/pcbsd/tree/master/pbi-modules
![Page 18: SELF 2014: PBI v10: Application Management Made Easy](https://reader033.fdocuments.net/reader033/viewer/2022060111/556415e3d8b42a080c8b55fe/html5/thumbnails/18.jpg)
Questions?