linux
ディレクトリ直下をディレクトリを含めず圧縮したかったら tar czf hoge.tar.gz -C /path/to/directory . 解凍先ディレクトリを指定して解凍したかったら tar xzf hoge.tar.gz -C /path/to/directory 参考 gzip - How do I tar a directory of files and fol…
/etc/init.d/に起動スクリプトを作って登録する 起動スクリプトの作り方 テンプレートをコピーして、 # cp /etc/init.d/skelton /etc/init.d/kidou 最低限以下を書く(参考:ラズパイで自動起動するデーモンを自作する - 銀の弾丸 Provides DAEMON start, st…
焦らずに cp /etc/skel/.profile /home/[username]/ 参考 https://www.debian.org/doc/debian-policy/ch-files.html#s10.7.5
試したのはdebian 8, jessie redmineのインストール redmine - Debian Wikiの2までやる。 インストールとは別だが、フォルダ配置が純粋redmineと異なる点に注意 詳細はページ最下段のDifferences_from_upstream_Redmineにある通り nginxのインストールとconf…
誰がどのポートでLISTENしてるか調べて、意図していない不要なserviceは止める netstatで調べる -l:listening sockets, -t:tcp, -p:name of the program # netstat -ltp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Fore…
接続先の.bashrcで以下記述より以前で標準出力していないか確認する # If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac してたら実行を上記より下に移す 参考 サーバーにsftpできないときは - console.lealog(); bash…
Linux一般 Linux Standard Base - Wikipedia Linux Foundation Referenced Specifications Filesystem Hierarchy Standard - Wikipedia Debian Debian 管理者ハンドブック FilesystemHierarchyStandard - Debian Wiki
shellinaboxが使える インストール sudo apt-get install shellinabox 設定変更 sudo vim /etc/default/shellinabox ポートは設定デフォルト値を使う SHELLINABOX_PORT=4200 ログインはとりあえずpasswordで入る、設定変えればSSHもできる SHELLINABOX_ARGS=…