Ubuntu

Utimtu8.04最新版,已经可以从网上免费申领。

Ubuntu光盘免费申领地址

Requesting an Ubuntu CD
Ubuntu is available free of charge and we can send you a CD of the latest version (8.04 LTS (Hardy Heron)) with no extra cost, but the delivery may take up to ten weeks, so you should consider downloading the CD image if you have a fast Internet connection.

Ubuntu国内镜像地址: 

电信:
http://mirror.lupaworld.com/ubuntu/releases/8.04/

教育网:
http://ftp.sjtu.edu.cn/ubuntu-cd/8.04/
ftp://hit@soft.hit.edu.cn/software/Linux_Unix/Distribution/Ubuntu/

其它:
http://tw.releases.ubuntu.com/8.04/
http://releases.ubuntu.com/8.04/
http://ubuntu.etherkiller.de/

2

Ubuntu 8.04正式版

Posted in Linux学习笔记 at 04月 7th, 2008 / 2 Comments »

Ubuntu 8.04正式版
  经过漫长时间的测试,UbuntuLinux8.04开源操作系统已经确定了最终发布日期,4月24日。此版本的Ubuntu Linux开源操作系统将更易部署和使用。

Read the rest of this entry »

nginx环境下Discuz+SS的rewrite写法,要适当作一些修改,代码如下:
把相应代码写入cd /usr/local/nginx/conf/vhosts的对应虚拟主机配置文件中。 Read the rest of this entry »

服务器引擎从Apache换成Nginx后,Wordpress的rewrite一直是用配置404跳转到index.php的方式实现的。这个最近才发觉,因为www.evoleo.com大部分是原创内容,竟然被百度拔毛的只剩首页了!排除了其他可能后才发觉问题出在404上。所有终于找到了正确的rewrite代码: Read the rest of this entry »

1) 找到相应的时区文件 /usr/share/zoneinfo/Asia/Shanghai,用这个文件替换当前的/etc/localtime文件。

2) 修改/etc/sysconfig/clock文件,修改为:
ZONE="Asia/Shanghai"
UTC=false
ARC=false

3) 时间设定成2005年8月30日的命令:#date -s 06/28/2007
将系统时间设定成下午6点40分0秒的命令:#date -s 12:15:00

4) 同步BIOS时钟,强制把系统时间写入CMOS,命令:#clock -w

一,BIOS安全(硬件上的安全)
1,最基本最简单的安全配置,保障计算机硬件配置等不被别人更改.给BIOS设置密码,防止改变启动顺序从软盘或光盘启动.防止特殊的启动盘启动用户的系统,进入rescue或其他模式.改变或删除当前配置等.每一个细心的网管每个细节都不应该忽视! Read the rest of this entry »

0

CentOS4.4/5.0下载

Posted in Linux学习笔记 at 06月 5th, 2007 / No Comments »

CentOS5.0 BT下载(CD和DVD版)
CentOS5.0 种子下载

CentOS5.0 光盘版和DVD版下载
http://mirror.linux.duke.edu/pub/centos/5.0/isos/i386/

Name Last Modified Size Type
Parent Directory/ - Directory
CentOS-5.0-i386-bin-1of6.iso 2007-Apr-10 17:12:35 625.6M application/octet-stream
CentOS-5.0-i386-bin-1to6.torrent 2007-Apr-12 05:47:10 277.7K application/x-bittorrent
CentOS-5.0-i386-bin-2of6.iso 2007-Apr-10 17:18:34 636.1M application/octet-stream
CentOS-5.0-i386-bin-3of6.iso 2007-Apr-10 17:24:21 627.5M application/octet-stream
CentOS-5.0-i386-bin-DVD.torrent 2007-Apr-11 17:34:04 277.2K application/x-bittorrent
md5sum.txt 2007-Apr-10 21:44:17 0.4K text/plain
md5sum.txt.asc 2007-Apr-12 17:41:40 0.6K text/plain
sha1sum.txt 2007-Apr-10 21:44:17 0.4K text/plain
sha1sum.txt.asc 2007-Apr-12 17:41:32 0.7K text/plain

CentOS4.4 光盘版和DVD版下载
http://mirror.linux.duke.edu/pub/centos/4.4/isos/i386/

Index of /pub/centos/4.4/isos/i386/
Name Last Modified Size Type
Parent Directory/ - Directory
CentOS-4.4-i386-LiveCD.iso 2006-Aug-19 01:32:36 688.5M application/octet-stream
CentOS-4.4-i386-LiveCD.torrent 2006-Aug-27 18:45:29 54.0K application/x-bittorrent
CentOS-4.4-i386-bin1of4.iso 2006-Aug-23 17:08:27 622.4M application/octet-stream
CentOS-4.4-i386-bin1to4.torrent 2006-Aug-27 14:44:23 173.0K application/x-bittorrent
CentOS-4.4-i386-bin2of4.iso 2006-Aug-23 17:09:40 636.2M application/octet-stream
CentOS-4.4-i386-bin3of4.iso 2006-Aug-23 17:11:01 637.5M application/octet-stream
CentOS-4.4-i386-bin4of4.iso 2006-Aug-23 17:11:34 312.8M application/octet-stream
CentOS-4.4-i386-binDVD.torrent 2006-Aug-27 14:40:30 172.7K application/x-bittorrent
CentOS-4.4.ServerCD-i386.iso 2006-Sep-15 21:32:51 579.8M application/octet-stream
Readme.txt 2006-May-05 21:35:17 3.3K text/plain
md5sum 2006-Aug-27 17:47:20 0.3K application/octet-stream
md5sum.asc 2006-Aug-27 17:49:35 0.5K text/plain
md5sum.livecd 2006-Aug-27 18:12:27 0.1K application/octet-stream
md5sum.livecd.asc 2006-Aug-27 19:14:59 0.2K text/plain
md5sum.servercd 2006-Sep-27 08:04:30 0.1K application/octet-stream

# chmod -R 700 /etc/rc.d/init.d/*
给"/etc/rc.d/init.d" 下script文件设置权限
给执行或关闭启动时执行的程序的script文件设置权限。
这表示只有root才允许读、写、执行该目录下的script文件。
=====================

# chattr +i /etc/services
使"/etc/services"文件免疫
使"/etc/services"文件免疫,防止未经许可的删除或添加服务

====================

阻止你的系统响应任何从外部/内部来的ping请求。
既然没有人能ping通你的机器并收到响应,你可以大大增强你的站点的安全性。你可以加下面的一行命令到/etc/rc.d/rc.local,以使每次启动后自动运行。
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
==============================

对你的系统上所有的用户设置资源限制可以防止DoS类型攻击(denial of service attacks)
如最大进程数,内存数量等。例如,对所有用户的限制象下面这样:
vi /etc/security/limits.conf

下面的代码示例中,所有用户每个会话都限制在 10 MB,并允许同时有四个登录。第三行禁用了每个人的内核转储。第四行除去了用户 bin 的所有限制。ftp 允许有 10 个并发会话(对匿名 ftp 帐号尤其实用);managers 组的成员的进程数目限制为 40 个。developers 有 64 MB 的 memlock 限制,wwwusers 的成员不能创建大于 50 MB 的文件。

清单 3. 设置配额和限制

* hard rss 10000
* hard maxlogins 4
* hard core 0
bin -
ftp hard maxlogins 10
@managers hard nproc 40
@developers hard memlock 64000
@wwwusers hard fsize 50000
要激活这些限制,您需要在 /etc/pam.d/login 底部添加下面一行: session required /lib/security/pam_limits.so。

=========================

用chattr命令给下面的文件加上不可更改属性。
[root@deep]# chattr +i /etc/passwd
[root@deep]# chattr +i /etc/shadow
[root@deep]# chattr +i /etc/group
[root@deep]# chattr +i /etc/gshadow
注意执行这个操作后,以root身份都不能向系统增加用户或者修改密码了。如果我们要增加用户或者修改密码的。应该先用chattr -i /etc/passwd等命令解除不可写设置,再进行操作。
========================

也许有些朋友和我一样这么粗心,把mysql的root管理密码丢失了,下面是我查资料后找回root密码的办法:

杀掉进程
# killall -TERM mysqld

启动(不用密码)

# /usr/bin/mysqld_safe --skip-grant-tables &
(这一步浪费了我很长时间,因为早期版本这个模块不是mysqld_safe而是safe_mysqld,所以用网上其他人的经验一直说找不到文件)

登录mysql

msql> mysql -u root

更新密码
mysql> update mysql.user set password=password("新密码") where user="root";

刷新权限
mysql>flush privileges;

退出
mysql>exit;
重新登录以后看看吧,
# /etc/rc.d/init.d/mysqld start
# mysql -u root -p

需要注意的是更新之前,可以看看密码是不是改变了
mysql>select user,host,password from mysql.user;

/rc.d/init.d/mysqld start

正常登录
mysql -u root

最后建议大家设置一个admin的超级管理员

mysql> grant all privilages on *.* to admin@localhost identified by '********' with grant option;
mysql> grant all privilages on *.* to admin@"%" identified by "********" with grant option;
建立新用户设置新密码
set password for root@'buputong.com'=password('***********'); 

0

VI键盘图(中文版)

Posted in Linux学习笔记 at 05月 17th, 2007 / No Comments »

Vi命令是初学linux的必须掌握的,手头有一份vi中文版的键盘图。希望对大家有用。

VI键盘图