Showing posts with label Troubleshooting. Show all posts
Showing posts with label Troubleshooting. Show all posts

12.26.2010

How to install Nginx through source?

In our last session, we installed Nginx through yum utility which was very easy method. But generally it is recommended to install Nginx through source as it can becomes easy to tweak as per the project requirement. Installing Nginx through source tends to provide the user to dig deep into the server and customize it as per its hardware compatibility and resource management.

Let's compile the source from scratch and how really it goes.

Create a directory called "server" under /root. Download the nginx tar from http://sysoev.ru/nginx and untar it as shown:



Lets start compiling the source now.



If you encountered this error, then follow these steps:

#yum install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev

Start to compile it once again

$sudo make clean
$sudo ./configure --with-http_ssl_module
$sudo make
$sudo make install

Here it goes your Nginx server is ready.

12.15.2010

How to enable SSH for Root User?

SSH is more secure than telnet. Telnet which transfer the date through port 23 flows the password in unencrypted form which is not secure. SSH is a secure shell which works on port 22 and does encrypted data transfer.

For security reasons, the new upcoming  Linux distributions doesn't enable the SSH login for root by default.

To enable the SSH login for root, follow the workaround:

1.  Open the file /etc/sshd/sshd_config with your favourite editor. Search for the line PermitRootLogin and uncomment it:

Change


#PermitRootLogin no

to


PermitRootLogin yes

Save the file through :wq

2. Restart the ssh service through:

/etc/init.d/sshd restart


or


service sshd restart

3. Try to SSH for root user through putty and it should work.

12.06.2010

How to Install Virtualbox 3.2.1 on Fedora 14?

Virtualbox is a powerful x86 and x86_64 virtualization product both for corporates enterprise and home users.I am a LFY subscriber and generally try out Open Source distributions which comes with the Linux For You Magazine every month. This month I decided to give Fedora 14 Final Release a try.I downloaded a 675MB Fedora 14 from http://download.fedoraproject.org/pub/fedora/linux/releases/14/Live/i686/Fedora-14-i686-Live-Desktop.iso and installed it without any issue.As I keep testing the upcoming linux distributions I do need a virtualbox on top of my Fedora box.
Finally, I decided to install Virtualbox and this is how I made it happen:

I followed these steps to finally have my Virtualbox running on Fedora:

1. Install gcc and dkms modules on Fedora 14 through yum utility:

Even after installing gcc and dkms packages if Fedora 14 throws errors like shown below, it means you are missing kernel-* packages.



Just use yum utility to install rest of kernel-* packages.If no issue occur, kindly proceed to Step 2.


2. Download Virtualbox 3.2.1 from http://www.virtualbox.org/wiki/Linux_Downloads by selecting the right package as per your architecture. In my case, I am choosing x86 arch.



3. After successful download, Click on System > Oracle VM Virtualbox. This will open the following screen:

4.Follow up the further steps as per your resources available.










5. Insert the Fedora 14 CD/DVD after right-click on VM > Settings > IDE-CDROM and this way the installation starts.Once the installation completes, Click on Start and your OS is ready to play with.