因为我在使用过程中为了改变终端的外表,结果把/ect/psswd,以及/ect/profile中的文件配置修改之后,我把gnome-terminal的python脚本打包放在/bin/目录下,修改了/bin/bash为其他名字,将/bin/gnome-terminal改为bash,结果出大事了,重新开机以后gnome-terminal疯狂打开,无法使用,后面为了修改回来,结果把/bin/bash删除了,系统无法使用shell,也重新登入,只好重新安装系统。

在重新用U盘安装的时候你放在home目录下的文件可以保留,一定要在安装选择分区的时候分配到原来的硬盘分区上去,选择自己分配的选项,这样可以最大程度保留资料。

然后进入系统以后你就可以重新搭建环境了,可以看到home文件夹里的资料居然都在。

所以apt吧

 sudo apt update

 sudo apt upgrade

 sudo apt install python3  python2

 sudo apt install vim

 sudo apt install firefox

若 是执行上面的命令的时候出错或者没能安装完成,执行下面的命令:

 sudo apt install -f 

当然如果之前你没有使用过firefox在这个系统里,那么你就得在安装中文插件,网上有。

安装好以后还是要一个chome浏览器的。

启动firefox,在百度里搜索chome下载Linux版本的deb包

 cd Download

 sudo dpkg -i chome-<xx你的文件名xxxxx>-.deb

 安装浏览器
如果依赖关系不足=满足出错 运行shell sudo apt install -f j结束以后再次执行
sudo dpkg -i chome-<xx你的文件名xxxxx>-.deb

安装浏览器以后最要紧的是安装中文输入法

所以在浏览器搜索sogoupinyin,在官网上下载Linux版本

安装搜狗拼音

和安装chome浏览器步骤一模一样

接下来我安装了ipython,具有自动补全和语法高亮的python交互环境,

sudo  apt install python3-pip
系统默认有..python2.
所以使用pip3调用python3的pip
sudo pip3 install ipython 哐!
输入
ipython3
你就可以使用了

我还在使用golang的编译器,所以下载了golang

 sudo apt installl golang-go

推荐将pip和apt的源地址改为清华大学或者网易等国内源,这样安装的下载过程比较快。

数据库也是Linux大多数使用者需要的,因此在电脑上也装上个mongo

 sudo apt install mongodb-clients
 sudo apt install mongodb-server

MySQL也在学习使用,所以不妨也装上一个

sudo apt install mysql-client-5.7
sudo apt install mysql-server-5.7

设置好你的root密码

也得有一个好用的编辑器啊

所以我下载了gitub推荐的atom编辑器

 sudo apt install atom

>>>>>>>>>>>>>>>>>>>>>>>>>>>>在安装pyspider时候<<<<<<<<<<<<<<<<<<<<<<<<

安装过程中

Command "/usr/local/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-karba9lz/pycurl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-haccu3y_-record/install-record.txt --single-version-externally-managed --compile" failed with error code  in /tmp/pip-build-karba9lz/pycurl/

出现pycurl不能安装的情况,所以找了很久发现

 sudo apt-get install libcurl4-nss-dev

再安装pycurl成功

关于CPU频路

、ondemand:系统默认的超频模式,按需调节,内核提供的功能,不是很强大,但有效实现了动态频率调节,平时以低速方式运行,当系统负载提高时候自动提高频率。以这种模式运行不会因为降频造成性能降低,同时也能节约电能和降低温度。一般官方内核,还有CM7的默认的方式都是ondemand。
流畅度: 一般,流畅 、interactive:交互模式,直接上最高频率,然后看CPU负荷慢慢降低,比较耗电。
流畅度: 最高,极流畅
Interactive 是以 CPU 排程数量而调整频率,从而实现省电。 InteractiveX 是以 CPU 负载来调整 CPU 频率,不会过度把频率调低。所以比 Interactive 反应好些,但是省电的效果一般 、conservative:保守模式,类似于ondemand,但调整相对较缓,想省电就用他吧。Google官方内核,kang内核默认模式。
流畅度: 高,流畅 、smartass:聪明模式,是I和C模式的升级,该模式在比i模式不差的响应的前提下会做到了更加省电
流畅度: 最高,流畅 、performance:性能模式!只有最高频率,从来不考虑消耗的电量,性能没得说,但是耗电量.......
流畅度:还需要说么?还有比这种模式更流畅的吗? 、powersave 省电模式,通常以最低频率运行,打不死我也不用。
流畅度: 极低 、userspace:用户自定义模式,系统将变频策略的决策权交给了用户态应用程序,并提供了相应的接口供用户态应用程序调节CPU 运行频率使用。也就是长期以来都在用的那个模式。可以通过手动编辑配置文件进行配置
流畅度:根据设置而定 、Hotplug:类似于ondemand, 但是cpu会在关屏下尝试关掉一个cpu,并且带有deep sleep,比较省电。
流畅度:一般,流畅

默认配置在/etc/default/cpufreqd中

关于主题美化的种种笔记

 Ubuntu无法找到add-apt-repository问题的解决方法

 需要python-software-properties

 于是

 apt-get install python-software-properties

 除此之外还要安装

 software-properties-common

 于是

 apt-get install software-properties-common

 然后就能用add-apt-repository了

安装elementray-tweak

sudo add-apt-repository ppa:philip.scott/elementary-tweaks 
sudo apt-get update
sudo apt-get install elementary-tweaks
安装完成后,在系统设置-tweaks打开设置,把主题、图标、窗口、鼠标等都改成mac os式的

后来觉得桌面的美化缺点什么

所以安装了conky,qtcurve

sudo apt install qtcurve

sudo apt install conky-all
sudo apt install gtk-chtheme
sudo apt-add-repository -y ppa:teejee2008/ppa

sudo apt update

sudo apt install conky-manager
sudo apt install qt4-qtconfig 

pyspider问题解决。大神解决办法,把tornado降为4.5

Process Process-:
Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/process.py", line , in _bootstrap
self.run()
File "/usr/lib/python3.5/multiprocessing/process.py", line , in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line , in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/decorators.py", line , in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/pyspider/run.py", line , in fetcher
poolsize=poolsize, proxy=proxy, async=async)
File "/usr/local/lib/python3.5/dist-packages/pyspider/fetcher/tornado_fetcher.py", line , in __init__
io_loop=self.ioloop)
File "/usr/local/lib/python3.5/dist-packages/tornado/httpclient.py", line , in __new__
instance = super(AsyncHTTPClient, cls).__new__(cls, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/tornado/util.py", line , in __new__
instance.initialize(*args, **init_kwargs)
TypeError: initialize() got an unexpected keyword argument 'io_loop'
[I :: scheduler:] scheduler starting...
Exception in thread Thread-:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line , in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line , in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.5/dist-packages/pyspider/scheduler/scheduler.py", line , in xmlrpc_run
import tornado.wsgi
File "/usr/local/lib/python3.5/dist-packages/tornado/wsgi.py", line , in <module>
_dummy_future = Future()
File "/usr/lib/python3.5/asyncio/futures.py", line , in __init__
self._loop = events.get_event_loop()
File "/usr/lib/python3.5/asyncio/events.py", line , in get_event_loop
return get_event_loop_policy().get_event_loop()
File "/usr/lib/python3.5/asyncio/events.py", line , in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'Thread-2'.

linux系统elementray os的环境搭建的更多相关文章

  1. linux系统下深度学习环境搭建和使用

    作为一个AI工程师,对Linux的一些技能的掌握也能从一定层面反应工程师的资深水平. 要求1:基于SSH的远程访问(本篇文章) 能用一台笔记本电脑,远程登陆一台linux服务器 能随时使用笔记本电脑启 ...

  2. linux系统web项目运行环境搭建

    允许本地访问端口:iptables -P OUTPUT ACCEPT MySQL数据库安装1.yum install mysql 2.yum install mysql-server 3.删除MySQ ...

  3. linux系统的介绍与环境搭建准备38-40

    操作系统(OS):用于控制管理计算机,形成在用户和机器之间传递信息的系统软件 linux是什么? <--unix系统是linux的前身---> 特点: 开放的源代码,自由修改 自由传播,没 ...

  4. .net core 部署在Linux系统上运行的环境搭建总结

    安装Linux用的是腾讯云的centos7.5,需要安装有环境有mysql5.7  .netcore2.1 nginx1.14 1.首先是mysql的安装 我用的链接工具是putty,首先root登入 ...

  5. Android基础-系统架构分析,环境搭建,下载Android Studio,AndroidDevTools,Git使用教程,Github入门,界面设计介绍

    系统架构分析 Android体系结构 安卓结构有四大层,五个部分,Android分四层为: 应用层(Applications),应用框架层(Application Framework),系统运行层(L ...

  6. Linux (九)服务器环境搭建

    个人博客网:https://wushaopei.github.io/    (你想要这里多有) 一.行为守则 1.拍摄快照 Linux系统操作非常复杂,搭建开发环境时全部使用命令完成安装过程.而在Li ...

  7. 阿里云服务器linux系统上 安装node环境

    今天将阿里云服务器重windows系统重置成了linux系统, 点击上面的实例名称,进入到 点击  更换系统盘   选择linux 的centos版本(操作前需要  停止实例) 弄好后,启动实例 下面 ...

  8. linux驱动系列之调试环境搭建一

    2014年刚开始学习linux时,搭建环境花了很多时间.当时最熟悉的是单片机如Mag16和stm32,依据以往学习单片机的经验肯定要用下载器下载程序,但是我找了很久没有比较好的IDE,不像Mag16有 ...

  9. linux内核学习之一:环境搭建--安装Debian7.3

    本系列文章假设读者已对linux有一定的了解,其实学习linux内核不需要有很深的关于linux的知识,只需要了解以下内容:linux基础知识及基本shell命令:现代操作系统的基本概念:C语言和gc ...

随机推荐

  1. for循环中删除map中的元素,valgrind检测提示error:Invalid read of size 8

    #include <iostream> #include <map> using namespace std; class A { public: typedef std::m ...

  2. hdu 2018 母牛的故事(简单dp)

    母牛的故事 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submi ...

  3. c语言代码风格

    简要:主要介绍了K&R风格和Allman(BSD)风格之间的缩进大小和大括号位置等区别 关于其它的代码风格,详见:Indent style - Wikipedia. 1.K&R sty ...

  4. .dhpcd导致cpu飙升问题

    因公司有业务服务器在阿里云上面,阿里云后台报警说,“有恶意程序在挖矿”,引起了高度重视,于是我登陆服务器进行排查. 登陆云服务器:系统centos7.5 第一步使用top查看资源情况. top 可以清 ...

  5. leetcode 35 Search Insert Position(二分法)

    Given a sorted array and a target value, return the index if the target is found. If not, return the ...

  6. 设计模式 之 《建造者模式(Builder)》

    #ifndef __BUILDER_MODEL__ #define __BUILDER_MODEL__ #include <string> #include <vector> ...

  7. 【leetcode刷题笔记】Construct Binary Tree from Preorder and Inorder Traversal

    Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that ...

  8. 关于解决SSHD 连接 认证失败的问题

    网上找有很多方法,有时候情况不一样 ,也不实用 其实找到解决问题的思路更总要 首先分析日志文件 less /var/log/secure | grep sshd ,看具体出现什么问题 然后再去搜索相关 ...

  9. 调试 ASP 程序脚本

    调试 ASP 脚本 无论您的计划多么精密.经验多么丰富,脚本错误 (bug) 可能在最初就使您的 ASP 服务器端的脚本无法正确运行.也就是说调试,即查找和纠正脚本错误,对开发一个成功的和强健的 AS ...

  10. SQL SERVER 中的*=和=*

    一.* =和= * 是在sql server2000中左连接,右连接的用法相当于left join 和right join,现在sql2005和2008默认是不支持的,可以设置兼容2000或2008 ...