What do you want to see in a minimal template (OpenVZ 7)

InceptionHostingInceptionHosting Hosting ProviderOG

Hi Folks,

Just to get the troll answer out of the way: KVM

Moving on..

As per the title as a VPS user, what would you like to see in a minimal template for Debian 10 and Ubuntu 18 and CentOS 7? (8 not yet available as an EZ template to modify)

I am only focusing on the latest versions for now.

Current package set I have made up in my list to create a new minimal set:

debian10

  • apt
  • openssh-client
  • openssh-server
  • wget
  • nano
  • iputils-ping
  • iptables
  • tar
  • unzip
  • bzip2
  • gzip
  • bash
  • sudo

ubuntu18

  • apt
  • openssh-client
  • openssh-server
  • wget
  • nano
  • iputils-ping
  • iptables
  • bash
  • tar
  • unzip
  • bzip2
  • gzip
  • bash
  • sudo

centos7

  • initscripts
  • authconfig
  • yum
  • rpm
  • wget
  • vim-minimal
  • nano
  • iproute
  • iptables
  • iptables-services
  • openssh-clients
  • openssh-server
  • tar
  • unzip
  • bzip2
  • gzip
  • bash
  • sudo

Packages must be available in the standard distro repo's

Thanked by (2)vpsgeek dahartigan

https://inceptionhosting.com
Please do not use the PM system here for Inception Hosting support issues.

«1

Comments

  • CentOS 7

    • authconfig
    • basesystem
    • bash
    • binutils
    • ca-certificates
    • coreutils
    • deltarpm
    • device-mapper
    • device-mapper-event
    • dhclient
    • filesystem
    • grep
    • gzip
    • haveged
    • hostname
    • iptables
    • iptables-services
    • openssh-server
    • passwd
    • rpm
    • rsyslog
    • sed
    • sudo
    • sysstat
    • systemd
    • tar
    • util-linux
    • vim-minimal
    • virt-what
    • wget
    • which
    • yum

    Rather less than more, so fewer than the above OK.

    Thanked by (1)vpsgeek
  • tgltgl OG
    edited December 2019

    man, add also ALPINE LINUX, its 2MB or something

    Thanked by (2)vpsgeek WSS
  • Some of the additional small stuff I always install and use regularly with Ubuntu. I'll just leave them here ...
    changetrack
    dstat
    iperf
    iptraf
    msmtp
    rdiff-backup
    s-nail
    tmux

  • InceptionHostingInceptionHosting Hosting ProviderOG

    tgl said: man, add also ALPINE LINUX, its 2MB or something

    Not so simple with OpenVZ 7 as the template creation process is different.

    Thanked by (1)vpsgeek

    https://inceptionhosting.com
    Please do not use the PM system here for Inception Hosting support issues.

  • Xen.

    Thanked by (1)vpsgeek
  • edited December 2019

    How about ensuring the a beefier set of default locales installed?
    en_US.utf8 is necessary to get software like mosh working correctly and almost everyone can needs it.
    I always end up wasting 5-10m with VZ virtualization when the locales are missing.

  • For debian, in addition to what you've listed: git, rsync, locales, apt-transport-https. Perhaps bash, but dash may well be sufficient.

    Nowadays, just ssh and apt are enough for ansible to install everything else I'd need.

    Thanked by (3)vpsgeek vimalware Massimo
  • For debian
    What about ca-certificates? Are they included in openssh-server already? Because I don't think so
    I also like htop very much

    Thanked by (2)vpsgeek Abdullah
  • For a CentOS 7 min template I would add:

    • firewalld
    Thanked by (2)vpsgeek vimalware
  • InceptionHostingInceptionHosting Hosting ProviderOG

    @beagle said:
    For a CentOS 7 min template I would add:

    • firewalld

    Really? In a minimal template?

    Thanked by (1)vpsgeek

    https://inceptionhosting.com
    Please do not use the PM system here for Inception Hosting support issues.

  • @AnthonySmith said:

    @beagle said:
    For a CentOS 7 min template I would add:

    • firewalld

    Really? In a minimal template?

    That's the default firewall on CentOS.

    Thanked by (1)vpsgeek
  • InceptionHostingInceptionHosting Hosting ProviderOG

    I know, but it is not a requirement.

    Thanked by (1)vpsgeek

    https://inceptionhosting.com
    Please do not use the PM system here for Inception Hosting support issues.

  • Indeed, but because it's the default option it's what I expect to find in a minimal CentOS template.

    Thanked by (1)vpsgeek
  • InceptionHostingInceptionHosting Hosting ProviderOG

    I did not even put ip tables in the last set I made :D

    Thanked by (1)vpsgeek

    https://inceptionhosting.com
    Please do not use the PM system here for Inception Hosting support issues.

  • I'd go firewalld not iptables on Centos too.

    Thanked by (2)vpsgeek beagle
  • @AnthonySmith said:
    I did not even put ip tables in the last set I made :D

    Stingy :p

    Thanked by (1)vimalware
  • alentoalento Hosting ProviderOGServices Provider

    Ubuntu 18.04

    I (foolishly perhaps?) tried to install Mail-in-a-Box on an OpenVZ7 VPS today and there were two things that were annoyingly missing.
    1. nano (which you have included)
    2. curl

    The third thing was Locale info which someone else already noted.

    Recommended providers: BuyVM - MXroute - LunaNode - Forpsi - IntoVPS
    Contact me for all of your Mail-in-a-Box email hosting needs at AnyDomain. I am also a proud reseller of MXroute email.

  • @uhu said:
    I'd go firewalld not iptables on Centos too.

    I hate firewalld and try to get rid of it. For me iptables makes it easier to manage scripts across different distros.

    Generally less is better. If you've got wget, yum, which, rpm then pretty much anything else people want can be added by individuals in their standard setup script. Removing is trickier because your script has to figure which dependencies might break, and dependencies change.

    Thanked by (1)flips
  • I also prefer minimal to be minimal ...

    BTW; Any easy way in CentOS to strip away packages to a required minimum?

    (In Debian I'd use deborphan to help me remove stuff, then save the ouput of
    dpkg --get-selections and use that with --set-selections on another installation ...)

    Thanked by (1)kramer
  • flips said: BTW; Any easy way in CentOS to strip away packages to a required minimum?

    I don't know of an easy way. My script has a 'whitelist' of minimal packages, and does a rpm --query -a then builds a list of what to remove based on the difference. The annoying thing about this is I have to add all the dependencies into the whitelist, which is why minimal is easier to handle.

  • flipsflips OG
    edited December 2019

    I upgraded a not very small "minimal" centos7 to centos8, it worked, but I couldn't figure out an easy way to identify the orphans/deps I could get rid off easily, it used 1.1 GB of my 5 GB disk space in OVZ7 ...

  • @flips said:
    I upgraded a not very small "minimal" centos7 to centos8, it worked, but I couldn't figure out an easy way to identify the orphans/deps I could get rid off easily, it used 1.1 GB of my 5 GB disk space in OVZ7 ...

    For orphans you can probably do something like orphans="" ; for r in $( rpm --query -a ) ; do d=$( rpm -qR ${r} | wc -l ) ; if [[ "${d}" -eq "0" ]] ; then orphans="${orphans} ${r}" ; fi ; done (just freestyling, completely untested).

  • @flips said:
    I upgraded a not very small "minimal" centos7 to centos8, it worked, but I couldn't figure out an easy way to identify the orphans/deps I could get rid off easily, it used 1.1 GB of my 5 GB disk space in OVZ7 ...

    Try yum autoremove to get rid of the orphans.

    Thanked by (1)tetech
  • Plus

    • tmux
    • curl
    • tree
    • which
    • jitterentropy
    • rsync
    • systemd
    • firewalld

    Minus

    • wget
    • nano
  • I feel the need to express a simple fact: Minimal means Minimal!
    There's only one thing needed: SSH

    Thanked by (1)tetech
  • openvpn ? many ppl buy these for just that

  • InceptionHostingInceptionHosting Hosting ProviderOG

    @TigersWay said:
    I feel the need to express a simple fact: Minimal means Minimal!
    There's only one thing needed: SSH

    You don’t even want a package manager?

    Thanked by (1)vimalware

    https://inceptionhosting.com
    Please do not use the PM system here for Inception Hosting support issues.

  • which came first: the chicken or the egg?

  • InceptionHostingInceptionHosting Hosting ProviderOG

    @Rahul said:
    which came first: the chicken or the egg?

    Very helpful thanks for your invaluable contribution.

    Thanked by (1)rajprakash

    https://inceptionhosting.com
    Please do not use the PM system here for Inception Hosting support issues.

  • @AnthonySmith said:

    @TigersWay said:
    I feel the need to express a simple fact: Minimal means Minimal!
    There's only one thing needed: SSH

    You don’t even want a package manager?

    what would I do with it? =) =) =)

    Jokes aside, what you set in your first post is more than fine; anything optional should not be in a minimal.
    The problem - if I understand correctly - is that you have to un-install / delete stuff, while a minimal install is to build only with the mandatory bricks/packages.

Sign In or Register to comment.