conky

kali linux 安装教程

时光总嘲笑我的痴心妄想 提交于 2020-04-28 10:12:31
kali linux各版本大全: http://old.kali.org/kali-images/ 1. 制作U盘启动盘, 利用Universal_USB_Installe 系统镜像烧录工具 2、更新系统: 首先更换一个速度快点的国内源 (1) lsb_release -a 先看你的版本,是Rolling还是其他什么 (2) leafpad /etc/apt/sources.list(源的默认文件路径) 编辑sources.list,把国内源复制粘贴进去。我的版本是Rolling,源也要是kali-rolling 我的是中科大的源和阿里的源。然后由于网络慢的原因,我把系统自带的源和中科大的源注释了,只用阿里源。 大家根据自己情况选择源,网上都有。 (3) apt-get update 刷新源 (4) apt-get upgrade 更新 (5) apt-get dist-upgrade 更新 3、安装输入法 (1) apt-get install fcitx im-config (2) 从网上下载搜狗输入法 之后dpkg -i sogoupinyin_2.2.0.0108_amd64.deb安装 (3) 安装提示有依赖时,输入apt-get install -f (4) 安装完后重启电脑即可 (5) 注意事项: 建议在更新完系统软件后,再安装搜狗输入法

python getting upload/download speeds

╄→尐↘猪︶ㄣ 提交于 2020-01-12 05:53:12
问题 I want to monitor on my computer the upload and download speeds. A program called conky already does it with the following in conky conf: Connection quality: $alignr ${wireless_link_qual_perc wlan0}% ${downspeedgraph wlan0} DLS:${downspeed wlan0} kb/s $alignr total: ${totaldown wlan0} and it shows me the speeds in almost real time while I browse. I want to be able to access the same information using python. 回答1: You can calculate the speed yourself based on the rx_bytes and tx_bytes for the

determine if connection is wired or wireless?

混江龙づ霸主 提交于 2020-01-03 01:41:31
问题 I have a bash script I made which when run on each of my computers, detects the number of CPU cores, HDDs/partitions, battery present or not, etc, and generate a conkyrc file to display the relevant info for that PC using the style I prefer in my conky. I am having difficulty determining whether the PC is on a wired or wireless internet connection however. Does anyone know a way to determine the type of connection with a bash script? 回答1: Try this: tail -n+3 /proc/net/wireless | grep -q . &&

Conky interface

江枫思渺然 提交于 2019-12-11 07:23:13
问题 I am investigating a way to access remotely statistics about a linux server, the kind of information that conky would display. Is there a way to interface with conky and obtain the statistics it displays? If not, can you recommend a good way to obtain this kind of statistics? (C/Cpp lib, or maybe python)? 回答1: You could have conky write to stdout (the out_to_console option) and redirect that to a file. Of course you'd still need to gain external access to the file. Conky gets most of its data

How to implement a basic Lua function in Conky?

ぐ巨炮叔叔 提交于 2019-12-11 01:33:53
问题 I am trying to add a function to my Conky which prints the length of a string for debug purposes. The code, inside a file called test.lua , is pretty trivial: function test(word) return string.len(word) end ...and I load it like this. In my conky.config section I have: lua_load = '/home/xvlaze/test.lua', lua_draw_hook_pre = 'test' ...in the conky.text section I have: ${lua test "fooo"} ...where test is the name of the function and fooo the string to test. The expected result should be a

determine if connection is wired or wireless?

余生颓废 提交于 2019-12-07 02:53:32
I have a bash script I made which when run on each of my computers, detects the number of CPU cores, HDDs/partitions, battery present or not, etc, and generate a conkyrc file to display the relevant info for that PC using the style I prefer in my conky. I am having difficulty determining whether the PC is on a wired or wireless internet connection however. Does anyone know a way to determine the type of connection with a bash script? Try this: tail -n+3 /proc/net/wireless | grep -q . && echo "We are wireless" Details On a hardwired system, the contents of /proc/net/wireless consist of two