Greatalastor3
Posts: 1
Joined: Wed Jan 15, 2014 5:17 am

sudo nano /etc/dhcp/dhcpd.conf brings up empty file

Wed Jan 15, 2014 5:29 am

sudo nano /etc/dhcp/dhcpd.conf brings up empty file with no script

im attempting to set up a tor router by following these 2 tutorials but with little success
http://makezine.com/projects/make-36-bo ... -onion-pi/
http://learn.adafruit.com/downloads/pdf ... -point.pdf

i dont know if its also related to this but another problem im having is that each time i power up the pi it boots to setup config and i end having to enter my settings each start up.

KStatefan
Posts: 6
Joined: Wed Jan 27, 2016 12:51 am

Re: sudo nano /etc/dhcp/dhcpd.conf brings up empty file

Fri Feb 05, 2016 12:37 am

I am having the same problem.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: sudo nano /etc/dhcp/dhcpd.conf brings up empty file

Fri Feb 05, 2016 10:45 am

If it's Raspbian Jessie that you're running the file is /etc/dhcpcd.conf it's not in the /etc/dhcp sub-directory.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

KStatefan
Posts: 6
Joined: Wed Jan 27, 2016 12:51 am

Re: sudo nano /etc/dhcp/dhcpd.conf brings up empty file

Fri Feb 05, 2016 2:34 pm

I am using Raspbian Wheezy May 2015 version

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: sudo nano /etc/dhcp/dhcpd.conf brings up empty file

Fri Feb 05, 2016 3:49 pm

KStatefan wrote:I am using Raspbian Wheezy May 2015 version
Then either upgrade to Jessie or do it the old way. Wheezy has static addresses in /etc/network/interfaces and still uses isc-dhcp-client rather than dhcpcd.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

ripat
Posts: 191
Joined: Tue Jul 31, 2012 11:51 am
Location: Belgium

Re: sudo nano /etc/dhcp/dhcpd.conf brings up empty file

Fri Feb 05, 2016 8:30 pm

If it is a router that you want to setup, may be you are after a dhcp *server* and not the dhcpcd *client* daemon. If that is the case, install either isc-dhcp-server or dnsmasq. For the first one, after installing it, you should have a default configuration in the /etc/dhcp/dhcpd.conf file.
Using Linux command line usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.


ripat
Posts: 191
Joined: Tue Jul 31, 2012 11:51 am
Location: Belgium

Re: sudo nano /etc/dhcp/dhcpd.conf brings up empty file

Sat Feb 06, 2016 11:16 am

Is isc-dhcp-server correctly installed?

Code: Select all

$ dpkg -l isc-dhcp-server
If properly installed, you should have a default /etc/dhcp/dhcpd.conf file which is the configuration file for the -isc-dhcp-server package.

What settings do you need to enter after boot?
Using Linux command line usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Return to “Troubleshooting”