無くなってしまったものは仕方がないので
man やオフィシャルなマニュアルを読みながら作業することにします。
> vi ~/.cshrc alias jpwhois whois -h whois.jprs.jp alias lang_jp setenv LANG ja_JP.eucJP alias lang_c setenv LANG C set prompt = "[%n@%m] %B%~%b%# " > source ~/.cshrc
$ vi /root/.cshrc #set prompt = "`/bin/hostname -s`# " set prompt = "[%Broot@%m%b] %B%~%b%# " $ source /root/.cshrc
http://sakura.take-labo.jp/freebsd/i386-system.html
$ less /etc/defaults/rc.conf ### Network Time Services options: ### timed_enable="NO" # Run the time daemon (or NO). timed_flags="" # Flags to timed (if enabled). ntpdate_enable="NO" # Run ntpdate to sync time on boot (or NO). ntpdate_program="/usr/sbin/ntpdate" # path to ntpdate, if you want a differe nt one. ntpdate_flags="-b" # Flags to ntpdate (if enabled). ntpd_enable="NO" # Run ntpd Network Time Protocol (or NO). ntpd_program="/usr/sbin/ntpd" # path to ntpd, if you want a different one. ntpd_sync_on_start="NO" # Sync time on ntpd startup, even if offset is h igh ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift" # Flags to ntpd (if enabled).
$ vi /etc/rc.conf ntpdate_enable="YES" ntpdate_flags="-sbv ntp.jst.mfeed.ad.jp" ntpd_enable="YES" ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift"
$ vi /etc/ntp.conf pidfile /var/run/ntpd.pid logfile /var/log/ntp.log logconfig =syncstatus +sysevents driftfile /var/db/ntpd.drift server 210.173.160.27 minpoll 6 maxpoll 10 server 210.173.160.57 minpoll 6 maxpoll 10 server 210.173.160.87 minpoll 6 maxpoll 10 restrict default ignore restrict 127.0.0.1 restrict 192.168.0.0 mask 255.255.0.0 notrust nomodify notrap nopeer restrict 210.173.160.27 nomodify notrap noquery restrict 210.173.160.57 nomodify notrap noquery restrict 210.173.160.87 nomodify notrap noquery
http://www.jp.freebsd.org/cgi/mroff.cgi?subdir=man&lc=1&cmd=&man=ntpdate&dir=jpman-6.0.0%2Fman§=8
http://www.jp.freebsd.org/cgi/mroff.cgi?subdir=man&lc=1&cmd=&man=ntpd&dir=jpman-6.0.0%2Fman§=8
http://www.jp.freebsd.org/cgi/mroff.cgi?subdir=man&lc=1&cmd=&man=ntp.conf&dir=jpman-6.0.0%2Fman§=5
NTP/推奨公開サーバ - wiki@nothing
$ vi /etc/mail/aliases root: user $ newaliases
Port 12345 ( 設定する際はランダムに ) Protocol 2 AddressFamily inet ListenAddress 192.168.1.2 #HostKey /etc/ssh/ssh_host_key #HostKey /etc/ssh/ssh_host_dsa_key #KeyRegenerationInterval 1h ServerKeyBits 1024 #SyslogFacility AUTH #LogLevel INFO LoginGraceTime 1m PermitRootLogin no StrictModes yes MaxAuthTries 3 RSAAuthentication no PubkeyAuthentication yes #AuthorizedKeysFile .ssh/authorized_keys RhostsRSAAuthentication no HostbasedAuthentication no #IgnoreUserKnownHosts no #IgnoreRhosts yes PasswordAuthentication no PermitEmptyPasswords no ChallengeResponseAuthentication no KerberosAuthentication no #KerberosOrLocalPasswd yes #KerberosTicketCleanup yes #KerberosGetAFSToken no GSSAPIAuthentication no #GSSAPICleanupCredentials yes #UsePAM yes #AllowTcpForwarding yes #GatewayPorts no X11Forwarding no #X11DisplayOffset 10 #X11UseLocalhost yes #PrintMotd yes #PrintLastLog yes #TCPKeepAlive yes UseLogin no #UsePrivilegeSeparation yes #PermitUserEnvironment no #Compression delayed #ClientAliveInterval 0 #ClientAliveCountMax 3 #UseDNS yes #PidFile /var/run/sshd.pid #MaxStartups 10 #Banner /some/path Subsystem sftp /usr/libexec/sftp-server AllowUsers user
http://www.unixuser.org/~euske/doc/openssh/jman/
とりあえずこんな感じでしょうか。
SSH はもう少し詰めてみたい所です。