显示标签为“Debian”的博文。显示所有博文
显示标签为“Debian”的博文。显示所有博文

星期日, 五月 10, 2009

Debian下修改默认语言[Linux技巧]

可以使用如下命令修改默认语言:


$sudo dpkg-reconfigure locales


注意选择语言时是复选框,要确保选择的是你所想要的语言~~

星期六, 三月 14, 2009

Linux下Apache的配置文件结构[Linux技巧]

星期一, 三月 09, 2009

修改Debian中的网卡配置[Linux技巧]

默认安装Debian的时候是用dhcp服务的,有时我们需要设置一下静态IP。一共涉及两个文件的修改
  1. /etc/network/interfaces
    auto eth0
    #iface eth0 inet dhcp
    iface eth0 inet static
    address 192.168.2.121
    netmask 255.255.255.0
    gateway 192.168.2.2
    IP地址,掩码,gateway什么的,你应该已经知道,或者可以咨询当地网络管理员。
  2. /etc/resolv.conf里面设置DNS服务器,在这种情况下应该就是gateway的地址。
    nameserver 192.168.2.2 #因为我这里网关就是DNS服务器所以是相同的
  3. 最后reboot或者#/etc/init.d/networking restart

参见:http://blog.csdn.net/shooter556/archive/2006/07/14/919776.aspx

星期日, 三月 08, 2009

Debian LAMP安装配置[Linux技巧]

参见下文:

http://www.howtoforge.com/ubuntu_debian_lamp_server

Debian使用ifconfig命令[Linux技巧]

Debian中是没有把/sbin加入PATH变量中的,所有/sbin中的命令都需要这样运行(ifconfig为例)

~$sudo /sbin/ifconfig

寻找最快的debian源[Linux技巧]

使用apt-spy就可以自动查找最快的debian源,查找后会自动修改source.list。

详细的说明请参考:
http://www.linuxdiyf.com/bbs/thread-52437-1-10.html

Debian Lenny中使用sudo[Linux技巧]

Debian中默认是没有sudo命令的,需要自己在root用户下安装

~$apt-get install sudo


在root设置sudoers配制文件

~$chmod +w /etc/sudoers
~$vim /etc/sudoers

添加一行 username ALL=(ALL) ALL
其中username是你的用户名,保存
更改sudoers文件权限

~$chmod 0440 /etc/sudoers

退出root

参考文献:http://blog.chinaunix.net/u1/51074/showart_429833.html