[TUTORIAL] [LXC-Template] Ubuntu-Business-Desktop converted to LXC!

fireon

Distinguished Member
Oct 25, 2010
4,491
469
153
Austria/Graz
deepdoc.at
Hello,

since a long time ago i build the Ubuntu-Business-Destop (OpenVZ). So this time i converted the project to LXC.
https://sourceforge.net/projects/ubuntu-business-desktop-lxc/
It is the first version that i build with Ubuntu Mate 16.04.
And the Wiki: https://sourceforge.net/p/ubuntu-business-desktop-lxc/wiki/Home/


Features:
  • LXC Mate for Business
  • Autoupdate and Reboot for the System (unattended-upgrades)
  • Adminstration on https://hostname:10000
  • Compatible with Proxmox
  • x2go Terminalserver
  • Active DHCP-Client
  • IPV6 active
  • Autoconnection to apt-cacher
  • Business userprofiles
  • Samba Integration
  • Avahi/Zeroconf/Bonjour/mdns
  • Nano Syntax Highlighting
  • ZSH Defaultshell
So feel free to test it :)
 
  • Like
Reactions: albans and neonmaus
This is very cool, I'm testing it right now and I think it is very useful.
Do you use scripts to automatically create the image or create it manually by hand?
 
This is very cool, I'm testing it right now and I think it is very useful.
Do you use scripts to automatically create the image or create it manually by hand?
So scripts. Delete all tempfiles, logs and other not needed things. Then generate package with tar.
 
  • Like
Reactions: neonmaus
So scripts. Delete all tempfiles, logs and other not needed things. Then generate package with tar.

I mean create the installation fully automatic like with DAB or do you install the system and software by hand in the Ubuntu base image?
 
I mean create the installation fully automatic like with DAB or do you install the system and software by hand in the Ubuntu base image?
Use baseimage, then install software per hand.
 
  • Like
Reactions: neonmaus
Hi fireon,

Thanks for this - pretty useful and have just tried it - works pretty well.

Nevertheless, 2 issues I have so far:

---------------------------------

1) Apt-get
Whenever I want to run apt-get update, I keep getting "Could not resolve 'apt-cacher.osit.cc'". Even if the connection to other servers work...

2) Soundcards
I have created the /dev/snd structure reflecting the host one, and added all the lxc.cgroup.devices.allow directives in the lxc conf file for the CT.

lxc config file for that CT:
Code:
lxc.cgroup.devices.allow: c 116:11 rwm
lxc.cgroup.devices.allow: c 116:10 rwm
lxc.cgroup.devices.allow: c 116:9 rwm
lxc.cgroup.devices.allow: c 116:8 rwm
lxc.cgroup.devices.allow: c 116:7 rwm
lxc.cgroup.devices.allow: c 116:6 rwm
lxc.cgroup.devices.allow: c 116:5 rwm
lxc.cgroup.devices.allow: c 116:4 rwm
lxc.cgroup.devices.allow: c 116:3 rwm
lxc.cgroup.devices.allow: c 116:2 rwm
lxc.cgroup.devices.allow: c 116:1 rwm
lxc.cgroup.devices.allow: c 116:33 rwm

@reboot script devices.sh executed in the guest:
Code:
#/bin/bash
cd /dev
mkdir -p snd
mknod -m 666 snd/controlC0 c 116 5
mknod -m 666 snd/controlC1 c 116 2
mknod -m 666 snd/hwC0D0 c 116 10
mknod -m 666 snd/hwC0D2 c 116 11
mknod -m 666 snd/pcmC0D0c c 116 7
mknod -m 666 snd/pcmC0D0p c 116 6
mknod -m 666 snd/pcmC0D1p c 116 8
mknod -m 666 snd/pcmC0D3p c 116 9
mknod -m 666 snd/pcmC1D0c c 116 4
mknod -m 666 snd/pcmC1D0p c 116 3
mknod -m 666 snd/timer c 116 33
mknod -m 666 snd/seq c 116 1

Good news: all good when I log in as root, but no soundcard is available when I log as another user.
Even if the other user has the following groups: audio, pulse, pulse-access.

---------------------------------

Any idea on what I shall look at to get it working for other users than root?

Thanks for your help.

Regards,

Alban
 
  • Like
Reactions: guletz and albans
what is the user to connect?

got it: UBD

struggling now with unprivileged container mode...removing postfix test how it works.
 
Last edited:
Thanks..but only for the first start...removing postfix and backup and restore as unprivileged...afterwards...so it is running fine now unprivileged and secure
Nice to know :) Will add this to the SF Wiki page.
 
Project updated to Ubuntu 20.04 (LXQT) and new applications. Try it :) Changelog:
  • Integration of Squid DEB Proxy
  • OnlyOfficeSuite
  • New ZSH-Shell
  • TinyOTP
  • OpenFortiGUI (VPN Client)
  • Master PDF Editor
  • Strawberry Musicplayer
  • and a lot of other new apps
  • Update of the Wiki on SF
  • ...
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!