0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Several first common configuration changes for debian based distro, such like ubuntu

Last updated at Posted at 2024-05-22

Several first common configuration changes for debian based distro, such like ubuntu

Objectives

  • Memo for person who doesn't use debian based distribution so much compared to redhat others

System

# cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
(snip)

1. Change default editor

# update-alternatives --config editor
There are 4 choices for the alternative editor (providing /usr/bin/editor).

  Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /bin/nano            40        auto mode
  1            /bin/ed             -100       manual mode
  2            /bin/nano            40        manual mode
  3            /usr/bin/vim.basic   30        manual mode
  4            /usr/bin/vim.tiny    15        manual mode

Press <enter> to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in manual mode

2. Network Configuration

# hostnamectl set-hostname yourhostname
# hostnamectl status
 Static hostname: yourhostname
       Icon name: computer-vm
(snip)
# vi /etc/netplan/99-mynet.yaml

network:
    ethernets:
        ens160:
            dhcp4: no
            addresses:
              - 192.168.0.2/24
            routes:
              - to: default
                via: 192.168.0.1
            nameservers:
              addresses: [8.8.8.8]
    version: 2
# chmod 600 /etc/netplan/99-mynet.yaml
# reboot
# netplan apply
# ip -br -4 a
lo               UNKNOWN        127.0.0.1/8
ens160           UP             192.168.0.2/24

# ip -brief -4 address show
lo               UNKNOWN        127.0.0.1/8
ens160           UP             192.168.0.2/24
# ip r s default
default via 192.168.100.1 dev ens160 proto static
# resolvectl status ens160
Link 2 (ens160)
    Current Scopes: DNS
         Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
       DNS Servers: 8.8.8.8

3. Update & Upgrade

# apt update && apt upgrade

4. Install Build Packages

# apt install build-essential

5. Packages etc

List installed packages

# apt list --installed

Search Packages

# apt-cache search nginx

libnginx-mod-http-geoip2 - GeoIP2 HTTP module for Nginx
libnginx-mod-http-image-filter - HTTP image filter module for Nginx
libnginx-mod-http-xslt-filter - XSLT Transformation module for Nginx
libnginx-mod-mail - Mail module for Nginx
libnginx-mod-stream - Stream module for Nginx
libnginx-mod-stream-geoip2 - GeoIP2 Stream module for Nginx
nginx - small, powerful, scalable web/proxy server
nginx-common - small, powerful, scalable web/proxy server - common files
nginx-core - nginx web/proxy server (standard version)
nginx-doc - small, powerful, scalable web/proxy server - documentation
anonip - Anonymize IP-addresses in log-files
centreon-plugins - Collection of Nagios plugins to monitor OS, services and network devices
(snip)
# apt-cache search . | grep -E ^libnginx
libnginx-mod-http-geoip2 - GeoIP2 HTTP module for Nginx
libnginx-mod-http-image-filter - HTTP image filter module for Nginx
libnginx-mod-http-xslt-filter - XSLT Transformation module for Nginx
libnginx-mod-mail - Mail module for Nginx
libnginx-mod-stream - Stream module for Nginx
libnginx-mod-stream-geoip2 - GeoIP2 Stream module for Nginx
libnginx-mod-http-auth-pam - PAM authentication module for Nginx
libnginx-mod-http-brotli-filter - Brotli lossless compression support for Nginx - filter
libnginx-mod-http-brotli-static - Brotli lossless compression support for Nginx - static
libnginx-mod-http-cache-purge - Purge content from Nginx caches
libnginx-mod-http-dav-ext - WebDAV missing commands support for Nginx
libnginx-mod-http-echo - Bring echo and more shell style goodies to Nginx
libnginx-mod-http-fancyindex - Fancy indexes module for the Nginx
libnginx-mod-http-geoip - GeoIP HTTP module for Nginx
libnginx-mod-http-headers-more-filter - Set and clear input and output headers for Nginx
libnginx-mod-http-js - JavaScript HTTP module for Nginx
libnginx-mod-http-lua - Lua module for Nginx
libnginx-mod-http-memc - Extended memcached commands module for Nginx
libnginx-mod-http-modsecurity - WAF module for Nginx
libnginx-mod-http-ndk - Nginx Development Kit module
libnginx-mod-http-ndk-dev - Nginx Development Kit module - development files
libnginx-mod-http-perl - Perl module for Nginx
libnginx-mod-http-set-misc - Extended rewrite directives module for Nginx
libnginx-mod-http-srcache-filter - Transparent caching layer for Nginx
libnginx-mod-http-subs-filter - Substitution filter module for Nginx
libnginx-mod-http-uploadprogress - Upload progress system for Nginx
libnginx-mod-http-upstream-fair - Nginx Upstream Fair Proxy Load Balancer
libnginx-mod-nchan - Fast, flexible pub/sub server for Nginx
libnginx-mod-rtmp - RTMP support for Nginx
libnginx-mod-stream-geoip - GeoIP Stream module for Nginx
libnginx-mod-stream-js - JavaScript Stream module for Nginx
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?