all ubuntu repo
Configure apt sources.list with all sections from an Ubuntu mirror (see https://launchpad.net/ubuntu/+archivemirrors)
Variables:
- mirror: URL of the mirror (eg "http://archive.ubuntu.com/ubuntu/")
Instructions:
m_rel = http.get.var <mirror>/dists/<oscodename>/Release
m_cn = regexp.submatch "Codename: (.*)" <m_rel>
if "<m_cn> = <oscodename>"
file.content /etc/apt/sources.list "# Sources from Quickonf
deb <mirror> <oscodename> main restricted universe multiverse
deb <mirror> <oscodename>-updates main restricted universe multiverse
deb <mirror> <oscodename>-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ <oscodename>-security main restricted universe multiverse
"
apt.upgrade
apt sources.list
Change the sources list file for APT from a file
Variables:
- src: Path of the file to use as sources.list
Instructions:
aptsrc = file.read <src>
expand aptsrc
file.content /etc/apt/sources.list <aptsrc>
apt.upgrade
copy
Copy the content of a file to another file owned by root
Variables:
- dst: Destination file
- src: Source file
Instructions:
content = file.read <src>
file.content <dst> <content>
less journalctl logs
Limit journalctl logs to 100 MB
No variables
Instructions:
file.content /etc/systemd/journald.conf "# Configured by Quickonf
[Journal]
SystemMaxUse=100M
SystemMaxFileSize=10M
"
no apport
Disable Apport alerts
No variables
Instructions:
file.content /etc/default/apport "# Disabled by Quickonf
enabled=0
"
no automatic apt updates
Disable periodic apt update, upgrade, autoclean
No variables
Instructions:
file.content /etc/apt/apt.conf.d/10periodic "# Placed by Quickonf
APT::Periodic::Update-Package-Lists 0;
APT::Periodic::Download-Upgradeable-Packages 0;
APT::Periodic::AutocleanInterval 0;
"
ubuntu more restricted
Install Ubuntu "Restricted" packages, and more: gstreamer-plugins-bad
No variables
Instructions:
debconf.set ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula true
debconf.set libdvd-pkg libdvd-pkg/first-install .
debconf.set libdvd-pkg libdvd-pkg/post-invoke_hook-install true
apt.install gstreamer1.0-plugins-bad
apt.install ubuntu-restricted-extras
apt.install libdvd-pkg
dpkg.reconfigure libdvd-pkg
user copy
Copy the content of a file to another file owned by a user
Variables:
- dst: Destination file
- src: Source file
- user: Username for the destination file owner
Instructions:
content = file.read <src>
user.file.content <user> <dst> <content>