Ubuntu 24.04 默认配置

未改动,随时复制。

/etc/apt/sources.list
APT Ubuntu 24.04 LTS (Noble Numbat)

APT - /etc/apt/sources.list

📍 Ubuntu 24.04 LTS (Noble Numbat)

deb http://archive.ubuntu.com/ubuntu/ noble main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ noble-updates main restricted universe multiverse
deb http://archive.ubuntu.com/u…
9 行 • MD5: 2ff89a4f... 查看 →
/etc/apt/apt.conf.d/docker-no-languages
APT Ubuntu 24.04 LTS (Noble Numbat)

APT - /etc/apt/apt.conf.d/docker-no-languages

📍 Ubuntu 24.04 LTS (Noble Numbat)

Acquire::Languages "none";
1 行 • MD5: 341190f5... 查看 →
/etc/apt/apt.conf.d/docker-gzip-indexes
APT Ubuntu 24.04 LTS (Noble Numbat)

APT - /etc/apt/apt.conf.d/docker-gzip-indexes

📍 Ubuntu 24.04 LTS (Noble Numbat)

Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";
1 行 • MD5: 1caa0605... 查看 →
/etc/apt/apt.conf.d/docker-disable-periodic-update
APT Ubuntu 24.04 LTS (Noble Numbat)

APT - /etc/apt/apt.conf.d/docker-disable-periodic-update

📍 Ubuntu 24.04 LTS (Noble Numbat)

APT::Periodic::Enable "0";
1 行 • MD5: cde8ec57... 查看 →
/etc/apt/apt.conf.d/docker-clean
APT Ubuntu 24.04 LTS (Noble Numbat)

APT - /etc/apt/apt.conf.d/docker-clean

📍 Ubuntu 24.04 LTS (Noble Numbat)

DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };
APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/c…
3 行 • MD5: b02a49af... 查看 →
/etc/apt/apt.conf.d/docker-autoremove-suggests
APT Ubuntu 24.04 LTS (Noble Numbat)

APT - /etc/apt/apt.conf.d/docker-autoremove-suggests

📍 Ubuntu 24.04 LTS (Noble Numbat)

Apt::AutoRemove::SuggestsImportant "false";
1 行 • MD5: 0081b49f... 查看 →
/etc/apt/apt.conf.d/70debconf
APT Ubuntu 24.04 LTS (Noble Numbat)

APT - /etc/apt/apt.conf.d/70debconf

📍 Ubuntu 24.04 LTS (Noble Numbat)

// Pre-configure all packages with debconf before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
3 行 • MD5: 7e9d09d5... 查看 →
/etc/apt/apt.conf.d/01autoremove
APT Ubuntu 24.04 LTS (Noble Numbat)

APT - /etc/apt/apt.conf.d/01autoremove

📍 Ubuntu 24.04 LTS (Noble Numbat)

APT
{
  NeverAutoRemove
  {
	"^firmware-linux.*";
	"^linux-firmware$";
	"^linux-image-[a-z0-9]*$";
	"^linux-image-[a-z0-9]*-[a-z0-9]*$";
  };

  VersionedKernelPackages
  {
	# kernels
	"linux-.*";
	"…
32 行 • MD5: 879455db... 查看 →
/etc/apt/apt.conf.d/01-vendor-ubuntu
APT Ubuntu 24.04 LTS (Noble Numbat)

APT - /etc/apt/apt.conf.d/01-vendor-ubuntu

📍 Ubuntu 24.04 LTS (Noble Numbat)

Acquire::Changelogs::AlwaysOnline "true";
Acquire::http::User-Agent-Non-Interactive "true";
2 行 • MD5: c69ce53f... 查看 →
/etc/logrotate.d/postgresql-common
PostgreSQL Ubuntu 24.04 LTS (Noble Numbat)

PostgreSQL - /etc/logrotate.d/postgresql-common

📍 Ubuntu 24.04 LTS (Noble Numbat)

/var/log/postgresql/*.log {
       weekly
       rotate 10
       copytruncate
       delaycompress
       compress
       notifempty
       missingok
       su root root
}
10 行 • MD5: 101326ef... 查看 →
/etc/systemd/postgresql@.service
PostgreSQL Ubuntu 24.04 LTS (Noble Numbat)

PostgreSQL - /etc/systemd/postgresql@.service

📍 Ubuntu 24.04 LTS (Noble Numbat)

# systemd service template for PostgreSQL clusters. The actual instances will
# be called "postgresql@version-cluster", e.g. "postgresql@9.3-main". The
# variable %i expands to "version-cluster", %I …
40 行 • MD5: 5b25f284... 查看 →
/etc/systemd/postgresql.service
PostgreSQL Ubuntu 24.04 LTS (Noble Numbat)

PostgreSQL - /etc/systemd/postgresql.service

📍 Ubuntu 24.04 LTS (Noble Numbat)

# postgresql.service is the meta unit for managing all PostgreSQL clusters on
# the system at once. Conceptually, this unit is more like a systemd target,
# but we are using a service since targets c…
18 行 • MD5: cc942563... 查看 →
/etc/postgresql/17/main/postgresql.conf
PostgreSQL Ubuntu 24.04 LTS (Noble Numbat)

PostgreSQL - /etc/postgresql/17/main/postgresql.conf

📍 Ubuntu 24.04 LTS (Noble Numbat)

# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
#   name = value
#
# (The "=" is optional.)  Whitespace …
844 行 • MD5: 041908e5... 查看 →
/etc/postgresql/17/main/environment
PostgreSQL Ubuntu 24.04 LTS (Noble Numbat)

PostgreSQL - /etc/postgresql/17/main/environment

📍 Ubuntu 24.04 LTS (Noble Numbat)

# environment variables for postgres processes
# This file has the same syntax as postgresql.conf:
#  VARIABLE = simple_value
#  VARIABLE2 = 'any value!'
# I. e. you need to enclose any value which d…
7 行 • MD5: a567730a... 查看 →
/etc/postgresql/17/main/pg_ident.conf
PostgreSQL Ubuntu 24.04 LTS (Noble Numbat)

PostgreSQL - /etc/postgresql/17/main/pg_ident.conf

📍 Ubuntu 24.04 LTS (Noble Numbat)

# PostgreSQL User Name Maps
# =========================
#
# ---------------
# Mapping Records
# ---------------
#
# Refer to the PostgreSQL documentation, chapter "Client
# Authentication" for a comp…
72 行 • MD5: a851d3ee... 查看 →
/etc/postgresql/17/main/pg_hba.conf
PostgreSQL Ubuntu 24.04 LTS (Noble Numbat)

PostgreSQL - /etc/postgresql/17/main/pg_hba.conf

📍 Ubuntu 24.04 LTS (Noble Numbat)

# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a co…
132 行 • MD5: 7f6ef676... 查看 →
/etc/postgresql/17/main/pg_ctl.conf
PostgreSQL Ubuntu 24.04 LTS (Noble Numbat)

PostgreSQL - /etc/postgresql/17/main/pg_ctl.conf

📍 Ubuntu 24.04 LTS (Noble Numbat)

# Automatic pg_ctl configuration
# This configuration file contains cluster specific options to be passed to
# pg_ctl(1).

pg_ctl_options = ''
5 行 • MD5: 242d50c2... 查看 →
/etc/postgresql/17/main/start.conf
PostgreSQL Ubuntu 24.04 LTS (Noble Numbat)

PostgreSQL - /etc/postgresql/17/main/start.conf

📍 Ubuntu 24.04 LTS (Noble Numbat)

# Automatic startup configuration
#   auto: automatically start the cluster
#   manual: manual startup with pg_ctlcluster/postgresql@.service only
#   disabled: refuse to start cluster
# See pg_creat…
8 行 • MD5: 9bb73ac2... 查看 →
/etc/odoo/odoo.conf
Odoo Ubuntu 24.04 LTS (Noble Numbat)

Odoo - /etc/odoo/odoo.conf

📍 Ubuntu 24.04 LTS (Noble Numbat)

[options]
addons_path = /mnt/extra-addons
data_dir = /var/lib/odoo
; admin_passwd = admin
; csv_internal_sep = ,
; db_maxconn = 64
; db_name = False
; db_template = template1
; dbfilter = .*
; debug_…
37 行 • MD5: 525a8655... 查看 →