1. # getconf LONG_BIT
2. # uname -m
3. # file /bin/bash
2014年12月14日 星期日
Ubuntu 文字模式下, 開機自動執行圖形程式, EX: QT
1. 設定開機進入文字模式:
# vim /etc/default/grub
============================================
GRUB_CMDLINE_LINUX_DEFAUL="quiet splash text" <== Add text
============================================
# update-grub
# reboot
2. 建立開機執行程式的 Script:
# vim qt-run
============================================
#! /bin/sh
startx QT_application
============================================
3. 建立自動執行環境設定:
# cp qt-run /etc/init.d
# update-rc.d qt-run start 99 2 . <== 在/etc/rc2.d/建立S99qt-run
# reboot <== 重開機後, 程式就會自動執行
# vim /etc/default/grub
============================================
GRUB_CMDLINE_LINUX_DEFAUL="quiet splash text" <== Add text
============================================
# update-grub
# reboot
2. 建立開機執行程式的 Script:
# vim qt-run
============================================
#! /bin/sh
startx QT_application
============================================
3. 建立自動執行環境設定:
# cp qt-run /etc/init.d
# update-rc.d qt-run start 99 2 . <== 在/etc/rc2.d/建立S99qt-run
# reboot <== 重開機後, 程式就會自動執行
2014年6月9日 星期一
Reiserfs 使用方式
相關說明請Google查詢~~
1) 套件安裝:
===== Fedora =====
# yum install reiserfs-utils
===== Ubuntu =====
# apt-get install reiserfsprogs
2) 設定:
# reiserfstune -u UUID -l /data /dev/sda2
-u: UUID name
-l: label (掛載資料夾名稱)
/dev/sda2: 磁區
3) 修改fstab:
==================================================
UUID=name /data reiserfs defaults 0 0 ==================================================
1) 套件安裝:
===== Fedora =====
# yum install reiserfs-utils
===== Ubuntu =====
# apt-get install reiserfsprogs
2) 設定:
# reiserfstune -u UUID -l /data /dev/sda2
-u: UUID name
-l: label (掛載資料夾名稱)
/dev/sda2: 磁區
3) 修改fstab:
==================================================
UUID=name /data reiserfs defaults 0 0 ==================================================
2014年4月22日 星期二
1366x768 resolution
一般我們下 gtf 1366 768 60 指令結果會變成下面所示:
====================================================================
gino@ubuntu:~$ gtf 1366 768 60
# 1368x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 85.86 MHz
Modeline "1368x768_60.00" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync
====================================================================
必須手動修改參數才可以
# 1366x768 @ 60.00 Hz
Modeline "1366x768_60.00" 85.500 1366 1494 1624 1798 768 770 776 795 -HSync +Vsync
====================================================================
gino@ubuntu:~$ gtf 1366 768 60
# 1368x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 85.86 MHz
Modeline "1368x768_60.00" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync
====================================================================
必須手動修改參數才可以
# 1366x768 @ 60.00 Hz
Modeline "1366x768_60.00" 85.500 1366 1494 1624 1798 768 770 776 795 -HSync +Vsync
2014年3月18日 星期二
指令筆記
# ldd ( 找出系統內執行檔的相依性 )
ex: ldd /bin/dmesg
# objdump -T ( 找出執行檔與程式庫間的symbol使用狀況 )
ex: objdump -T /bin/dmesg
ex: ldd /bin/dmesg
# objdump -T ( 找出執行檔與程式庫間的symbol使用狀況 )
ex: objdump -T /bin/dmesg
2014年2月18日 星期二
GMA3600 driver display issue
GMA3600 是使用PowerVR顯示晶片, 不是一般Intel 顯示晶片, Linux 下會有些 driver 顯示的問題
1. 使用vesafb driver 無顯示畫面: 改用uvesafb driver
2. VGA prot開機未插, 再插上無顯示畫面: 必須將kernel內GMA500選項拿掉, 並使用uvesafb
(1) 改用uvesafb driver
setp 1. # apt-get install v86d hwinfo libhd16 libhal1
setp 2. # vim /etc/default/grub
添加下列紅字:
GRUB_CMDLINE_LINUX_DEFAULT=”quiet nomodeset video=uvesafb:mode_option=1024x768-24,mtrr=3,scroll=ywrap”
GRUB_GFXMODE=1024X768
setp 3. # vim /etc/initramfs-tools/modules
atl1
atl1c
atl2
bnx2
bnx2x
crc32c
uvesafb mode_option=1024x768-24 mtrr=3 scroll=ywrap
setp 4. # update-grub
# update-initramfs -u
# reboot
(2) 將kernel 內GMA500選項拿掉
setp 1. # apt-get source linux-image-3.8.0-29-generic
setp 2. # tar xvf linux-lts-raring_3.8.0.orig.tar.gz
setp 3. # cd linux-3.8
# make menuconfig
Device Driver -> Graphic support -> < M >Intel GMA5/600 KMS Framebuffer, remove M , 然後儲存離開
setp 4. # make
# make modules_install
# make install
# reboot
1. 使用vesafb driver 無顯示畫面: 改用uvesafb driver
2. VGA prot開機未插, 再插上無顯示畫面: 必須將kernel內GMA500選項拿掉, 並使用uvesafb
(1) 改用uvesafb driver
setp 1. # apt-get install v86d hwinfo libhd16 libhal1
setp 2. # vim /etc/default/grub
添加下列紅字:
GRUB_CMDLINE_LINUX_DEFAULT=”quiet nomodeset video=uvesafb:mode_option=1024x768-24,mtrr=3,scroll=ywrap”
GRUB_GFXMODE=1024X768
setp 3. # vim /etc/initramfs-tools/modules
atl1
atl1c
atl2
bnx2
bnx2x
crc32c
uvesafb mode_option=1024x768-24 mtrr=3 scroll=ywrap
setp 4. # update-grub
# update-initramfs -u
# reboot
(2) 將kernel 內GMA500選項拿掉
setp 1. # apt-get source linux-image-3.8.0-29-generic
setp 2. # tar xvf linux-lts-raring_3.8.0.orig.tar.gz
setp 3. # cd linux-3.8
# make menuconfig
Device Driver -> Graphic support -> < M >
訂閱:
文章 (Atom)