linux
How to find your netmask – FreeBSD
It is important to note that in FreeBSD (unlike linux) you will use the correct netmask for all IPs (even aliases) but with FreeBSD you will only need this once. After you have added the first IP the rest of the IPS (aliases) will use netmask 255.255.255.255. The following will guide you to how to [...]
How to make ASP scripts to work on Linux platform?
Apache::ASP provides an Active Server Pages port to the Apache Web Server with Perl scripting only, and enables developing of dynamic web applications with session management and embedded Perl code. There are also many powerful extensions, including XML taglibs, XSLT rendering, and new events not originally part of the ASP API.You can place your asp [...]
Where should I put my CGI scripts on Linux plans?
You should upload your CGI scripts to cgi-bin folder that is located under htdocs.Files that are located in cgi-bin folder are recognized by web-server as CGI programs and run from the shell. To make CGI scripts run at your account you should do the following: Set the path to interpreter at your script at the first line (i.e. [...]
How to access iPhones remotely using OpenSSH
A jail broken Apple iPhone with OpenSSH installed is accessible over the internet using ssh and the default root password “alpine“. You can use a short script to find IP addresses that have port 22 open and try to login. You can run this script from your Mac or any Linux machine. #!/bin/shfourth=1 third=0 mkdir [...]
How to determine the version of your kernel in Linux
Kernel tuning on a production server shouldn’t be taken lightly, because the wrong parameters could cause your system to fail to boot, software to malfunction, or hardware peripherals to become unavailable. Always practice on a test system and keep a backup copy of your old kernel. Whenever possible, hire a consultant with kernel experience to help, and use this chapter and other references as a guide to prepare you for what to expect.
How to Install Plesk on Linux and FreeBSD Systems
The Parallels Plesk Control Panel software package is a commercial web hosting automation program. Originally released under the U.S. company Plesk Inc. and designed in Novosibirsk, Russia, Plesk became an SWsoft product when SWsoft acquired Plesk Inc. in July 2003. If you have one or few servers to which you wish to install Plesk, you [...]
How to configure a group password in Linux
Have you ever heard of (or used) a group password in Linux? For me this strange concept was new, but here’s what you can use it for. A group password in Linux allows a user to temporarily (in a subshell) gain extra permissions of a group, after successfully entering the group password. To set a [...]
How to Adjust Kernel Parameters
Unlike many Linux applications that need to be restarted before their configuration parameters are read, many of the Linux kernel’s parameters can be instantaneously activated and deactivated. The Linux kernel stores many of its dynamic parameters in the /proc filesystem, which resides on a virtual RAM disk in memory for maximum performance. Parameters are generally [...]
How to get Openswan Started in Linux
You can download the Openswan RPM at www.openswan.org . The site has good instructions on how to install the product on Fedora and other versions of Linux. Be aware that to download the RPM version of Openswan you must have the ipsec-tools RPM package installed on your system You can configure Openswan to start at [...]
How to set the Hostname in Linux
Most, if not all, network applications rely on you to set the local host’s name to some reasonable value. This setting is usually made during the boot procedure by executing the hostname command. To set the hostname to name, enter: # hostname name  It is common practice to use the unqualified hostname without specifying the domain name. [...]
How to Use ifconfig in Linux to configure your network
Entering ifconfig at the command line interface without specifying any options will provide a fairly complete description of the current state of all active network interfaces. For instance, on a machine with hostname erebus, entering ifconfig at the command line might return the following output: eth0     Link encap:Ethernet HWaddr 00:C0:F0:77:FD:AD           inet addr:192.168.2.103 Bcast:192.168.2.255 Mask:255.255.255.0          inet6 addr: fe80::2c0:f0ff:fe77:fdad/64 [...]
How to Install VNC on Centos
VNC is used to display an X windows session running on another computer. Unlike a remote X connection, the xserver is running on the remote computer, not on your local workstation. Your workstation ( Linux or Windows ) is only displaying a copy of the display ( real or virtual ) that is running on [...]
How to use Ifconfig Command in Linux
Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed. To get a quick look at all the network cards on your system that are ‘up’ (meaning they are [...]
