Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
Upgrading Red Hat Enterprise Linux From Version 6.2 to 6.3
To upgrade Red Hat Enterprise Linux 6.2 to version 6.3, you will need to use the Red Hat Network (RHN) or a local repository. Here's a general overview of the steps you'll need to follow:rn rn Backup your important data: Before starting the upgrade process, make sure to backup all important data, su
HowTo: Linux Convert .OGV Format To .AVI Video Format
To convert an .ogv video file to an .avi video file in Linux, you can use the ffmpeg command-line tool. Here's an example of how to perform the conversion:rn rn rn ffmpeg -i input .ogv -c : v mpeg4 -b : v 1000 k -c : a libmp3lame -b : a 128 k output .avi rn rn rnIn this example, -i input.ogv specifi
PHP: GeSHi Syntax Highlighter Enable / Disable Line Numbers
To enable or disable line numbers in GeSHi Syntax Highlighter, you can use the line_numbers property in the GeSHi object. Here's an example of how to enable line numbers in PHP:rn rn rn <?php rn include 'geshi.php' ; $source = <<< 'CODE' rn // Your code here rnCODE; $geshi = new
Unix / Linux Shell: Parse Text CVS File Separator By Field
To parse a text CSV file in Unix/Linux shell, you can use the awk command. Here’s an example that separates the fields by comma (‘,’) and prints the values of each field: n n n awk - F ',' '{ print $1 , $2 , $3 , $4 }' input.csv n n n In this example, -F',' sets the field separator
Linux / Unix: Find Hidden Directories, Files and Folders
In Linux or Unix, you can find hidden directories, files, and folders by using the ls command with the -a option, which shows all files, including hidden ones. The hidden files and directories are typically prefixed with a dot ( . ), so you can search for them using the following command:rn rn rn ls
RHEL / Centos Linux Disable Firewall Command
To disable the firewall in Red Hat Enterprise Linux (RHEL) or CentOS, you can use the systemctl command. Here's the basic syntax:rn rn rn systemctl disable firewalldrn rn rnThis will disable the firewall service, so it won't start when the system reboots. If you also want to stop the firewall servic
Nginx proxy_redirect: Change response-header Location and Refresh in the response of the server
In Nginx, you can use the proxy_redirect directive to change the Location and Refresh headers in the response from a server. Here is an example configuration:rn rn rn server {rn listen 80 ;rn server_name example.com; location / {rn proxy_pass http: // backend_server;rn proxy_redirect default;
Bash Shell Script To Test For Empty Folder
You can use the following bash shell script to test for an empty folder:rn rn rn #!/bin/bash folder= $1 if rn then rn if rn then rn echo "The folder $folder is empty." rn else rn echo "The folder $folder is not empty." rn fi rn else rn echo "The folder $folder does not exist." rn fi rn rn r
How To Reverse a String In Unix / Linux Shell?
There are several ways to reverse a string in Unix/Linux shell:rn rn Using rev command: The rev command is a utility that reverses the order of characters in a text file or standard input. To reverse a string, you can use the following syntax: rn rn rn rn echo "string_to_reverse" | revrn rn rnFor ex
Linux / Unix curl Command Download File Example
The curl command is a powerful tool for transferring data from or to a server over various protocols, including HTTP, HTTPS, FTP, and many others. To download a file from a remote server using curl , you can use the following syntax: n n n curl -o n n n For example, to download a file named example.
Cinelerra: MWindow::init_shm: /proc/sys/kernel/shmmax is 0x1000000 It should be at least 0x7ffffff
The error message "Cinelerra: MWindow::init_shm: /proc/sys/kernel/shmmax is 0x1000000 It should be at least 0x7ffffff" is related to the shared memory setting on your Linux system. Cinelerra, a video editing software, uses shared memory for inter-process communication and the error message indicates
FreeBSD Display Laptop Battery Charge Status
To display the laptop battery charge status on a FreeBSD system, you can use the acpiconf command. The acpiconf command is part of the acpi package, which provides information about the battery, AC adapter, and thermal status of a laptop. n Here’s how to display the laptop battery charge statu
FreeBSD: Wake Up Servers Using Wake-on-LAN ( WOL ) Command
Wake-on-LAN (WOL) is a feature that allows you to wake up a computer remotely over a network. To use WOL on a FreeBSD system, you need to use a tool that can send a magic packet to the target computer. A magic packet is a broadcast message that contains the target computer's MAC address. Here's h
FreeBSD: Install GIMP Image Retouching And Editing Application
To install GIMP on a FreeBSD system, you can use the pkg package manager or the ports system. Here's how to install GIMP using pkg :rn rn Update the package repository: To ensure that you have the latest packages available, run the following command: rn rn rn rn sudo pkg update rn rn rn rn Instal
FreeBSD PPTP Client: Install and Create a VPN
To set up a PPTP VPN client on a FreeBSD system, you need to install the ppp package and configure it to connect to the PPTP server. Here's how to install and create a PPTP VPN on a FreeBSD system:rn rn Install the ppp package: To install the ppp package on FreeBSD, use the following command: rn
Linux: Mount FreeBSD UFS 2 File System Command
To mount a FreeBSD UFS 2 file system in Linux, you need to install the ufs module, which provides support for UFS file systems. Here's how to mount a FreeBSD UFS 2 file system in Linux:rn rn Install the ufs module: To install the ufs module in Linux, run the following command: rn rn rn rn sudo mo
Linux Gnome: gconf-sanity-check-2 Exited With Status 256 Error and Solution
The "gconf-sanity-check-2 exited with status 256" error typically occurs when there is a problem with the Gnome configuration. This error can prevent Gnome applications, including the Gnome desktop, from starting properly. To resolve the "gconf-sanity-check-2 exited with status 256" error, follow
HowTo: Install firefox-14.0.1.tar.bz2 in Linux
To install the Firefox 14.0.1 version in Linux using the firefox-14.0.1.tar.bz2 archive, follow these steps:rn rn Download the archive: You can download the firefox-14.0.1.tar.bz2 archive from the official Mozilla Firefox website. rn Extract the archive: Once you have downloaded the archive, extract
Debian / Ubuntu Linux: HowTo Download A Git Repository
To download a Git repository on Debian or Ubuntu Linux, follow these steps:rn rn Install Git: If you don't have Git installed on your system, install it using the following command: rn rn rn rn sudo apt - get update rnsudo apt - get install gitrn rn rn rn Clone the repository: To download the Git re
PHP: Require_once(): Unable To Allocate Memory For Pool Error and Solution
The "Unable to allocate memory for pool" error message in PHP is usually caused by a shortage of memory in the system. The require_once() function is trying to load a PHP file, but the system doesn't have enough memory to do so. Here are some solutions to fix this issue:rn rn Increase PHP's memor
2,685 guides published.
