Hello!
My name is Steve and I've got a stupid problem with my FreeBSD that I can't resolve by myself (it makes me become mad). My problem is that I can't view my current hostname anymore but I didn't touch anything, but what do I view? Just a %. I'm going to show you now my configured files:
/etc/rc.conf
/etc/hosts
/root/.cshrc
When I type hostname on the shell, I get this reply:
Just a snapshot to make you understand my problem:
My name is Steve and I've got a stupid problem with my FreeBSD that I can't resolve by myself (it makes me become mad). My problem is that I can't view my current hostname anymore but I didn't touch anything, but what do I view? Just a %. I'm going to show you now my configured files:
/etc/rc.conf
Code:
defaultrouter="192.168.2.1"
hostname="tff.game-server.cc"
ifconfig_em0="inet 192.168.2.2 netmask 255.255.255.0"
moused_enable="YES"
mysql_enable="YES"
sshd_enable="YES"
/etc/hosts
Code:
::1 localhost localhost.game-server.cc
127.0.0.1 localhost localhost.game-server.cc
192.168.2.2 tff.game-server.cc tff
/root/.cshrc
Code:
alias h history 25
alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lA
# A righteous umask
umask 22
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)
setenv EDITOR vi
setenv PAGER more
setenv BLOCKSIZE K
if ($?prompt) then
# An interactive shell -- set some stuff up
set prompt = "`/bin/hostname -s`# "
set filec
set history = 100
set savehist = 100
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif
When I type hostname on the shell, I get this reply:
Code:
tff.game-server.cc
Just a snapshot to make you understand my problem: