How To Install Legacy Apps on Unity 8 in Ubuntu 16.10
Ubuntu 16.10 come withan optionalUnity 8 preview session pre-installed, ready for you to play with.
It’s moreofa technical demo than a fully-fledged alternative to the standard Unity 7 desktop, but you may be curious to stress test it nonetheless.
Providing you have hardware that support it, usingUnity 8 on Ubuntu 16.10 isactually an okay experience. It’s missing pretty much everything you’d expect or want from a modern linux desktop ― not least of which are apps, bar a terminal and a web-browser ― but it’s perfectly functional.
You can install additional ‘Snap’ apps, like the photo gallery, from the command line like so: sudo snap install --edge --devmode gallery-app
But what about the classic apps that youalready know and love? Apps like GIMP, Firefox and Gedit. Well, you can run them in Unity 8 as-well courtesy of the ‘Xmir’ compatibility layer.How To install Xorg Apps on Unity 8
You can install and use legacy “xorg” apps in the Unity 8 Desktop Session on Ubuntu 16.10 ― you just have to jump through a few hoops first.
Why? Because Unity 8 and “Snappy” apps useCanonical’s custom-made and secure Mir display server to draw themselves on the screen. handle input, and so on. Older applications ― so-called legacy apps or xorg apps ― are built for theXorg display server.
The first thing you’ll need to do (either on your regular desktop or in the Terminal app that is pre-installedin the Unity 8 session) is to install Libertine .
Libertine is described as ‘a confined sandbox where you can install deb-packaged X11-based Ubuntu applications have have them run under Unity 8.’1. Install Libertine
You can installLibertine on Ubuntu 16.10 straight from themain ubuntu archives ― no PPA or code silos required. Just open a new Terminal window and run the following command:sudo apt install libertine libertine-scope libertine-tools
Once Libertine and the Libertine Scope are installed you can go ahead and open theApps Scope. ‘Pull to refresh’ it and you’ll see the ‘Libertine’ app icon (a top hat) appear.
2. Create a Libertine Container
Click on the Libertineapp icon to open the Libertine container app.
First time you run this you’llsee a blank white screen with a header. Click on the‘ + ‘ icon in the upper right-hand corner and this screen will appear…
It looks complicated but youcan totally ignore everything in front of you and click OK. Yup, you can leave all the fields blank.
Your new Libertine container will then be created. This takes a couple of minutes to complete as ithas to configure itself, install some packages and set the appropriate permissions.
If you’re running your Unity 8 preview session on device with limited storage then do beaware that each container you create can take up to 500MB, and every app you install in it will add bloat on top of this.
When the spinning circular icon disappears yourcontainer has been successfully created.
Your new container has the default name “Ubuntu ‘Yakkety Yak'”.3. Install Legacy Apps In Your Container
Click on the container titled “Ubuntu ‘Yakkety Yak’” .
Welcome to your container! Next step is to install some legacy apps !
Click on the ‘ + ‘ icon in the upper right-hand corner to openthe package install wizard.
You’ll be presented with three options:
Select the option named:‘Enter package name’.
Next, type the package nameof the app you want to install (e.g., Leafpad is ‘ leafpad ‘, Firefox is ‘ firefox ‘, VLC is ‘vlc’, etc), in the text field.
Click ‘OK’ when done.
You’ll once again see a spinny circle as the applicationpackages are downloaded and installed within the container.
When done open the Apps Scope and pull-to-refresh. Finally, click on the icon of the app you install…
To install another legacyapp, open theLibertine app, click onyourcontainer, and repeat the steps insection 3.
To remove an application, open the Libertine container manager, enter the container which housesthe app you want to remove.
Find the app in the list and right-click on it to reveal the context menu. Select ‘ Delete ‘ ― there’s no double-check/are you sure/cancel after you select it, so make sure you’ve selected the correct app!
本文系统（linux）相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统
本文标题：How To Install Legacy Apps on Unity 8 in Ubuntu 16.10