Linux Display System Statistics Gathered From /proc

The /proc file system in Linux provides information about various aspects of the system such as system statistics, process information, and hardware configuration. To display system statistics gathered from /proc, you can use the ‘top’ or ‘free’ commands. The ‘top’ command provides real-time information about system usage, including CPU utilization, memory usage, and process information. … Read more

Lighttpd Configure Subdomain

To configure a subdomain on Lighttpd, you need to add a new virtual host configuration for the subdomain in the Lighttpd configuration file. Here is the general process: Open the Lighttpd configuration file: sudo nano /etc/lighttpd/lighttpd.conf Add a new virtual host configuration for the subdomain: $HTTP[“host”] =~ “subdomain.example.com” { server.document-root = “/var/www/subdomain” } Replace “subdomain.example.com” … Read more

How To Run Firefox From The Command Line

To run the Firefox web browser from the command line in Linux, simply open a terminal window and type “firefox” and hit enter. If the Firefox application is installed in a location that is not in your PATH, you will need to specify the full path to the binary, like this: /path/to/firefox You can also … Read more

HowTo Install firefox-4.0.tar.bz2 in Linux

To install firefox-4.0.tar.bz2 on Linux, follow these steps: Download the firefox-4.0.tar.bz2 archive file to your system by using wget or another method. Extract the archive file: tar xvjf firefox-4.0.tar.bz2 Change into the extracted directory: cd firefox Run the following commands to install Firefox: ./configure make sudo make install You can now run Firefox by typing … Read more

How To Install Ports on FreeBSD 10/11/12/13/14

The “ports” system in FreeBSD is a collection of scripts and makefiles that automate the process of downloading, building, and installing third-party software. To install ports in FreeBSD, follow these steps: Make sure that you have the necessary dependencies installed, such as the GCC compiler and the make utility. Update the ports tree by running … Read more

Install Iptables Firewall in Redhat / CentOS Linux

To install iptables firewall on Redhat or CentOS Linux, you need to use the following steps: Install iptables package: $ sudo yum install iptables-services Enable iptables service at boot time: $ sudo systemctl enable iptables Start iptables service: $ sudo systemctl start iptables Configure iptables rules: The iptables firewall rules can be set using the … Read more

Apple OS X Lock Desktop / Screen

To lock the desktop or screen on an Apple OS X system, you can use the following steps: Go to the Apple menu in the upper left corner of the screen and select “Sleep.” To lock the screen immediately, press “Control + Shift + Power” button or “Control + Shift + Eject.” You can also … Read more