CAD查询封闭图形面积

来源:http://zhidao.baidu.com/question/121638393.html

将你需要计算面积的封闭图形利用多段线编辑或创建面域,然后利用“li”命令或“aa”查询其面积。最后如果不想让图形变成多段线或面域再利用分解命令“X”将图形分解后又成了原来的图形了,非常方便的。具体两种操作方法如下:
(1)、将多条直线或圆弧组成的封闭的线框转换成“多段线”,此过程需利用命令 多段线的编辑命令其快捷键“PE” 回车,选择 “多条(M)” 回车,然后选择对象(所画的平行四边形)回车,选择 “Y”(将所画的直线或圆弧转换成多段线)回车,输入选项“合并(J)”回车,模糊距离即为0回车。最后平行四边行就合成了。(注意:在用多段线编辑合并,对象必须是相连的)
(2)、直接利用面域命令 “region” 其快捷键为 “reg” ,然后将所画的多线全部选取(图形必须为封闭的二维线框)回车即可完成面域的创建。
最后直接利用“li”或“aa”就可以查看图形的面积了。

来源:http://iask.sina.com.cn/b/10441116.html

简单的方法如下:
1. 输入命令 region (面域生成命令)回车,选择你的封闭图形的所有边,使你的图形构成面域。
2. 输入命令 massprop (查询面域/质量特性命令)回车,点击你的图形任意边(也即选择面域),跳出来的ACAD文档窗口中不仅仅有面积,还有周长……以及其他若干力学特性数据了。

不仅仅限于直线和弧,边界包括样条曲线,只要处于同一平面中,能生成面域的图,都能用此方法查询。

chrome强制替换字体

原文:https://userstyles.org/styles/139202/theme

 

Noto Sans CJK SC

*:not([class*="icon"]):not(i) {
font-family: "Noto Sans CJK SC" !important;
}

 

YaHei

*:not([class*="icon"]):not(i)
{
 font-family: "Microsoft YaHei" !important;
}

Noto Serif CJK SC

*:not([class*="icon"]):not(i) {
 font-family: "Noto Serif CJK SC" !important;
}

 

YaHei Shadow

*:not([class*="icon"]):not(i)
{
 font-family: "Microsoft YaHei" !important;
}

*
{
 text-shadow: 0.01em 0.01em 0.01em #999999 !important;
}

Noto Sans CJK SC Shadow

*:not([class*="icon"]):not(i) {
 font-family: "Noto Sans CJK SC" !important;
}
* {
 text-shadow: 0.01em 0.01em 0.01em #999999 !important;
}

 

 

 

 

No More Ransom! 協助你一同對抗勒索病毒

https://www.nomoreransom.org/

 

 

近年來遭受勒索病毒(Ransomware)侵擾的機構層出不窮,其中不乏政府機關、醫院、學校或中小企業公司,甚至許多人的家用電腦都曾經中毒。一般來說,勒索病毒慣用手法是包裝在軟體或郵件附件,以其他格式偽裝,當使用者不小心執行後,它就會在電腦內進行部署,最終將所有檔案加密變成無法存取使用,跳出支付贖金來脅迫使用者取得解密金鑰恢復檔案,而且使用比特幣(Bitcoin)技術使嫌犯更難以被追蹤。

 

趨勢科技針對勒索軟體推出的免費復原工具 Trend Micro Ransomware File Decryptor,能有效對付某些類型勒索病毒,在不用支付贖金的情況下來強制重新復原救回檔案,這個工具目前支援包括 TeslaCrypt、CryptXXX、SNSLocker 等等在內共十多種勒索軟體類型。除此之外,本文要來介紹一個「No More Ransom」網站,一個勒索病毒主題入口網站,以專門對付勒索病毒為主,網站來頭不小,由 Intel Security、Interpol、荷蘭警方和卡巴斯基安全實驗室聯手打造!主要是協助使用者對抗危害,提供各種解密破解工具,讓使用者在不支付勒索贖金的情況下恢復重要文件檔案。

 

與其說 No More Ransom 是一個提供解密工具的網站,倒不如說他是一個教育使用者如何避免遇到勒索病毒危害的教育網站,內容簡單扼要一目了然,例如:備份資料、只打開認識且信任的聯絡人郵件附件、安裝防毒軟體、讓電腦軟體更新保持最新狀態,這些雖是老生常談,謹記在心準沒錯。

此外,No More Ransom 還提供線上勒索病毒檢測平台,使用者只要上傳自己被加密後的檔案,它就能從該組織擁有的 16 萬組解密金鑰中找出能夠解鎖的方式,還會讓你免費下載合適的復原工具,接下來我就簡單介紹一下 No More Ransom 這個網站的使用方法吧!

 

使用教學

STEP 1

開啟 No More Ransom! 網站後,首頁會直接詢問是否要協助你解鎖、復原你的檔案或文件,而不用支付給駭客贖金?點選 YES 後會進入檢測平台,如果點選 No 則會有一系列的防護安全資訊供使用者參考學習,不過目前僅有英文版。

 

STEP 2

No More Ransom! 的 Crypto Sherief 加密檔案自我檢測平台相當厲害,可能是目前網路唯一提供這項服務的網站!簡單來說,使用者只要點選左側兩個按鈕將被加密的任一兩個檔案選取、上傳,右側則是填入你在支付贖金頁面看到的 Email、網址,這部分需要確認無誤,以避免找不到可以解密的金鑰或工具,你也可以直接上傳勒索病毒留下來的訊息(.txt 或 .html 格式)。

最後,點選下方按鈕,No More Ransom! 就會找出可能可以解蜜、復原檔案的金鑰讓你免費下載,或者可能可以還原的免費工具。

 

STEP 3

在網站的 Decryption Tools 解密工具頁面,提供一系列可協助處理、還原或救援被勒索病毒加密後檔案的工具(CoinVault、RannohDecryptor、RakhniDecryptor、ShadeDecryptor),都有各自對應可以處理的勒索病毒副檔名格式。

不過在下載前請務必先閱讀使用說明,尤其要先確保勒索病毒已經從你的系統被完整移除,避免在解密後又被重新加密造成檔案損毀,任何可信賴的防毒軟體都能做到。

 

目前勒索軟體(勒索病毒)的數量相當多,而且不斷變種,有更多型態出現,現階段破解工具還無法涵蓋所有的勒索病毒,不過 No More Ransom! 網站提醒:盡量不支付贖金給這些病毒駭客,一來你會讓這些人認為有利可圖,進而找出更多方法來入侵其他使用者電腦;二來支付贖金獲取的解密金鑰也可能無法使用!讓你掉入被詐騙的陷阱當中。若你真的不幸中了勒索病毒,請記得先到 No More Ransom 網站找找解決辦法。

使用you-get下载YouTube视频(被墙也不怕)

原文:https://www.qingsword.com/qing/1348.html

引言
这篇文章给大家推荐ubuntu下非常好用的视频解析工具you-get,这是一款基于命令行的工具,它能够解析各大视频网站的视频真实地址;我们可以通过它下载视频或通过配合本地播放器在线观看视频,因为是解析的真实地址,所以视频不会有广告,而使用本地播放器,对CPU的占用率较Flashplayer要低;下载可以根据不同视频,选择不同清晰度编码下载。

文章目录
0×1.如何获取和安装you-get
0×2.you-get使用实例
0×1.如何获取和安装you-get
在使用之前,这里有一段使用它代替Flashplayer的理由:

大家都知道Flashplayer漏洞频出,而Flashplayer官方已经声明,不再对linux提供更新,虽然我们可以使用Chromium推出的最新版的Flashplayer(本系列文章前面有介绍如何安装),但使用Flash播放视频CPU负载较高;使用浏览器Flash播放视频往往逃不过视频前的插入广告,就算屏蔽广告也会黑屏等待很久。

如果大家都被Flashplayer的这些问题困扰,那么使用you-get代替Flashplayer将是一个不错的选择,you-get能直接解析视频真实的播放地址,可以通过它来下载到本地,也可以直接调用本地mplayer播放器播放,因为是直接解析的播放地址,所以不会有播放前的广告,在这里感谢软件的作者,这是此项目的github地址:you-get作者的Github。

下面是安装步骤:

01
#0.更新系统软件列表
02
[email protected]:~$ sudo apt-get update
03

04
#1.安装必要组件
05
[email protected]:~$ sudo apt-get install python3 python3-pip rtmpdump git vlc
06
#如果安装下面这个组件时提示没有适合的软件包,那就跳过这一步继续
07
[email protected]:~$ sudo apt-get install ffmpeg
08

09
#2.克隆项目到本地(为了防止出现连接跳转,https后面的”:”使用了中文环境的说明号,请手动将其替换成英文状态下的说明号”:”,否则会出现版本库不存在的错误)
10
[email protected]:~$ git clone git://github.com/soimort/you-get.git
11

12
#3.进入项目目录安装
13
[email protected]:~$ cd you-get
14
[email protected]:~/you-get$ sudo python3 setup.py install
0×2.you-get使用实例
安装完成后,直接在终端输入you-get –help能查看使用方法,下面是几种常用方法:

01
#1.调用vlc播放在线视频,打开优酷或者任何you-get支持的视频站点,复制视频地址替换下面双引号中的视频地址,因为视频是分段缓存,所以在vlc的播放列表中可以看到很多段视频,一段大约是几分钟到十几分钟不等,一段结束后会自动播放下一段,所以大家不要认为一个好几G的视频怎么才几分钟,其实是当前这一段只有这么长时间
02
[email protected]:~$ you-get -p vlc “视频地址”
03

04
#2.显示这个视频的详细信息,如果视频有好几种清晰度,会在下面列出
05
[email protected]:~$ you-get -i “视频地址”
06
site: 视频站点名称
07
title: 视频名称
08
streams: # Available quality and codecs
09
– format: hd3
10
container: flv
11
video-profile: 1080P
12
size: 2098.3 MiB (2200242143 bytes)
13
# download-with: you-get –format=hd3 [URL]
14

15
– format: hd2
16
container: flv
17
video-profile: 超清
18
size: 1067.3 MiB (1119127653 bytes)
19
# download-with: you-get –format=hd2 [URL]
20

21
– format: mp4
22
container: mp4
23
video-profile: 高清
24
size: 492.6 MiB (516537666 bytes)
25
# download-with: you-get –format=mp4 [URL]
26

27
– format: flv
28
container: flv
29
video-profile: 标清
30
size: 257.0 MiB (269486431 bytes)
31
# download-with: you-get –format=flv [URL]
32

33
#3.使用-u命令查看视频的真实url地址,会看到很多地址,因为大多视频网站的视频都是分块存放的,不是一个完整的文件
34
[email protected]:~$ you-get -u “视频地址”
35

36
#4.使用-o命令将视频下载到一个指定的文件夹(本例指定的文件夹是/home/qing/movice/),如果不指定,则下载到终端所在目录
37
[email protected]:~$ you-get -o /home/qing/movice/ “视频地址”
38

39
#5.在使用-i命令列出视频清晰度列表后,可以使用format命令指定自己下载哪个清晰度的视频,这里选择hd3模式(1080p)
40
[email protected]:~$ you-get –format=hd3 “视频地址”

原文:http://blog.topspeedsnail.com/archives/4884

you-get是个什么东西:

You-Get is a tiny command-line utility to download media contents (videos, audios, images) from the Web, in case there is no other handy way to do it.

You-Get是从在线视频网站上下载视频的工具,支持很多网站,并不限于youtube。

它是使用Python编写的开源命令行工具,代码托管在Github。Readme文件详细介绍了使用方法。

You-Get支持代理,youtube虽然被墙,但是可以借助像lantern这样的代理下载。

我使用的系统是Ubuntu 16.04:

Ubuntu 16.04编译Lantern
安装You-get:

$ sudo apt install python3-pip
$ sudo apt install ffmpeg
$ sudo pip3 install you-get

运行lantern;lantern的代理端口是127.0.0.1:8787。

下载youtube视频:

$ you-get -x 127.0.0.1:8787 https://www.youtube.com/watch?v=wrwk8j287301

下载Tor浏览器:https://www.torproject.org/projects/torbrowser.html

如果tor的官网被墙,可以去github下载。
https://github.com/TheTorProject/gettorbrowser

2009年世界15大电源生产厂家排名及简介

2009年世界15大电源生产厂家排名及简介
一.台达集团 当仁不让的第一, 台达集团目前在交换式电源供应器产品为世界第一的领导厂商,并且在多项产品领域亦居世界级的领导地位,其中包括提供电源管理的整体解决方案、视讯显示器、工业自动化、网络通讯产品、与可再生能源相关产品。 台达集团于1971年创立,营运据点与制造工厂遍布中国台湾、泰国、中国大陆、墨西哥以及欧洲。做为全球电力电子产业的领导者,同时也是全球直流稳压电源的最大制造商,台达集团致力于实践环境保护的承诺,已在多年前实施绿色无铅制程、回收再利用措施与废弃物管理计划。台达集团的经营使命是「提供高能源效率的创新产品,追求更好的生活质量」。 PC电源市场上代表产品:ANTEC SG850,由于台达没有行货,就用这个代替了。
二.艾默生 网能 美国艾默生电气公司于1890年在美国密苏里州圣路易斯市成立,当时是一家电机和风扇制造商。经过100多年的努力,Emerson已经由一个地区制造商成长为一个全球技术解决方案的强势集团公司。在电源行业该集团主要业务是通信电源和UPS。该公司不生产PC电源。
三.光宝 光宝集团成立于1975年,30多年来,除了致力于光电零组件,更持续拓展电脑与数位家庭、消费性电子、通讯产品、关键零组件与次系统、并逐步跨足车用电子等4C领域,在市场上具有举足轻重的地位;此外,光宝亦具备优异的研发设计能力,藉由全面性的产品服务,提供客户一次购足的选择,并且成为国际大厂ODM/OEM合作供应商首选。
四.伟创力 伟创力集团成立于1969年,是一家总部设在新加坡,并在NASDAQ上市的跨国公司,是目前全球第二大电子合约制造服务商(EMS),世界500强企业之一。海盗船最新的旗舰金牌产品,AX1200就是由伟创力代工。
五.全汉集团 成立于1993年,应该是榜单上最关注DIY市场的品牌,80PLUS刷版灌水大王。产品线非常丰富,既有低端绿宝结构的一票马甲,中端也有主流的双磁放大银牌方案,高端金牌的LLC方案也当仁不让。
六.易达 威锐是一家历史非常悠久的挪威公司。公司成立于1886年,早在1936年就成功设计出了第一套通信电源保障系统。现在的主要业务是UPS和OEM。没有PC电源业务。
七.康舒 成立于1981年,经过20年的努力,康舒在电源供应器业界已名列前茅,拥有自己的一片天;在设计能力方面从10W~6000W都有设计销售实绩,应用范围涵盖资讯、通讯、网路及工业级产品,未来将提升至车用产品与军规系统;制程直通率由90%提升至98%,未来将提升至99.6%;平均产品品质不良率也从以%为单位提升至120ppm以下,未来也将提升至以6σ为惟一指标。康舒科技目前在台湾、美国、中国大陆、马来西亚均有研发中心做研发能力上下游的整合,务求开源能力的强化;在台湾、大陆与菲律宾均设有制造工厂。康舒在大陆出售的PC电源给我的感觉就是低端不厚道,高端价格又太离谱,完全没有他在通信电源方面的强势(主要是性价比,国内的通信电源大厂如烽火科技、中国普天都是康舒代工的产品)。
八.群光科技集团 群光电子股份有限公司创立于72 年2月1日,主要从事电脑系统相关业,年营业额接近
500亿,除整体营运稳定外,获利状况也逐年提升,是国内绩优厂商之一,列名为证交所「台湾中型一百指数成分股」,更名列台湾百大企业之列。 主要客户
─IBM、COMPAQ、HP、DELL、MICROSOFT、PANASONIC
、NEC、HP、DELL、MICROSOFT、PANASONIC、PALM、WISTRON、方正、浪潮、东海。是一家专注于OEM的公司。
九.村田电子 不用说也知道是日本的,元器件牛厂,1950年成立。电源方面主要做DC-DC,没有PC电源业务。
十.飞鸿科技 刚进入中国时号称美国品牌,其实和GT一样,属于台湾人在美国注册的品牌,总部也在台湾。产品线主要以小功率线性电源、DC-DC为主。没有PC电源业务。
十一.TDK 又一个日本元器件牛厂,世界主要DC-DC芯片供应商。电源业务主要为DC-DC芯片生产销售以及DC-DC模块OEM。玩家了解这个品牌可能是因为磁环,TDK的磁环在玩家界口碑那是相当的不错。
十二.凌骥电子 该公司前身是数家知名企业的电源系统部,曾隶属于贝尔实验室、西部电气、AT&T、朗讯科技以及泰科电子。 Lineage Power目前的主要业务集中在电源系统及嵌入式电源产品,主要应用于数据通信、电信通信和工业以及医疗领域,为通讯设备制造商、通讯服务运营商以及服务器/数据存储设备制造商提供系统级DC转换及后备式电源解决方案、标准板装电源(BMP)以及单体AC-DC和DC-DC开关电源,是全球第二大DC-DC标准模块供应商。
十三.秋田新电元 还是日本元器件牛厂,该公司最著名的产品是整流桥。电源主要产品也是DC-DC。
十四.赛尔康 NOKIA最大的合作伙伴,1975年在芬兰成立。买水货手机的朋友经常可以看到这个牌子的充电器。主要产品手机充电器、DC-DC。很多高端耳机的驱动是这个牌子代工的模块。
十五.宝威 美国品牌,深圳有厂。产品线非常广,就是没有PC电源,主要做工控、铁路、通信等等。

十大台系PC电源品牌排名
1、台达(Delta)
2、光宝(Liteon)
3、康舒(Acbel)
4、全汉(FSP,SPI,Sparkle,Fortron/Source)
5、高效(Hipro)
6、侨威(CWT)
7、海韵(Seasonic)
8、益衡(Enhance)
9、七盟(Seventeam)
10、至宝(Topower)
引:某位大侠这么形容:
用小孩的成长和教育来比喻电源质量/品牌/性能。
台达、爱默生网能是本科,
光宝、高效、康舒等是大专,
七盟、全汉、新巨、乔威、海韵等等几家厂大概是高中,
长城、航嘉是幼儿园。
国内其它小杂牌TMD连个受精卵都不算!
金河田、鑫谷、世纪之星等勉强可以认为介于幼儿园和受精卵之间。
世界级电源厂商的名单。全球十大电源厂商为:
1、DELTA ELECTRONICS 台达电子
2、EMERSON NETWORKPOWER(ASTEC)爱默生网能(雅达)
3、LITE-ON TECHNOLOGY 光宝科技
4、LAMBDA DENSEI 电盛兰达
5、ACBEL POLYTECH INC 康舒科技
6、TYCO ELECTONICS 泰科电子
7、ARTESYN TECH INC 腾讯科技
8、Phihong飞宏科技
9、TDK Corp 东京电气化学工业株式会社
10、HIPRO 高效电子
简要说明:
台达电子是世界第一的开关电源厂,几乎涉足所有电源相关产品,是世界领导品牌,世界上每四台PC就有一台使用台达电源,而在服务器市场,台达电源的占有率超过五成。台达电子拥有雄厚的技术实力及制造能力,其电源产品不论是质还是量,都站在世界的最顶端(GPS编号电源暂时除外)。
台达电子在东莞设有7个工厂专门生产民用开关电源及相关产品。
爱默生网能是台达电子的主要竞争对手之一,台达电子拥有的业务,爱默生网能几乎全部拥有,旗下开关电源品牌雅达电源大量用于IBM、DELL、HP等品牌高级机型,2007年另一世界著明开关电源品牌腾讯被收购至旗下,之前腾讯电源也被大量装备于IBM、DELL、HP、SUN的高规格客制机种。
光宝科技是台湾第二,世界第三大电源厂,电源产品大量曝光于世界知名品牌PC、工作站及服务器或高性能定制计算机上,东莞利通电子厂是其主要电源生产厂。
电盛兰达是日本最大的电源制造公司,2008年成为TDK全资子公司,进一步扩充实力,主要产品是工业及通信用电源,是日本电子产业支柱公司之一。
康舒电子是台湾第三大电源生产商,也是唯一一个大面积进入零售市场的纯实力厂商。
泰科电子厂主要电源产品为DC–DC VRM,应用于高性能,高可靠的通信及工业设备上。
飞宏电子厂是台湾第四大电源厂,其代工的众多高级电池充电器(SONY、SANYO、松下等)在众多电池发烧友中犹如神一般的存在,充电器PCB上的“PHIHONG” LOGO已经成为高级电池玩家判断充电器品

Dassault DraftSight 激活

http://www.itninja.com/software/dassault-systemes/draftsight/10-982

 

 

Extract the MSI and the CAB file from the EXE installer (DraftSight64.exe). Installation of MSI is simple. “…ALLUSERS=1 /qb” will do. But there is another annoying issue within this product. It is a free product, but it asks activation. To get rid of the activation message just open Regedit.exe and navigate to: “HKEY_CURRENT_USER/Software/SWActivation/K2″ Delete any sub key and value below “K2” (default key stays). Now edit permission on “K2”. Remove Full-Control from your Current-User and set to Read-Only instead. Replace permission on this object. You should be able now to start DraftSight without the activation message.

Setup Information:
Setup Type: Windows Installer (MSI)
Deployment Method Used: Windows Installer Command Line (No MST)
Deployment Difficulty: Very Easy
Platform(s): Windows

ubuntu SettingUpConky

原文:https://help.ubuntu.com/community/SettingUpConky

Setting Up Conky

This guide will step you through initial installation and configuration of Conky for Ubuntu. Conky is extremely configurable; there are virtually unlimited ways of configuring it. The nuances of advanced conky configuration are beyond the scope of this article, but many resources exist online regarding this subject. A few are given here for anyone interested:

Installation

First, let’s define the various aspects of conky.

CONKY – Conky is a system monitor for X originally based on the torsmo code.

Since its original conception, Conky has changed a fair bit from its predecessor. Conky can display just about anything, either on your root desktop or in its own window. Conky has many built-in objects, as well as the ability to execute programs and scripts, then display the output from stdout.

First, you need the file “conky” and I’d suggest you look at curl, lm-sensors and hddtemp as well, described below. You may as well get them now, I’ll bet you will in the future if you don’t:

sudo apt-get install conky-all

CURL – Get a file from an HTTP, HTTPS or FTP server

curl is a client to get files from servers using any of the supported protocols. The command is designed to work without user interaction or any kind of interactivity.

curl offers a busload of useful tricks like proxy support, user authentication, FTP upload, HTTP post, file transfer resume and more.

LM-SENSORS – utilities to read temperature/voltage/fan sensors

Lm-sensors is a hardware health monitoring package for Linux. It allows you to access information from temperature, voltage, and fan speed sensors. It works with most newer systems.

This package contains programs to help you set up and read data from lm-sensors.

Homepage

HDDTEMP – hard drive temperature monitoring utility

In order to use the above code without sudo or root to get the hard drive temperature displayed in conky; one can run the following
after the prompt:

sudo dpkg-reconfigure hddtemp

The hddtemp program monitors and reports the temperature of PATA, SATA or SCSI hard drives by reading Self-Monitoring Analysis and Reporting Technology (S.M.A.R.T.) information on drives that support this feature.

If you want all four, it’s easy:

sudo apt-get install conky curl lm-sensors hddtemp

Running & Configuration

To run conky, open a terminal and type:

conky &

and you’ll see a little window open and display a basic conky. That’s the default conky configuration. The file can be found in /etc/conky/conky.conf.

However, you likely want it on your desktop all the time and customized for your system, not in a pop-up window. This can be done by creating and editing a file in your home directory called .conkyrc. Create an empty file in your home folder and name it .conkyrc. The period at the beginning of the filename sets it to hidden, so to view the file in your file manager you must enable viewing hidden files/folders. In most file managers you can activate this by pressing Ctrl+h. It is usually best to start with an existing .conkyrc file and edit to suit your tastes. You can copy the contents of /etc/conky/conky.conf into the new .conkyrc and edit that, or you can find a config file on the web and use it. Regardless, paste the contents of the existing conky file into the new .conkyrc and save.
Conky is very popular and .conkyrc files are available all over the web. One good place to start would be this thread in the Ubuntu forums.

Now restart conky by running

killall -SIGUSR1 conky

It will now be using your new .conkyrc file.

Set Conky To Start At Boot

Conky only becomes useful when it is set to start up at boot. Here’s how in Ubuntu and the various respins.

In Ubuntu/Unity:

Click the gear icon in the upper right hand corner of the top panel. Select Startup Applications. Click Add. In the resulting dialog box give the name as “Conky” and the command as conky. Click add and close.

In Ubuntu/Gnome Shell

Press Alt+F2 to bring up the Run dialog. Type gnome-session-properties. Click the “Add” button. In the resulting dialog box give the name as “Conky” and the command as conky. Click add and close.

In Kubuntu

Go to K-Menu>Computer>System Settings. Select Startup and Shutdown and click the Add Program button. Type conky and click OK.

In Lubuntu

Run the following commands in a terminal:

mkdir -p ~/.config/lxsession/Lubuntu/
touch ~/.config/lxsessions/Lubuntu/autostart
leafpad autostart

Add this line to the autostart file:

@conky

Save and close.

In Xubuntu

In the Applications menu open Settings Manager and select Session and Startup. On the Application Autostart tab click the Add button. In the resulting dialog box give the name as “Conky” and the command as conky.

Running Multiple Conky

You may wish to run multiple instances of Conky on your desktop. You could be running a system info Conky on the left side of your desktop and a weather Conky along the bottom; the options are nearly infinite.
First you need to be sure your Conky are aligned on the desktop differently, so they don’t overlap each other. You can specify the alignment of a Conky in the .conkyrc file by changing the line beginning with “alignment”. The syntax is as follows:

alignment top_right  # top_right, top_left, bottom_left, bottom_right

To set multiple Conky to run at startup, create a folder called .conky.

mkdir ~/.conky

Save your different Conky config files in there. You may want to name them .conkyrc_top, .conkyrc_bottom, etc. You should save all your Conky config files there. Next create a script that will execute all these Conky files. Something like the following:

 #!/bin/bash
conky -c ~/.conky/.conkyrc_top &
conky -c ~/.conky/.conkyrc_bottom

Note that all commands except the last must be appended with an ampersand (&) so that the script will not stop at the first command.
The “conky -c random_file” command simply tells conky to use random_file for configuration instead of the default ~/.conkyrc. Save this file as conky_start in ~/bin; if the folder does not already exist, create it.

mkdir ~/bin

Next set it to exectuable:

chmod a+x ~/bin/conky_start

Now follow the instructions given above on autostarting, only substitute “conky_start” for “conky”. NOTE: In Kubuntu, you must choose “Add Script” rather than “Add Program”.
If you’ve already set “conky” to launch at startup, you must remove it when adding “conky_start”. Although this will get you started with a functioning Conky, this is only the beginning. Enjoy configuring it to your liking, and feel free to share your config files!

conkyrc

Ubuntu 16.04

os.execute(“sleep 1”)

conky.config = {
background = true,
override_utf8_locale = true,
double_buffer = yes,
alignment = ‘top_right’,
border_width = 1,
cpu_avg_samples = 2,
default_color = ‘white’,
default_outline_color = ‘black’,
default_shade_color = ‘black’,
draw_borders = false,
draw_graph_borders = false,
draw_outline = false,
draw_shades = false,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_type = ‘normal’,
own_window_transparent = true,
own_window_argb_visual = true,
own_window_argb_value = 64,

own_window_hints = ‘undecorated,below,sticky,skip_taskbar,skip_pager’,
minimum_width = 300, minimum_height = 0,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = ‘none’,
show_graph_scale = false,
show_graph_range = false,
use_xft = true,
xftalpha = 0.1,
font = ‘Droid Sans:size=11’,
color0 = ‘white’,
color1 = ‘EAEAEA’,
color2 = ‘FFA300’,
color3 = ‘grey’
}

conky.text = [[
${font Noto Sans CJK SC:size=20}${time %Y年%m月%d日 星期%a }
${font Noto Sans CJK SC:size=12}${execi 6 /usr/bin/lunar -u -s | grep ‘阴历’| paste -s | cut -c1-36}
${font Noto Sans CJK SC:size=12}${execi 6 /usr/bin/lunar -u -s | grep ‘干支’| paste -s | cut -c1-100}

${font Sans:bold:size=16}${color white}System ${color slate grey}${hr 2}${font}

${color1}Computer name ${alignr}${color}${nodename}
${color1}Kernel version ${alignr}${color}${kernel}-${machine}
$hr
${color grey}Uptime:$color $uptime
${color grey}RAM Usage:$color $mem/$memmax – $memperc%
${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax – $swapperc%
${swapbar 4}
${color grey}CPU Usage:$color $cpu%
${cpubar 4}
#${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes

${cpugraph 000000 FFFFFF}
CPU1 Temperature: $color${execi 6 /usr/bin/sensors | grep ‘Core 0’| paste -s | cut -c15-18,19-21}°C ${cpu cpu0}% ${color FFFFFF}${cpubar cpu0}$color
CPU2 Temperature: $color${execi 6 /usr/bin/sensors | grep ‘Core 1’| paste -s | cut -c15-18,19-21}°C ${cpu cpu1}% ${color FFFFFF}${cpubar cpu1}$color
#3: Temp: $color${exec sensors|grep ‘Core 2’|awk ‘{print $3}’|sed ‘s/xC2//g’|sed ‘s/xb0//g’}°C ${cpu cpu3}% ${color FFFFFF}${cpubar cpu3}$color
#4: Temp: $color${exec sensors|grep ‘Core 3’|awk ‘{print $3}’|sed ‘s/xC2//g’|sed ‘s/xb0//g’}°C ${cpu cpu4}% ${color FFFFFF}${cpubar cpu4}$color

$hr

${font Sans:bold:size=16}${color white}Networking${font}
Download:$color ${downspeed enp2s0}
${downspeedgraph enp2s0 30}
Upload:$color ${upspeed enp2s0}
${upspeedgraph enp2s0 30}
]]

Ubuntu14.04

.conkyrc
# Conky settings #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
#imlib_cache_size 0
temperature_unit fahrenheit
# Window specifications #
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
minimum_size 200 250
maximum_width 250
alignment tr
gap_x 35
gap_y 55
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# Text settings #
use_xft yes
xftfont caviar dreams:size=12
xftalpha 0.5
uppercase no
temperature_unit celsius
default_color FFFFFF
TEXT
${font Microsoft YaHei:size=16}${time %Y年%m月%d日 星期%a }
#${execi /usr/bin/lunar –utf8 time %Y %m %d}${font :size=12}${time %k:%M:%S}
${font caviar dreams:size=12}${color FFFFFF}CPU0 Temperature${execi 6 /usr/bin/sensors | grep Core 0| paste -s | cut -c15-18,19-21} °C${font}
$color1 Usage: $color2${cpu cpu0}% $color1      ${cpubar cpu0}
${font caviar dreams:size=12}${color FFFFFF}CPU1 Temperature${execi 6 /usr/bin/sensors | grep Core 1| paste -s | cut -c15-18,19-21} °C${font}
$color1 Usage: $color2${cpu cpu1}% $color1      ${cpubar cpu1}
${font caviar dreams:size=12}${color FFFFFF}CPU2 Temperature${execi 6 /usr/bin/sensors | grep Core 2| paste -s | cut -c15-18,19-21} °C${font}
$color1 Usage: $color2${cpu cpu2}% $color1      ${cpubar cpu2}
${font caviar dreams:size=12}${color FFFFFF}CPU3 Temperature${execi 6 /usr/bin/sensors | grep Core 3| paste -s | cut -c15-18,19-21} °C${font}
$color1 Usage: $color2${cpu cpu3}% $color1      ${cpubar cpu3}
#${color2}FAN: $color1${execi 300 /usr/bin/sensors | grep fan | cut -c11-17}rpm      #获取风扇转速
#${color2}GPU:  $color1${execi 300 /usr/bin/sensors | grep temp4 | cut -c15-16}℃      #获取显卡温度
${color2}HDD: $color1${hddtemp /dev/sda} °C${font}  #获取硬盘温度,实际上也可通过获取显卡温度的方法获取硬盘温度,只是该方法比较方便。
${color1}Memory ${color2}($memmax)
${color1}RAM: $color2$mem($memperc%) ${membar}
${color1}Swap: $color2$swap ($swapperc%) ${swapbar}
${color1}Net
${color1}Download: $color2${downspeed eth0}
${downspeedgraph eth0}
${color1}Upload: $color2 ${upspeed eth0}
${upspeedgraph eth0}
${color FFFFFF}${font caviar dreams:size=12}${nodename}
${color FFFFFF}${font caviar dreams:size=12}${pre_exec cat /etc/issue.net}  $machine
${color FFFFFF}${font caviar dreams:size=12}Kernel: ${kernel}