2ntブログ

余白の余白

日々のメモ書き アダルトもあるかも・・・

debian wheezy 端末

.bashrc にfbterm の自動起動記述したら stdin isn't a interactive tty! ってでやがった!!
わかんねーんだよおおおおおおおおおおおおおおおおおおおお!!!!!!

とりあえず man fbterm やったら書いてあった
つかえねーんだよ!!!!!

コマンド打てだってさ*1
manman@chinko:~$ sudo setcap 'cap_sys_tty_config+ep' /usr/bin/fbterm

stdin isn't a interactive tty!

ウガアアアアアアアアアアアアアアア!!!!!!

これやるとか
chmod 0666 /dev/fb0

~.bashrcに何か書けって書いてあった
if grep '^fbterm' /proc/$PPID/cmdline > /dev/null; then
export TERM=fbterm
fi

お?出なくなった

ついでに記述してこんな感じになった↓
alias fbterm='env LANG=ja_JP.UTF8 fbterm'

if grep '^fbterm' /proc/$PPID/cmdline > /dev/null; then
export TERM=fbterm
fi

#...
case "$TERM" in
linux*)
fbterm
;;
*)
;;
esac

~/.fbtermrc は一回fbterm 起動するとできる

編集
font-names=IPAGothic
font-size=16


/etc/fonts/fonts.conf
<!--
  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
    <match target="pattern">
        <test qual="any" name="family">
            <string>sans</string>
        </test>
        <edit name="family" mode="assign">
            <string>sans-serif</string>
        </edit>
    </match>
<!--
  Load fbterm customization 256color Option
-->
    <match target="font">
        <edit name="hinting" mode="assign">
            <bool>true</bool>
        </edit>
        
        <edit name="autohint" mode="assign">
            <bool>true</bool>
        </edit>
        
        <edit name="hintstyle" mode="assign">
            <const>hintslight</const>
        </edit>
        
        <edit name="embeddedbitmap" mode="assign">
            <bool>false</bool>
        </edit>
        
        <edit name="antialias" mode="assign">
            <bool>true</bool>
        </edit>
    </match>


作る
/etc/modprobe.d/uvesafb.conf
options uvesafb mode_option=1680x1050-32


おわり



*1
SECURITY NOTES
FbTerm tries to change linux kernel key map table to setup shortcuts,
which requires SYS_TTY_CONFIG capability since kernel version 2.6.15.
It means FbTerm should be a setuid 0 program to allow non-root users to
use shortcuts. FbTerm only switches to root privilege temporarily when
changing key map table, we believe it's pretty much free from security
problems. If you really don't like this and have a linux kernel with
file system capabilities enabled, which allow user to give binaries a
subset of root's powers without using setuid 0 (official kernel 2.6.27
includes it), you can run command "sudo setcap 'cap_sys_tty_config+ep'
/path/to/fbterm".

FbTerm redirects /dev/tty0 output to the pseudo terminal of current
sub-window. In linux before version 2.6.10, anybody can do this as long
as the output was not redirected yet; since version 2.6.10, only root
or a process with the CAP_SYS_ADMIN capability may do this. You should
do similar work with above ones for FbTerm to enable this feature for
non-root users.



  1. 2013/08/25(日) 02:48:11|
  2. 未分類

プロフィール

S

Author:S
FC2ブログへようこそ!

訪問

訪問者数:

常駐

現在の閲覧者数:

最新記事

最新コメント

最新トラックバック

月別アーカイブ

カテゴリ

未分類 (5)
参考になったページ (4)
ゲーム (1)
.net (5)
ハード (5)
ソフトウェア (1)

検索フォーム

RSSリンクの表示

リンク

このブログをリンクに追加する

ブロとも申請フォーム

この人とブロともになる

QRコード

QR