請問如何偵測使用者登入在本機? - Linux

Xanthe avatar
By Xanthe
at 2008-08-21T22:42

Table of Contents

※ 引述《chiucs (ChiuCS)》之銘言:
: if [ "`/sbin/consoletype`" = "vt" ]; then
: unset LANG
: else
: LANG=zh_TW.Big5
: fi
: this is what i use in my .bashrc.
: I only install some server package, no X-window.

日前試了一下,這方法看來只有在no x-window模式下有效。

如果用x-window的話,無論本機或遠端登入,consoletype都只會回應pty。

但是還是謝謝您的回應!:)

--
Tags: Linux

All Comments

請問有關FORTRAN77寫程式的問題

Rachel avatar
By Rachel
at 2008-08-21T16:48
實驗室的學姊要求我用FORTRAN寫一個程式 本身不是資工出身的 所以現在才剛開始學 內容是: 把 x1.dat x2.dat output 1 2 4 0.5 2 0.5 ...

在ubuntu下安裝matlab

Daniel avatar
By Daniel
at 2008-08-21T16:10
※ [本文轉錄自 MATLAB 看板] 作者: cfleu (世事難預料) 看板: MATLAB 標題: [問題] 在ubuntu下安裝matlab 時間: Thu Aug 21 11:21:18 2008 不好意思真的被這個問題搞得很頭大.. 最近因為慢慢在習慣ubuntu..但是因為一些原因因此必須 ...

virtualbox bridge模式

Thomas avatar
By Thomas
at 2008-08-21T15:41
想請問大家,會不會把 virtualbox 的 bridge mode 啟用? 事情是這樣,我在 ubuntu 用 vbox 裝了 xp ,目的是要跑 itune 及一些非 xp 不可的 軟體,網路用的是 nat mode 當我正常裝完 xp,裝好 itune 後,當然就是按以前使用 windows 的方 ...

DNS BIND 子網域設定疑問!

Irma avatar
By Irma
at 2008-08-21T14:53
感謝各位大大的指導,尤其是kenduest大大!!我照您所說的在去檢查一次w2k的授權 結果是沒看到當初所設定的東西(七月份~真速....),在設定一次即可 在次感謝各位大大教導!! - ...

DNS BIND 子網域設定疑問!

Kumar avatar
By Kumar
at 2008-08-21T13:42
路過提醒一下,你有沒有把你自己架的 DNS server 加進 /etc/resolv.conf ?? 不然你的 ping 是不會知道要去問你架的 dns 的。 ※ 引述《jiaqing (呆呆的態)》之銘言: : 大大您好: : 我測試的結果如下: : server ip : address ip#53 ...