<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LinuxSense &#187; FreeBSD</title>
	<atom:link href="http://www.linuxsense.org/archives/category/freebsd/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxsense.org</link>
	<description>分享Linux技术的点点滴滴</description>
	<lastBuildDate>Sat, 01 Aug 2009 05:23:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>FreeBSD下解决 &#8211; ld: cannot find -lltdl的错误</title>
		<link>http://www.linuxsense.org/archives/368.html</link>
		<comments>http://www.linuxsense.org/archives/368.html#comments</comments>
		<pubDate>Mon, 08 Sep 2008 02:04:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.linuxsense.org/?p=368</guid>
		<description><![CDATA[问题提示:ld: cannot find -lltdl 解决反感: cd /usr/ports/devel/libltdl15 &#38;&#38; make &#38;&#38; make install]]></description>
			<content:encoded><![CDATA[<p><DIV id=article_content><br />
<P>问题提示:<BR>ld: cannot find -lltdl</P><br />
<P>解决反感:</P><br />
<P>cd /usr/ports/devel/libltdl15 &amp;&amp; make &amp;&amp; make install</P></DIV></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxsense.org/archives/368.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD 下一块网卡绑定多IP</title>
		<link>http://www.linuxsense.org/archives/336.html</link>
		<comments>http://www.linuxsense.org/archives/336.html#comments</comments>
		<pubDate>Fri, 29 Aug 2008 11:29:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.linuxsense.org/?p=336</guid>
		<description><![CDATA[例如网卡em0原IP地址为192.168.0.3，现在为它绑定另一个IP：# ifconfig em0 192.168.0.4 netmask 255.255.255.255 alias 解释： 如果别名IP地址和网卡原IP地址在同一个子网上，就需要设置掩码为255.255.255.255如果位于不同的子网，就直接使用相应子网的正常网络掩码 从TCPIP的角度来看，这样做意味着什么呢？网络掩码的所有位都设置成1，就会保证ICPIP栈这样来看待包：只要包的目标地址匹配所有位，就把该包看成本地子网上的包；它创建了只有一个地址的“子网”。所有发送给该地址的包以及该地址接受的包都会发送给路由器，而不会发送到LAN上。如果多个别名使用了同一个网络掩码，这些别名的广播地址也应该相同，而这样却导致了TCPIP栈的混乱。使用全1的网络掩码，才能骗过ifconfig，让该命令允许单个接口卡上有多个IP地址。 以上这样做可以立即生效使用,但只要关机重启所做的设置就没有了,如要使设置永久有效就要在 /etc/rc.conf 中设置别名，应该使用 ifconfig_xxx#_alias# 关键字，该关键字的使用形式类似于 ifconfig_xxx#,如： ifconfig_em0=inet 192.168.0.3 netmask 255.255.255.0ifconfig_em0_alias0=inet 192.168.0.4 netmask 255.255.255.255ifconfig_em0_alias1=inet 192.168.1.2 netmask 255.255.255.0ifconfig_em0_alias2=inet 192.168.1.3 netmask 255.255.255.255 删除已绑定的IP可以用: #ifconfig em0 (delete&#124;remove&#124;-alias) 192.168.0.4]]></description>
			<content:encoded><![CDATA[<p><DIV id=art style="MARGIN: 15px"><br />
<P>例如网卡em0原IP地址为192.168.0.3，现在为它绑定另一个IP：<BR><BR># ifconfig em0 192.168.0.4 netmask 255.255.255.255 alias</P><br />
<P><BR>解释：</P><br />
<P>如果别名IP地址和网卡原IP地址在同一个子网上，就需要设置掩码为255.255.255.255<BR>如果位于不同的子网，就直接使用相应子网的正常网络掩码<BR></P><br />
<P>从TCPIP的角度来看，这样做意味着什么呢？<BR>网络掩码的所有位都设置成1，就会保证ICPIP栈这样来看待包：<BR>只要包的目标地址匹配所有位，就把该包看成本地子网上的包；它创建了只有一个地址的“子网”。<BR>所有发送给该地址的包以及该地址接受的包都会发送给路由器，而不会发送到LAN上。<BR>如果多个别名使用了同一个网络掩码，这些别名的广播地址也应该相同，而这样却导致了TCPIP栈的混乱。<BR>使用全1的网络掩码，才能骗过ifconfig，让该命令允许单个接口卡上有多个IP地址。<BR></P><br />
<P>以上这样做可以立即生效使用,但只要关机重启所做的设置就没有了,如要使设置永久有效就要在 /etc/rc.conf 中设置别名，应该使用 ifconfig_xxx#_alias# 关键字，该关键字的使用形式类似于 ifconfig_xxx#,如：</P><br />
<P><BR>ifconfig_em0=inet 192.168.0.3 netmask 255.255.255.0<BR>ifconfig_em0_alias0=inet 192.168.0.4 netmask 255.255.255.255<BR>ifconfig_em0_alias1=inet 192.168.1.2 netmask 255.255.255.0<BR>ifconfig_em0_alias2=inet 192.168.1.3 netmask 255.255.255.255</P><br />
<DIV>删除已绑定的IP可以用:</DIV><br />
<DIV>#ifconfig em0 (delete|remove|-alias) 192.168.0.4</DIV><br />
<DIV></DIV></DIV></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxsense.org/archives/336.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD Sysctl内核参数说明</title>
		<link>http://www.linuxsense.org/archives/249.html</link>
		<comments>http://www.linuxsense.org/archives/249.html#comments</comments>
		<pubDate>Sat, 02 Aug 2008 05:22:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.linuxsense.org/?p=249</guid>
		<description><![CDATA[* kern.ostype: Operating system type * kern.osrelease: Operating system release * kern.osrevision: Operating system revision * kern.version: Kernel version * kern.maxvnodes: Maximum number of vnodes * kern.maxproc: Maximum number of processes * kern.maxfiles: Maximum number of files * kern.argmax: Maximum bytes of arguement to execve(2) * kern.securelevel: Current secure level * kern.hostname: Hostname * kern.hostid: [...]]]></description>
			<content:encoded><![CDATA[<p>* kern.ostype: Operating system type <BR>* kern.osrelease: Operating system release <BR>* kern.osrevision: Operating system revision <BR>* kern.version: Kernel version <BR>* kern.maxvnodes: Maximum number of vnodes <BR>* kern.maxproc: Maximum number of processes <BR>* kern.maxfiles: Maximum number of files <BR>* kern.argmax: Maximum bytes of arguement to execve(2) <BR>* kern.securelevel: Current secure level <BR>* kern.hostname: Hostname <BR>* kern.hostid: Host ID <BR>kern.clockrate <BR>* kern.proc.all: Return entire process table <BR>* kern.file: Return file table <BR>* kern.posix1version: Version of POSIX attempting to comply to <BR>* kern.ngroups: Maximum number of groups a user can belong to <BR>* kern.job_control: Whether job control is avaliable <BR>* kern.saved_ids: Whether saved set-group/user ID is avaliable <BR>* kern.boottime: System boottime <BR>* kern.domainname: Name of the current YP/NIS domain <BR>* kern.osreldate: Operating system release date <BR>kern.ntp_pll.gettime <BR>* kern.bootfile: Name of kernel file booted <BR>* kern.maxfilesperproc: Maximum files allowed open per process <BR>* kern.maxprocperuid: Maximum processes allowed per userid <BR>kern.dumpdev: Device to crashdump to <BR>* kern.ipc.maxsockbuf: Maximum socket buffer size <BR>kern.ipc.sockbuf_waste_factor <BR>* kern.ipc.somaxconn: Maximum pending socket connection queue size <BR>kern.ipc.max_linkhdr <BR>kern.ipc.max_protohdr <BR>kern.ipc.max_hdr <BR>kern.ipc.max_datalen <BR>kern.ipc.mbstat <BR>* kern.ipc.nmbclusters: Maximum number of mbuf clusters avaliable for network IO <BR>* kern.ipc.maxsockets: Maximum number of sockets avaliable <BR>kern.dummy: <BR>XXX This should be yanked from the source, its the old kern.maxsockbuf, <BR>wollman decided to keep the SYSCTL OID valid (but returning nothing, as <BR>kern.dummy does.) <BR>kern.ps_strings <BR>kern.usrstack <BR>* kern.logsigexit: Log processes quitting on abnormal signals to syslog(3) <BR>kern.cam.cd.changer.min_busy_seconds <BR>kern.cam.cd.changer.max_busy_seconds <BR>* kern.module_path: module load search path <BR>kern.acct_suspend <BR>kern.acct_resume <BR>kern.acct_chkfreq <BR>kern.timecounter.method <BR>kern.timecounter.frequency <BR>kern.timecounter.adjustment <BR>* kern.fast_vfork: Enable fast vfork() by using RFMEM to share address space instead of copying it <BR>* kern.sugid_coredump: Enable coredumping set user/group ID processes <BR>* kern.corefile: process corefile name format string <BR>kern.quantum <BR>kern.ccpu <BR>kern.fscale <BR>* kern.devstat.all: All devices in the devstat list <BR>* kern.devstat.numdevs: Number of devices in the devstat list <BR>* kern.devstat.generation: Devstat list generation <BR>* kern.devstat.version: Devstat list version number <BR>kern.consmute <BR>* vm.vmmeter: System virtual memory statistics <BR>* vm.loadavg: Machine loadaverage history <BR>vm.v_free_min <BR>vm.v_free_target <BR>vm.v_free_reserved <BR>vm.v_inactive_target <BR>vm.v_cache_min <BR>vm.v_cache_max <BR>vm.v_pageout_free_min <BR>vm.pageout_algorithm <BR>vm.swap_enabled <BR>vm.swap_idle_threshold1 <BR>vm.swap_idle_threshold2 <BR>* vm.stats.sys.v_swtch: Context switches <BR>* vm.stats.sys.v_trap: Traps <BR>* vm.stats.sys.v_syscall: Syscalls <BR>* vm.stats.sys.v_intr: Hardware Interrupts <BR>* vm.stats.sys.v_soft: Software Interrupts <BR>* vm.stats.vm.v_vm_faults: VM faults <BR>* vm.stats.vm.v_cow_faults: COW faults <BR>* vm.stats.vm.v_cow_optim: Optimized COW faults <BR>* vm.stats.vm.v_zfod: Zero fill <BR>* vm.stats.vm.v_ozfod: Optimized zero fill <BR>* vm.stats.vm.v_swapin: Swapin operations <BR>* vm.stats.vm.v_swapout: Swapout operations <BR>* vm.stats.vm.v_swappgsin: Swapin pages <BR>* vm.stats.vm.v_swappgsout: Swapout pages <BR>* vm.stats.vm.v_vnodein: Vnodein operations <BR>* vm.stats.vm.v_vnodeout: Vnodeout operations <BR>* vm.stats.vm.v_vnodepgsin: Vnodein pages <BR>* vm.stats.vm.v_vnodepgsout: Vnodeout pages <BR>* vm.stats.vm.v_intrans: In transit page blocking <BR>* vm.stats.vm.v_reactivated: Reactivated pages <BR>* vm.stats.vm.v_pdwakeups: Pagedaemon wakeups <BR>* vm.stats.vm.v_pdpages: Pagedaemon page scans <BR>vm.stats.vm.v_dfree <BR>vm.stats.vm.v_pfree <BR>vm.stats.vm.v_tfree <BR>vm.stats.vm.v_page_size <BR>vm.stats.vm.v_page_count <BR>vm.stats.vm.v_free_reserved <BR>vm.stats.vm.v_free_target <BR>vm.stats.vm.v_free_min <BR>vm.stats.vm.v_free_count <BR>vm.stats.vm.v_wire_count <BR>vm.stats.vm.v_active_count <BR>vm.stats.vm.v_inactive_target <BR>vm.stats.vm.v_inactive_count <BR>vm.stats.vm.v_cache_count <BR>vm.stats.vm.v_cache_min <BR>vm.stats.vm.v_cache_max <BR>vm.stats.vm.v_pageout_free_min <BR>vm.stats.vm.v_interrupt_free_min <BR>vm.stats.misc.zero_page_count <BR>vm.stats.misc.cnt_prezero <BR>vm.pageout_stats_max <BR>vm.pageout_full_stats_interval <BR>vm.pageout_stats_interval <BR>vm.pageout_stats_free_max <BR>vm.swap_idle_enabled <BR>vm.defer_swapspace_pageouts <BR>vm.disable_swapspace_pageouts <BR>vm.max_page_launder <BR>vm.zone <BR>vm.zone_kmem_pages <BR>vm.zone_kmem_kvaspace <BR>vm.zone_kern_pages <BR>vfs.generic <BR>vfs.nfs.nfsstats <BR>vfs.nfs.nfs_privport <BR>vfs.nfs.async <BR>vfs.nfs.gatherdelay <BR>vfs.nfs.gatherdelay_v3 <BR>vfs.nfs.defect <BR>vfs.nfs.diskless_valid <BR>vfs.nfs.diskless_rootpath <BR>vfs.nfs.diskless_rootaddr <BR>vfs.nfs.diskless_swappath <BR>vfs.nfs.diskless_swapaddr <BR>vfs.nfs.access_cache_timeout <BR>vfs.nfs.access_cache_hits <BR>vfs.nfs.access_cache_fills <BR>vfs.numdirtybuffers <BR>vfs.lodirtybuffers <BR>vfs.hidirtybuffers <BR>vfs.numfreebuffers <BR>vfs.lofreebuffers <BR>vfs.hifreebuffers <BR>vfs.maxbufspace <BR>vfs.bufspace <BR>vfs.maxvmiobufspace <BR>vfs.vmiospace <BR>vfs.maxmallocbufspace <BR>vfs.bufmallocspace <BR>vfs.kvafreespace <BR>vfs.cache.numneg <BR>vfs.cache.numcache <BR>vfs.cache.numcalls <BR>vfs.cache.dothits <BR>vfs.cache.dotdothits <BR>vfs.cache.numchecks <BR>vfs.cache.nummiss <BR>vfs.cache.nummisszap <BR>vfs.cache.numposzaps <BR>vfs.cache.numposhits <BR>vfs.cache.numnegzaps <BR>vfs.cache.numneghits <BR>vfs.cache.numcwdcalls <BR>vfs.cache.numcwdfail1 <BR>vfs.cache.numcwdfail2 <BR>vfs.cache.numcwdfail3 <BR>vfs.cache.numcwdfail4 <BR>vfs.cache.numcwdfound <BR>vfs.mod0 <BR>vfs.mod1 <BR>vfs.usermount <BR>vfs.aio.max_aio_per_proc <BR>vfs.aio.max_aio_queue_per_proc <BR>vfs.aio.max_aio_procs <BR>vfs.aio.num_aio_procs <BR>vfs.aio.num_queue_count <BR>vfs.aio.max_aio_queue <BR>vfs.aio.target_aio_procs <BR>vfs.aio.max_buf_aio <BR>vfs.aio.num_buf_aio <BR>vfs.aio.aiod_lifetime <BR>vfs.aio.aiod_timeout <BR>vfs.ffs.doreallocblks <BR>vfs.ffs.doasyncfree <BR>net.local.stream.sendspace <BR>net.local.stream.recvspace <BR>net.local.stream.pcblist <BR>net.local.dgram.maxdgram <BR>net.local.dgram.recvspace <BR>net.local.dgram.pcblist <BR>net.local.inflight <BR>net.inet.ip.portrange.lowfirst: First port for &#8216;trusted&#8217; socket binds <BR>net.inet.ip.portrange.lowlast: Last port for &#8216;trusted&#8217; socket binds <BR>net.inet.ip.portrange.first: First port for normal socket binds <BR>net.inet.ip.portrange.last: Last port for normal socket binds <BR>net.inet.ip.portrange.hifirst: First port for &#8216;high&#8217; socket binds ( XXX huh? <img src='http://www.linuxsense.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <BR>net.inet.ip.portrange.hilast: Last port for &#8216;high&#8217; socket binds <BR>* net.inet.ip.forwarding: Enable IP forwarding between interfaces <BR>* net.inet.ip.redirect: Enable sending IP redirects <BR>* net.inet.ip.ttl: Maximum TTL on IP packets <BR>* net.inet.ip.rtexpire: Default expiry time on dynamically learnt routes <BR>* net.inet.ip.rtminexpire: Minimum time to attempt to hold onto dynamically learnt routes <BR>* net.inet.ip.rtmaxcache: Upper limit on dynamically learnt routes <BR>* net.inet.ip.sourceroute: Enable forwarding source routed IP packets <BR>* net.inet.ip.intr_queue_maxlen: Maximum size of the IP input queue <BR>* net.inet.ip.intr_queue_drops: Number of packets dropped from the IP input queue <BR>* net.inet.ip.stats: IP statistics (struct ipstat, netinet/ip_var.h) <BR>* net.inet.ip.accept_sourceroute: Enable accepting source routed IP packets <BR>* net.inet.ip.fastforwarding: Enable flow-based IP forwarding <BR>* net.inet.ip.mtu: Default MTU <BR>net.inet.ip.subnets_are_local <BR>* net.inet.ip.fw.debug: Enable printing of debug ip_fw statements <BR>* net.inet.ip.fw.one_pass: Only do a single pass through ipfw rules when using divert(4) <BR>* net.inet.ip.fw.verbose: Log matches to ipfw rules <BR>* net.inet.ip.fw.verbose_limit: Set upper limit of matches of ipfw rules logged <BR>net.inet.icmp.maskrepl <BR>net.inet.icmp.stats <BR>net.inet.icmp.icmplim <BR>net.inet.icmp.bmcastecho <BR>net.inet.igmp.stats <BR>* net.inet.tcp.rfc1323: Enable rfc1323 (high performance TCP) extensions <BR>* net.inet.tcp.rfc1644: Enable rfc1644 (TTCP) extensions <BR>* net.inet.tcp.mssdflt: Default TCP Maximum Segment Size <BR>* net.inet.tcp.stats: TCP statistics (struct tcpstat, netinet/tcp_var.h) <BR>* net.inet.tcp.rttdflt: Default maximum TCP Round Trip Time <BR>net.inet.tcp.keepidle:Allowed connection idle ticks before a keepalive probe is sent <BR>net.inet.tcp.keepintvl：Ticks before next keepalive probe is sent <BR>* net.inet.tcp.sendspace: Maximum outgoing TCP datagram size (frag or total pkt?) <BR>* net.inet.tcp.recvspace: Maximum incoming TCP datagram size (frag or total pkt?) <BR>net.inet.tcp.keepinit <BR>* net.inet.tcp.pcblist: List of active TCP connections <BR>* net.inet.tcp.log_in_vain: Log all incoming TCP connections <BR>* net.inet.tcp.delayed_ack: Delay ACK to try and piggyback it onto a data packet <BR>* net.inet.tcp.pcbcount: Number of active PCBs <BR>* net.inet.tcp.always_keepalive: Assume SO_KEEPALIVE on all TCP connections <BR>net.inet.udp.checksum <BR>* net.inet.udp.stats: UDP statistics (struct udpstat, netinet/udp_var.h) <BR>* net.inet.udp.maxdgram: Maximum outgoing UDP datagram size <BR>* net.inet.udp.recvspace: Maximum incoming UDP datagram size <BR>* net.inet.udp.pcblist: List of active UDP sockets <BR>* net.inet.udp.log_in_vain: Log all incoming UDP packets <BR>* net.inet.raw.maxdgram: Maximum outgoing raw IP datagram size <BR>* net.inet.raw.recvspace: Maximum incoming raw IP datagram size <BR>* net.inet.raw.pcblist: List of active raw IP sockets <BR>net.link.generic.system.ifcount <BR>net.link.ether.inet.prune_intvl <BR>net.link.ether.inet.max_age <BR>net.link.ether.inet.host_down_time <BR>net.link.ether.inet.maxtries <BR>net.link.ether.inet.useloopback <BR>net.link.ether.inet.proxyall <BR>debug.elf_trace <BR>debug.fdexpand <BR>* debug.debugger_on_panic: Run debugger on kernel panic <BR>debug.ttydebug <BR>debug.nchash <BR>debug.ncnegfactor <BR>debug.numneg <BR>debug.numcache <BR>debug.vfscache <BR>debug.vnsize <BR>debug.ncsize <BR>debug.numvnodes <BR>debug.wantfreevnodes <BR>debug.freevnodes <BR>debug.disablecwd <BR>debug.bpf_bufsize <BR>debug.if_tun_debug <BR>debug.ncr_debug <BR>debug.tsc_timecounter <BR>debug.i8254_timecounter <BR>hw.machine: Machine class <BR>hw.model: Machine model <BR>* hw.ncpu: Number of active CPUs <BR>* hw.byteorder: System byte order <BR>hw.physmem: Physical memory in system <BR>hw.usermem: Physical memory avaliable to user processes <BR>* hw.pagesize: System memory page size <BR>hw.floatingpoint: Hardware floating point support present <BR>hw.machine_arch: System architecture <BR>hw.availpages <BR>machdep.consdev <BR>machdep.adjkerntz <BR>machdep.disable_rtc_set <BR>machdep.bootinfo <BR>machdep.wall_cmos_clock <BR>* machdep.do_dump: Do coredump on kernel panic <BR>machdep.ispc98 <BR>machdep.msgbuf: Kernel message buffer <BR>machdep.msgbuf_clear <BR>machdep.i8254_freq <BR>machdep.tsc_freq <BR>machdep.cs_recv_delay <BR>machdep.conspeed <BR>* user.cs_path: PATH that finds all the standard utilities <BR>* user.bc_base_max: Max ibase/obase values in bc(1) <BR>* user.bc_dim_max: Max array size in bc(1) <BR>* user.bc_scale_max: Max scale value in bc(1) <BR>* user.bc_string_max: Max string length in bc(1) <BR>* user.coll_weights_max: Maximum number of weights assigned to an LC_COLLATE locale entry <BR>user.expr_nest_max <BR>* user.line_max: Max length (bytes) of a text-processing utility&#8217;s input line <BR>* user.re_dup_max: Maximum number of repeats of a regexp permitted when using interval notation <BR>* user.posix2_version: The version of POSIX 1003.2 with which the system attempts to comply <BR>* user.posix2_c_bind: Whether C development supports the C bindings option <BR>* user.posix2_c_dev: Whether system supports the C development utilities option <BR>user.posix2_char_term <BR>* user.posix2_fort_dev: Whether system supports FORTRAN development utilities <BR>* user.posix2_fort_run: Whether system supports FORTRAN runtime utilities <BR>* user.posix2_localedef: Whether system supports creation of locales <BR>* user.posix2_sw_dev: Whether system supports software development utilities <BR>* user.posix2_upe: Whether system supports the user portability utilities <BR>* user.stream_max: Min Maximum number of streams a process may have open at one time <BR>* user.tzname_max: Min Maximum number of types supported for timezone names <BR>p1003_1b.asynchronous_io <BR>p1003_1b.mapped_files <BR>p1003_1b.memlock <BR>p1003_1b.memlock_range <BR>p1003_1b.memory_protection <BR>p1003_1b.message_passing <BR>p1003_1b.prioritized_io <BR>p1003_1b.priority_scheduling <BR>p1003_1b.realtime_signals <BR>p1003_1b.semaphores <BR>p1003_1b.fsync <BR>p1003_1b.shared_memory_objects <BR>p1003_1b.synchronized_io <BR>p1003_1b.timers <BR>p1003_1b.aio_listio_max <BR>p1003_1b.aio_max <BR>p1003_1b.aio_prio_delta_max <BR>p1003_1b.delaytimer_max <BR>p1003_1b.mq_open_max <BR>p1003_1b.pagesize <BR>p1003_1b.rtsig_max <BR>p1003_1b.sem_nsems_max <BR>p1003_1b.sem_value_max <BR>p1003_1b.sigqueue_max <BR>p1003_1b.timer_max <BR></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxsense.org/archives/249.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sysinstall介绍</title>
		<link>http://www.linuxsense.org/archives/232.html</link>
		<comments>http://www.linuxsense.org/archives/232.html#comments</comments>
		<pubDate>Mon, 28 Jul 2008 01:32:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.linuxsense.org/?p=232</guid>
		<description><![CDATA[&#160;介绍 Sysinstall 　　sysinstall 是 FreeBSD 项目所提供的安装程序。它以 console(控制台)为主， 分为多个菜单及画面让您配置及控制安装过程。 　　sysinstall 菜单画面由方向键、 Enter、Tab、Space，以及其它按键所控制。在主画面的 Usage 菜单有这些按键的说明。 　　要查看这些说明，请将光标移到 Usage 项目，然后 [Select] 按键被选择，然后按下 Enter 键。 　　安装画面的使用说明会显示出来，阅读完毕请按 Enter 键回到主画面。 选取 Sysinstall 主菜单的 Usage 项目 选择 Documentation(说明文件) 菜单 　　用方向键从主菜单选择 Doc 条目然后按 Enter键。 选择说明文件菜单 　　这将会进入说明文件菜单。 Sysinstall 说明文件菜单 　　阅读这些说明文件很重要。 　　要阅读一篇文章，请用方向键选取要阅读的文章然后按 Enter 键。阅读中再按一下 Enter 就会回到说明文件画面。 　　若要回到主菜单，用方向键选择 Exit 然后按下 Enter 键。 选择键盘对应(Keymap)菜单 　　如果要改变键盘按键的对应方式， 请在主菜单选取 Keymap 然后按 [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;介绍 Sysinstall<br />
<P>　　<B class=APPLICATION>sysinstall</B> 是 FreeBSD 项目所提供的安装程序。它以 console(控制台)为主， 分为多个菜单及画面让您配置及控制安装过程。</P><br />
<P>　　<B class=APPLICATION>sysinstall</B> 菜单画面由方向键、 <B class=KEYCAP>Enter</B>、<B class=KEYCAP>Tab</B>、<B class=KEYCAP>Space</B>，以及其它按键所控制。在主画面的 Usage 菜单有这些按键的说明。</P><br />
<P>　　要查看这些说明，请将光标移到 <SPAN class=GUIMENUITEM>Usage</SPAN> 项目，然后 <SPAN class=GUIBUTTON>[Select]</SPAN> 按键被选择，然后按下 <B class=KEYCAP>Enter</B> 键。</P><br />
<P>　　安装画面的使用说明会显示出来，阅读完毕请按 <B class=KEYCAP>Enter</B> 键回到主画面。</P><br />
<DIV class=FIGURE><A id=SYSINSTALL-MAIN3 name=SYSINSTALL-MAIN3></A><br />
<P><B>选取 Sysinstall 主菜单的 Usage 项目</B></P><br />
<P><IMG src="http://www.freebsd.org/doc/zh_CN/books/handbook/install/main1.png"></P></DIV><br />
<DIV class=SECT2><br />
<H2 class=SECT2><A id=SELECT-DOC name=SELECT-DOC>选择 Documentation(说明文件) 菜单</A></H2><br />
<P>　　用方向键从主菜单选择 <SPAN class=GUIMENUITEM>Doc</SPAN> 条目然后按 <B class=KEYCAP>Enter</B>键。</P><br />
<DIV class=FIGURE><A id=MAIN-DOC name=MAIN-DOC></A><br />
<P><B>选择说明文件菜单</B></P><br />
<P><IMG src="http://www.freebsd.org/doc/zh_CN/books/handbook/install/main-doc.png"></P></DIV><br />
<P>　　这将会进入说明文件菜单。</P><br />
<DIV class=FIGURE><A id=DOCMENU1 name=DOCMENU1></A><br />
<P><B>Sysinstall 说明文件菜单</B></P><br />
<P><IMG src="http://www.freebsd.org/doc/zh_CN/books/handbook/install/docmenu1.png"></P></DIV><br />
<P>　　阅读这些说明文件很重要。</P><br />
<P>　　要阅读一篇文章，请用方向键选取要阅读的文章然后按 <B class=KEYCAP>Enter</B> 键。阅读中再按一下 <B class=KEYCAP>Enter</B> 就会回到说明文件画面。</P><br />
<P>　　若要回到主菜单，用方向键选择 <SPAN class=GUIMENUITEM>Exit</SPAN> 然后按下 <B class=KEYCAP>Enter</B> 键。</P></DIV><br />
<DIV class=SECT2><br />
<H2 class=SECT2><A id=KEYMAP name=KEYMAP>选择键盘对应(Keymap)菜单</A></H2><br />
<P>　　如果要改变键盘按键的对应方式， 请在主菜单选取 <SPAN class=GUIMENUITEM>Keymap</SPAN> 然后按 <B class=KEYCAP>Enter</B> 键。一般情况下不改变此项， 除非您使用了非标准键盘或非美国键盘。</P><br />
<DIV class=FIGURE><A id=SYSINSTALL-KEYMAP name=SYSINSTALL-KEYMAP></A><br />
<P><B>Sysinstall 主菜单</B></P><br />
<P><IMG src="http://www.freebsd.org/doc/zh_CN/books/handbook/install/main-keymap.png"></P></DIV><br />
<P>　　您可以使用上下键移动到您想使用的键盘对应方式， 然后按下 <B class=KEYCAP>Space</B> 键以选取它；再按 <B class=KEYCAP>Space</B> 键可以取消选取。当您完成后， 请选择 <SPAN class=GUIBUTTON>[&nbsp;OK&nbsp;]</SPAN> 然后按 <B class=KEYCAP>Enter</B> 键。</P><br />
<P>　　这一屏幕只显示出部分列表。选择 <SPAN class=GUIBUTTON>[&nbsp;Cancel&nbsp;]</SPAN> 按 <B class=KEYCAP>Tab</B> 键将使用默认的键盘对应， 并返回到主菜单</P><br />
<DIV class=FIGURE><A id=SYSINSTALL-KEYMAP-MENU name=SYSINSTALL-KEYMAP-MENU></A><br />
<P><B>Sysinstall 键盘对应菜单</B></P><br />
<P><IMG src="http://www.freebsd.org/doc/zh_CN/books/handbook/install/keymap.png"></P></DIV></DIV><br />
<DIV class=SECT2><br />
<H2 class=SECT2><A id=VIEWSETOPTIONS name=VIEWSETOPTIONS>安装选项设置画面</A></H2><br />
<P>　　选择 <SPAN class=GUIMENUITEM>Options</SPAN> 然后按 <B class=KEYCAP>Enter</B> 键。</P><br />
<DIV class=FIGURE><A id=SYSINSTALL-OPTIONS name=SYSINSTALL-OPTIONS></A><br />
<P><B>Sysinstall 主菜单</B></P><br />
<P><IMG src="http://www.freebsd.org/doc/zh_CN/books/handbook/install/main-options.png"></P></DIV><br />
<DIV class=FIGURE><A id=OPTIONS name=OPTIONS></A><br />
<P><B>Sysinstall 选项设置</B></P><br />
<P><IMG src="http://www.freebsd.org/doc/zh_CN/books/handbook/install/options.png"></P></DIV><br />
<P>　　预设值通常可以适用于大部分的使用者，您并不需要改变它们。版本名称要根据安装的版本进行变化。</P><br />
<P>　　目前选择项目的描述会在屏幕下方以蓝底白字显示。 注意其中有一个项目是 <SPAN class=GUIMENUITEM>Use Defaults(使用默认值)</SPAN> 您可以由此项将所有的设定还原为预设值。</P><br />
<P>　　可以按下 <B class=KEYCAP>F1</B> 来阅读各选项的说明。</P><br />
<P>　　按 <B class=KEYCAP>Q</B> 键可以回到主画面。</P></DIV><br />
<DIV class=SECT2><br />
<H2 class=SECT2><A id=START-INSTALL name=START-INSTALL>开始进行标准安装</A></H2><br />
<P>　　<SPAN class=GUIMENUITEM>Standard(标准)</SPAN> 安装适用于那些 <SPAN class=TRADEMARK>UNIX</SPAN>&reg; 或 FreeBSD 的初级使用者。用方向键选择 <SPAN class=GUIMENUITEM>Standard</SPAN> 然后按 <B class=KEYCAP>Enter</B> 键可开始进入标准安装。</P><br />
<DIV class=FIGURE><A id=SYSINSTALL-STANDARD name=SYSINSTALL-STANDARD></A><br />
<P><B>开始进行标准安装</B></P><br />
<P><IMG src="http://www.freebsd.org/doc/zh_CN/books/handbook/install/main-std.png"></P></DIV></DIV></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxsense.org/archives/232.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决freebsd下svnserve启动默认是TCP6的3690端口</title>
		<link>http://www.linuxsense.org/archives/198.html</link>
		<comments>http://www.linuxsense.org/archives/198.html#comments</comments>
		<pubDate>Fri, 11 Jul 2008 09:26:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[svnserve]]></category>
		<category><![CDATA[TCP6 3690]]></category>

		<guid isPermaLink="false">http://www.linuxsense.org/?p=198</guid>
		<description><![CDATA[今天在freebsd安装subversion,# pkg_add -r subversion然后, 就直接像在linux下启动svnserve了# svnserve -d -r /www/svnroot/配置文件都修改完毕, 添加了一个用户之后, 发现无法检出, netstat 了一下看到居然是TCP6的3690端口好先进啊, 看看svnserve &#8211;help可以指定监听主机和端口, 所以这样启动就没问题啦# svnserve -d -r /www/svnroot/ &#8211;listen-host=0.0.0.0 &#8211;listen-port=3690]]></description>
			<content:encoded><![CDATA[<p><!-- Posts --><br />
<DIV id=topstory><br />
<P>今天在freebsd安装subversion,<BR># pkg_add -r subversion<BR>然后, 就直接像在linux下启动svnserve了<BR># svnserve -d -r /www/svnroot/<BR>配置文件都修改完毕, 添加了一个用户之后, 发现无法检出, netstat 了一下看到居然是TCP6的3690端口<BR>好先进啊, 看看svnserve &#8211;help<BR>可以指定监听主机和端口, 所以这样启动就没问题啦<BR># svnserve -d -r /www/svnroot/ &#8211;listen-host=0.0.0.0 &#8211;listen-port=3690</P></DIV></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxsense.org/archives/198.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决ELF interpreter /libexec/ld-elf32.so.1 not found(freebsd)</title>
		<link>http://www.linuxsense.org/archives/192.html</link>
		<comments>http://www.linuxsense.org/archives/192.html#comments</comments>
		<pubDate>Tue, 08 Jul 2008 01:36:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.linuxsense.org/?p=192</guid>
		<description><![CDATA[碰到ELF interpreter /libexec/ld-elf32.so.1 not found错误, 其实就是在64位平台上运行32位软件的不兼容造成的. 解决方法:其实很简单就是安装lib32, 安装步骤如下:运行sysinstall -&#62; Configure -&#62; Distributions -&#62; src -&#62; 选择lib32这样错误就不再啦]]></description>
			<content:encoded><![CDATA[<p><P>碰到ELF interpreter /libexec/ld-elf32.so.1 not found错误, 其实就是在64位平台上运行32位软件的不兼容造成的.</P><br />
<P>解决方法:<BR>其实很简单就是安装lib32, 安装步骤如下:<BR>运行sysinstall -&gt; Configure -&gt; Distributions -&gt; src -&gt; 选择lib32<BR>这样错误就不再啦</P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxsense.org/archives/192.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx使用不同的用户来跑fastcgi</title>
		<link>http://www.linuxsense.org/archives/181.html</link>
		<comments>http://www.linuxsense.org/archives/181.html#comments</comments>
		<pubDate>Sat, 31 May 2008 01:15:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.linuxsense.org/?p=181</guid>
		<description><![CDATA[今天在freebsd下用ports方式安装nginx+php+mysql环境, nginx使用www用户来跑的, 然后使用lighttpd中附带的spawn-fcgi来启动php-cgi, 我依然是用www用户来跑的fastcgi, 但是服务器上有多个用户, 我不想让他们使用一个用户来跑, 从安全上的考虑, 我可不想别人跨目录搞自己的站, 现在的phpshell都这么NB.后来经朋友指点发现可以启动不同的fastcgi进程来解决这个问题, 一个用户只启动自己的进程,用自己的端口, 后来想了一下, 真的非常简单, 在使用spawn-fcgi启动的时候指定不同的端口指定不同的用户多简单啊, 唯一不爽的就是要多几个配置文件, 至少得一个用户一个吧 nginx的虚拟主机配置文件里有加载php的地方, 类似如下的&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; location ~ .*\.php?$&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; include php5.conf;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }这个时候你就可以指定不同的配置文件了, 例如在虚拟主机hao32.com.conf里, 你可以使用hao32这个用户来跑一系列php-cgi进程:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; location ~ .*\.php?$&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; include php5_hao32.conf;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }那么这个php5_hao32.conf文件里必须有:fastcgi_pass&#160; 127.0.0.1:8809; (其中8809是hao32用户独立占用的端口, 可以自定义) 在启动nginx之前可以先使用spawn-fcgi以hao32用户和8099端口来启动一系列php-cgi进程,以此类推, 可以启动多组不同用户的和不同端口的php-cgi进程 这样安全很多了]]></description>
			<content:encoded><![CDATA[<p><P>今天在freebsd下用ports方式安装nginx+php+mysql环境, nginx使用www用户来跑的, 然后使用lighttpd中附带的spawn-fcgi来启动php-cgi, 我依然是用www用户来跑的fastcgi, 但是服务器上有多个用户, 我不想让他们使用一个用户来跑, 从安全上的考虑, 我可不想别人跨目录搞自己的站, 现在的phpshell都这么NB.<BR>后来经朋友指点发现可以启动不同的fastcgi进程来解决这个问题, 一个用户只启动自己的进程,用自己的端口, 后来想了一下, 真的非常简单, 在使用spawn-fcgi启动的时候指定不同的端口指定不同的用户多简单啊, 唯一不爽的就是要多几个配置文件, 至少得一个用户一个吧</P><br />
<P>nginx的虚拟主机配置文件里有加载php的地方, 类似如下的<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location ~ .*\.php?$<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include php5.conf;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>这个时候你就可以指定不同的配置文件了, 例如在虚拟主机hao32.com.conf里, 你可以使用hao32这个用户来跑一系列php-cgi进程:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location ~ .*\.php?$<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include php5_hao32.conf;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>那么这个php5_hao32.conf文件里必须有:<BR>fastcgi_pass&nbsp; 127.0.0.1:8809; (其中8809是hao32用户独立占用的端口, 可以自定义)</P><br />
<P>在启动nginx之前可以先使用spawn-fcgi以hao32用户和8099端口来启动一系列php-cgi进程,<BR>以此类推, 可以启动多组不同用户的和不同端口的php-cgi进程</P><br />
<P>这样安全很多了</P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxsense.org/archives/181.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD 之 updatedb</title>
		<link>http://www.linuxsense.org/archives/180.html</link>
		<comments>http://www.linuxsense.org/archives/180.html#comments</comments>
		<pubDate>Thu, 29 May 2008 01:18:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.linuxsense.org/?p=180</guid>
		<description><![CDATA[FreeBSD的updatedb, 众所周知, locate是非常方便的查找工具, 但是我们在FreeBSD下执行locate查找的时候却报错: &#160;locate: database too small: /var/db/locate.database 熟悉linux的朋友可能会直接updatedb, 但是提示没有此命令, 这里要说的是, 在FreeBSD下执行: # /usr/libexec/locate.updatedb就可以了]]></description>
			<content:encoded><![CDATA[<p><P>FreeBSD的updatedb, 众所周知, locate是非常方便的查找工具, </P><br />
<P>但是我们在FreeBSD下执行locate查找的时候却报错:</P><br />
<P>&nbsp;locate: database too small: /var/db/locate.database</P><br />
<P>熟悉linux的朋友可能会直接updatedb, 但是提示没有此命令, 这里要说的是, </P><br />
<P>在FreeBSD下执行: # /usr/libexec/locate.updatedb就可以了</P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxsense.org/archives/180.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD使用CVSup更新ports</title>
		<link>http://www.linuxsense.org/archives/179.html</link>
		<comments>http://www.linuxsense.org/archives/179.html#comments</comments>
		<pubDate>Wed, 28 May 2008 03:42:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.linuxsense.org/?p=179</guid>
		<description><![CDATA[本文详细介绍了FreeBSD使用CVSup更新ports 首先最小化安装了FreeBSD7后, 下一步就是更新Ports树了,我使用的是CVSup。 先添加CVSup包:pkg_add -r cvsup-without-gui 做完之后就reboot系统。 然后更新Ports树, 命令如下: #cvsup –L 2 –h cvsup.cn.FreeBSD.org /usr/share/examples/cvsup/ports-supfile 如果cvsup.cn.FreeBSD.org源不快, 大家可以使用其他源, 台湾的一般都不错, 比如cvsup.tw.freebsd.org 祝大家好运!&#160;]]></description>
			<content:encoded><![CDATA[<p><P>本文详细介绍了FreeBSD使用CVSup更新ports</P><br />
<P>首先最小化安装了FreeBSD7后, 下一步就是更新Ports树了,我使用的是CVSup。</P><br />
<P>先添加CVSup包:pkg_add -r cvsup-without-gui</P><br />
<P>做完之后就reboot系统。</P><br />
<P>然后更新Ports树, 命令如下:</P><br />
<P>#cvsup –L 2 –h cvsup.cn.FreeBSD.org /usr/share/examples/cvsup/ports-supfile</P><br />
<P>如果cvsup.cn.FreeBSD.org源不快, 大家可以使用其他源, 台湾的一般都不错, 比如cvsup.tw.freebsd.org</P><br />
<P>祝大家好运!<BR>&nbsp;<BR></P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxsense.org/archives/179.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>freebsd下bash的安装配置</title>
		<link>http://www.linuxsense.org/archives/178.html</link>
		<comments>http://www.linuxsense.org/archives/178.html#comments</comments>
		<pubDate>Wed, 28 May 2008 01:33:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.linuxsense.org/?p=178</guid>
		<description><![CDATA[如果你习惯了linux下的bash, 可能sh会叫你有点不舒服, 只是可能, 其实习惯了就好, 关于freebsd下bash的安装和配置, 写了一个简单的步骤: Freebsd默认安装之后用户的shell是sh，如果都已经习惯了使用bash。通过下面的步骤可以配置用户来使用bash作为shell。1. 安装bash。 cd /usr/ports/shells/bash; make install clean这样安装完之后，bash会被安装在/usr/local/bin/目录下面。2. 在/bin目录下面做一个符号连接。ln&#160;-s /usr/local/bin/bash /bin/bash3. 修改 /etc/shells文件，将bash增加进去，添加一行:/bin/bash 就可以了 这样在添加用户的时候就可以指定使用bash作为shell了。否则的话，会警告pwd_mkdb: warning, unknown root shell 4. 如果已经添加过的用户，可以使用chsh命令来修改默认的shell, 保持有Shell: /bin/bash就可以了, bash完毕 &#160; 5. 值得说明一下是的, freebsd安装了bash之后默认不是去读取.bashrc文件, 如果你想做诸如alias ls=&#8217;ls -G&#8217;, 请直接添加到.profile里, source .profile就可以了]]></description>
			<content:encoded><![CDATA[<p><P>如果你习惯了linux下的bash, 可能sh会叫你有点不舒服, 只是可能, 其实习惯了就好, 关于freebsd下bash的安装和配置, 写了一个简单的步骤:</P><br />
<DIV>Freebsd默认安装之后用户的shell是sh，如果都已经习惯了使用bash。通过下面的步骤可以配置用户来使用bash作为shell。<BR>1. 安装bash。 cd /usr/ports/shells/bash; make install clean<BR>这样安装完之后，bash会被安装在/usr/local/bin/目录下面。<BR><BR>2. 在/bin目录下面做一个符号连接。<BR>ln&nbsp;-s /usr/local/bin/bash /bin/bash<BR><BR>3. 修改 /etc/shells文件，将bash增加进去，<BR>添加一行:/bin/bash 就可以了</DIV><br />
<DIV>这样在添加用户的时候就可以指定使用bash作为shell了。否则的话，会警告pwd_mkdb: warning, unknown root shell</DIV><br />
<DIV><BR>4. 如果已经添加过的用户，可以使用chsh命令来修改默认的shell, </DIV><br />
<DIV>保持有Shell: /bin/bash就可以了, bash完毕</DIV><br />
<DIV>&nbsp;</DIV><br />
<DIV>5. 值得说明一下是的, freebsd安装了bash之后默认不是去读取.bashrc文件, 如果你想做诸如alias ls=&#8217;ls -G&#8217;, 请直接添加到.profile里, source .profile就可以了</DIV></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxsense.org/archives/178.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

