Empty and not readable /etc/resolv.conf file

Asmo Koskinen asmo.koskinen at arkki.info
Mon Apr 6 15:25:12 BST 2009


David Van Assche kirjoitti:

> So take that out of ltsp-client-setup, and rebuild

David, I did that - no luck. I'm sorry.

1. I removed few bits in /etc/resolv.conf

admin-ltsp5 at ubuntu-ltsp5:~$ cat /opt/ltsp/i386/etc/default/ltsp-client-setup
[--]
# tmpfs/bind files that mounted on top of other files
bindfiles="/etc/network/interfaces /etc/hostname /etc/hosts 
/etc/syslog.conf /etc/fstab"

2. I did rebuild image.

3. I do not have anything in lts.conf, it is empty.

4. I can use FF in thin client, but not Konqueror as a localapps (F2 - 
ltsp-localapps konqueror).

5. I can ping ip numbers in chroot.

root at ltsp200:~# ping 193.166.3.2
PING 193.166.3.2 (193.166.3.2) 56(84) bytes of data.
64 bytes from 193.166.3.2: icmp_seq=1 ttl=241 time=23.9 ms

root at ltsp200:~# ping ftp.funet.fi
ping: unknown host ftp.funet.fi

root at ltsp200:~# ls -al /etc/resolv.conf
---------- 1 root root 0 2002-01-08 22:57 /etc/resolv.conf

6. But I have to touch and change empty /etc/resolv.conf in chroot.

root at ltsp200:~# chmod 755 /etc/resolv.conf
root at ltsp200:~# vi /etc/resolv.conf
root at ltsp200:~# ls -al /etc/resolv.conf
-rwxr-xr-x 1 root root 24 2002-01-08 23:10 /etc/resolv.conf
root at ltsp200:~# cat /etc/resolv.conf
nameserver 192.168.1.1

root at ltsp200:~#

7. Now I can ping with names in chroot.

root at ltsp200:~# ls -al /etc/resolv.conf
-rwxr-xr-x 1 root root 24 2002-01-08 23:10 /etc/resolv.conf
root at ltsp200:~# cat /etc/resolv.conf
nameserver 192.168.1.1

root at ltsp200:~# ping ftp.funet.fi
PING ftp.funet.fi (193.166.3.2) 56(84) bytes of data.
64 bytes from ftp.funet.fi (193.166.3.2): icmp_seq=1 ttl=241 time=23.8 ms
64 bytes from ftp.funet.fi (193.166.3.2): icmp_seq=2 ttl=241 time=23.7 ms
^C
--- ftp.funet.fi ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 23.771/23.816/23.861/0.045 ms
root at ltsp200:~#

8. And also Konqueror works in thin client.

root at ltsp200:~# ps ax | grep konqueror
  4640 tty7     S      0:00 su - user-ltsp5 -c LANG= DISPLAY=:7 
XAUTHORITY=/var/run/ldm-xauth-hfIcShqUh  konqueror

admin-ltsp5 at ubuntu-ltsp5:~$ ps ax | grep konqueror
  4570 pts/0    S+     0:00 grep konqueror

----

Uhh...I do not get how I keep it in that way permanently... I try next 
with ogra's way...

Best Reagrds Asmo Koskinen.



More information about the edubuntu-users mailing list