Posts

NFS-network file Sharing service(server)

This is used for file sharing in UNIX networks. A windows user will not be able to access these files as these shares will be purely for UNIX environment. Package name:     nfs-utils Service name:       nfs Port number:         There is not specific for this server, it depends on service portmap. portmap requires 111 port.                 service portmap status                 netstat atnp |grep 111 Path:            /etc/export Log file:        /var/logs/messages         To share some file/directory,  just add the path for that file in the /etc/export in this format sharename  space    ID/IP     nospace    permissions sharename *ID/IP-permissions /crackers *(ro,sync) it will share the /crackers with the permissions(readonly,sync)     where sync means if a new file is copied inside the /crackers  it will be shown to the users after the file is completely copied. /crackers *(rw,async) it will share the /crackers with the permissions(readwrite,async)     where async means if a new

Using a Self signed Certificate to Run Apache2 under SSL

The instructions will help you to generate a self signed certificate with to run Apache2 under SSL. Using a Commercial certificate is always a better idea but in Dev. env. or some sort of testing we can use Self Signed certificate. First of All enable SSL for Apache #a2enmod ssl Now create a directory where we will store our keys/(pem,key) for our self signed certificate #mkdir /etc/apache2/certificate Now generate the keys for our self signed certificate, you will be asked about the information which you have to provide #openssl req -new -x509 -days 1095 -nodes -out /etc/apache2/certificate/apache.pem -keyout /etc/apache2/certificate/apache.key Generating a 1024 bit RSA private key ..............++++++ .......................++++++ writing new private key to '/etc/apache2/certificate/apache.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a D

SSL received a record that exceeded the maximum permissible length. (Error code: ssl_error_rx_record_too_long)

This issue usually occures when the link is not created, link can be created using the below command #ln -s /etc/apache2/sites-available/default-ssl /etc/apache2/sites-enabled/000-default-ssl 

Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0)

The error occurs usually when 1.When certificate file is not present at the said location 2.When SSL configuration is correct If both of the above points are not creating an issue 3.Then you need to add/update following /etc/apache2/ports.conf from(without quotes) "Listen 443" to "Listen 443 http"

Network configurations with minimal installation of Linux

Minimal installation of a linux distro in our case CentOS/RHEL/Scientific linux. is always a better idea as less packages means you are less prone to attacks & less machine overhead as well. But for that purpose you have to modify the network setting after the installation is done. For DHCP Open the file /etc/sysconfig/network-scripts/ifcfg-eth0 And add/modify the following lines as per your network config. BOOTPROTO="dhcp" ONBOOT="yes" After modifying ifcfg_eth0 will look like this. DEVICE="eth0" HWADDR="08:00:27:DB:77:F4" NM_CONTROLLED="yes" ONBOOT="yes" BOOTPROTO="dhcp" For static  Open the file /etc/sysconfig/network-scripts/ifcfg-eth0 And add/modify the following lines as per your network config. IPADDR=10.11.16.101 BOOTPROTO=none NETMASK=255.255.255.0 GATEWAY=10.11.16.1 DNS1=10.11.16.2 DNS2=10.11.16.3 USERCTL=yes After modifying ifcfg_eth0 will look like this. DEVICE="eth0" HW

Resolving Dual Display problem with ATI Cards in ubuntu

Open AMD Catalyst Control Center using this command $sudo amdcccle Go to Display manager > There you can see your monitors Click on the monitor you wish to setup dual display to Go to Multiple Screen Tab Change the display mode to your choice Apply this and restart