当前位置: 首页 > 编程日记 > 正文

Debain 7.2安装配置

一 下载安装Debian 7.2

安装debian CD1,在最后一步,使用网络安装基本界面。

二 修改源

cd /etc/apt

mv sources.list sources.list.bak

gedit /sources.list

添加:

#####################主要,开源,闭源
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib

###################wheezy-proposed-updates建议更新
deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free

###################wheezy-updates推荐更新
deb http://mirrors.163.com/debian wheezy-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy-updates main contrib non-free
#################wheezy/updates安全更新
deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free 
deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free 

deb http://http.us.debian.org/debian wheezy main contrib non-free
deb http://security.debian.org wheezy/updates main contrib non-free

deb http://ftp.cn.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.cn.debian.org/debian wheezy main contrib non-free

deb http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
#firefox
deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main

sudo apt-get update 刷新一下。

三 安装firefox

因为debian自带的浏览器有些我要的插件不兼容如,fireftp firebug,虽然也是firefox社区版。

1 卸载iceweasel

sudo apt-get remove iceweasel

2 添加源(见上),安装firefox

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29

apt-get install firefox-mozilla-build

当时在这里遇到了一些问题,firefox处于half-installed状态。

就使用:

sudo apt-get --reinstall install firefox-mozilla-build

完成重装。参考: http://www.cnblogs.com/ibgo/archive/2013/09/15/3322457.html

四 安装输入法

http://code.google.com/p/ibus/wiki/Debian

The default input method for Debian is SCIM. To install iBus, use the following command.

The default input method for Debian is SCIM. To install iBus, use the following command.sudo apt-get install ibus im-switch
sudo apt-get install ibus-pinyin # or other engine(s) you want
sudo apt-get install ibus-table ibus-table-wubi # wubi im-switch -s ibus # logout and re-login ibus-setup # add input methods you want

五 安装emacs,配置emacs 输入法(ibus-el)

sudo apt-get install emacs ibus-el

~/.emacs配置

;;http://v.youku.com/v_show/id_XNDE0MjkxOTM2.html
;;ibus-mode
;;(add-to-list 'load-path "~/.emacs.d/ibus-el-0.3.2")
(require 'ibus)
;; Turn on ibus-mode automatically after loading .emacs
(add-hook 'after-init-hook 'ibus-mode-on)
;; Choose your key to toggle input status:
(ibus-define-common-key ?\C-\s nil)
(global-set-key (kbd "C-\\") 'ibus-toggle) ;;通过Ctrl+\切换输入法
(setq ibus-cursor-color '("red" "blue"))
(custom-set-variables '(ibus-python-shell-command-name "python2"))

六 安装apt-fast,多线程的apt-get

http://wiki.ubuntu.org.cn/index.php?title=Apt-fast&variant=zh-hans

    sudo apt-get install axel aria2sudo add-apt-repository ppa:apt-fast/stablesudo apt-get updatesudo apt-get install apt-fast 

因为这里是debian系统安装ubuntu PPA软件

在apt-get update之后,要修改/etc/apt/sources.list.d/下的文件

将wheezy改成 precise即ubuntu的版本号

root@debian:/home/kevin# cat /etc/apt/sources.list.d/apt-fast-stable-wheezy.list 
deb http://ppa.launchpad.net/apt-fast/stable/ubuntu precise  main
deb-src http://ppa.launchpad.net/apt-fast/stable/ubuntu precise main

七 打印机安装hplip

http://hplipopensource.com/hplip-web/install_wizard/index.html

按向导,下载文件,安装。

其他打印机方案,http://www.linuxfoundation.org/collaborate/workgroups/openprinting

页边距太宽了,浪费

lpoptions -p HP_LaserJet_Professional_M1213nf_MFP -o page-left=3 -o page-right=3 -o page-top=3 -o page-bottom=3

参考 http://127.0.0.1:631/help/options.html#OPTIONS

Setting the Page Margins

The value argument is the margin in points; each point is 1/72 inch or 0.35mm.


 

转载于:https://www.cnblogs.com/allbymyself/p/3443872.html

相关文章:

腾讯云与每日优鲜便利购战略签约 引领无人零售2.0时代发展

5月23日-24日,2018腾讯云未来峰会在广州保利世贸博览馆举行,在互联网专场上,腾讯云与每日优鲜便利购签订战略合作协议。双方表示,将充分融合每日优鲜便利购的建筑物级零售价值与腾讯云在云计算、大数据及AI技术的优势,…

青少年编程竞赛交流群第048次活动录播

背景介绍 把电子学会的青少年编程能力等级测评作为游戏的关卡,带着小朋友们升级打怪,这个想法来自于 我从邵慧宁身上得到的启发。 升级打怪: 电子学会考评中心:http://www.qceit.org.cn/bos/default.html 知识内容&#xff1a…

ZJU-java进阶笔记 第三周(对象容器)

ArrayList<String> 读作 ArrayList of String 用来存放String的ArrayList ArrayList类属于范型类&#xff0c;是种容器 ArrayList<String>类属于容器类&#xff0c;用来存放对象&#xff0c;由容器类型和元素类型构成 知道容器类的一些内置用法&#xff0c;省很多事…

Nginx负载均衡配置实例详解

负载均衡是我们大流量网站要做的一个东西&#xff0c;下面我来给大家介绍在Nginx服务器上进行负载均衡配置方法&#xff0c;希望对有需要的同学有所帮助哦。负载均衡先来简单了解一下什么是负载均衡&#xff0c;单从字面上的意思来理解就可以解释N台服务器平均分担负载&#xf…

iOS 设置View阴影

iOS 设置View投影 需要设置 颜色 阴影半径 等元素 UIView *shadowView [[UIView alloc] init];shadowView.frame CGRectMake(100, 100, 100, 100);shadowView.center self.view.center;shadowView.backgroundColor [UIColor whiteColor];//设置阴影颜色shadowView.layer.sh…

ZJU-java进阶笔记 第四周(继承与多态)

继承是面向对象语言的重要特征之一&#xff0c;没有继承的语言只能被称作“使用对象的语言”。 子类从父类那里继承来了所有的成员 ① 除了构造函数&#xff0c;毕竟构造函数和父类同名 ② 得到不等于可以随便使用 如果我们试图重新定义一个在父类中已经存在的成员变量&…

浅谈《think in java》:一 对象导论总结

清单1. 抽象机制&#xff0c;面向对象程序设计方式 java所基于Smalltalk的特性表现一种纯粹的面向对象设计方式&#xff1a; 万物都是对象 程序是对象的集合&#xff08;容器&#xff09;&#xff0c;他们通过发送消息&#xff08;发送请求&#xff09;来告知彼此所要做的。 每…

CSP 201812-2 小明放学 Python实现+详解

试题 代码 # 红灯 r 秒&#xff0c;黄灯 y 秒&#xff0c;绿灯 g 秒 r, y, g [int(i) for i in input().split()]# n表示小明总共经过的道路段数和看到的红绿灯数目 n int(input())# 定义getTime(k,t,time)函数计算时间开销 # k为0&#xff0c;1&#xff0c;2&#xff0c;3时…

《学习OpenCV》第三章习题 第3题

这是一个很有意思的题目&#xff0c;通过这个题我们可以理解图形的内部存储和cvPtr*D函数族的使用方法。 简单来说&#xff0c;图像就是矩阵&#xff0c;在一般的图像中&#xff0c;每个像素中存储了3个变量&#xff0c;分别代表BGR三通道的值&#xff0c;cvPtr*D函数族就是帮助…

给input type=color设置默认值

参考&#xff1a;https://stackoverflow.com/questions/14943074/html5-input-colors-default-color?utm_mediumorganic&utm_sourcegoogle_rich_qa&utm_campaigngoogle_rich_qa <input type"color"> 默认值为“#000000”&#xff0c; 想要更改默认值…

ZJU-java进阶笔记 第六周(抽象与接口)

abstract &#xff08;1&#xff09; 抽象类不可以用来制造对象&#xff0c;但可以用来定义变量&#xff0c;当然将来付给这个变量的一定是这个抽象类的非抽象子类的对象 &#xff08;2&#xff09; 抽象类的非抽象子类必须覆盖父类中的抽象函数&#xff0c;这种覆盖叫做实现两…

库存事务处理现有量检查

--检查现有量CURSOR c_lot_number(l_organization_id NUMBER,p_inventory_item_id IN NUMBER) ISSELECT mln.lot_number, mln.expiration_dateFROM mtl_lot_numbers mlnWHERE mln.inventory_item_id p_inventory_item_id-- AND mln.status_id 1 --有效合格批次AND mln.orga…

数据变金矿:一文读懂序列模型(附用例)

简介 众所周知&#xff0c;人工神经网络(ANN)的设计思路是模仿人脑结构。但是直到10年前&#xff0c;ANN和人类大脑之间唯一的共同点是对实体的命名方式&#xff08;例如神经元&#xff09;。由于预测能力较弱并且实际应用的领域较少&#xff0c;这样的神经网络几乎毫无用处。 …

ZJU-java进阶笔记 第七周(异常处理)

异常的定义 捕捉异常范例 try{//可能产生异常的代码 }catch(Type1 id1){//处理Type1异常的代码 }catch(Type2 id2){//处理Type2异常的代码 }catch(Type3 id3){//处理Type3异常的代码}异常捕捉的意义&#xff1a;异常发生&#xff0c;程序也不需要终止 3. 捕捉到异常对象后…

【组队学习】【35期】吃瓜教程——西瓜书+南瓜书

吃瓜教程——西瓜书南瓜书 航路开辟者&#xff1a;谢文睿、秦州领航员&#xff1a;凌亮航海士&#xff1a;谢文睿、秦州 基本信息 开源内容&#xff1a;https://github.com/datawhalechina/pumpkin-bookB站视频&#xff1a;https://www.bilibili.com/video/BV1Mh411e7VU内容…

SmartDispatcher 类

UI线程中使用 public class SmartDispatcher { public static void BeginInvoke(Action action) { if (Deployment.Current.Dispatcher.CheckAccess() || DesignerProperties.IsInDesignTool) { action(); } else { Deployment.Current.Dispatcher.BeginInvoke(action); } } }…

三、临时弹出一个QQ对话窗口

第一种&#xff1a;需要添加好友才可以访问 <a href"http://wpa.qq.com/msgrd?v3&uin317985559&siteqq&menuyes" target"_blank">123 </a> 第二种&#xff1a;不需要添加好友即可访问 上网去搜吧&#xff0c;小臂崽子转载于:http…

ZJU-java进阶笔记 第七周(输入输出)

流是Java处理输入输出的方式流的基础类——以字节(byte)形式 InputStream OutputStream 例 public class Main {public static void main(String[] args){System.out.println("请输入&#xff1a;");//定义一个字节数组byte[] buffer new byte[1024];try {int len …

Jquery实现的Tabs页签

管理导航系统设置用户管理内容管理其他管理1111111222222222333333333334444444444555555555555555<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns&qu…

【组队学习】【35期】动手学数据分析

动手学数据分析 航路开辟者&#xff1a;陈安东、金娟娟、杨佳达、老表、李玲、张文涛、高立业领航员&#xff1a;六一航海士&#xff1a;郑园园、李牧轩、高岩 基本信息 开源内容&#xff1a;https://github.com/datawhalechina/hands-on-data-analysis开源内容&#xff1a;…

postfix邮箱服务

1、使用postfix服务之前&#xff0c;需要先安装DNS服务&#xff0c;指定邮件交换记录&#xff1b;2、编辑postfix服务配置文件&#xff1b;3、安装dovecot服务、用于本地进行邮件发接测试&#xff1b;4、创建两个用户&#xff0c;并添加到mailusers组中&#xff1b;5、在Linux虚…

mysql数据库基本介绍及常见使用

关系型数据库 ● 二维表 ● 表中的一行&#xff0c;称为记录&#xff0c;表中的列&#xff0c; 称为字段&#xff08;属性&#xff09; ● 行列交叉的单元格的值&#xff0c;叫属性值或字段值。 ● ORACLE DB2 Mysql SQL SERVER 关系型数据库 常用的指令(可以在命令行执行&…

FilenameFilter的使用

使用FilenameFilter过滤掉chapter开头的文件。 1 public class contentFilter implements FilenameFilter {2 public boolean isContent(String file) {3 if (file.startsWith("chapter")){4 return false;5 }else{6 return true;7 }8 …

Qt 串口连接

Qt 串口连接 使用 Qt 开发上位机程序时&#xff0c;经常需要用到串口&#xff0c;在 Qt 中访问串口比较简单&#xff0c;因为 Qt 已经提供了 QSerialPort 和 QSerialPortInfo 这两个类用于访问串口。 使用 QSerialPort Qt 提供的 QSerialPort 类继承于 QIODevice&#xff0c;也…

navicat for mysql如何在更新记录时自动记录更新时间

如图所示 步骤 添加属性recordTime(任意)设置属性类型为timestamps勾选 根据当前时间戳更新默认栏填 CURRENT_TIMESTAMP 效果