他の端末ソフトでもいいのですけど、おすすめあれば教えてください! 0202login:Penguin2018/04/09(月) 16:16:32.67ID:sojP/bUy>>201 簡単な方法 xfce4-terminalをインストール sudo apt install xfce4-terminal Edit > Preference > Colors > Vary the background color for each Tab タブごとに違う色の背景色 Ubuntuターミナルの場合 .bashrcの最後に次のスクリプトを追加する #Change color according to the number of Bash shells opened #Creates the .Bash_Color_Changer file if it's not present if ! [ -f ~/.Bash_Color_Changer ]; then echo ORIGINAL > ~/.Bash_Color_Changer fi
#Array holding the name of the profiles: Substitute it for the names you're using Color_counter=(Profile1 Profile2 Profile3) #Finds out the number of opened bashs counting the lines containing "bash" #in the pstree function. (-c deactivates compact display to avoid it showing #lines with "2*[bash]" instead of one for each bash) Number_of_bashs=$(($(pstree -c | grep "bash" | wc -l)-1))
#Checks if the terminal being opened was opened by the user or by #the script, and act according to it if [ $(cat ~/.Bash_Color_Changer) = ORIGINAL ]; then if ((Number_of_bashs < ${#Color_counter[*]})); then echo COPY > ~/.Bash_Color_Changer gnome-terminal --tab-with-profile-internal-id=${Color_counter[${Number_of_bashs}]} exit fi else echo ORIGINAL > ~/.Bash_Color_Changer fi 0203login:Penguin2018/04/09(月) 18:13:36.76ID:xLCmPdM1>>201 >プロファイルの設定で色を変えると、ぜんぶの端末の色が変わってしまいます ダウト。 デフォルトのプロファイルを変更したなら、全てに反映されることもあるが、 そうでないなら、個々のプロファイルごとに異なる。 プロファイルは何個作成した? 0204login:Penguin2018/04/09(月) 20:15:25.43ID:KQ9uZn7S 14LTSから16LTSにアップグレードしたら ノートPCを閉じたときのサスペンドから復帰時にフリーズする不具合が出て難儀したわ 0205login:Penguin2018/04/09(月) 20:25:23.24ID:SmjyR5YR>>204 そういうのをどうやって解決したのか書いてほしいです。 0206login:Penguin2018/04/09(月) 23:56:53.97ID:ogbuFRxO The Unix Super Textが転がってたから勉強したいんですが、本の内容を試せる環境って今でも作る方法ありますか? 0207login:Penguin2018/04/10(火) 00:16:42.70ID:HPDZ6ZYE>>205 まだ解決したか分かんない 一応画面のロックとパスワード要求をなしにして様子見中 そもそもバグらしいんでほっときゃ直る気がする 0208login:Penguin2018/04/10(火) 00:33:10.75ID:rAri+EKU>>206 環境構築で苦労するより もっと新しい本買った方がいいよ 0209login:Penguin2018/04/10(火) 01:20:31.81ID:2pExXcks>>206 新旧どっち?新なら普通に使えるでしょ 0210login:Penguin2018/04/10(火) 01:46:56.34ID:7aJUBn/X>>206 現行でお手軽に試せそうなものは、FreeBSD か OpenIndiana あたりではないでしょうか。 0211login:Penguin2018/04/10(火) 06:30:41.76ID:dFyBossH>>206 UNIXの仕組みを知るなら1980年台の本でも大丈夫、むしろシンプルでいい シェルとターミナルも古い本で良い、ただし sh > bash は脳内変換必要 (此処から先はどっぷりな気がする) プログラムは現在のコンパイラと環境にあってないと動かない gccを理解すればほとんどのことができるのではないだろうか 0212login:Penguin2018/04/10(火) 07:52:18.87ID:rAri+EKU>>210 このスレで聞いてるんだから Ubuntuで、でしょ 0213login:Penguin2018/04/10(火) 08:28:03.69ID:Lzn9AAVu 皆さんアドバイスありがとうございました。 ちなみに新の方です。 会社に転がっていたので勉強しようと思い、Ubuntuで手を動かしてみたのですが互換性が低く、初心者の私には脳内変換が難しかったので質問いたしました。 0214login:Penguin2018/04/10(火) 09:43:38.70ID:2pExXcks 例えばどのコマンドが? 0215login:Penguin2018/04/10(火) 12:54:10.31ID:/wUU3EYx>>204 アップグレードじゃないけど16.04LTSに入れ替えて同じ事象だった 加えてディスプレイ電源オフになると再表示できないので、デスクトップからサスペンドしてノート開けっ放し