Technology Insights

Change Default Text Editor In BackTrack Linux To vi

Changing the default text editor to vi on Ubuntu is fairly easy however it may be tricky depending on how it has been set since there are numerous ways. In BackTrack Linux for instance the default editor is set using select-editor so if you follow another Ubuntu Linux howto it may tell you to modify the default editor using update-alternatives. Below I describe setting the default text editor using both of the mentioned methods and note a couple other locations where it can be set.

Technology Insights

Test NFS From OSX

When setting up a NFS server its nice to be able to test from your desktop to verify things are working properly. In the current scenario I setup NFS on a BackTrack Linux server and needed to test it quickly from OSX to make sure NFS mounts were advertising properly. Below are a couple quick commands to first display the available NFS mounts and second to mount the NFS drive on OSX to verify functionality.

Technology Insights

Setup dhcp3 Server To Listen On eth1

Earlier I was setting up a PXE boot server that was connected to two networks and wanted to hand out DHCP addresses only on the second interface which in this case was eth1. The primary interface on the server is eth0 however that Ethernet port is attached to a switch that already has a DHCP server connected to it so I needed to make sure that the DHCP server only replies to requests on eth1. Use the dhcpd.conf configuration option below to specify the Ethernet interface that dhcpd will listen for and reply to DHCP and/or BOOTP requests.

Technology Errors

invoke-rc.d: initscript nfs-kernel-server, action “start” failed

Earlier this morning I needed to run some tests against a NFS server running on BackTrack Linux version 5 release 3 and ran into some issues installing the nfs-kernel-server. It appeared as if things started to install properly but then the nfs-kernel-server did not start properly and ended up displaying a couple errors. Below I describe the error in more detail followed by the process I used to get the nfs-kernel-server installed properly on BT5.

Technology Errors

dhcp3-server: Depends: dhcp3-common (= 3.1.3-2ubuntu3.2) but 3.1.3-2ubuntu3.3 is to be installed

When attempting to install dhcp3-server on BackTrack Linux version 5 R3 you likely will run into a dependency error. This error was received on a brand new install of BT5r3 so the issue would be the same on any current install. Below I describe the error installing dhcp3-server on Backtrack in more detail as well as how to easily fix the problem. It should also be noted that this will likely fix other dependency issues you might have run into with a fresh install of BT5r3.