2010年4月11日 星期日

在 linux 底下,簡單又快速的製作光碟印象檔


http://lzy-blah.blogspot.com/2007/10/linux.html

2007年10月18日 星期四










在 linux 底下,簡單又快速的製作光碟印象檔








cat /dev/cdrom > mycd.iso

對,就這樣就好了
順便印出 md5 吧
md5sum mycd.iso
md5sum /dev/cdrom
印出兩者後,比對看看是否一樣

不然就丟給程式自己比對吧 XD
md5sum mycd.iso > mycd.iso.sum ; md5sum -c mycd.iso.sum
成功的話,他會印出

mycd.iso: 沒問題













ThinkPad 系列 laptop 加上中鍵捲動功能

http://lzy-blah.blogspot.com/2007/09/linux-thinkpad-laptop.html



2007年9月27日 星期四










[教學]在 linux 上,替 ThinkPad 系列 laptop 加上中鍵捲動功能








前些日子跟某長輩聊天,發現有許多使用 ThinkPad 的 linuxer
竟然都沒去用 ThinkPad 的中鍵捲軸?
雖說沒用也不會怎樣,不過還是少了個好用的功能阿
( netman 大大,我絕對不會說是你的)
其實問題要解決很簡單...就只要加上兩行字就可以了
這邊還是以 Ubuntu 為例,其他 Linux 套件發行版本亦雷同
請跟著我這樣做
sudo gedit /etc/X11/xorg.conf
然後找出下面敘述的這一段

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

把他改成
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
EndSection

然後重新啟動 X-Window 就可以使用中鍵捲動功能了 :D

ThinkPad 系列 laptop 加上中鍵捲動功能

http://lzy-blah.blogspot.com/2007/09/linux-thinkpad-laptop.html



2007年9月27日 星期四










[教學]在 linux 上,替 ThinkPad 系列 laptop 加上中鍵捲動功能








前些日子跟某長輩聊天,發現有許多使用 ThinkPad 的 linuxer
竟然都沒去用 ThinkPad 的中鍵捲軸?
雖說沒用也不會怎樣,不過還是少了個好用的功能阿
( netman 大大,我絕對不會說是你的)
其實問題要解決很簡單...就只要加上兩行字就可以了
這邊還是以 Ubuntu 為例,其他 Linux 套件發行版本亦雷同
請跟著我這樣做
sudo gedit /etc/X11/xorg.conf
然後找出下面敘述的這一段

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

把他改成
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
EndSection

然後重新啟動 X-Window 就可以使用中鍵捲動功能了 :D

TIP Mounting Iso Files

TIP Mounting Iso Files








http://docs.google.com/Doc?id=dfd84wb_1576vtvghc

From Gentoo Linux Wiki



Jump to: navigation, search





This article is part of the Tips & Tricks series.

Terminals / Shells Network X Window System Portage System Filesystems Kernel Other

ISO images are files containing the data of a CD (almost bit per
bit). They can be mounted, using the loopback device. ISO images can
only be mounted read-only (use mkisofs to create images).


[edit] Kernel Requirements


To mount ISO images you need the following in your kernel(as module or builtin):


  • loop-back filesystem support (under Device Drivers - Block devices in kernel 2.6)
  • ISO 9660 CDROM file system support (under File systems - CD-ROM/DVD Filesystems in kernel 2.6)

You also might want this for mounting non-linux ISO images:


  • Microsoft Joliet CDROM extensions (under File systems - CD-ROM/DVD Filesystems in kernel 2.6)





Linux Kernel Configuration: Joliet CDROM Extensions(2.6)


File Fystems --> CD-ROM/DVD Filesystems
<*> ISO 9660 CDROM file system support
[*] Microsoft Joliet CDROM extensions



[edit] Mounting


To mount the ISO images, you'll need to have root access. Login as root or use sudo, and execute:


mount -t iso9660 -o loop,user image.iso /wheretomount

Drop ,user if you don't want users to access the iso files.

Note: If this fails with an error concerning /dev/loop then as root issue the command:


# modprobe loop

Alternatively you may want to add loop to the list of modules that you autoload at boot:


# nano -w /etc/modules.autoload.d/kernel-2.6

and add loop to the bottom of your list of modules.

Hint 1: You can use cdemu to mount BIN images (It's in portage). You can also use bin2iso to convert them to ISO (also in Portage). You may also use bchunk to convert bin/cue CD-images to ISO.

Hint 2: You can use mdf2iso to convert MDF/MDS files to ISO (It's in portage).
Or you can mount a .mdf file with:


mount image.mdf /wheretomount -o loop=/dev/loop0

Hint 3: You can use nrg2iso to convert Nero's .nrg files to ISO (It's in portage).
Or you can mount a .nrg file with:


mount -o loop,offset=307200 image.nrg /wheretomount

Hint 4: You can use ccd2iso to convert Clone CD's .img files to ISO (It's in portage).



Installing Adobe Flash support Fedora Core 9 x64

rpm -ivh http://linuxdownload.adobe.com/adob....0-1.noarch.rpm

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

mkdir -p /usr/lib/mozilla/plugins

yum install nspluginwrapper.{i386,x86_64} pulseaudio-lib.i386

yum install flash-plugin

yum erase gnash

mozilla-plugin-config -i -g -v



Installing Adobe Flash support in Red Hat Fedora Core 9 Codename Sulphur x64



Previous: Configuring Audio and Video Playback in Red Hat Fedora Core 9 Codename Sulphur


Today: Installing Adobe Flash support in Red Hat Fedora Core 9 Codename Sulphur x64


Install Adobe Repository


  • rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
  • rpm import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
    • If that doesn’t work, try this from Mozilla Firefox instead.
    • http://www.adobe.com/go/getflashplayer
    • Select YUM for Linux.
    • Select Agree and install now.
    • adobe-release-i386-1.0-1.noarch.rpm is the file at the time I wrote this.
    • Single right-click from the Mozilla Firefox Downloads window
    • Sinlge left-click on Open
      • Single left-click OK to Do you want to install this file?
      • /home/username/Download/adobe-release-i386-1.0-1.noarch.rpm

    • Type the password for the root account to confirm.
    • Single left-click the Authenticate button.
    • adobe-release-i386-1.0-1.noarch.rpm should install after a few seconds.


  • yum install libflashsupport.{i386,x86_64} nspluginwrapper.{i386,x86_64} pulseaudio-libs.i386
  • mkdir -p /usr/libmozilla/plugins
  • yum install flash-plugin
  • mozilla-plugin-config -i -g -v


2010年4月9日 星期五

fedora 套件更新- livna

http://rpm.livna.org/

Install the livna-release package by running this command(²):

su -c "rpm -ivh http://rpm.livna.org/livna-release.rpm"
提供更多的 yum , rpm 的來源.

2010年4月8日 星期四

firefox 開新的 tabs 位址

原文出處: http://www.bytechip.com/2010/01/firefox-tabs-last/

How to Open Firefox New Tabs next to the last tab

  1. Open Firefox
  2. Enter “about:config” in the URL and press Enter
  3. This will invoke a warning message ” as shown below, Click on the “I’ll be careful, I promise ” button to open the setting page.
  4. Locate the Filter text box and enter “browser.tabs.insertRelatedAfterCurrent”
  5. This will show the key and its value below (which will be enabled)
  6. Double Click on the option to Disable it.
  7. Restart Firefox