文章归档

ubuntu上安装RPM

在ubuntu上先安装RPM支持的程序.

$sudo apt-get update
$sudo apt-get install alien

安装. 文件

要安装.rpm文件.首先你要转换为.deb文件包才能安装在ubuntu机器上.
快速转换使用下面命令.

$sudo alien -k name-of-rpm-file.rpm

- This will convert the .rpm to a .deb.
- The “-k” will keep the version number. Otherwise alien adds a “1? to the version number.

$sudo dpkg -i name-of-deb-file.deb

- 这将安装.deb 文件包.

Share

ubuntu更改XP密码

如果你windowXP的密码忘记了.你要什么办呢.现在有很工具盘都有这个功能.但万一你没有这类的工具盘呢.
如果你手里还有ubuntu那就可以了.使用这个可以更改你的XP的用户密码.不管你的理由改变任何用户的密码,
这个简单的如何一定会满足这一需要。唯一的办法,以防止这一目前全磁盘加密。这里是你如何更改Windows密码Ubuntu的范围内。
You can either use your livecd or hdd.
sudo apt-get install chntpw
Now its installed, so lets get to work…
Ok I am assuming your using a livecd or a full install.
 You will now need to mount the windows partition read/write permission then navigate to %systemroot%/system32/config
Once your located in the config directory issue this command to change the password
chntpw -u administrator SAM
- Prompt for password for ‘administrator’, if found (otherwise do nothing) use * to blank
现在,重新启动并登录到Windows

Share

ActiveDirectory验证Ubuntu的8.04 & 8.10

ActiveDirectory验证Ubuntu的8.04 & 8.10
自Ubuntu的8.04(Hardy Heron), 现在Ubuntu的8.10(Intrepid Ibex),它同样打开包,使基本的Active Directory验证Ubuntu的一件轻而易举的事。

下面安装步骤:

  1. sudo apt-get update
  2. sudo apt-get install likewise-open
  3. sudo domainjoin-cli join fqdn.of.your.domain Administrator
  4. With likewise-open 4.x you can add

    winbind use default domain = yes

    in /etc/samba/lwiauthd.conf so you d’nt have to specify the DOMAIN\ part every time you log in your box.
  5. sudo update-rc.d likewise-open defaults
  6. sudo /etc/init.d/likewise-open start

参考英文

Share

命令查看ubuntu的版本号

在这里有介绍3种查看方式:

root@ptubuntu:~# cat /etc/issue
jaunty (development branch) n l
root@ptubuntu:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu jaunty (development branch)
Release:        9.04
Codename:       jaunty
root@ptubuntu:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION=”Ubuntu jaunty (development branch)”

让你们看到了.我安装的是ubuntu 9.04的.不过现在这个是测试版本..

如果你使用的是. Red Hat

# cat /etc/redhat-release
Red Hat Enterprise AS release 3 (Taroon Update 1)
# uname -a
Linux server1.example.com 2.4.21-9.0.3.ELsmp #1 SMP Tue Apr 20 19:49:13 EDT 2004
i686 i686 i386 GNU/Linux

Share

ubuntu上设置固定IP

现在使用ubuntu的人越来越多了.但是第一个就是设置网络是必需的.在这里教你如何设置固定IP在ubuntu上.

阅读更多 »

Share

Nagios网络监控系统安装在Ubuntu的

Nagios和插件将被安装下面的/ usr / local /
Nagios将配置监测的几个方面您的本地系统( CPU负载,磁盘使用,等等)
在Nagios网络界面将可在http://localhost/nagios/
需要套餐
请确认您已经安装了下列软件包在您的Ubuntu的安装,然后再继续。

Apache 2, GCC compiler , development libraries,  GD development libraries
阅读更多 »

Share