就如同官網上所講的, MSYS可以讓Windows有基本的Linux Shell的指令. MSYS is a collection of GNU utilities such as bash, make, gawk and grep to allow building of applications and programs which depend on traditionally UNIX tools to be present. It is intended to supplement MinGW and the deficiencies of the cmd shell. 但由於mingw-get-inst自動安裝程式下載msys的套件安裝還有問題, 所以我改用手動安裝. 官網的安裝說明: http://www.mingw.org/wiki/msys
發表文章
目前顯示的是 2010的文章
It seems the MinGw main site is broken currently. (2010 Oct 26) The automated MinGW Installer (mingw-get, mingw-get-inst) still can't find some of the packages. I do some googling and find another maintainer of MinGW -- TDM-GCC which has a better installer. Reference: http://wiki.codeblocks.org/index.php?title=MinGW_installation
複製硬碟由小到大簡單, 由大到小比較難, 我就遇到這種問題. 兩家2G的卡片, 就有不同的大小. 這是第一個CF的大小 Disk /dev/sda: 2079 MB, 2079866880 bytes 這是第二個的 Disk /dev/sdb: 2029 MB, 2029805568 bytes 這是partition的layout Device Boot Start End Blocks Id System /dev/sda1 * 2048 3756031 1876992 83 Linux /dev/sda2 3758078 4061183 151553 5 Extended /dev/sda5 3758080 4061183 151552 82 Linux swap / Solaris 在較小的CF卡上, 我決定將後面的swap放棄掉. Linux的partition不變. 1. 我先備份bootloader(Grub) $dd if=/dev/sda of=MBR-backup bs=446 count=1 我不備份到512bytes的原因, 是因為不想備份到partition table. 參考這篇文章: http://embraceubuntu.com/2005/10/20/backing-up-the-mbr/ 2. 按照之前sda所得到的partition table, 用fdisk設定到sdb上, 只有swap的partition變小. 並將之格式化. # mkfs.ext2 /dev/sdb1 swap 因為要設定UUID, 所以待會再做 再把bootloader 還原回去 $ dd if=MBR-backup of=/dev/sdb 3. 將/dev/sdb1 mount 到/mnt上, 用rsync備份根目錄下的資料到/mnt下 # mount /dev/sdb1 /mnt # cd / 因為mnt, proc, sys的目錄都是虛擬的檔案系統, 所以不用copy # rsync -a --exclude=mnt -...
Today I finished cross-compiling wvdial package. After I cross-compiling it, I found that it has some problem to load the wvdial.conf. And I also know that passing arguments to the wvdial is still working. Finally, I decide to modify the wvdial program to load the wvdial.conf by my own. I load the config file with iniParser and pass it to the cfg object. Now it works perfectly !! wvdial -- a utility that helps in making modem-based connections to the Internet wvdial site wvdial wiki iniParser home wvdial introduction