| Author |
Message |
fredz
Joined: 19 Sep 2003
Posts: 22
Location: Luxembourg
|
| Posted: Sun Feb 15, 2004 8:38 am Post subject: None prompt |
|
|
I just created a Debian image. Boots fine. However, it just says this on the prompt, which looks strange:
(none):/#
Is this normal?
Also, my Debian system is very "basic" now. What steps should I take to install applications etc?
Thanks |
|
| Back to top |
|
Bill Clinton
Joined: 23 Nov 2003
Posts: 79
|
| Posted: Sun Feb 15, 2004 9:40 am Post subject: |
|
|
You are missing a hostname.
You can do
echo "whatever" > /etc/hostname
hostname -F /etc/hostname
(if you ever reboot, the hostname is automatically set for you)
Enjoy.
Bill Clinton |
|
| Back to top |
|
fredz
Joined: 19 Sep 2003
Posts: 22
Location: Luxembourg
|
| Posted: Sun Feb 15, 2004 9:43 am Post subject: |
|
|
| This works, until I reboot. How can I have it set at reboot? |
|
| Back to top |
|
Bill Clinton
Joined: 23 Nov 2003
Posts: 79
|
| Posted: Sun Feb 15, 2004 11:51 am Post subject: |
|
|
it should work automatically at boot.
The command:
echo "hostname" > /etc/hostname
stores the hostname into the correct file. Which in turn is set at boot time by /etc/init.d/hostname
I get the odd feeling that your /etc/init.d/hostname script is not automatically be run at boot time. I have no idea how debian's brain-dead/non-conformant init scripts work, but the following should do it:
ln -s /etc/init.d/hostname.sh /etc/rcS.d/S40hostname.sh
that should make things work at boot time
Blii Clinton |
|
| Back to top |
|
SteveG
Joined: 30 Nov 2003
Posts: 222
|
| Posted: Tue Feb 24, 2004 9:39 am Post subject: |
|
|
Bill Clinton wrote: I have no idea how debian's brain-dead/non-conformant init scripts work
Huh? They work just like any other SysV init system. One can argue that it's not the most intuitive system in the world, but it's hardly "non-comformant". |
|
| Back to top |
|
| |