我事先搜索过,我发现的唯一建议是这个,但它不起作用,至少在我的系统(Ubuntu Unity 14.04 x64)上不起作用。
我需要禁用我的WACOM Bamboo Manga CTH-470数位板的触摸功能,这样当我不小心触摸它时,只能识别笔尖和橡皮擦,而不能识别我的手。
我知道这个临时解决方案:
xsetwacom --list
Run Code Online (Sandbox Code Playgroud)
列出平板电脑的输出(示例)
inoki@innerdistance-Satellite-L650:~$ xsetwacom --list
Wacom Bamboo 16FG 4x5 Pen stylus id: 11 type: STYLUS
Wacom Bamboo 16FG 4x5 Finger touch id: 12 type: TOUCH
Wacom Bamboo 16FG 4x5 Pen eraser id: 16 type: ERASER
Wacom Bamboo 16FG 4x5 Finger pad id: 17 type: PAD
然后
xsetwacom --set # touch off
Run Code Online (Sandbox Code Playgroud)
使用
inoki@innerdistance-Satellite-L650:~$ xsetwacom --list | grep TOUCH | cut -d ' ' -f 8
TOUCH …
tracker-miner-f、tracker-store、tracker-extract 和 dropbox 进程正在耗尽我的 CPU,它们使其运行速度超过 100%,导致我的笔记本电脑过热。
我已经安装了 CPULIMIT,它可以很好地限制这些进程,但是,我无法让它自动启动。
我已遵循此操作,但它不起作用,守护进程启动,但我认为创建脚本时存在错误,并且它实际上并不限制任何进程。
有没有一种方法可以减少 cpu 使用率,而不必每次启动新会话时都通过终端手动执行此操作?
乌班图14.04
我在下面找到的脚本仅部分运行并且无法正确检测 PID。
如果有人比我更有知识,你可以检查一下这一行:
NEW_PIDS_COMMAND="top -b -n1 -c | grep -E '$BLACK_PROCESSES_LIST' | gawk '\$9>CPU_LIMIT {print \$1}' CPU_LIMIT=$CPU_LIMIT"
Run Code Online (Sandbox Code Playgroud)
它是否正确?
#!/bin/bash
# ==============================================================
# CPU limit daemon - set PID's max. percentage CPU consumptions
# ==============================================================
# Variables
CPU_LIMIT=40 # Maximum percentage CPU consumption by each PID
DAEMON_INTERVAL=3 # Daemon check interval in seconds
BLACK_PROCESSES_LIST="dropbox" # Limit only processes defined in this variable. If variable is empty …
Run Code Online (Sandbox Code Playgroud) 如何在启动 Ubuntu 20.04 时启动 Slack?
我是否需要像使用其他程序一样手动配置它,或者 Slack 中有特殊选项可以帮我完成此操作吗?
我已经安装了系统负载指示器并在首选项中设置了“自动启动”。出于某种原因,它不会在启动系统时加载。
如何找出此应用程序的名称/命令,然后我可以将其添加到“启动应用程序首选项”中?谢谢。
如何访问 UI 以在 Ubuntu 11.10 中配置自动启动应用程序?请不要告诉我,我必须使用终端或自己创建一个启动器来完成,请不要告诉我,它已经消失了!
我期待一个 .deb 文件,但我得到了这个:http : //whatpulse.org/downloads/50/64bit/
我是 Linux 新手,刚开始使用 ubuntu 14.04。我试图通过编辑 rc.local 文件在启动时运行 imwheel 进程。也许我做错了什么,我需要输入一个程序路径,就像终端中的名字一样?
当我尝试通过运行进行检查时:
sudo service rc.local start
Run Code Online (Sandbox Code Playgroud)
我收到以下消息:INFO:
imwheel started (pid=4906)
Could not open display, check shell DISPLAY variable, and export or setenv it!
Run Code Online (Sandbox Code Playgroud)
rc.local 文件:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just …
Run Code Online (Sandbox Code Playgroud) 有一个插件fcitx
,您可以在其中将单词与其他字符串相关联,例如“smile ????” 在~/.config/fcitx/data/QuickPhrase.mb
. 当你输入smile
它时输出 ?????`
我想要同样的东西,但是一个函数而不是一个词;我希望它输出当前时间戳。
例如:当我输入“time”时,它输出当前时间“2016-08-03 11:15”,一分钟后,当我输入“time”时,它输出“2016-08-03 11:16”
我有几个终端配置文件。我可以在启动时打开所有配置文件,但它们在启动应用程序中使用此 cmd 在不同的窗口中打开:
gnome-terminal --window-with-profile=ablack && gnome-terminal --window-with-profile=agreeen && gnome-terminal --window-with-profile=aubergine && gnome-terminal --window-with-profile=beige && gnome-terminal --window-with-profile=cyan && gnome-terminal --window-with-profile=grey && gnome-terminal --window-with-profile=orange && gnome-terminal --window-with-profile=white && gnome-terminal --window-with-profile=yellow && gnome-terminal --window-with-profile=ablack
Run Code Online (Sandbox Code Playgroud)
我试图用这个 cmd 打开一个带有多个选项卡的窗口,但没有成功:
gnome-terminal --window-with-profile=ablack && gnome-terminal --tab-with-profile=agreeen && gnome-terminal --tab-with-profile=aubergine && gnome-terminal --tab-with-profile=beige && gnome-terminal --tab-with-profile=cyan && gnome-terminal --tab-with-profile=grey && gnome-terminal --tab-with-profile=orange && gnome-terminal --tab-with-profile=white && gnome-terminal --tab-with-profile=yellow && gnome-terminal --tab-with-profile=ablack
Run Code Online (Sandbox Code Playgroud)
如何使它工作?