0% found this document useful (0 votes)
10 views

To See The Current (And Previous) Runlevel:: Managing Run Levels

This document provides instructions for configuring run levels, installing and configuring an FTP server, and installing Apache on a Linux system. It describes how to view the current run level, switch run levels, and change the default run level. It also explains how to install and configure the vsftpd FTP server to allow anonymous and authenticated user access, and how to install Apache and PHP to serve web pages.

Uploaded by

mansha99
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

To See The Current (And Previous) Runlevel:: Managing Run Levels

This document provides instructions for configuring run levels, installing and configuring an FTP server, and installing Apache on a Linux system. It describes how to view the current run level, switch run levels, and change the default run level. It also explains how to install and configure the vsftpd FTP server to allow anonymous and authenticated user access, and how to install Apache and PHP to serve web pages.

Uploaded by

mansha99
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Managing Run Levels To see the current (and previous) runlevel: runlevel To switch runlevels: sudo init $runlevel

For example, to reboot: sudo init 6

To change the default runlevel, use your favorite text sudo vim /etc/init/rc-sysinit.conf Change this line to whichever runlevel you want... env DEFAULT_RUNLEVEL=2 Then, at each boot, upstart will use that runlevel. Boot Loader Edit /boot/grub/grub.cfg.

FTP SERVER INSTALLATION sudo apt-get install vsftpd Anonymous FTP Configuration By default vsftpd is configured to only allow anonymous download. During installation a ftp user is created with a home directory of /home/ftp. This is the default FTP directory. If you wish to change this location, to /srv/ftp for example, simply create a directory in another location and change the ftpuser's home directory: sudo mkdir /srv/ftp sudo usermod -d /srv/ftp ftp After making the change restart vsftpd: sudo /etc/init.d/vsftpd restart

User Authenticated FTP Configuration To configure vsftpd to authenticate system users and allow them to upload files edit /etc/vsftpd.conf: local_enable=YES write_enable=YES Now when system users login to FTP they will start in their home directories where they can download, upload, create directories, etc. Similarly, by default, the anonymous users are not allowed to upload files to FTP server. To change this setting, you should uncomment the following line, and restart vsftpd: anon_upload_enable=YES

Apache Installation sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo /etc/init.d/apache2 restart Your web files will now be found in /var/www/ Your configuration files for apache are at /etc/apache2/

You might also like