Greg Erskine wrote:
> Hi d6jg,
>
> I think you need to:
>
> 1. Edit /opt/eth0.sh to prevent resolv.conf getting overwritten. Comment
> out "echo nameserver 192.168.1.1 > /etc/resolv.conf"
>
>
> >
Code:
--------------------
> > #!/bin/sh
> # Generated by piCorePlayer
>
> echo "[ INFO ] Running $0..."
> NWOK=1
> until [ -d /sys/class/net/eth0 ]
> do
> if [ $((CNT++)) -gt 20 ]; then
> echo -n "${RED} No Ethernet Adapter Found! ${NORMAL}"
> NWOK=0
> break
> else
> echo-n "."
> sleep 0.5
> fi
> done
> if [ $NWOK -eq 1 ]; then
> ifconfig eth0 192.168.1.123 netmask 255.255.255.0 broadcast
192.168.1.255 up route add default gw 192.168.1.1
> echo nameserver 192.168.1.1 > /etc/resolv.conf
> /etc/init.d/settime.sh &
> fi
>
--------------------
> >
>
> 2. Edit /opt/.filetool.sh to backup /etc/resolv.conf. Add
> "etc/resolv.conf"
>
> >
Code:
--------------------
> > cat /opt/.filetool.lst
> opt
> home
> etc/passwd
> etc/shadow
> etc/group
> etc/gshadow
> etc/motd
> etc/modprobe.conf
> etc/asound.conf
> etc/sysconfig/wifi-wpadrv
> usr/local/etc/pointercal
> usr/local/etc/ssh/ssh_host_dsa_key
> usr/local/etc/ssh/ssh_host_dsa_key.pub
> usr/local/etc/ssh/ssh_host_ecdsa_key
> usr/local/etc/ssh/ssh_host_ecdsa_key.pub
> usr/local/etc/ssh/ssh_host_ed25519_key
> usr/local/etc/ssh/ssh_host_ed25519_key.pub
> usr/local/etc/ssh/ssh_host_rsa_key
> usr/local/etc/ssh/ssh_host_rsa_key.pub
> usr/local/etc/init.d/httpd
> usr/local/sbin/config.cfg
> usr/local/sbin/piversion.cfg
> usr/local/sbin/setup
> usr/local/sbin/pcp
> usr/local/sbin/pcp-load
> usr/local/etc/pcp/cards
> var/lib/alsa/asound.state
> var/spool/cron/crontabs
>
--------------------
> >
>
> 3. Edit /etc/resolv.conf
>
> 4. $ pcp bu
>
> The boot process is "roughly" shown [Main Page] > [Diagnostics] >
> [Boot].
>
> BTW: I recommend setting static IP via your DHCP server (usually
> router). Map MAC address to IP address.
>
> regards
> Greg
Hi Greg
Just an update on this situation as the bizarre nature of the router has
uncovered what I think may be a bug in pCp. Well not a bug but something
that could be easily resolved.
As I said the router seemed to be incapable of providing a reserved IP
address (not actually true it transpires but that is irrelevant).
In your script for static IP you assume that the gateway is a nameserver
relay and here the router most definitely doesn't do that. So we have an
invalid nameserver unless we do the hack mentioned above.
Having no nameserver at boot causes a couple of issues - obviously the
Pi can't resolve the location of mysqueezebox.com etc but more crucially
it can't use ntp to get a correct time.
I suggest that a very quick fix in later releases of pCp would be to
substitute 8.8.8.8 for the nameserver gateway address in your static IP
script.
On an aside this is the first domestic router I have ever come across
that doesn't do DNS relay. I have been working in this field for 17
years. A Ubee DVW326. Having said that no doubt someone will tell me it
does do DNS relay but I can't see where. It gives the ISP DNS servers
directly to DHCP clients.
*Vortexbox LMS 7.9 music on QNAP TS419p via NFS* iThingys/iPeng/Tablets
*Living Room* - SB3 -> Onkyo TS606 - > Celestion Ditton F20s - Zone 2 ->
Sony TA FE 320 -> Sennheiser RS 130 & B&W P7
*Office* - RPi -> Sony TA FE320 -> Celestion F10s / SB3 -> Onkyo CRN 755
-> Wharfedale Modus Cubes
*Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - SB Touch -> Topping TP21 -> AKG Headphones
*Bedroom (TV)* - Amazon Fire TV (SB Player) -> Topping TP20 ->
Wharfedale Modus Cubes
------------------------------------------------------------------------
d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=106755
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix