顯示包含「fedora」標籤的文章。顯示所有文章
顯示包含「fedora」標籤的文章。顯示所有文章

2010年11月6日

disable ctrl+mousewheel zooming

How can you disable zooming in Internet Explorer/Firefox? - Super User
In Firefox, if you still want the option of zooming with ctrl-- and ctrl-=, you can

go to about:config
and set mousewheel.withcontrolkey.action to 0.

This makes it so scrolling with the control key down does the same as scrolling without the control key.

2009年4月9日

LiveCD/LiveUSB creator (Boot ISO from USB)

i.e. UNetbootin and liveusb-creator, also Pendrivelinux

帝國反抗君 - PowerOp:從USB隨身碟開機,進入Linux的一百種方法(誤) - 樂多日誌
從USB隨身碟開機,進入Linux的一百種方法(誤)
其實只是要做個 brain dump,紀錄一下最近發現的幾種工具啦:

UNetbootin
「UNetbootin (Universal Netboot Installer) 為一種跨平台工具軟體,可以用來建立Live USB 系統,也可以載入各種系統工具,或安裝各種Linux作業系統(Linux套件)和其他作業系統,不需使用安裝光碟(自動透過網路下載)。」(引自中文維 基百科的UNetbootin條目


這個影片示範怎麼樣用 UNetbootin 把 Puppy Linux 安裝到 USB 隨身碟。

PowerOp 實測:我拿UNetbootin在我的MS Windows XP上面,把 Slax 6.0.9 安裝到USB隨身碟,非常輕鬆,全部都在圖形介面底下操作,比我以前寫的這篇SLAX - 小而美的Linux LiveCD還要用到命令列,輕鬆太多了!

09/04/07更新:SLAX 6.0.9 的中文還是可以參照洪朝貴教授的這篇文章來達成,也就是該文所說的 0*.lzm 放到 slax/base 底下,一共有 007, 008,009, 010 四個 lzm 檔

要注意的是,很多 Linux 發行版本也都有自己的,產生 Live USB 的方法。如果妳懶得一個個去查,那麼 UNetbootin 已經支援很多種 Linux 發行版本,是一個不錯的起點(無差別安裝? :p)

==
liveusb-creator
這個Fedora Live USB creator是跨平台的圖形介面工具,主要是拿來製作 Fedora 的 Live USB ,有 Persistent Storage 的功能,可以儲存妳開機之後的變更。


PowerOp 實測:我故意去下載 CentOS 5.2 LiveCD,然後拿Fedora Live USB creator去做出 Live USB,一樣可以開機成功,只是 Persistent Storage 的功能失效,無法儲存變更。(但是這表示別的 Linux 發行版本的 .iso 應該都可以給這個工具拿來用)。目前我有一個1GB的隨身碟,裡面有快700MB是Fedora 10(F10-i686-Live.iso),另外有快300MB是 Persistent Storage (在Windows上面用檔案總管看,會看到 Z:\LiveOS\overlay-FEDORA-0A64-271C 這個檔)。我用它開機進入 Fedora 10,然後安裝一些新套件,也新增一個文字檔,再重開機之後都還在,一切都有保留下來,非常正常 :)
09/04/07更 新:Fedora LiveUSB這個 persistent overlay 功能有嚴重的bug,資料寫滿之後會有問題,強迫關機再重開機之後,會出現 Bug In initramfs /init detected. Dropping to a shell. Good Luck 的文字 。可以在開機選單按 Tab 編輯參數(一般GRUB都是按 e 來編輯,這個LiveUSB不知為何是按 Tab),在最後面加上 reset_overlay 開機,LiveUSB就可以順利開機,但是資料會清空。這什麼爛解法啊,資料都掰掰了 Orz......查了一些資料,目前 Fedora 是用 dm-snapshot 這個已經在 Linux Kernel 的方式來實做 persistent storage ,但是會出現上述嚴重問題。別的 distro 會用 UnionFS 或是 AufS之類的方式來解,不過 Jeremy Katz 說 "we're _very_ resistent to adding not-upstreamed stuff into the Fedora kernels.",所以要等官方版的 Fedora LiveUSB支援「真正能用的」persistent storage,看來有得等了。

另 外發現現在 3.5G 上網越來越簡單了,在 Fedora 10 ,我的 華為 Huawei E220 USB 網卡插上去之後,System -> Preferences -> Network Configuration,選 "Mobile Broadband" 頁面去新增一個連線,選 Automatically Connect ,然後 Apply ,就可以看到右上角的狀態列多一個圖示,連線成功!

打 開 Firefox 上網,哇,中文字型有內建耶,連輸入法也有喔,System → Preferences → Personal → Input Method 就可以啟動 SCIM 了,在右上角看到小鍵盤圖示之後就可以按 Ctrl + 空白鍵,叫出 SCIM 輸入法,然後點選那個鬼畫符手繪的圖示,切換到酷音。

「Fedora 10: 因為光碟的容量有限,Live 環境只提供智能漢語拼音和酷音 (智能注音) 輸入法。當您正式把 Fedora 安裝到硬碟上,就會有其他中文輸入法。」引自
Hong Kong Linux User Group 使用 LiveCD 安裝 Fedora 10 (Cambridge) 桌面

==
查了一下,Ubuntu Live USB creator功能類似,不過目前只能在 Linux 上面執行。openSUSE 的 Image Creator 好像也可以,請參考 openSUSE 11 Live CD 的另一個選擇 Live USB stick
Pendrivelinux
Install your favorite Linux operating system on a flash drive or USB key no larger than your thumb (Thumb Drive). Your Portable Linux operating system can then be run from any computer that can boot from a USB flash device, allowing you to bring your entire operating system, desktop, applications, files, email, personal settings, favorites, games and more with you. It’s your own personal operating system you can carry in your pocket.
At Pendrivelinux, we provide simplified portable Linux flash drive installation tutorials and USB Linux installer scripts, making is easy for anyone to install, boot and run their favorite Linux from a flash pen drive!

2009年3月15日

Reinstall GRUB

grub
>root (hd0,6) //for /dev/sda7 or using "find /boot/grub/stage1" to get the drive
>setup (hd0)

2008年6月18日

Undo and Redo if vim

u undo last change (can be repeated to undo preceding commands)
U return the line to its original state (undo all changes in current line)
CTRL-R Redo changes which were undone (undo the undo's).

2008年4月16日

How to disable beep in command line - LinuxQuestions.org

How to disable beep in command line - LinuxQuestions.org
How to disable beep in command line
You know the annoying PC speaker beeps you get in linux when you hit backspace too many times or hit tab to autocomplete something and there's either multiple or no matches or when you type shutdown -h now (or whatever)? I was wondering if there was a way to disable this "beep on error" cuz i'm fixing to go crazy and rip that darn PC speaker right outta my case!

I'm not talking about in the GUI using xterm or konsole. I know how to do that.
Use this command to turn off beeping in general in X:

xset b 0

2008年3月8日

Spicebird: a Outlook replacement?



少有的要讃UI的software
不錯


Mozilla Links 正體中文版: 又見鳥類!Spicebird 0.4 初探
又 見鳥類!Spicebird 0.4 初探 由 alicekey 於 10:30 下午 張貼,標籤: 衍生產品 Synovel Techologies 推出了 Spicebird 0.4,這是一個以 Mozilla 核心為主的個人資訊管理軟體。他整合了 Thunderbird、Lightning 和 XMPP 等相關軟體在一套產品上,可以用來傳遞信件、安排行事曆、即時通訊以及其他的通訊工具。就如同幾週前釋出的資訊,它加入了一些整合性的功能在主要元件的上 方,希望成為一個更有效率的資訊工具。 Home 是一個類似主控台的環境,你可以自行加入現有的五種小元件:郵件 (Mail),有著簡單預覽訊息視窗;網頁訂閱 (Web feeds),條列式的訂閱項目,當你滑鼠移到上方時會出現完整的內容;待辦事項 (Agenda),可以預先檢視即將到來的工作事項;行事曆 (Calendar),會將當月所安排的事件顯示出來;還有日期與時間 (Date & Time),你可以加入多個時鐘,看不同城市的時間。 Spicebird Home 這些元件的使用方式很有彈性,主控台很類似 iGoogle、Netvibes 跟 PageFlakes 這些整合性網頁。你可以任意加入不同的網頁內容,包含電影時刻表、天氣、漫畫等等。Home 是五個分頁中,會將全部的介面整合在一起的。 收信夾,基本上就是 Thunderbird,可以處理電子郵件、新聞群組、網頁訂閱服務等功能。並且加了一些聰明的小功能在郵件處理上面。例如,信件中如果包含了日期跟時 間,可以讓你很方便的將訊息加到你的行事曆中。還有一個很神奇的特色是,他可以偵測文字中的一些關鍵字像是 at 或是 every (English only,let's talk in English),讓自動新增功能更聰明,更有效率。 Spicebird detecting an event in an email 將即時通訊整合起來,當你用滑鼠右鍵點選一個使用者時,就可以馬上發送訊息給他。在即時通訊的部分,他支援 Jabber 的通訊協定。換句話說,你可以連上 Google Talk。傳送一則訊息,你需要切換到通訊錄的分頁,選擇一個聯絡人,然後按下工具列上的傳送訊息的按鈕。傳送訊息的視窗沒有讓人感到特別驚豔,只有讓你 輸入一些文字訊息,一些表情符號,不能變更文字的格式。 Spicebird IM基本上來說,它真得很 alpha (雖然他被標上beta),而且還有不少地方可以改進,不過可以先體驗一下這套企圖成為資訊整合中心的軟體。 依照 Spicebird 的進度,下次推出的 0.7版應該會加入電子郵件分頁的功能 (Thunderbird 3已經具備了),郵件的匯入/匯出,讓你可以在 Home 分頁中使用的聯絡清單。最終的版本將包含內容資訊管理的整合 (類似 Drupal) 以及一個殺手級應用:Microsoft Exchange 的整合,意謂著讓成千上萬被 Outlook 綁死的使用者又多了一個選擇。 Spicebird 目前僅提供 Windows 跟 Linux 版。 想要知道更進一步的資訊可以參考 Spicebird 0.4 release notes。

USB problems in Linux

Linux USB FAQ
Q: Why doesn't USB work at all? I get "device not accepting address".

A: This can be one of several problems:

* High speed devices sometimes have problems with cables used to connect them. They're more sensitive to signal quality issues than older usb 1.1 full or low speed devices. If the device works OK at full speed on the same system, after you "rmmod ehci-hcd", this is likely the problem you're seeing. There are a lot of things you can do to change signal quality.
o Use a different cable. Some are even marketed specifically for use with high speed devices. Most USB 1.1 cables work just fine at high speed, but the one you're using might be an exception (maybe it's been damaged).
o Switch to a different USB connector on your computer. Back panel connectors are often right on the motherboard, with much care taken to preserve signal quality. A front panel connector probably doesn't use cabling designed with USB in mind; and its cable could be damaged by bending, baking or something else even when it's not routed through the power supply.
o Use an external high speed hub. Those hubs have signal conditioning circuitry that may cover up certain flaws.
o Make sure your device is using its own external power supply, or that its battery is fully charged.
You might be able to get the same device to work at high speed on a different machine.
* You may have some problem with your PCI setup that's preventing your USB host controller from getting hardware interrupts. (Current Linux 2.6 kernels will actually tell you when they notice this problem; see the "dmesg" output.) When Linux submits a request, but never hears back from the controller, this is the diagnostic you'll see. To see if this is the problem, look at /proc/interrupts to see if the interrupt count for your host controller driver ever goes up. If it doesn't, this is the problem: either your BIOS isn't telling the truth to Linux (ACPI sometimes confuses these things, or setting the expected OS to windows in your BIOS), or Linux doesn't understand what it's saying.
* Sometimes a BIOS fix will be available for your motherboard, and in other cases a more recent kernel will have a Linux fix. You may be able to work around this by passing the noapic boot option to your kernel, or (when you're using an add-in PCI card) moving the USB adapter to some other PCI slot. If you're using a current kernel and BIOS, report this problem to the Linux-kernel mailing list, with details about your motherboard and BIOS.

Various users have had success with some specific strategy. I've collectioned their notes here.

2008年3月1日

Using a raw host hard disk from a guest in VirtualBox

VBoxManage internalcommands createrawvmdk -filename /media/data/vpc/sdc.vmdk -rawdisk /dev/sdc

2008年2月29日

ntpdate - error "no server suitable for synchronization found"

The 1-1024 port is blocked by CUHK (as for my case)
Soln:
sudo ntpdate -u ntp.ubuntu.com

2007年6月19日

results comparing the write, rewrite and read speeds of file system


Write Rewrite Read
JFS (kernel) 39 25 54
XFS (kernel) 31 16 30
NTFS-3G (FUSE) 31 14 30
ZFS (FUSE) 18 10 28