Author Archives: Sean

debian遗忘root密码的处理

对于一些版本的OS(如redhat)来说,编辑,在后面加上“single”即可进入单用户模式。但是对于debian来说,这种方式是无效的,因为debian进入单用户模式也需要你输入root用户的密码。
 
下面介绍一个在所有版本linux的grub上均可以使用的方法:
 
 
1、在Grub的引导装载程序菜单上,选择你要进入的条目,键入 “e” 来进入编辑模式。
2、在第二行(类似于kernel /vmlinuz-2.6.15 ro root=/dev/hda2 ),键入”e”进入编辑模式;
3、在句末加上”init=/bin/bash”,回车;
4、按“b”启动系统。
这样我们即可获得一个bash的shell。
  
进入shell后,根分区的挂载模式默认是只读,我们要将其改为可写,否则不能更改root密码:
  
mount -no remount,rw /
passwd root
sync
mount -no remount,ro /
reboot
 
 
这样即可成功更改t用户的
 

open suse 10.2安装nvidia驱动

http://www.suse.de/~sndirsch/nvidia-installer-HOWTO.html#1

It is recommended to use YaST for installation of the NVIDIA
driver. There are several reasons for this. First, it's
simple. Second, and this is the most important one, you won't need to
recompile the nvidia kernel module after a kernel update.

Update your Kernel via YOU (YaST Online Update). Use

-> Software -> Change installation Source -> Add

Protocol: HTTP
Server Name: : download..com
Directory on Server: /opensuse/

to add the NVIDIA ftp server as additional installation source.
Now use

YaST -> Software -> Install and Delete Software

to install the NVIDIA driver. Select the following packages:

x11-video-nvidia
nvidia-gfx-kmp-"kernel-flavor"

"kernel-flavor" depends on your installed kernel. Check with
"uname -r" for installed default/smp/bigsmp kernel. Use "sax2 -r"
for X.Org configuration.

People who aren't afraid of recompiling the nvidia kernel module or
even reinstalling the nvidia driver each time the kernel has been
updated and want or need to use the latest and greatest nvidia driver
can use the following steps 1-3. The others should use the
instructions above using YaST and skip the steps below.

1) Kernel sources must be installed and configured. Usually this means
installing the 'kernel-source', 'make' and 'gcc' packages with YaST2.

2) Use the nvidia installer for 1.0-9746.

sh NVIDIA-Linux-x86-1.0-9746-pkg1.run -q

3) Configure X.Org with

sax2 -r -m 0=nvidia (0 is a digit, not a letter!)

NOTE: There is no need to try to enable 3D support. It's already
enabled, when the nvidia driver is running.

IMPORTANT: You need to recompile and install the nvidia kernel module
after each kernel update.

sh NVIDIA-Linux-x86-1.0-9746-pkg1.run -K

Continue reading

Red Hat AS5下服务

安装了 ,发现和以前的有些区别,最基本的,apache,名称都已经改变了。。

[root@meteor-pc ~]# /etc/init.d/
acpid                     dc_server                 kdump                     nscd                      setroubleshoot
anacron                   dhcdbd                    killall                   ntpd                      single
apmd                      dund                      kudzu                     pand                      smartd
atd                       firstboot                 mcstrans                  pcscd                     squid
auditd                    functions                 mdmonitor                 portmap                   sshd
autofs                    gpm                       mdmpd                     psacct                    syslog
avahi-daemon              haldaemon                 messagebus                rdisc                     tomcat5
avahi-dnsconfd            halt                      microcode_ctl             readahead_early           tux
bluetooth                 hidd                      mysqld                    readahead_later           vncserver
capi                      httpd                     netfs                     restorecond               winbind
conman                    ip6tables                 netplugd                  rhnsd                     wpa_supplicant
cpuspeed                  ipmi                      network                   rpcgssd                   xfs
crond                     iptables                  NetworkManager            rpcidmapd                 ypbind
cups                      irda                      NetworkManagerDispatcher  rpcsvcgssd                yum-updatesd
cups-config-daemon        irqbalance                nfs                       saslauthd                
dc_client                 isdn                      nfslock                   sendmail