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

Linux / Unix: Look Up IP Addresses

You can use the nslookup command in Linux/Unix to look up IP addresses. The nslookup command can be used to find the IP address of a domain name or the domain name of an IP address. For example, to look up the IP address of a domain name, run the following command: nslookup example.com This … Read more

How to Set Environment Variables in Linux

Environment variables are values that can affect the way running processes will behave on a computer. In Linux, you can set environment variables in several ways, including in the shell profile or startup script, or in the shell itself. Here are the steps to set an environment variable in the shell: Open a terminal window … Read more