Caffe安装笔记一:VMWare11+Ubuntu14.04搭建Linux安装环境

  这一篇先介绍caffe运行环境的搭建,新手,稍微花了点时间,同时也是win8兼容性差的问题。
  首先,简单说说虚拟机的选择。虚拟机尽量选择vmware workstation,不要用player,因为快照功能实在是十分必须的。win8和vm12兼容性很差,所以台式机上装的是wmware11。笔记本是win7,装的vm12,不过在安装虚拟机的时候记得要把类型选择为兼容wmware11的类型,这样一旦出现不得不克隆系统的情况,也能够很好的在两平台间移植。至于virtual box,个人简单试用了一下,感觉不是很好用,所以就放弃了。
  linux版本尽量选择主流版本,一方面是稳定性会好些,另一方面出现问题查资料方便得多,一般问题网上应该都能找到答案。关于这点,最初看到这个说法时我是不屑一顾的,但是真的装过几个版本之后就发现,不同版本之间,会有很多差异,有的差异可能会耗费掉你不少的时间。
  我曾经安装过xubuntu14.04,虽然说是ubuntu的变体版本,而且都是14.04,但是装好虚拟机之后,xubuntu14.04想要安装vmware-tools需要补充安装不少组件,才能够使用文件共享的功能,而ubuntu14.04不需要我手工操作任何操作,12.04要手动安装。这就是差别。
  然后来进行linux下的一些基本配置。
1. 添加国内源并更新源列表
sudo cp /etc/apt/sources.list/etc/apt/sources.list_backup
sudo gedit /etc/apt/sources.list # 备份并编辑源列表


  作为新手小白,起初经常忘了加sudo。我觉得无论报错与否,linux下面都请仔细阅读返回信息,里面其实有各种提示,比如,如果说permissiondenied,那你就知道是权限不够,要加sudo。另外,安装软件一定要看返回信息,千万别报错了还不知道,以为装好了,继续下一步,最后发现问题时回过头来却不知道问题出在哪一步(这都是我的血泪史)。
  然后文件中添加如下内容,最后把之前默认的那些源都删掉,否则更新源列表的时候会下载那些列表,不但用处不大,而且很费时间。
需要注意这里的trusty代表的意思是14.04,如果是其他版本的这个地方会有不同,所以如果你copy的是其他版本的表,记得把相应位置的词替换成trusty,如果你是其他版本的ubuntu,则把trusty替换为相应的版本名称。具体可以到官网上查看,具体查看地址为:
  http://wiki.ubuntu.org.cn/源列表
  这里仅选择三个主要的来源。如果需要其他源可以自行百度。
# 官方源:
deb http://archive.ubuntu.com/ubuntu/trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/trusty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/trusty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/trusty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/trusty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/trusty main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/trusty-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/trusty-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/trusty-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/trusty-backports main restricted universe multiverse
# 163源:
deb http://mirrors.163.com/ubuntu/trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/trusty-backports main restricted universe multiverse
# 阿里源:
deb http://mirrors.aliyun.com/ubuntu/trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/trusty-backports main restricted universe multiverse
# 搜狐源:
deb http://mirrors.sohu.com/ubuntu/ trustymain restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/trusty-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/trusty-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/trusty-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/trusty-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/trusty main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/trusty-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/trusty-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/trusty-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/trusty-backports main restricted universe multiverse
然后执行以下命令。网上有人说一定要update,我不知道为什么,不过还是照着做了。
sudo apt-get update
还有upgrade,这个是升级软件包,并无必要。试过一次,把火狐之类的都给升级了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值