View Full Version : Problem with The Perfect Setup for Ubuntu 7.04
rdbrown
1st May 2007, 21:27
Falko, I'm having a repeatable problem when installing 7.04 server using your guidelines.
Quickly, it goes like this:
I perform the installation
the computer reboots
sudo passwd root
su
apt-get install ssh openssh-server
vi /etc/network/interfaces
/etc/init.d/networking restart
vi /etc/hosts
echo server1.example.com >/etc/hostname
shutdown -r now
The computer reboots and gets to Running local boot scripts
(/etc/rc.local) [OK]
After which it hangs and goes no further.
It's done this three times now, and I never saw this happen with earlier versions of server. [in fact I just installed server 6.1 on this machine as a test and it performed as expected - rb]
Any ideas at all what could be going on?
Did the system reboot before you changed /etc/network/interfaces? What did you put into that file?
rdbrown
2nd May 2007, 17:06
Installation proceeded exactly as described. The reboot prior to changing interfaces was at the end of section 3, just prior to login.
/etc/network/interfaces was made to look exactly like your example, with the following exceptions:
address 10.0.0.5
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.254
Of course, in the echo command at the end of the procedure I used my own information
Can you post your /etc/network/interfaces and wrap it in CODE tags?
rdbrown
3rd May 2007, 17:28
I didn't want to type it all in... :mad:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.0.5
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.254
I didn't want to type it all in... :mad: Why don'T you just copy & paste (e.g. with an SSH client such as Putty)?
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.0.5
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.254This must look like this (the leading spaces are missing in your file!):
auto eth0
iface eth0 inet static
address 10.0.0.5
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.254
rdbrown
4th May 2007, 23:46
I indented the lines with tabs, Falko. Are those supposed to be spaces, instead?
...R
Tabs should work as well...
rdbrown
5th May 2007, 22:27
Well then, are there any other ideas why it won't work?
Can you compare your configuration again with the one from the tutorial? Maybe you made a typo somewhere.
caspert_ghost
15th May 2007, 10:10
Hello. I cant even get out of the edit screen let alone know if it is working.
How do you put in the space/tabs?? I use tab but all I get is a "beep" sound
pacman40
15th May 2007, 18:03
When i try to go in and change my IP information to create a static IP all I get is
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
~
~
~
~
~
~
And it wont let me go in and change the ~. Is there something I'm missing here?
Thanks
rdbrown
15th May 2007, 18:54
If you're using VI for your editor, there are keypresses you need to know. Here is a reference for VI...
http://www.rru.com/~meo/useful/vi/vi.rm.html
or
http://www.unix-manuals.com/refs/vi-ref/vi-ref.htm
...and a much longer manual here:
http://www.cisco.com/univercd/cc/td/doc/product/atm/l2020/l2020r21/clicard/npos/viedit.htm
Hope this helps.
rdbrown
15th May 2007, 18:59
Can you compare your configuration again ... Maybe you made a typo somewhere.
There were no typos, and using the same info in the Ubuntu server 6.1 installation worked fine, so I'm lead to the conclusion that something is different in this latest release.
pacman40
15th May 2007, 19:21
If you're using VI for your editor, there are keypresses you need to know. Here is a reference for VI...
http://www.rru.com/~meo/useful/vi/vi.rm.html
or
http://www.unix-manuals.com/refs/vi-ref/vi-ref.htm
...and a much longer manual here:
http://www.cisco.com/univercd/cc/td/doc/product/atm/l2020/l2020r21/clicard/npos/viedit.htm
Hope this helps.
Hey Rdbrown,
I dont know if this post was directed towards me, but when I look at the manual the large one from cisco says that a ~ is an indicator that those lines are not part of the file. If I went into insert mode, would I be able to edit my address? Or should the IP's already come up?
rdbrown
15th May 2007, 19:36
the large one from cisco says that a ~ is an indicator that those lines are not part of the file.
That just means, for example, that if you were to open a 5 line document and VI has 20 lines on the screen to display text then you would see 15 lines of ~ because there's nothing more in your document to show. Does that make sense?
pacman40
15th May 2007, 19:43
That just means, for example, that if you were to open a 5 line document and VI has 20 lines on the screen to display text then you would see 15 lines of ~ because there's nothing more in your document to show. Does that make sense?
Unfortunantly yeah it does, is there anything that I might have done wrong that would not give me:
address 10.0.0.5
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.254
With my own numbers in it? I am not seeing any of the address, netmask, network.. fields. But when i run
man interfaces
there are all those fields listed out in my manual...
rdbrown
15th May 2007, 19:51
Unfortunantly yeah it does, is there anything that I might have done wrong that would not give me:
That's what confuses me about all this. I simply edited /etc/network/interfaces in VI and substituted my data in the places given, but it works fine on my 6.1 installation and breaks under version 7.
pacman40
15th May 2007, 20:05
That's what confuses me about all this. I simply edited /etc/network/interfaces in VI and substituted my data in the places given, but it works fine on my 6.1 installation and breaks under version 7.
I might just go with the older version to atleast get my server up and running, is it hard to upgrade from 6 to 7? Or is it a complete re-install with a harddrive swipe?
rdbrown
15th May 2007, 20:12
I might just go with the older version to atleast get my server up and running, is it hard to upgrade from 6 to 7? Or is it a complete re-install with a harddrive swipe?
I'm installing ver 6 because I need to be productive. I was hoping the solution to this issue would be easy, but apparently not.
I tried google on "upgrade Ubuntu" and found quite a few entries on the subject of upgrading 6 to 7, so you might start there. It looks complicated, but not overly difficult.
Try this link:
http://www.ubuntu.com/getubuntu/upgrading
pacman40
15th May 2007, 20:15
I'm installing ver 6 because I need to be productive. I was hoping the solution to this issue would be easy, but apparently not.
I tried google on "upgrade Ubuntu" and found quite a few entries on the subject of upgrading 6 to 7, so you might start there. It looks complicated, but not overly difficult.
Try this link:
http://www.ubuntu.com/getubuntu/upgrading
Yeah, I'm in the same boat. I have a buddy breathing down my neck to get this server up, and I figure that if 6 goes smoothly, I can spend some time researching how to upgrade to 7. I just need to get this server up.
rdbrown
15th May 2007, 20:26
I just need to get this server up.
Then I'd recommend installing 6.1 now, and worry about 7.04 later.
In the mean time... Falko -- do you have any idea why the 7.04 installation breaks on this point? We need your wisdom.
caspert_ghost
16th May 2007, 13:52
When i try to go in and change my IP information to create a static IP all I get is
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
~
~
~
~
~
~
And it wont let me go in and change the ~. Is there something I'm missing here?
Thanks
I found when I get in the VI go to the last line (or the line you want to change) and hit "Insert" to add a line or "Insert" "Enter" to create a new line.
falko
16th May 2007, 16:44
In the mean time... Falko -- do you have any idea why the 7.04 installation breaks on this point? We need your wisdom.
At which point exactly? The network settings? What's the output of cat /etc/network/interfaces?
gobetno
18th July 2007, 20:23
That is interesting. My installation hangs also just after it begins running the install scripts. However, when I hit enter I get the login in prompt.
I also had problems installing the apps (kernel headers) but I believe that there was a resolution in the forum for this.
Now, I get to chrooting Bind, and after completing that portion of the tutorial, I go to restart Bind and it fails.
Anyone .. have any ideas? I did notice that when restarting bind it is referred to as bind9. However, when I look back at the part of the tutorial, it is referenced only as "bind" and not bind9. Can this be the problem as to why bind will not restart?
falko
19th July 2007, 15:57
Now, I get to chrooting Bind, and after completing that portion of the tutorial, I go to restart Bind and it fails.
Any error messages when you restart BIND? Any errors in your logs?
gobetno
19th July 2007, 16:58
I am not close to the server but when I get there I will take a look at the log and post it.
Just drives me nuts ... most especially since the step by step instructions are right in front of me. I looked for typos, but did not find any and then I retyped the command very slowly just in case I made an error. The outcome is the same. That when I go to restart Bind it Fails.
gobetno
19th July 2007, 21:13
Falko,
Here is my syslog. Hope that it offers you some kind of idea of what is going on with my installation and current configuration.
root@lemai:/var/log# less syslog
Jul 19 06:25:30 lemai syslogd 1.4.1#20ubuntu4: restart.
Jul 19 06:37:44 lemai -- MARK --
Jul 19 06:57:45 lemai -- MARK --
Jul 19 07:17:01 lemai /USR/SBIN/CRON[5922]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jul 19 07:37:46 lemai -- MARK --
Jul 19 07:57:46 lemai -- MARK --
Jul 19 08:17:01 lemai /USR/SBIN/CRON[5925]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jul 19 08:33:04 lemai init: tty1 main process ended, respawning
Jul 19 08:33:38 lemai named[6005]: starting BIND 9.3.4 -u bind -t /var/lib/named
Jul 19 08:33:38 lemai named[6005]: found 1 CPU, using 1 worker thread
Jul 19 08:33:38 lemai named[6005]: loading configuration from '/etc/bind/named.conf'
Jul 19 08:33:38 lemai named[6005]: /etc/bind/named.conf.options:2: change directory to '/var/cache/bind' failed: fil
e not found
Jul 19 08:33:38 lemai named[6005]: /etc/bind/named.conf.options:2: parsing failed
Jul 19 08:33:38 lemai named[6005]: loading configuration: file not found
Jul 19 08:33:38 lemai named[6005]: exiting (due to fatal error)
Thanks in advance for your help.
falko
20th July 2007, 17:01
What's in /etc/bind/named.conf.options?
gobetno
24th July 2007, 01:42
root@lemai:/home/roni# cd /etc/bind
root@lemai:/etc/bind# less named.conf.options
// };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
// By default, name servers should only perform recursive domain
// lookups for their direct clients. If recursion is left open
// to the entire Internet, your name server could be used to
// perform distributed denial of service attacks against other
// innocent computers. For more information on DDoS recursion:
// http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0987
allow-recursion { localnets; };
// If you have DNS clients on other subnets outside of your
// server's "localnets", you can explicitly add their networks
// without opening up your server to the Internet at large:
// allow-recursion { localnets; 192.168.0.0/24; };
// If your name server is only listening on 127.0.0.1, consider:
// allow-recursion { 127.0.0.1; };
};
(END)
Again thanks for any info that will set me on the right track.
falko
24th July 2007, 15:38
Is that the whole file? What's the output of cat /etc/bind/named.conf.options?
gobetno
24th July 2007, 22:29
Oops .. here is:
login as: roni
roni@192.168.1.30's password:
Linux lemai.bitbyteword.com 2.6.20-15-server #2 SMP Sun Apr 15 07:41:34 UTC 2007 i686
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Last login: Tue Jul 24 05:18:22 2007 from 192.168.1.100
roni@lemai:~$ su
Password:
root@lemai:/home/roni# cd /etc/bind/named.conf.options
bash: cd: /etc/bind/named.conf.options: Not a directory
root@lemai:/home/roni# cat /etc/bind/named.conf.options
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
// query-source address * port 53;
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
// By default, name servers should only perform recursive domain
// lookups for their direct clients. If recursion is left open
// to the entire Internet, your name server could be used to
// perform distributed denial of service attacks against other
// innocent computers. For more information on DDoS recursion:
// http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0987
allow-recursion { localnets; };
// If you have DNS clients on other subnets outside of your
// server's "localnets", you can explicitly add their networks
// without opening up your server to the Internet at large:
// allow-recursion { localnets; 192.168.0.0/24; };
// If your name server is only listening on 127.0.0.1, consider:
// allow-recursion { 127.0.0.1; };
};
root@lemai:/home/roni# login as: roni
Password:
Linux lemai.bitbyteword.com 2.6.20-15-server #2 SMP Sun Apr 15 07:41:34 UTC 2007 i686
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Last login: Tue Jul 24 05:18:22 2007 from 192.168.1.100
roni@lemai:~$ su
Password:
root@lemai:/home/roni# cd /etc/bind/named.conf.options
bash: cd: /etc/bind/named.conf.options: Not a directory
root@lemai:/home/roni# cat /etc/bind/named.conf.options
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
// query-source address * port 53;
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
// By default, name servers should only perform recursive domain
// lookups for their direct clients. If recursion is left open
// to the entire Internet, your name server could be used to
// perform distributed denial of service attacks against other
// innocent computers. For more information on DDoS recursion:
// http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0987
allow-recursion { localnets; };
// If you have DNS clients on other subnets outside of your
// server's "localnets", you can explicitly add their networks
// without opening up your server to the Internet at large:
Login incorrect
lemai.bitbyteword.com login: // allow-recursion { localnets; 192.168.0.0/24; };
// If your name server is only listening on 127.0.0.1, consider:
// allow-recursion { 127.0.0.1; };
};
root@lemai:/home/roni#
Login incorrect
lemai.bitbyteword.com login: roni
Password:
Last login: Tue Jul 24 05:20:57 2007 from 192.168.1.100 on pts/0
Linux lemai.bitbyteword.com 2.6.20-15-server #2 SMP Sun Apr 15 07:41:34 UTC 2007 i686
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
roni@lemai:~$ su
Password:
root@lemai:/home/roni# cat /etc/bind/named.conf.options
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
// query-source address * port 53;
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
// By default, name servers should only perform recursive domain
// lookups for their direct clients. If recursion is left open
// to the entire Internet, your name server could be used to
// perform distributed denial of service attacks against other
// innocent computers. For more information on DDoS recursion:
// http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0987
allow-recursion { localnets; };
// If you have DNS clients on other subnets outside of your
// server's "localnets", you can explicitly add their networks
// without opening up your server to the Internet at large:
// allow-recursion { localnets; 192.168.0.0/24; };
// If your name server is only listening on 127.0.0.1, consider:
// allow-recursion { 127.0.0.1; };
};
root@lemai:/home/roni#
root@lemai:/home/roni# clear
root@lemai:/home/roni# cat /etc/bind/named.conf.options
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
// query-source address * port 53;
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
// By default, name servers should only perform recursive domain
// lookups for their direct clients. If recursion is left open
// to the entire Internet, your name server could be used to
// perform distributed denial of service attacks against other
// innocent computers. For more information on DDoS recursion:
// http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0987
allow-recursion { localnets; };
// If you have DNS clients on other subnets outside of your
// server's "localnets", you can explicitly add their networks
// without opening up your server to the Internet at large:
// allow-recursion { localnets; 192.168.0.0/24; };
// If your name server is only listening on 127.0.0.1, consider:
// allow-recursion { 127.0.0.1; };
};
root@lemai:/home/roni#
falko
25th July 2007, 17:37
What's the output of ls -la /var/cache/bind?
Agent_Smith
31st July 2007, 12:38
Hi! I've the same problem like gobetno. I did the commands and reasult the same like gobetno.
So the result of the ls -la /var/cache/bind is:
root@server1:/home/administrator# ls -la /var/cache/bind/
total 8
drwxrwxr-x 2 root bind 4096 2007-07-31 00:18 .
drwxr-xr-x 8 root root 4096 2007-07-30 23:54 ..
Thanx for reply
falko
1st August 2007, 19:09
And do you also have this in your logs?
Jul 19 08:33:38 lemai named[6005]: /etc/bind/named.conf.options:2: change directory to '/var/cache/bind' failed: file not found
A solution might be to run
chown bind /var/cache/bind
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.