ITeye博客

Unix/Linux

共 9 篇文章

Reconfiguring FreeBSD Ports

make rmconfig option The simplest one is type command make rmconfig. First login as root; go into the directory containing the port and type: # cd /usr/ports/www/apache22 # make rmconfig Output: ===> Removing user-configured options for apache-2.2.8 Use 'make config' to modify settings Another opti…

2009-10-31 11:34 · Unix/Linux · Apache · Go · FreeBSD

使用Portsnap更新Freebsd port tree

portsnap从Freebsd 6.0之后成为ports的默认部分, 从效率上来说比cvsup要快的多,因为它是一次性下载压缩包. 首先找个国内速度快的镜像 vi /etc/portsnap.conf SERVERNAME=portsnap.cn.FreeBSD.org 直接更新 portsnap fetch update Looking up portsnap.hshh.org mirrors… none found. Fetching snapshot tag from portsnap.hshh.org… done. Fetching snapshot metadata… done.…

2009-10-31 10:29 · Unix/Linux · UP · FreeBSD

优化FreeBSD ports下载速度

使用axel来替换fetch来进行多线程下载 FETCH_CMD=axel FETCH_BEFORE_ARGS= -a FETCH_AFTER_ARGS= DISABLE_SIZE=yes 或者只写一行 FETCH_CMD=axel -a 添加更快的port下载站点 在make.conf文件中使用配置MASTER_SITE_OVERRIDE参数,可自行增加软件镜像以及修改镜像服务器的优先级。 MASTER_SITE_OVERRIDE= \ ftp://ftp2.tsinghua.edu.cn/mirror/FreeBSD/ports/distfiles/ \ ftp://freebsd.cs…

2009-10-31 10:17 · Unix/Linux · FreeBSD · 多线程

使用一行命令实现tree功能

使用ls, grep, and sed实现tree命令功能,如下: ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'

2009-08-18 11:41 · Unix/Linux

IPMItool简介

Introduction IPMItool is a utility for managing and configuring devices that support the Intelligent Platform Management Interface (IPMI) version 1.5 and version 2.0 specifications. IPMI is an open standard for monitoring, logging, recovery, inventory, and control of hardware that is implemented in…

2009-04-29 21:42 · Unix/Linux · Solaris · OS · FreeBSD · Linux

wget very cool!!!

wget不仅能抓取某个页面,还能对网站做镜像,貌似很不错。这个不就是爬虫吗?而且速度也很快,用来抓取网页格式的文档是不错的。 让我们看这条命令: wget --mirror –w 2 –p --HTML-extension –-convert-links –P ~\wget_files\example1 http://www.yourdomain.com --mirror(-m):指定要做镜像的网站。wget会获取网站的所有链接和相关的文件。如果本地镜像存在,还会自动覆盖最近的更新。 -w:告诉wget每个请求的间隔时间,这里是2秒。这个不是必需的,当有些站点对请求间隔有限制时,这个参数就非…

2009-03-26 10:31 · Unix/Linux · HTML · C · PHP · ASP · CGI

How Linux "knows" what to start at boot time

When you boot up a Linux computer, you'll usually see the bootloader (after the BIOS has done its part of the booting process). The bootloader, usually Lilo or GRUB, is configured to load the kernel of the Linux into the memory of your computer. The kernel then leaves the bootloader behind and cont…

2008-11-13 16:50 · Unix/Linux · Go · UP · Access · Debian · Linux

Linux标准系统目录及解释

/bin - common binaries /sbin - Binaries used for system administration are placed here. /boot - static files of the boot loader. Usually it contain the Linux kernel, Grub boot loader files and so on. /dev - device files such as your CD drive, hard disk, and any other physical device. (In Linux/Unix…

2008-11-07 15:58 · Unix/Linux · Solaris · Ubuntu · Unix · FreeBSD · Linux

Ubuntu下ADSL上网设置

配置: sudo pppoeconf 然后根据提示输入ADSL账号与密码 设置完后,下次开机会自动连接的。。 其它相关的几个命令: 上网执行: pon dsl-provider 激活ADSL: sudo /etc/ppp/pppoe_on_boot 断开连接: poff 查看日志: sudo plog

2008-05-14 14:56 · Unix/Linux · Ubuntu