转自: http://www.ycbbs.com.cn/read.php?tid=1136 在新装debian的时候,重启后就会进入base-config程序。 提示你是否设定时间为GMT,选否,时区选shanghai。 如果你选择失误,就会被时间的不准所困扰,下面是解决方案。 第一步#编辑文件/etc/timezone为以下内容 Asia/Shanghai 第二步# date MMDDhhmmCCYY 设定系统时间和硬件时间为MM/DD hh:mm, CCYY。 显示时间为本地时间而硬件时间使用UTC。 例1:设置时间为下午14点36分。 # ...
by shihao138096 - Linux文档专区 - 2009-06-12 13:09:45 阅读(729) 回复(0)
tzselect //更改系统时区 sudo cp /usr/share/zoneinfo/Asia/ShangHai /etc/localtime sudo ntpdate cn.pool.ntp.org 修改时间 RedHat中: date -s MMDDhhmmYYYY debian中: date -s "YYYY/MM/DD hh:mm:ss" 或 date -s 'YYYY/MM/DD hh:mm:ss' 或 date -s MM/DD/YYYY date -s hh:mm:ss 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/27383/showart_1133143.html
先说时区的配置。以前debian有个好胜的时区配置工具,叫tzconfig,现在也没有 了。但配置时区倒也简单,主要是两个文件: /etc/localtime /etc/timezone timezone这个文件是个文本,里面只需要写一行自己的时区就行,我们这里就是上 海,Asia/Shanghai(谁知道为什么不是北京呢?)。 localtime这个文件的类型 不清楚,里面就写了些timezone data,它可以从系统自带时区文件那里拷贝,位 置在: /usr/share/zoneinfo 从这个目...
################################## ## ## ## debian下修改时间 ## ## ## ################################## 说明: 中国国家时间服务器 210.72.145.44 #################################################################################################### ######################## # # 设置时区 # ######################## # ...
在自己的本本上安装上debian已经有一段时间了,但是系统时间却总比正常时间快了8个小时,开始以为是系统时区的问题,重新配置系统时区还是如此。在网上搜索了一下,也没有得到正确的解决办法,便一直不方便的用着。 后 来在系统启动的时候,发现有一行说是select() /dev/rtc timeout之类,另外看了一点资料,说是可以用hwclock(8)来调整时间,试着调用hwclock(8),却出现了同样的错误。上网再 Google一下,哈哈~~发现了问题之所...
debian的分辨率问题困扰了我好久,一直都弄不好(分辨率默认的,画面很大) 使用了网上说的dpkg-reconfigure xserver-xfree86 也不行)。 很幸运,终于搞定了。 apt-get install xserver-xorg 安装完成后就可以设置了 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/108635/showart_2130511.html
更改主机名: 修改 /etc/hosts /etc/hostname 更改IP地址 修改/etc/network/interfaces auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet dhcp 上面是使用DHCP 如果要手工设定,使用如下 allow-hotplug eth0 iface eth0 inet static address 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.254 broadcast 192.168.1.255 ...
安装好debian后还不能使用sudo 1、安装sudo # apt-get install sudo 2、修改 /etc/sudoers 文件属性为可写 # chmod +w /etc/sudoers 3、编辑 /etc/sudoers ,添加如下行 jack ALL=NOPASSWD:/etc/init.d/apache2 jack 表示你要添加需要执行 root 某些权限的用户 ALL 表示在哪一台机上执行,ALL 表示所有 NOPASSWD 表示执行命令时,不需要输入密码 /etc/init.d/apache2 表示要给该用户执...
debian中设置IP debian 503版本。 vhost:/# cd /etc/network vhost:/etc/network# vi interface # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 203.171.237.2...
debian串口调试设置 1. 修改grub的配置文件menu.lst serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1 terminal --timeout=10 serial console 2. 修改kernel参数 在该行后增加: console=ttyS0,9600n8 console=tty1 修改后如下: serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1 terminal --timeout=5 serial console title debian GNU/Linux, kernel 2.6.26-1-686 root (hd0,0...