How to change boot into text console or GUI in Raspberry Pi
There are two ways to configure Raspberry Pi OS to boot into console or GUI mode. First, run # raspi-config, select "System Options", then "Boot / Auto Login".
81 articles on this topic
There are two ways to configure Raspberry Pi OS to boot into console or GUI mode. First, run # raspi-config, select "System Options", then "Boot / Auto Login".
stress tests CPU, memory, I/O, and HDD workloads on POSIX systems. This article shares commands to use 95% of memory to check for memory problems.
A Linux server was reported to be using over 90% of its memory, but its administrator could not identify a memory-heavy process. My initial check with free showed nothing unusual.
There are many ways to send mail from the Linux command line. For repeated system tests, netcat can send a prepared message with one command.
RHEL 7 changes its service manager from SysVinit to systemd, offering parallel operation, mount point handling, and cgroups support. These tables compare their commands.
On CentOS 5, yum may return a Segmentation fault error, for example: [root@ezylinux ~]# yum update bash. base | 1.1 kB 00:00…
Reset an iDRAC password directly from the server through OpenManage using racadm. Install OpenManage before following these steps.
A chroot Exec format error in Red Hat/CentOS rescue mode usually means the running environment and target commands use different architectures.
Linux can be shut down in several ways, usually immediately. Scheduling a shutdown and notifying other remote users gives them time to prepare.
If yum reports "Error: database disk image is malformed" while installing or updating packages, as shown below: [[email protected] ~]# yum install ruby Loaded plugin
A script to identify processes using SWAP on a server. It displays process details and the amount of swap space each process uses. #!/bin/bash # Get current swap usage for all
tail is widely used for viewing logs in real time (tail -f /var/log/logfile). MultiTail provides similar functionality with multiple windows in one console.
Bash autocompletion makes Linux work much more convenient. For me it is essential because it makes commands quicker to use.
NXDOMAIN, NOERROR, and SERVFAIL are DNS query statuses. Understanding them helps interpret what happened when looking up domain records.
Listing multiple DNS servers in /etc/resolve.conf defines primary and secondary DNS servers. If the primary fails, the system switches to the secondary after a timeout.
CentOS 6 ships with Ruby 1.8.7. Ruby Version Manager (RVM) lets applications use other Ruby versions without changing the main system.
whois queries domain information directly, helping administrators check domain ownership, expiry dates, or use the information in scripts.
NUMA is a new architecture for multiprocessor systems. Each physical processor has its own memory, allowing faster memory access than the older architecture. Linux…
On a Linux server, you can check how many physical CPU sockets it has without opening the machine. The command is dmidecode. Installing dmidecode…
You can list the files in an RPM package, whether installed or not, in two ways: rpm and repoquery. Here is how to use both commands…
Linux crontab alone cannot specify the last day of a month or its first Saturday. These scripts add that control to scheduled commands.
Administrators have several ways to send messages to users logged in to a text-mode system. This article covers broadcasting to all users and sending directly to one user.
When you need to check login details, what comes to mind first? Many would look in /var/log/secure because it stores login history, but that can be cumbersome…
UNetbootin creates a Linux Live USB on a flash drive from a downloaded ISO file or one it downloads from the Internet. It supports distributions including Ubuntu.
Dell OpenManage Server Administrator (OMSA) monitors hardware and alerts, helps troubleshoot hardware, configures RAID, and integrates with monitoring software.
Today I repeatedly used yum to install, update, and erase packages. It then hung for a long time during an uninstall. Wondering why it was taking so long, I checked its process…
A collection of RPM repositories useful when you need packages unavailable on the installation media or in the base repository for Red Hat Enterprise Linux and CentOS. RPMforge installation commands: RHEL6 / CentOS-6, i386…
The hostid command displays a Linux machine's ID. Linux generates a host ID at installation, and reinstalling generates a different one, which can affect software licenses tied to it.
Yum installs packages online on Red Hat Linux distributions, much like apt-get on Debian or Ubuntu, and handles package dependencies.
Red Hat provides several kernel packages with different capabilities. Installing an unsuitable kernel can prevent the system from recognizing all installed hardware.
This expands on step 2 of Add Thai fonts in Linux, explaining how to open Nautilus and browse to fonts:// to add Windows TrueType fonts to GNOME.
Sometimes you need a package but only a package for another distribution is available. What can you do? This article explains converting RPM to DEB and DEB to RPM…
Slow boots of more than two hours or incorrect iostat output, such as 200% CPU utilization, can occur on x86 or x86_64 because of mismatched timers.
Use rpm or yum to find which package installed a file or command. yum requires repository access unless the required data is already cached.
Linux uses RAM extensively to cache local and remote filesystem and disk data. The free command shows used, free, cached, and application memory.
There are four I/O schedulers for hard disks and block devices: anticipatory, noop, deadline, and CFQ. CFQ is usually the default. To change the I/O scheduler…
Yum, or Yellow dog Update, Modified, manages RPM package installation, removal, and updates, resolving dependencies from configured repositories.
The difference between CPU statistics from ps and top is that ps calculates CPU utilization as total CPU time divided by the task's running time, while top displays a percentage of overall CPU time…
On Linux software RAID 1, GRUB normally boots from the primary disk. Configure it on the secondary disk too so the system can boot if the primary fails.
yum normally hides packages listed under exclude in yum.conf, so yum update does not show which newer versions are available for those packages.
Daemons normally run as background processes and can be started with service commands or init scripts. Core dumps help debug programs and investigate errors.
Linux's cpuspeed power-saving technology has developed since Intel and AMD began adding DVS (dynamic voltage scaling) to CPUs, adjusting CPU voltage to reduce power use.
Core dumps are created when programs crash or access unauthorized memory, helping programmers debug problems. Linux provides settings to control their size, names, and location.
In Linux, choosing a CPU and kernel suited to the application's requirements helps the system run stably. x86_64 (AMD64, EM64T) processors are 64-bit processors…
To rescan an entire SCSI bus and re-register all devices found: rescan SCSI so the system sees a new device. On some Linux systems, this also adds or removes devices.
How can you tell whether your system supports 64-bit, 32-bit, or 16-bit applications? This article explains Long mode and Legacy mode.
You can free memory on demand with a simple command that clears the Linux pagecache and slabcache. Write 1 to free pagecache, 2 to free…
In Linux, you can increase or decrease I/O access priority per process with ionice, which displays and changes the I/O scheduling class and priority of a process…
The new autofs version (autofs5) adds features that improve interoperability with other systems. The new features include: Direct map support, which provides a mechanism to automatica…
On newer Linux systems, dmidecode reports the maximum memory capacity supported by the system BIOS.
On Red Hat systems, use rpm, yum, or up2date to find which RPM package contains a particular file.
Wake on LAN starts a server through a network command from another machine. Configure both the server receiving the wake command and the client sending it.
device.map maps hard disk devices to GRUB device names and is created during operating system installation. Recreate it if it is missing.
Many people wonder how much swap to create during installation. The usual rule is at least twice the RAM, but if the system has a lot of RAM, is twice as much really necessary…
Some Linux versions display Thai vowels in the wrong positions because they lack fonts that render Thai correctly. There are several ways to fix this…
Compiling a Linux kernel may sound difficult, but it takes only a few steps after preparing the compiler, libraries, and other development tools.
Commands to shut down Linux: #shutdown -h now #init 0 #halt #poweroff. Commands to reboot: #reboot #init 6 #shutdown -r now.
A major difference between NFS v4 and earlier versions is the ability to export a single directory in a way similar to an FTP or web server, such as exporting /shared.
This article explains how to lock a user after a set number of login attempts using the pam_tally module in PAM.
Linux can force users to change their passwords at their next login by locking the account, expiring the password, and unlocking the account.
After changing the diskdump configuration and restarting its service, errors may appear in /var/log/messages: diskdump: diskdumpctl: failed to add /dev/hdb! diskdump: a
The XDMCP configuration file has moved from /etc/X11/gdm/gdm.conf to /etc/gdm/custom.conf. To enable XDMCP, edit the section under xdmcp.
This example reduces a 10 GB LVM volume to 8 GB, assuming it is mounted at /data, by shrinking the filesystem before reducing the logical volume.
Use grep to display configuration lines that begin with particular characters. This helps inspect comments and review configuration settings.
On systems with many users, users who leave without logging out waste system resources. This method addresses that and also improves security…
Linux normally mounts USB flash drives or thumb drives automatically when you plug them in. Sometimes it does not, which can frustrate new users…
Warning: check that your hardware supports CPU hot swapping before trying these commands; otherwise the hardware may be damaged.
RedHat 5 and RedHat 5.1 may hang at the final stage of reboot or shutdown because of a cpufreq bug that causes a deadlock when its module is unloaded.
On RedHat V4.5, the largesmp kernel panics during boot on systems with more than eight CPUs and NUMA disabled. RedHat says the bug will be fixed in the next update.
Red Hat Enterprise Linux 4 update 3 and later provides a largesmp kernel for systems with many CPUs, available for x86_64, ia64, and ppc64.
In Linux, you can disable the beep if you do not want it. The sound comes from the pcspkr module. Use: # rmmod pcspkr. To disable it every time the machine starts…
RPM (Red Hat Package Management) packages are installation files for Red Hat Linux distributions. They are popular because software is easy to install and remove.
To find how many sockets a process has open on Linux, first identify its PID using $ ps -aef | grep, then count its sockets.
Here is a diagram of Linux directories for Ubuntu beginners and users who are unsure where things are stored. Many thanks to Scott Gilbertson of Wired.
To see the kernel's boot parameters, use # cat /proc/cmdline. ro root=LABEL=/ rhgb quiet
A hard disk generally stores the system bootloader's binary code in the first 512 sectors, or 512 bytes. LILO or GRUB embeds itself in the master boot record…
To have Linux check every partition's file system after a reboot, use these commands as root. Create /forcefsck in the root directory to force a check on the next boot…
Edit $HOME/.bashrc, because Red Hat adds alias cp='cp -i'. Thus the -r option has no effect. Comment out alias cp='cp -i' with #, then log out and log back in…
What can you do when you cannot log in because your password is rejected? After reading this article, you will be able to resolve the situation easily. I will cover two bootloaders…
Many of you have probably used dd, but it does not show how far it has progressed. This article explains how to view dd's progress.