热门标签 | HotTags
当前位置:  开发笔记 > 运维 > 正文

安装Ubuntu12.04(Precise)之后

曾经心血来潮写过一个Ubuntu的配置教程,还美其名曰《邂逅Ubuntu》系列,后来Ubuntu更新了,GNOME也变成了gnomeshell,但是教程再也没更新过(惭愧不已)。适逢Ubuntu12.04刚更新不久,简单记录下配置的流程。本文主要记录了安装Ubuntu12.04(Precise)之后的配置美化过程,主要包含:1、配置软件源;2、安装配置gnomeshell取代

曾经心血来潮写过一个Ubuntu的配置教程,还美其名曰《邂逅Ubuntu》系列,后来Ubuntu更新了,GNOME也变成了gnome shell,但是教程再也没更新过(惭愧不已)。适逢Ubuntu 12.04刚更新不久,简单记录下配置的流程。

本文主要记录了安装Ubuntu 12.04 (Precise) 之后的配置美化过程,主要包含:

1、配置软件源;2、安装配置gnome shell取代unity;3、安装相关软件;4、配置杂项。

--------------------------------------------------------------------------------

配置软件源

我的策略是教育网一组,公网一组,官网一组,其次主要考虑地理位置和具体连接的速度。
教育网推荐是使用清华、北交、上交的(其一即可),公网推荐sohu(中国官方源)、163的(同样选择其一)。

# /etc/apt/sources.list
# tsinghua
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-updates main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

# # bjtu
# deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
# deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
# deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
# deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
# deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe
# deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
# deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
# deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
# deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
# deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

# sohu (official China)
deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

# # 163
# deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
# deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
# deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
# deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
# deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
# deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
# deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
# deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
# deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
# deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

# official
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

# official security
deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

# canonical partner
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

# official extras
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

配置好之后记得更新升级

sudo apt-get update
sudo apt-get upgrade

# 安装配置gnome shell

之前折腾过Arch、Gentoo、Mint、Deepin都是因为Ubuntu换了unity,也算因祸得福,学到了很多东西,现在可以兼容了,当然果断上之。
安装基本桌面

sudo apt-get install gnome-shell # gnome shell 桌面
sudo apt-get install gnome-tweak-tool # 高级配置工具

# 安装图标和GTK主题

sudo add-apt-repository ppa:tiheum/equinox # 添加图标主题PPA
sudo add-apt-repository ppa:satyajit-happy/themes # 添加GTK主题PPA
sudo apt-get update # 更新软件源
sudo apt-get install faenza-icon-theme faience-icon-theme # 两款Icon theme
sudo apt-get install evolve-gtk-theme orion-gtk-theme # 两款 GTK theme

我选择的Icon theme是Faience,Window theme和GTK+ theme都是Evolve

# 安装gnome shell extension

可以通过PPA和网站两种方式安装,主要还是个人喜好和需要,通过gnome-tweak-tool进行设置即可,这里只列出作者使用的部分
通过PPA安装

sudo add-apt-repository ppa:webupd8team/gnome3 # 添加PPA
sudo apt-get update
sudo apt-get install gnome-shell-extensions # 官方插件
sudo apt-get install gnome-shell-extensions-weather # 天气插件
sudo apt-get install gnome-shell-system-monitor # 非官方系统监控插件,扩展性很强
sudo apt-get install gnome-shell-classic-systray # 移动所有底边信息栏图标至顶部

通过GNOME Extensions网站安装

https://extensions.gnome.org/extension/112/remove-accesibility/

需要注意 user-themes 插件可能有问题,导致gnome-tweak-tool无法打开或者打开报错,通过以下两条命令可以解决

sudo cp ~/.local/share/gnome-shell/extensions/user-theme@gnome-shell-extensions.gcampax.github.com/schemas/org.gnome.shell.extensions.user-theme.gschema.xml /usr/share/glib-2.0/schemas/
sudo glib-compile-schemas /usr/share/glib-2.0/schemas

# 安装gnome shell theme

我有点洁癖,不喜欢下载安装,因为不方便更新,但暂时还未发现包含很合意的gnome shell theme的PPA,可以关注一下Satya的PPA(之前安装GTK主题时已经添加了)。我已经邮件和作者联系过了,确定还会维护更新的,就是需要等等。我现在安装的是London Smoke Gnome-Shell,作为暂时的选择。


推荐阅读
  • 在Docker中,将主机目录挂载到容器中作为volume使用时,常常会遇到文件权限问题。这是因为容器内外的UID不同所导致的。本文介绍了解决这个问题的方法,包括使用gosu和suexec工具以及在Dockerfile中配置volume的权限。通过这些方法,可以避免在使用Docker时出现无写权限的情况。 ... [详细]
  • EPICS Archiver Appliance存储waveform记录的尝试及资源需求分析
    本文介绍了EPICS Archiver Appliance存储waveform记录的尝试过程,并分析了其所需的资源容量。通过解决错误提示和调整内存大小,成功存储了波形数据。然后,讨论了储存环逐束团信号的意义,以及通过记录多圈的束团信号进行参数分析的可能性。波形数据的存储需求巨大,每天需要近250G,一年需要90T。然而,储存环逐束团信号具有重要意义,可以揭示出每个束团的纵向振荡频率和模式。 ... [详细]
  • 使用在线工具jsonschema2pojo根据json生成java对象
    本文介绍了使用在线工具jsonschema2pojo根据json生成java对象的方法。通过该工具,用户只需将json字符串复制到输入框中,即可自动将其转换成java对象。该工具还能解析列表式的json数据,并将嵌套在内层的对象也解析出来。本文以请求github的api为例,展示了使用该工具的步骤和效果。 ... [详细]
  • XML介绍与使用的概述及标签规则
    本文介绍了XML的基本概念和用途,包括XML的可扩展性和标签的自定义特性。同时还详细解释了XML标签的规则,包括标签的尖括号和合法标识符的组成,标签必须成对出现的原则以及特殊标签的使用方法。通过本文的阅读,读者可以对XML的基本知识有一个全面的了解。 ... [详细]
  • Java验证码——kaptcha的使用配置及样式
    本文介绍了如何使用kaptcha库来实现Java验证码的配置和样式设置,包括pom.xml的依赖配置和web.xml中servlet的配置。 ... [详细]
  • imx6ull开发板驱动MT7601U无线网卡的方法和步骤详解
    本文详细介绍了在imx6ull开发板上驱动MT7601U无线网卡的方法和步骤。首先介绍了开发环境和硬件平台,然后说明了MT7601U驱动已经集成在linux内核的linux-4.x.x/drivers/net/wireless/mediatek/mt7601u文件中。接着介绍了移植mt7601u驱动的过程,包括编译内核和配置设备驱动。最后,列举了关键词和相关信息供读者参考。 ... [详细]
  • 本文介绍了Android 7的学习笔记总结,包括最新的移动架构视频、大厂安卓面试真题和项目实战源码讲义。同时还分享了开源的完整内容,并提醒读者在使用FileProvider适配时要注意不同模块的AndroidManfiest.xml中配置的xml文件名必须不同,否则会出现问题。 ... [详细]
  • 本文介绍了一些Java开发项目管理工具及其配置教程,包括团队协同工具worktil,版本管理工具GitLab,自动化构建工具Jenkins,项目管理工具Maven和Maven私服Nexus,以及Mybatis的安装和代码自动生成工具。提供了相关链接供读者参考。 ... [详细]
  • 2016 linux发行版排行_灵越7590 安装 linux (manjarognome)
    RT之前做了一次灵越7590黑苹果炒作业的文章,希望能够分享给更多不想折腾的人。kawauso:教你如何给灵越7590黑苹果抄作业​zhuanlan.z ... [详细]
  • 20211101CleverTap参与度和分析工具功能平台学习/实践
    1.应用场景主要用于学习CleverTap的使用,该平台主要用于客户保留与参与平台.为客户提供价值.这里接触到的原因,是目前公司用到该平台的服务~2.学习操作 ... [详细]
  • 本文详细介绍了使用 SQL Load 和 Excel 的 Concatenate 功能将数据导入 ORACLE 数据库的方法和步骤,同时介绍了使用 PL/SQL tools 将数据导入临时表的方法。此外,还提供了一个转链接,可参考更多相关内容。摘要共计XXX字。 ... [详细]
  • 本文分析了Wince程序内存和存储内存的分布及作用。Wince内存包括系统内存、对象存储和程序内存,其中系统内存占用了一部分SDRAM,而剩下的30M为程序内存和存储内存。对象存储是嵌入式wince操作系统中的一个新概念,常用于消费电子设备中。此外,文章还介绍了主电源和后备电池在操作系统中的作用。 ... [详细]
  • 作者表示自己最近工作非常忙碌,无法抽出时间写作。他计划在未来的几天内写关于namespace与C#的名字解析以及数据库内容转化为excel文件下载的知识。 ... [详细]
  • GSIOpenSSH PAM_USER 安全绕过漏洞
    漏洞名称:GSI-OpenSSHPAM_USER安全绕过漏洞CNNVD编号:CNNVD-201304-097发布时间:2013-04-09 ... [详细]
  • Jquery 跨域问题
    为什么80%的码农都做不了架构师?JQuery1.2后getJSON方法支持跨域读取json数据,原理是利用一个叫做jsonp的概念。当然 ... [详细]
author-avatar
yunzjyun
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有