### Install and Start BIND Boot Script Source: https://www.linuxfromscratch.org/blfs/view/stable/server/bind These commands install the necessary init script for BIND from the blfs-bootscripts package and then start the BIND service. This ensures the DNS server starts automatically at boot time and can be manually controlled. ```shell make install-bind /etc/rc.d/init.d/bind start ``` -------------------------------- ### Install and Start D-Bus Daemon Source: https://www.linuxfromscratch.org/blfs/view/stable/general/dbus These commands are used to install the D-Bus bootscript and start the system-wide D-Bus daemon. 'make install-dbus' installs the necessary bootscript, and '/etc/init.d/dbus start' initiates the daemon if it's not already running. This assumes the blfs-bootscripts-20250225 package is installed. ```bash make install-dbus ``` ```bash /etc/init.d/dbus start ``` -------------------------------- ### Install Optional FLTK Components Source: https://www.linuxfromscratch.org/blfs/view/stable/x/fltk These commands install optional components for FLTK, including example games, extra documentation, and example programs. They are executed from within the 'test' and 'documentation' subdirectories of the FLTK source tree, usually as the root user. ```bash `make -C test docdir=/usr/share/doc/fltk-1.4.4 install-linux && make -C documentation docdir=/usr/share/doc/fltk-1.4.4 install-linux` ``` -------------------------------- ### Run QEMU with OS Installation Source: https://www.linuxfromscratch.org/blfs/view/stable/postlfs/qemu Starts a QEMU virtual machine to install an operating system. This command utilizes hardware acceleration ('-enable-kvm'), attaches the previously created virtual disk ('-drive'), specifies the OS installation ISO ('-cdrom'), sets the boot order to the CD-ROM ('-boot d'), and allocates memory ('-m') for the virtual machine. ```shell qemu -enable-kvm \ -drive file=$VDISK_FILENAME \ -cdrom Fedora-16-x86_64-Live-LXDE.iso \ -boot d \ -m _1G_ ``` -------------------------------- ### Start OpenLDAP Server Source: https://www.linuxfromscratch.org/blfs/view/stable/server/openldap This command starts the OpenLDAP server using the installed init script. You may need to modify the `/etc/sysconfig/slapd` file to include parameters specific to your configuration before starting the server. Refer to the slapd man page for available parameters. ```bash /etc/rc.d/init.d/slapd start ``` -------------------------------- ### Build and Install Pango with Meson and Ninja Source: https://www.linuxfromscratch.org/blfs/view/stable/x/pango This snippet demonstrates the standard procedure for building and installing the Pango library using the Meson build system and Ninja. It includes creating a build directory, configuring the build with specific options, and executing the build and install commands. The options `--prefix`, `--buildtype`, and `--wrap-mode` control the installation location, optimization level, and dependency handling, respectively. ```bash `mkdir build && cd build && meson setup --prefix=/usr \ --buildtype=release \ --wrap-mode=nofallback \ -D introspection=enabled \ .. && ninja` ``` -------------------------------- ### Install PHP and Configuration Files Source: https://www.linuxfromscratch.org/blfs/view/stable/general/php Installs the compiled PHP binaries and the production configuration file. It also creates a directory for PHP documentation and installs various documentation files. This step requires root privileges. ```bash make install && install -v -m644 php.ini-production /etc/php.ini && install -v -m755 -d /usr/share/doc/php-8.4.11 && install -v -m644 CODING_STANDARDS* EXTENSIONS NEWS README* UPGRADING* /usr/share/doc/php-8.4.11 ``` -------------------------------- ### Install MariaDB Boot Script Source: https://www.linuxfromscratch.org/blfs/view/stable/server/mariadb Installs the MariaDB init script to `/etc/rc.d/init.d/mariadb`. This allows the MariaDB server to be started automatically during system boot-up. ```bash make install-mariadb ``` -------------------------------- ### Setup BIND Directories and Devices Source: https://www.linuxfromscratch.org/blfs/view/stable/server/bind Initializes the BIND environment by creating necessary subdirectories, special device files (/dev/null, /dev/urandom), and copying the system's localtime. This prepares the chroot environment for BIND's operation. ```bash mkdir -p /srv/named && cd /srv/named && mkdir -p dev etc/named/{slave,pz} usr/lib/engines var/run/named && mknod /srv/named/dev/null c 1 3 && mknod /srv/named/dev/urandom c 1 9 && chmod 666 /srv/named/dev/{null,urandom} && cp /etc/localtime etc ``` -------------------------------- ### Install Samba Schemas and Default Configuration Source: https://www.linuxfromscratch.org/blfs/view/stable/basicnet/samba Copies sample Samba schemas to the OpenLDAP schema directory and installs a default smb.conf file to the /etc/samba directory. These files serve as a starting point for Samba configuration. ```bash install -v -m644 examples/LDAP/* /etc/openldap/schema install -v -m644 ../examples/smb.conf.default /etc/samba ``` -------------------------------- ### Example Tigervnc xstartup Script Source: https://www.linuxfromscratch.org/blfs/view/stable/xsoft/tigervnc An example of an xstartup script used by vncserver to define the VNC desktop environment. It prioritizes system-wide configurations, applies user-specific X resources, and starts the LXQt desktop environment. ```bash #!/bin/sh [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources startlxqt & ``` -------------------------------- ### Build and Install xorgproto using Meson and Ninja Source: https://www.linuxfromscratch.org/blfs/view/stable/x/xorgproto This snippet covers the standard build and installation process for xorgproto using the Meson build system and Ninja. It first creates a build directory, configures the build with a specified prefix, and then compiles the package. The installation is performed as the root user, followed by a directory renaming operation for documentation. ```shell `mkdir build && cd build && meson setup --prefix=$XORG_PREFIX .. && ninja` Now, as the `root` user: ``` ninja install && mv -v $XORG_PREFIX/share/doc/xorgproto{,-2024.1}` ``` -------------------------------- ### Build and Install libpsl using Meson and Ninja Source: https://www.linuxfromscratch.org/blfs/view/stable/basicnet/libpsl This snippet demonstrates the standard procedure for building and installing the libpsl package using the Meson build system and Ninja. It includes steps for creating a build directory, configuring the build with specific options, compiling the package, and finally installing it. The `--buildtype=release` option is crucial for optimizing binaries for stable releases. ```bash mkdir build && cd build && meson setup --prefix=/usr --buildtype=release && ninja ``` ```bash ninja test ``` ```bash ninja install ``` -------------------------------- ### Start MariaDB Server Source: https://www.linuxfromscratch.org/blfs/view/stable/server/mariadb Starts the MariaDB server process in the background. It creates the necessary run directory and directs output to null to keep the terminal clean. The server is run under the 'mariadb' user. ```bash install -v -m755 -o mariadb -g mariadb -d /run/mariadb && mariadbd_safe --user=mariadb 2>&1 >/dev/null & ``` -------------------------------- ### Remove Build Directory References from PRL Files Source: https://www.linuxfromscratch.org/blfs/view/stable/x/qt6 This command finds all `.prl` (Qt build configuration) files within the Qt6 installation directory and removes lines starting with `QMAKE_PRL_BUILD_DIR`. This cleans up references to the build environment, ensuring proper library linking. ```shell find $QT6PREFIX/ -name \*.prl \ -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; ``` -------------------------------- ### Build and Install GLibmm using Meson and Ninja Source: https://www.linuxfromscratch.org/blfs/view/stable/general/glibmm This snippet outlines the standard procedure for building and installing the GLibmm package. It involves creating a build directory, configuring the build with Meson, compiling with Ninja, and finally installing the compiled libraries and files. The `ninja test` command is used to verify the build. ```shell `mkdir bld && cd bld && meson setup --prefix=/usr --buildtype=release .. && ninja` ``` ```shell `ninja test` ``` ```shell `ninja install` ``` -------------------------------- ### Build and Install libpeas using Meson and Ninja Source: https://www.linuxfromscratch.org/blfs/view/stable/gnome/libpeas This snippet outlines the standard build and installation process for libpeas. It involves creating a build directory, configuring the build with Meson, compiling with Ninja, and finally installing the package as root. Key Meson options like `--prefix`, `--buildtype`, `--wrap-mode`, and `-D python3` are used for a tailored build. ```bash `mkdir build && cd build && meson setup --prefix=/usr \ --buildtype=release \ --wrap-mode=nofallback \ -D python3=false \ .. && ninja` ``` ```bash `ninja install` ``` -------------------------------- ### Configuring and Building Mutter Source: https://www.linuxfromscratch.org/blfs/view/stable/gnome/mutter This code block demonstrates the Meson setup and Ninja build process for Mutter. It configures the build with specific options like release build type, disabled tests, and disabled bash completion. The --prefix=/usr option specifies the installation directory. ```shell `mkdir build && cd build && meson setup --prefix=/usr \ --buildtype=release \ -D tests=disabled \ -D profiler=false \ -D bash_completion=false \ .. && ninja` ``` -------------------------------- ### Build and Install libhandy Source: https://www.linuxfromscratch.org/blfs/view/stable/x/libhandy1 This snippet demonstrates the commands to build and install the libhandy package. It involves creating a build directory, configuring the build with Meson, compiling with Ninja, and finally installing the package as root. Testing is also included. ```bash `mkdir build && cd build && meson setup --prefix=/usr --buildtype=release .. && ninja` To test the results, issue: **ninja test**. The tests must be run from a graphical session. Now, as the `root` user: ``` ninja install ``` ``` -------------------------------- ### Install sendmail Operations Guide Documentation (Shell) Source: https://www.linuxfromscratch.org/blfs/view/stable/server/sendmail Installs the generated sendmail Installation and Operations Guide documents (PostScript, plain text, and PDF) into the system's documentation directory. ```shell install -v -d -m755 /usr/share/doc/sendmail-8.18.1 && install -v -m644 op.ps op.txt op.pdf /usr/share/doc/sendmail-8.18.1 && cd ../.. ``` -------------------------------- ### Compile and Install v4l-utils Source: https://www.linuxfromscratch.org/blfs/view/stable/multimedia/v4l-utils These commands outline the standard build and installation process for v4l-utils. It involves creating a build directory, configuring the build using Meson with specific options (like disabling Doxygen documentation and gconv), compiling the source code, and finally installing the package. ```bash mkdir build && cd build && meson setup .. \ --prefix=/usr \ --buildtype=release \ -D gconv=disabled \ -D doxygen-doc=disabled && ninja ``` ```bash ninja install ``` -------------------------------- ### Configure and Build Qt6 Source: https://www.linuxfromscratch.org/blfs/view/stable/x/qt6 This command configures the Qt6 build with various options, including installation prefix, system configuration directory, linked libraries (DBus, OpenSSL, SQLite), and disabling specific modules like examples, rpath, SBOM, syslog, qt3d, qtquick3dphysics, and qtwebengine. It then proceeds with the build using ninja. ```shell ./configure -prefix $QT6PREFIX \ -sysconfdir /etc/xdg \ -dbus-linked \ -openssl-linked \ -system-sqlite \ -nomake examples \ -no-rpath \ -no-sbom \ -syslog \ -skip qt3d \ -skip qtquick3dphysics \ -skip qtwebengine \ && ninja ``` -------------------------------- ### Build and Install GTK-Doc using Meson and Ninja Source: https://www.linuxfromscratch.org/blfs/view/stable/general/gtk-doc This snippet demonstrates the commands to configure, build, and install GTK-Doc. It first creates a build directory, then sets up the build configuration using Meson, and finally compiles the project with Ninja. The installation is performed as the root user. This process requires Meson and Ninja to be installed. ```shell mkdir -p build && cd build && meson setup --prefix=/usr --buildtype=release .. && ninja ``` ```shell ninja install ``` -------------------------------- ### Installing Guile and Related Files Source: https://www.linuxfromscratch.org/blfs/view/stable/general/guile This series of commands installs Guile, its HTML documentation, GDB auto-load scripts, and example files into their respective system directories. It also copies plain text documentation and cleans up example Makefiles. ```bash make install && make install-html && mkdir -p /usr/share/gdb/auto-load/usr/lib && mv /usr/lib/libguile-*-gdb.scm /usr/share/gdb/auto-load/usr/lib && mv /usr/share/doc/guile-3.0.10/{guile.html,ref} && mv /usr/share/doc/guile-3.0.10/r5rs{.html,} && find examples -name "Makefile*" -delete && cp -vR examples /usr/share/doc/guile-3.0.10 && for DIRNAME in r5rs ref; do install -v -m644 doc/${DIRNAME}/*.txt \ /usr/share/doc/guile-3.0.10/${DIRNAME} done && unset DIRNAME ``` -------------------------------- ### Build and Install libgusb Source: https://www.linuxfromscratch.org/blfs/view/stable/general/libgusb This code snippet demonstrates the standard procedure for building and installing the libgusb package. It first creates a build directory, then configures the build using Meson with specified options like prefix and buildtype, and finally compiles the package with Ninja. The installation is performed as the root user. ```bash `mkdir build && cd build && meson setup .. \ --prefix=/usr \ --buildtype=release \ -D docs=false && ninja` ``` -------------------------------- ### Organizing Ghostscript Documentation and Examples (Shell) Source: https://www.linuxfromscratch.org/blfs/view/stable/pst/gs Renames the Ghostscript documentation directory and copies example files to a standard location, making them accessible after installation. ```shell mv -v /usr/share/doc/ghostscript/10.05.1 /usr/share/doc/ghostscript-10.05.1 && rmdir /usr/share/doc/ghostscript && cp -r examples/ -T /usr/share/ghostscript/10.05.1/examples ``` -------------------------------- ### Install BIND Utilities Client Programs and Libraries Source: https://www.linuxfromscratch.org/blfs/view/stable/basicnet/bind-utils These commands, executed as the root user, install the compiled libraries, client programs, and manual pages for BIND Utilities. The installation process involves copying the built components to their respective system directories. Manual pages are copied to /usr/share/man/man1 and /usr/share/man/man8. ```shell make -C lib/isc install && make -C lib/dns install && make -C lib/ns install && make -C lib/isccfg install && make -C lib/isccc install && make -C bin/dig install && make -C bin/nsupdate install && make -C bin/rndc install && cp -v doc/man/{dig.1,host.1,nslookup.1,nsupdate.1} /usr/share/man/man1 && cp -v doc/man/rndc.8 /usr/share/man/man8 ``` -------------------------------- ### Configure, Build, and Test GCC Source: https://www.linuxfromscratch.org/blfs/view/stable/general/gcc This snippet demonstrates the core installation process for GCC. It first conditionally modifies a configuration file for x86_64 architecture, then creates a build directory, configures the build with specified languages and options, and finally compiles the GCC package. The options include setting the installation prefix, disabling multilib, using system zlib, enabling default PIE and SSP, and specifying the languages to build. Finally, it initiates the test suite execution using `make -k check`. ```bash `case $(uname -m) in x86_64) sed -i.orig '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64 ;; esac mkdir build && cd build && ../configure \ --prefix=/usr \ --disable-multilib \ --with-system-zlib \ --enable-default-pie \ --enable-default-ssp \ --enable-host-pie \ --disable-fixincludes \ --enable-languages=c,c++,fortran,go,objc,obj-c++,m2 && make` ``` ```bash `make -k check` ``` -------------------------------- ### Build and Compile Gcr-4.4.0.1 Source: https://www.linuxfromscratch.org/blfs/view/stable/gnome/gcr4 This snippet outlines the standard procedure for building and compiling the Gcr package. It involves creating a build directory, configuring the build with Meson, and then compiling using Ninja. The configuration options `meson setup` specify the installation prefix and build type, while `-D gtk_doc=false` and `-D ssh_agent=false` disable documentation and SSH agent features, respectively. ```bash `mkdir build && cd build && meson setup --prefix=/usr \ --buildtype=release \ -D gtk_doc=false \ -D ssh_agent=false \ .. && ninja` ``` -------------------------------- ### Install libmng and Documentation Source: https://www.linuxfromscratch.org/blfs/view/stable/general/libmng These commands install the compiled libmng library and its documentation files to the system. The `make install` command installs the library, while the subsequent `install` commands create a directory and copy documentation files. ```shell `make install && install -v -m755 -d /usr/share/doc/libmng-2.0.3 && install -v -m644 doc/*.txt /usr/share/doc/libmng-2.0.3` ``` -------------------------------- ### Configure and Build QEMU Source: https://www.linuxfromscratch.org/blfs/view/stable/postlfs/qemu This script configures the QEMU build process based on the host architecture and then compiles the software. It sets up the installation prefix, configuration directories, and specifies the target architecture list, audio drivers, and network support. The build process leverages 'ninja' for efficiency. ```shell if [ $(uname -m) = i686 ]; then QEMU_ARCH=i386-softmmu else QEMU_ARCH=x86_64-softmmu fi mkdir -vp build && cd build && ../configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --target-list=$QEMU_ARCH \ --audio-drv-list=alsa \ --disable-pa \ --enable-slirp \ --docdir=/usr/share/doc/qemu-10.0.3 && unset QEMU_ARCH && make ``` -------------------------------- ### Build and Install libspiro Source: https://www.linuxfromscratch.org/blfs/view/stable/general/libspiro Commands to configure, build, and install the libspiro library. The `--disable-static` flag prevents the installation of static libraries. ```bash ./configure --prefix=/usr --disable-static && make ``` ```bash make install ``` -------------------------------- ### Build and Compile liblxqt with CMake and Make Source: https://www.linuxfromscratch.org/blfs/view/stable/lxqt/liblxqt This snippet details the commands to build the liblxqt library. It first creates a build directory, navigates into it, and then configures the build using CMake with specified installation prefix and build type. Finally, it compiles the library using Make. This process is standard for many C++ projects using CMake. ```bash mkdir build && cd build && cmake -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=Release \ .. make ``` -------------------------------- ### Build and Install kdsoap with CMake and Make Source: https://www.linuxfromscratch.org/blfs/view/stable/basicnet/kdsoap This snippet demonstrates the build and installation process for kdsoap. It involves creating a build directory, configuring the build with CMake options for installation prefix, build type, Qt6 support, and documentation directory, followed by compiling with make. Finally, it shows the installation command executed as the root user. ```bash mkdir build && cd build && cmake -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=Release \ -D KDSoap_QT6=ON \ -D CMAKE_INSTALL_DOCDIR=/usr/share/doc/kdsoap-2.2.0 \ .. make ``` ```bash make install ``` -------------------------------- ### Install Subversion Core and Documentation Source: https://www.linuxfromscratch.org/blfs/view/stable/general/subversion This command installs the core Subversion binaries and documentation. It first installs the main package and then copies the documentation files to the `/usr/share/doc/subversion-1.14.5` directory. ```bash make install && install -v -m755 -d /usr/share/doc/subversion-1.14.5 && cp -v -R doc/* /usr/share/doc/subversion-1.14.5 ``` -------------------------------- ### Install Screen and System Screenrc Source: https://www.linuxfromscratch.org/blfs/view/stable/general/screen Installs the Screen package and its system-wide configuration file as the root user. This step finalizes the Screen installation on the system. ```shell `make install && install -m 644 etc/etcscreenrc /etc/screenrc` ``` -------------------------------- ### Build and Install libvdpau 1.5 using Meson Source: https://www.linuxfromscratch.org/blfs/view/stable/multimedia/libvdpau This snippet demonstrates the standard procedure for building and installing the libvdpau library using the Meson build system. It involves creating a build directory, configuring the build with meson setup, compiling with ninja, and installing the library. The 'ninja test' command is also included for verification, noting a potential known failure for the 'dlclose' test. ```bash mkdir build && cd build && meson setup --prefix=$XORG_PREFIX .. && ninja ``` ```bash ninja test ``` ```bash ninja install ``` ```bash [ -e $XORG_PREFIX/share/doc/libvdpau ] && mv -v $XORG_PREFIX/share/doc/libvdpau{,1.5} ``` -------------------------------- ### Install liboauth Documentation Source: https://www.linuxfromscratch.org/blfs/view/stable/postlfs/liboauth Installs the previously built documentation for liboauth into the system's document directory. This command requires root privileges. ```bash install -v -dm755 /usr/share/doc/liboauth-1.0.3 && cp -rv doc/html/* /usr/share/doc/liboauth-1.0.3 ``` -------------------------------- ### Verify cURL Installation Source: https://www.linuxfromscratch.org/blfs/view/stable/basicnet/curl These commands perform simple verification tests on the newly installed cURL utility. They use `curl` to download content from example.com and save the trace output to specified files. Inspecting these files (`debugdump.txt` and `d.txt`) helps confirm the installation and provides details about the download process, including version information and timing. ```bash curl --trace-ascii debugdump.txt https://www.example.com/ ``` ```bash curl --trace-ascii d.txt --trace-time https://example.com/ ``` -------------------------------- ### Patching Meson Build File for Gcr Installation Source: https://www.linuxfromscratch.org/blfs/view/stable/gnome/gcr Applies a patch to the meson.build file to enable building Gcr without OpenSSH installed. This is a preparatory step before the main installation commands. ```bash sed '/ssh.add/d; /ssh.agent/d' -i meson.build ```