下载并安装ubuntu12.04 虚拟机



一。 下载

公司用快车下东西各种不给力啊。


今天下vs2010,1/1的下载方式,快车迅速把2.36G的文件下回来了。

据说多线程下载会导致自动关掉连接,估计是这样的。



但是用浏览器的另存就没事。


网易镜像源:http://mirrors.163.com/ubuntu-releases/precise/


找到ubuntu12.04的i386版本,另存,速度接近1.3M,这与没被封杀之前快车的下载速度一致。

太给力了。



还有,刚刚保存的jpg格式的图片,为啥csdn认为格式不正确呢。
=============================================================================

参考http://wubangtu.com/1059

新版Ubuntu 12.04 镜像下载地址发布

大家等的不耐烦了吧?北京时间4月26日17时30分,Ubuntu官网开始陆续放出最新Ubuntu 12.04 LST镜像的下地址载,此版本代号为:Precise Pangolin,为长期技术支持版本。具体各ISO镜像下载地址详见:http://releases.ubuntu.com/precise/

更新:国内的网易镜像源和中科大镜像源已经同步完成,速度更快:

网易镜像源:http://mirrors.163.com/ubuntu-releases/precise/

科大镜像源(建议教育网和ipv6用户使用):http://mirrors.ustc.edu.cn/ubuntu-releases/precise/

Ubuntu-12.04-alternate.iso镜像下载:(强烈建议下载这个发行版)

i386:http://releases.ubuntu.com/precise/ubuntu-12.04-alternate-i386.iso

amd64:http://releases.ubuntu.com/precise/ubuntu-12.04-alternate-amd64.iso

Ubuntu-12.04-desktop.iso镜像下载:

i386:http://releases.ubuntu.com/precise/ubuntu-12.04-desktop-i386.iso

amd64:http://releases.ubuntu.com/precise/ubuntu-12.04-desktop-amd64.iso

Ubuntu-12.04-server.iso镜像下载:

i386:http://releases.ubuntu.com/precise/ubuntu-12.04-server-i386.iso

amd64:http://releases.ubuntu.com/precise/ubuntu-12.04-server-amd64.iso

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

二。 安装


一开始是使用ISO启动安装,就类似xp的安装似的,这种模式是easy install,安装之后,会弹出这个界面:



虽然startx可以启动桌面,但是vmware tools 还在安装,而且会卡主。



后来我手动安装vmware tools 也是各种卡主啊。

比如,先安装gdm,





后面还有个管理器,问你选gdm还是lightgdm,默认是lightgdm。


===========关于gdm=====

GDM (The GNOME Display Manager)是GNOME显示环境的管理器,并被用来替代原来的X Display Manager。与其竞争者(X3DM,KDM,WDM)不同,GDM是完全重写的,并不包含任何XDM的代码。GDM可以运行并管理本地和远程登录的X服务器(通过XDMCP)。gdm仅仅是一个脚本,实际上是通过他来运行GDM二进制可执行文件。gdm-stop是用来迅速终止当前正在运行的gdm守护进程的一个脚本。gdm-restart脚本将迅速重启当前守护进程。然而gdm-safe-restart会当所有人都注销后再重启。gdmsetup是一种可以很简单的修改多数常用选项的图形化界面工具。GNOM的帮助里有更完整的文档,在“应用程序”/“系统工具”这一章节。

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

安装了gdm之后,就没有之前的text界面了,可以直接登陆ubuntu12.04的图形界面了。

然后手动安装vmware tools :


之前在ubuntu10.04上太容易了,现在安装vmware tools 糊涂的很。。。



要求输入key。。。

输入key 为1的话:



事实上,在这里,直接回车就行了。三次要求输入key,三次按enter就行。

这样安装vmware tools 还是会卡住:


安装好vmware tools 之后,重启的时候卡主:



卡主:




===========

解决easy install出现问题的方式就是不用easy install。








不指定光驱或者iso镜像,启动现在设置的这个系统:




现在指定iso镜像:



然后启动系统,就可以自动安装了。





安装的时候,必须保证两个条件,其中第二个是要求有网络连接。如果没有的话,似乎会导致如下的”内部错误“而无法安装:




然后手动安装vmware  tools,一切顺利!

如果要让ubuntu的界面与虚拟机的窗口大小完全吻合,用这个选项:


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

3.使用

(1) 更改界面


新的u开头的界面,很难用啊。程序要搜索,快捷方式不知道怎么建立。

在安装了gdm之后,登陆的时候,可以选登陆界面,就选GNOME Classic :


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

参考

http://blog.csdn.net/yimiyangguang1314/article/details/7534911 


首先我们需要安装gnome shell,sudo apt-get install gnome-session-fallback

记得在登录框右上选择gnomeclassic)


需要注意的是,12.04gnome classic10.04使用上还是有多不同的地方
补充:修改vi /etc/lightdm/lightdm.conf
user-session=ubuntu    --->    user-session=gnome-classic       
默认登录到gnome classic界面,如果不需要特效则是gnome-fallback,对应登录窗口的选项gnome classic(no effects)

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

貌似我没有修改conf,也是默认登录到gnome classfic的。

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





这样就又回到了ubuntu10.04时代的经典gnome桌面了。好用多了。

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

 这里有程序的各种快捷方式:  /usr/share/applications/  

可以参考 http://blog.chinaunix.net/uid-26772897-id-3169468.html


参考 http://simnovo.net/change-hostname-in-ubuntu/

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

sudo gedit /etc/hostname

sudo gedit /etc/hosts

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

修改/etc/hostname,可以修改机器名。

修改后,要重启才能看到。





root@ubuntu:/home/zhangbin# vi /etc/lightdm/lightdm.confroot@ubuntu:/home/zhangbin# apt-get install vim
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  vim-common vim-runtime vim-tiny
Suggested packages:
  ctags vim-doc vim-scripts indent
The following NEW packages will be installed:
  vim vim-runtime
The following packages will be upgraded:
  vim-common vim-tiny
2 upgraded, 2 newly installed, 0 to remove and 354 not upgraded.
Need to get 7,721 kB of archives.
After this operation, 24.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main vim-tiny i386 2:7.3.429-2ubuntu2.1 [380 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main vim-common i386 2:7.3.429-2ubuntu2.1 [85.8 kB]
Get:3 http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main vim-runtime all 2:7.3.429-2ubuntu2.1 [6,277 kB]
Get:4 http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main vim i386 2:7.3.429-2ubuntu2.1 [979 kB]
Fetched 7,721 kB in 8s (959 kB/s)                                              
(Reading database ... 150936 files and directories currently installed.)
Preparing to replace vim-tiny 2:7.3.429-2ubuntu2 (using .../vim-tiny_2%3a7.3.429-2ubuntu2.1_i386.deb) ...
Unpacking replacement vim-tiny ...
Preparing to replace vim-common 2:7.3.429-2ubuntu2 (using .../vim-common_2%3a7.3.429-2ubuntu2.1_i386.deb) ...
Unpacking replacement vim-common ...
Selecting previously unselected package vim-runtime.
Unpacking vim-runtime (from .../vim-runtime_2%3a7.3.429-2ubuntu2.1_all.deb) ...
Adding 'diversion of /usr/share/vim/vim73/doc/help.txt to /usr/share/vim/vim73/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim73/doc/tags to /usr/share/vim/vim73/doc/tags.vim-tiny by vim-runtime'
Selecting previously unselected package vim.
Unpacking vim (from .../vim_2%3a7.3.429-2ubuntu2.1_i386.deb) ...
Processing triggers for man-db ...
Setting up vim-common (2:7.3.429-2ubuntu2.1) ...
Setting up vim-tiny (2:7.3.429-2ubuntu2.1) ...
Setting up vim-runtime (2:7.3.429-2ubuntu2.1) ...
Processing /usr/share/vim/addons/doc
Setting up vim (2:7.3.429-2ubuntu2.1) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode.

root@ubuntu:/home/zhangbin# 



root@ubuntu:/home/zhangbin# vim /etc/lightdm/lightdm.conf
root@ubuntu:/home/zhangbin# 



改为:




要默认选用gnome classic ,禁用guest账户登陆:


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


root@ubuntu:/home/zhangbin# apt-get install gnome-tweak-tool
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gnome-tweak-tool is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 354 not upgraded.
root@ubuntu:/home/zhangbin# 


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

设置更新源

sudo gedit /etc/apt/sources.list

sudo apt-get update
参考  http://www.ubuntusoft.com/ubuntu-update-source.html

Get:190 http://mirrors.163.com precise-backports/universe Translation-en [8,646 B]
Get:191 http://mirrors.163.com precise-security/main Translation-en [66.4 kB]  
Get:192 http://mirrors.163.com precise-security/multiverse Translation-en [587 B]
Get:193 http://mirrors.163.com precise-security/restricted Translation-en [978 B]
Get:194 http://mirrors.163.com precise-security/universe Translation-en [22.5 kB]
Fetched 37.4 MB in 32s (1,155 kB/s)                                            
Reading package lists... Done
W: Duplicate sources.list entry http://extras.ubuntu.com/ubuntu/ precise/main i386 Packages (/var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages)
W: Duplicate sources.list entry http://extras.ubuntu.com/ubuntu/ precise/main i386 Packages (/var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
root@ubuntu:/home/zhangbin# 

上面的这个问题是重复的项目么?

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



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

等风来不如迎风去

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值