Page 1 of 1

Ubuntu Install Assistance

Posted: 23 Aug 2013, 19:50
by LastMaster
I feel completely dense when it comes to setting up ERPXE. I feel I could successfully follow the videos that are available on youtube. But I want to set this up with Ubuntu 12.04 so that I could get a fog server running as well.

First things first, I want to take this one step at a time.

I feel as though the Ubuntu installation instructions aren't detailed enough.

TFTP

I know the TFTP server installed properly. But "chkconfig tftpd-hpa on" does not return a proper response. It gives me.

Code: Select all

/sbin/insserv: No such file or directory
If I run "start tftpd-hpa", it returns...

Code: Select all

start: Job is already running: tftpd-hpa
I then edited /etc/default/tftpd-hpa to say...

Code: Select all

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot/"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-m /tftpboot/er.remap -vvvvv -s"
HTTP Support

"sudo apt-get install apache2" completed successfully

"chkconfig apache2" on does not return anything

"ln -s /tftpboot/er/shares/http /var/www/er" completes successfully.

NFS Support

"apt-get install nfs-kernel-server" completed successfully

"chkconfig nfs-kernel-server on" does not return anything
"cat /tftpboot/doc/setup/exports > /etc/exports" completes succesfully

SAMBA

"sudo apt-get install samba" completed successfully.

However I cannot run "chkconfig samba on" it returns "samba: uknown service"

"cat /tftpboot/doc/setup/smb.conf > /etc/samba/smb.conf" completed successfully.

"smbpasswd -a erpxe" returns "Failed to add entry for user erpxe."

"smbpasswd -a root" completes successfully.

DHCP Configuration

I am also getting stuck here. I don't have enough networking experience to truly know how to set this up on my own. Our current DHCP server is a shitty Netgear modem/router combo. Would I have to have a DD-WRT device on our network doing the DHCP or maybe a Windows server running DHCP? What can I do with my current network configuration to get my ERPXE server running?

Any recommendations would be highly appreciated. I have an old Asus server blade running a P4, 2gb ddr2, and 2 WD 1TB Green drives in raid 1 at my disposal to setup any which way. I would like to get ERPXE at the very least operational. But FOG is a huge plus.

This is turning out to be a challenge for me. :oops:

Re: Ubuntu Install Assistance

Posted: 23 Aug 2013, 21:53
by RaveMaker
First of all you need a DHCP server with PXE capabilities or using Dnsmasq to add PXE options to your current router.
You can use DD-WRT or a Linux/Windows DHCP Server, they all support PXE.

As for ERPXE on Ubuntu installation I've updated the manual to use update-rc.d instead of chkconfig and updated a few commands:
http://erpxe.org/Ubuntu_installation_instructions

Re: Ubuntu Install Assistance

Posted: 26 Aug 2013, 18:15
by LastMaster
Could I install DNSMasq on my Ubuntu desktop install?

Re: Ubuntu Install Assistance

Posted: 26 Aug 2013, 18:26
by RaveMaker
Dnsmasq can be installed on any computer in the local network,
it supports Ubuntu and a variety of Linux Distros out-of-the-box.

https://help.ubuntu.com/community/Dnsmasq

Re: Ubuntu Install Assistance

Posted: 26 Aug 2013, 18:29
by LastMaster
Looks good, one last question, if i'm using dnsmasq, I'm assuming I would want to turn off the DHCP on the router itself correct?

Re: Ubuntu Install Assistance

Posted: 26 Aug 2013, 19:01
by RaveMaker
I would recommend using DHCPd - we have supplied a sample config file in ERPXE under:

Code: Select all

tftpboot/er/doc/setup/dhcpd
If you want to use your Router DHCP and add PXE settings then you can ADD Dnsmasq to your network.
You can also use Dnsmasq as your primary DHCP server - turning off the Router DHCP service.

Re: Ubuntu Install Assistance

Posted: 20 Sep 2013, 07:14
by guterkerl
Hi admin sorry to hijack this thread but it is related to Ubuntu installation

On the HTTPD install the second line notes

Code: Select all

cp /tftpboot/doc/setup/erpxe-httpd.conf /etc/apache2/conf.d/
I tried to download previous versions but I could not find the erpxe-httpd.conf file. Am I missing something?

Code: Select all

root@erpxe:~# ls tftpboot/doc/setup/
dhcpd.conf  exports  ifcfg-eth0  setlinks.sh  smb.conf  tftp
Also adding samba user erpxe has issues too. You have to add a local user first before adding the samba user

Code: Select all

sudo useradd erpxe --shell /bin/false

Re: Ubuntu Install Assistance

Posted: 20 Sep 2013, 18:51
by commguy
I ran into the same issue while working on something else. You can expect the change in the next release but here is the code admin gave me that works

Code: Select all

# place this file under "/etc/httpd/conf.d/"

<Directory "/tftpboot/er/shares/">
Options Indexes FollowSymLinks
</Directory>

AliasMatch (?i)^/er(.*) /tftpboot/er/shares$1
this is a replacement for the code

Code: Select all

    ln -s /tftpboot/er/shares /var/www/er 
either should work with Ubuntu

Re: Ubuntu Install Assistance

Posted: 26 Dec 2013, 22:36
by LastMaster
I ended up being able to do everything successfully i presume. I also ended up getting a DDWRT router. I get as far as it loading the command.

Loading 192.168.1.70:pxelinux.0 ...._ and it just stays loading there.

This is via a virtual box.

When I try an actual pc, it gives me a TFTP timeout.

I'm assuming that something with the TFTP configuration isn't setup properly.

Any ideas?

Re: Ubuntu Install Assistance

Posted: 03 Jan 2014, 09:00
by RaveMaker
Check the permissions of your tftpboot folder
How did you configure your DD-WRT router?