当前位置: 首页 >> '榆树网-系统'分类下的文章

htpdate能浏览网页就能同步时间

看看同步时间的效果(默认只查询服务器时间,不修改本地时间):

# htpdate -d www.wenzk.com
burst: 1 try: 1 when: 500000
www.wenzk.com             02 Sep 2010 06:13:47 GMT (0.491) => 0
#: 1 mean: 0 average: 0.000
Timezone: GMT+8 (CST,CDT)
No time correction needed

Read the rest of this entry »

CentOS+GPS+Gpsd+ntpd架设时间服务器

记录CentOS架设时间服务器要点:

GPS: Gstar RS-232接口USB供电。

1、GPS连接COM1口。

2、从http://gpsd.berlios.de/下载gpsd安装,如果系统没有ncurses-devel包,系统将无法编译gpsmon程序。

3、启动gpsd程序,在/etc/rc.local增加

/bin/chmod o+rw /dev/ttyS0
/usr/local/sbin/gpsd -n /dev/ttyS0

4、/etc/ntp.conf文件增加

server 127.127.28.0 minpoll 4 maxpoll 4
fudge 127.127.28.0 time1 0.420 refid GPS

server 127.127.28.1 minpoll 4 maxpoll 4 prefer
fudge 127.127.28.1 refid GPS1

注意:在某些机器不使用/bin/chmod o+rw /dev/ttyS0修改ttS0的权限,ntpd也能读取掉相应的时间信息,但是在某些机器,死活也不好使。

gpsd-2.95的bug(gpsd.php json_decode error)

gpsd自带一个php程序,只要有php和php-gd就可以生成这样的界面:http://www.rjsystems.nl/gpsd/,可惜当我使用2.95版本的时候,却遇到了错误,按照INSTALL的方法把gpsd.php复制到web目录下,却发现json_decode error。

Read the rest of this entry »

如何免费搭建自己的vps服务器?

首先在服务器上安装CENTOS5.X 确保能连上网络
一.准备工作
Read the rest of this entry »

单网卡多次PPPoE拨号实现方法

本文着重分析如何使用“一块网卡”实现多次PPPoE拨号,大家都知道,在Linux下一块“物理网卡”只能实现一次PPPoE连接,本文列举4种方法来实现该功能。

Read the rest of this entry »

Balancing Connections Over Multiple Links

General Idea

Say you have access to multiple links to the Internet, such as several wireless networks in range. Wouldn’t it be nice to combine all that bandwidth into one big fat pipe?

Read the rest of this entry »

Linux Console下如何调节声卡音量大小

前一段时间从淘宝上掏来一个准系统,放家里当路由器使,之所以不使用商用的路由器,主要是想在路由器上安装linux系统,实现自动连接多路VPN等特殊功能。

Read the rest of this entry »

Links Load balancing

Prerequisites :

Netfilter :

  • CONNMARK
  • nth (or statistic module)
  • condition (for failover)
  • Iproute2

Read the rest of this entry »

Netfilter Connmark

Introduction

CONNMARK is a cool feature of Netfilter. It provides a way to have a mark which is linked to the a connection tracking entry. Once a connmark is set, it also apply for RELATED connection entry. So, if you add a connmark to an FTP connection, the same connmark will be put of connections from ftp-data.

Read the rest of this entry »

Windows下循环启动VLC的脚本

为配合《Windows下VLC状态检查》工作,VLC需要循环启动,以下是启动脚本:

Read the rest of this entry »