
Kali 2.0 に no-ip ddns をインストールして実行しましたが、起動時に実行しようとすると、rcX.d の 'X' を何に変更すればよいかわかりません。
設定ファイルには次のように書かれています:
If you want it to run automatically when the machine is booted, then
place the following script in your startup directory. (/etc/init.d/rcX.d
or /sbin/init.d/rcX.d or ???)
#######################################################
#! /bin/sh
# . /etc/rc.d/init.d/functions # uncomment/modify for your killproc
case "$1" in
start)
echo "Starting noip2."
/usr/local/bin/noip2
;;
stop)
echo -n "Shutting down noip2."
killproc -TERM /usr/local/bin/noip2
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
#######################################################
Where the 'X' in rcX.d is the value obtained by running the
following command
grep initdefault /etc/inittab | awk -F: '{print $2}'
入力すると:
grep initdefault /etc/inittab | awk -F: '{print $2}'
私は得る:
grep: /etc/inittab: No such file or directory
答え1
コマンドラインで実行レベルを取得できます:
ランレベル
しかし、あなたが望んでいるのは:
rc.d を更新します .....
答え2
何らかの理由で、受け入れられた回答に問題があったので、これが Raspberry Pi3 で Debian を実行している人の役に立つなら、私はこれらの手順を使用しましたが、うまく機能しているようです。