Skip to content

Instantly share code, notes, and snippets.

@deshraj
Last active October 8, 2015 11:04
Show Gist options
  • Select an option

  • Save deshraj/96fb8ce0344db5c15a86 to your computer and use it in GitHub Desktop.

Select an option

Save deshraj/96fb8ce0344db5c15a86 to your computer and use it in GitHub Desktop.

NPTEL Setup on Server

Prerequisites for installing NPTEL on a server:

  1. Ubuntu 14.10 OS Environment
  2. Apache or any other web server installed on that system

Steps for setting up on the server:

  1. First we need to make sure that we are working with the root user otherwise there are a lot of permission issues that arises when we start working.
Open terminal and run the following commands in it: 
		
	 sudo passwd root
	
It will ask for creating a new password for the root user. Just create a new password and enter it again. 

	sudo passwd -u root

This command should show the message "passwd: password expiry information changed"
  1. Update lightdm using the following command:

    sudo apt-get install lightdm --upgrade

  2. Edit the file /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf usign the following command:

    sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

Add the following line in the file opened at the bottom: 

	greeter-show-manual-login=true
  1. Restart the system.

  2. Login with root user.

  3. Open terminal again and run the following commands:

    mkdir /media/root && mount /dev/sdb1 /media/root/ && rm /var/www/html/index.html

    cp -r /media/root/NPTEL/Instructions\ to\ access\ the\ courses\ in\ Local\ server/NPTEL\ Index/* /var/www/html/

    ln -s /media/root/NPTEL/NPTEL\ -Phase2_Video/* /var/www/html/

  4. Ok all done. Go ahead and check the browser at http://localhost .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment