新接触ubuntu(base on debian)的人,大多会因为安装中没有提示root密码而不太清楚为什么会这样。
如何设定/改变/启用 root 使用者的密码?
sudo passwd root
为了启用 root 帐号 (也就是 设置一个口令) 使用:
sudo passwd root
当你使用完毕后屏蔽 root 帐号 使用:
sudo passwd -l root
这个将锁住 root 帐号.
如何在终端机模式下切换到 root 身份?
sudo -s -h
如何安装vm tools
mware tools for linux guests
power on the virtual machine.
after the guest operating system has started, prepare your virtual machine to install
vmware tools.
choose file > install vmware tools.
the remaining steps take place inside the virtual machine.
be sure the guest operating system is running in text mode. you cannot install vmware tools
while x is running.
as root (su -), mount the vmware tools virtual cd-rom image, change to a working directory
(for example, /tmp), uncompress the installer, then unmount the cd-rom image.
note: you do not use an actual cd-rom to install vmware tools, nor do you need to download
the cd-rom image or burn a physical cd-rom of this image file. the vmware workstation
software contains an iso image that looks like a cd-rom to your guest operating system.
this image contains all the files needed to install vmware tools in your guest operating
system.
note: some linux distributions use different device names or organize the /dev directory
differently. if your cd-rom drive is not /dev/cdrom, modify the following commands to
reflect the conventions used by your distribution.
mount /dev/cdrom /mnt
cd /tmp
tar zxf /mnt/vmware-linux-tools.tar.gz
umount /mnt
run the vmware tools installer.
cd vmware-tools-distrib
./vmware-install.pl
log out of the root account.
exit
start x and your graphical environment.
in an x terminal, launch the vmware tools background application.
vmware-toolbox &
note: you may run vmware tools as root or as a normal user. to shrink virtual disks, you
must run vmware tools as root (su -).
starting vmware tools automatically
you may find it helpful to configure your guest operating system so vmware tools starts
when you start your x server. the steps for doing so vary depending on your linux
distribution and your desktop environment. check your operating system documentation for
the appropriate steps to take.
for example, in a red hat linux 7.1 guest using gnome, follow these steps.
open the startup programs panel in the gnome control center.
main menu (click the foot icon in the lower left corner of the screen) > programs >
settings > session > startup programs
click add.
in the startup command field, enter vmware-toolbox.
click ok, click ok again, then close the gnome control center.
the next time you start x, vmware tools starts automatically.
uninstalling vmware tools
if you need to remove vmware tools from your linux guest operating system, log on as root
(su -) and run the following command:
vmware-uninstall-tools.pl
vmware tools for freebsd guests
power on the virtual machine.
prepare your virtual machine to install vmware tools.
choose file > install vmware tools.
the remaining steps take place inside the virtual machine, not on the host computer.
be sure the guest operating system is running in text mode. you cannot install vmware tools
while x is running.
as root (su -), mount the vmware tools virtual cd-rom image, change to a working directory
(for example, /tmp), uncompress the installer, then unmount the cd-rom image.
note: you do not use an actual cd-rom to install vmware tools, nor do you need to download
the cd-rom image or burn a physical cd-rom of this image file. the vmware workstation
software contains an iso image that looks like a cd-rom to your guest operating system.
this image contains all the files needed to install vmware tools in your guest operating
system.
mount /cdrom
cd /tmp
tar zxf /cdrom/vmware-freebsd-tools.tar.gz
umount /cdrom
run the vmware tools installer.
cd vmware-tools-distrib
./vmware-install.pl
log out of the root account.
exit
start x and your graphical environment
in an x terminal, launch the vmware tools background application.
vmware-toolbox &
note: you may run vmware tools as root or as a normal user. to shrink virtual disks, you
must run vmware tools as root (su -).
note: in a freebsd 4.5 guest operating system, sometimes vmware tools does not start after
you install vmware tools, reboot the guest operating system or start vmware tools on the
command line in the guest. an error message appears:
shared object 'libc.so.3' not found.
the required library was not installed. this does not happen with full installations of
freebsd 4.5, but does occur for minimal installations. to fix the problem of the missing
library, take the following steps:
insert and mount the freebsd 4.5 installation cd or access the iso image file.
change directories and run the installation script.
cd /cdrom/compat3x
./install.sh
果然按着上面的步骤我的vm上面的ubuntu安装成功了,怎么和windows这么的类似啊,终于理解
windows是名牌西服,而linux是定制西服的道理了。
我最近想学习一下嵌入式linux,了解操作系统的原理,所以就弄一个linux的环境玩玩
posted on 2007-03-28 15:50
坏男孩 阅读(10347)
评论(2) 所属分类:
新知识学习