• /sys/i386/i386/locore.s分析笔记

    kernel的入口地址是/sys/i386/i386/locore.s中定义的btext: 200/********************************************************************** 201 * 202 * This is where the bootblocks start us, set the ball rolling... 203 * 204 */ 205NON_GPROF_ENTRY(btext) 从/b...

    2009-05-13 14:46:14

  • /sys/i386/include/pmap.h中与页表相关宏值的含义

    /sys/i386/include/pmap.h中定义的宏值: 94/* 95 * Size of Kernel address space.This is the number of page table pages 96 * (4MB each) to use for the kernel.256 pages == 1 Gigabyte. 97 * This **MUST** be a multiple of 4 (eg: 252, 256, 260, etc). 98 */...

    2009-05-13 14:45:54

  • FreeBSD下ls彩色显示

    FreeBSD下ls彩色显示 $ vi .profile alias ls='ls -G'#默认颜色 export LSCOLORS='ExfxcxdxBxegedabagacad'#更好看的颜色 $ . .profile 搞定 本文来自ChinaUnix博客,如果查看原文请点: http://blog.chinaunix.net/u/737/showart_1149253.html...

    2009-05-13 14:45:54

  • FreeBSD小纸条儿

    FreeBSD小纸条儿 作弊 ^_^ 1、问:如何让FreeBSD像RedHat那样在ls时显示多种颜色的目录? 答:在/etc/csh.cshrc里面加入: 代码: setenv LSCOLORS ExGxFxdxCxegedabagExEx setenv CLICOLOR yes 然后,执行: sed -i.bak -E s/set prompt/#set prompt/g /root/.cshrc 并...

    2009-05-13 14:45:54

  • FreeBSD下安装mysql支持GBK字符集

    在FreeBSD下安装mysql支持GBK字符集: #cd/usr/ports/databases/mysql51-server # make WITH_CHARSET=gbk WITH_XCHARSET=all WITH_PROC_SCOPE_PTH=yes BUILD_OPTIMIZED=yes BUILD_STATIC=yes SKIP_DNS_CHECK=yes WITHOUT_INNODB=yes install clean # cp /usr/local/shar...

    2009-05-13 14:45:34

  • AMP--安装和配置,测试

    配置平台:freebsd 7.0 软件列表 安装mysql cd /usr/ports/databases/mysql41-server make BUILD_OPTIMIZED=yesSKIP_DNS_CHECK=yes WITH_LANG=simplified-chinese make install clean; /usr/local/bin/mysql_install_db # 如果不设置这个,将不能启动 chown -R root /var...

    2009-05-13 14:45:34

  • freebsd在笔记本上相关知识备忘

    =========开启节电=========== 1. 内核配置中增加: device cpufreq 默认GENERIC里面有。 2. /etc/rc.conf 中增加: powerd_enable=YES 笔记本硬件支持情况 http://laptop.bsdgroup.de/freebsd/ 本文来自ChinaUnix博客,如果查看原文请点: http://blog.chinaunix.net/u...

    2009-05-13 14:45:15

  • 内核

    options QUOTA #启用磁盘配额 options SC_DISABLE_REBOOT #禁止热启动 Ctrl+Alt+Delete 本文来自ChinaUnix博客,如果查看原文请点: http://blog.chinaunix.net/u2/68572/showart_1147717.html...

    2009-05-13 14:45:15

  • mount

    1.mount FAT/FAT32分区:(C盘为例) mount -t msdos /dev/ad0s1 /mnt 或 mount_msdos /dev/ad0s1 /mnt for 4.x mount_msdosfs /dev/ad0s1 /mnt for 5.x 2.mout Windows的扩展分区(FAT/FAT32): 命令和1一样,只是要记住:扩展分区从s5开始,例如mount D盘,可用: mount...

    2009-05-13 14:45:15

  • Freebsd挂载光驱和软驱

    挂接光驱 mount -t cd9660 /dev/acd0 /cdrom 卸载光驱 umount -f /cdrom 挂接USB mount -t msdos /dev/da0s1 /mnt/usb 卸载USB umount /dev/da0s1 本文来自ChinaUnix博客,如果查看原文请点: http://blog.chinaunix.net/u/24098/showart_1146372.html...

    2009-05-13 14:44:55

2