BackTrack comes with several network services, which may be useful in various situations and are disabled by default. In this recipe, we will cover the steps to set up and start each service using various methods.
Getting ready A connection to the network with a valid IP address is needed in order to continue.
How to do it... Let's begin the process of starting our default service:
1. Start the Apache web server: service apache2 start We can verify the server is running by browsing to the localhost address.
2. To start the SSH service, SSH keys need to be generated for the first time: sshd-generate
3. Start the Secure Shell server: service ssh start
4. To verify the server is up and listening, use the netstat command: netstat -tpan | grep 22
5. Start the FTP server: service pure-ftpd start
Up and Running with BackTrack
22
6. To verify the FTP server, use the following command: netstat -ant | grep 21
You can also use the ps-ef | grep 21 command.
7. To stop a service, just issue the following command: service <servicename> stop Here, <servicename> stands for the network service we want to stop. For example:
service apache2 stop
8. To enable a service at boot time, use the following command:
update-rc.d –f <servicename> defaults Here, <servicename> stands for the network service we want at boot time. For example:
update-rc.d –f ssh defaults
You can also start/stop services from the BackTrack Start menu by selecting Backtrack | Services from the Start menu.
Getting ready A connection to the network with a valid IP address is needed in order to continue.
How to do it... Let's begin the process of starting our default service:
1. Start the Apache web server: service apache2 start We can verify the server is running by browsing to the localhost address.
2. To start the SSH service, SSH keys need to be generated for the first time: sshd-generate
3. Start the Secure Shell server: service ssh start
4. To verify the server is up and listening, use the netstat command: netstat -tpan | grep 22
5. Start the FTP server: service pure-ftpd start
Up and Running with BackTrack
22
6. To verify the FTP server, use the following command: netstat -ant | grep 21
You can also use the ps-ef | grep 21 command.
7. To stop a service, just issue the following command: service <servicename> stop Here, <servicename> stands for the network service we want to stop. For example:
service apache2 stop
8. To enable a service at boot time, use the following command:
update-rc.d –f <servicename> defaults Here, <servicename> stands for the network service we want at boot time. For example:
update-rc.d –f ssh defaults
You can also start/stop services from the BackTrack Start menu by selecting Backtrack | Services from the Start menu.
Your business requires all systems to function, all the time. From the secretary's PC responsible for setting up the next meeting, to your SQL servers providing critical patient data to Doctors, before, during, and after surgery. We've tackled all facets of network and systems design, and have the track record to provide you our award winning services, and responses in minutes, not hours or days.
ReplyDeleteOrlando IT Support