kde

你需要知道的16个Linux服务器监控命令

懵懂的女人 提交于 2019-12-02 03:40:56
英文原文: hp.com ,翻译: oschina 如果你想知道你的服务器正在做干什么,你就需要了解一些基本的命令,一旦你精通了这些命令,那你就是一个 专业的 Linux 系统管理员。 有些 Linux 发行版会提供 GUI 程序来进行系统的监控,例如 SUSE Linux 就有一个非常棒而且专业的工具 YaST,KDE 的 KDE System Guard 同样很出色。当然,要使用这些工具,你必须在服务器跟前进行操作,而且这些 GUI 的程序占用了很多系统资源,所以说,尽管 GUI 用来做基本的服务器健康状态监测挺好,但如果你想知道真正发生什么,请关掉 GUI 开始命令行之旅吧。 你应该只在需要的时候去启动 GUI ,不用的时候关掉它。如果要让服务器保持最佳性能,你应该将 Linux 服务器的运行级别 runlevel 设置为 3 ,就是控制台模式,当你需要图形化桌面的时候使用 startx 命令来启动它。 如果你的服务器启动后就直接进入图形界面,你需要修改配置 /etc/inittab 找到 initdefault 一样,将 id:5:initdefault 修改为 id:3:initdefault。 如果你没找到 /etc/inittab 文件,那就创建一个新的,文件内容增加 id:3 这么一行。这样下次服务器启动的时候就不会进入图形界面。如果你不想等到服务器重启的时候才生效

Keep a application window always on current desktop on linux and mac

佐手、 提交于 2019-12-01 23:59:37
问题 I search a way to put a QWidget window of a Qt application always on the current desktop/workspace. When I change the virtual desktop, I need my window to be automatically visible on the new current virtual desktop. I search a solution that works at minimum on gnome, kde on linux and mac os. I think the first step is to detect when virtual desktop is change, I don't know if Qt have a API for that or if I need to implement it for each desktop solution. Thanks in advance for all help. 回答1:

Gnome Xfce 环境下KDE界面显示不和谐问题

妖精的绣舞 提交于 2019-12-01 21:59:24
Qt软件主题问题 最近将gnome桌面环境改成了Xfce桌面,发现有些Qt编写的软件界面发生了很多变化,例如:VirtualBox 真的是惨不忍睹。 经过网上的多番收索,终于找到设置Qt主题的方案,gtk主题引擎有多种实现方案比如,适用于Xfce的 gtk3-engines-xfce , 适用Qt主题引擎 gtk3-engines-oxygen。 首先安装qtconfing(我用的是Debian系列操作系统,其他Linux请查找相应的安装方式) sudo apt-get install qt4-qtconfig 启动qt设置 qtconfig 并选择Gtk+主题 最终结果 来源: oschina 链接: https://my.oschina.net/u/1017208/blog/551722

Keep a application window always on current desktop on linux and mac

谁说我不能喝 提交于 2019-12-01 20:39:58
I search a way to put a QWidget window of a Qt application always on the current desktop/workspace. When I change the virtual desktop, I need my window to be automatically visible on the new current virtual desktop. I search a solution that works at minimum on gnome, kde on linux and mac os. I think the first step is to detect when virtual desktop is change, I don't know if Qt have a API for that or if I need to implement it for each desktop solution. Thanks in advance for all help. Under X11, you are supposed to set the _NET_WM_DESKTOP window property to 0xFFFFFFFF . I suspect there's no Qt

Qt - how to detect whether the application is running on GNOME or KDE?

喜夏-厌秋 提交于 2019-12-01 18:16:17
I was wondering how I could do something like this ( source ) using Qt. I looked through the documentation but couldn't find any method to check if an external process is running. if [ "$(pidof ksmserver)" ]; then echo "KDE running." # KDE-specific stuff here elif [ "$(pidof gnome-session)" ]; then echo "GNOME running." # GNOME-specific stuff here elif [ "$(pidof xfce-mcs-manage)" ]; then echo "Xfce running." # Xfce-specific stuff here fi schemacs Use QProcess to run pidof foo , then check its stdout? If this is not what you want, search /proc/ . Normally you shouldn't do this. Generally, if

Qt - how to detect whether the application is running on GNOME or KDE?

半腔热情 提交于 2019-12-01 17:49:30
问题 I was wondering how I could do something like this (source) using Qt. I looked through the documentation but couldn't find any method to check if an external process is running. if [ "$(pidof ksmserver)" ]; then echo "KDE running." # KDE-specific stuff here elif [ "$(pidof gnome-session)" ]; then echo "GNOME running." # GNOME-specific stuff here elif [ "$(pidof xfce-mcs-manage)" ]; then echo "Xfce running." # Xfce-specific stuff here fi 回答1: Use QProcess to run pidof foo , then check its

KDE: how do i find and switch current global keyboard layout from CLI?

余生长醉 提交于 2019-12-01 11:23:46
I'm on KDE and I need to find out and to be able to switch current global keyboard layout in a script. I've made a research on setxkbmap - but in this case it's of no help. Found a solution: setxkbmap -print | grep xkb_symbols | awk '{print $4}' | awk -F"+" '{print $2}' to find out current layout. The following allows to set it: setxkbmap -layout us setxkbmap -layout ru and this toggles it: if [ `setxkbmap -print | grep xkb_symbols | awk '{print $4}' | awk -F"+" '{print $2}'` = us ] ;then echo "EN"; echo "changing to RU..."; setxkbmap ru ; else echo "RU"; echo "Changing to US..."; setxkbmap us

KDE: how do i find and switch current global keyboard layout from CLI?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 08:04:45
问题 I'm on KDE and I need to find out and to be able to switch current global keyboard layout in a script. I've made a research on setxkbmap - but in this case it's of no help. 回答1: Found a solution: setxkbmap -print | grep xkb_symbols | awk '{print $4}' | awk -F"+" '{print $2}' to find out current layout. The following allows to set it: setxkbmap -layout us setxkbmap -layout ru and this toggles it: if [ `setxkbmap -print | grep xkb_symbols | awk '{print $4}' | awk -F"+" '{print $2}'` = us ]

How to access to parent widget on qt?

你。 提交于 2019-12-01 05:40:37
I have an inherited QTreeWidget (called PackList) class and its parent is a KXmlGuiWindow. How can I access to the parent's slots? I've tried getParent()->mySlot() from the QTreeWidget class but I've got error: no matching function for call to 'PackList::mySlot()' Does anybody know the correct way? Thanks If you know the parent's class, you will have to cast parentWidget() to that class and then call your slot. Keep in mind whether or not it's a slot makes no difference in this case. You are just calling a method. ((KXmlGuiWindow*)parentWidget())->mySlot(); You can make the call without

[转帖]最佳 Linux 发行版汇总

早过忘川 提交于 2019-12-01 05:21:46
最佳 Linux 发行版汇总 https://cloud.tencent.com/developer/article/1505186 以后说不定用的到. Linux入门 Ubuntu Ubuntu是一款基于Debian发行版,以Unity作为默认桌面环境的Linux操作系统。他是世界上最流行的发行版之一,最新发行版为桌面、移动及其桌面移动混合版的优化。 Kubuntu Kubuntu是Ubuntu的衍生版,使用KDE作为默认桌面环境. 除此之外,二者大同小异,发行时间也相差无几。 Mint Mint易于使用且功能强大。它基于Ubuntu开发,可靠而安全的特性使其成为了最为流行的Linux发行版之一,被称为Windows及Mac OS后最为流行的家用操作系统。 Mint有着丰富的桌面选项,默认为Cinnamon桌面, 你还可以使用MATE, KDE或Xfce。 Deepin Deepin 是一个基于 Ubuntu 的发行版,它专门设计的深度桌面环境,旨在吸引新的 Linux 用户。它的界面简单直观,同时还有自己的应用商店。系统设置面板的是所有发行版中最好看的一个。 DMusic, DPlayer 和 DTalk 是其专有的应用程序。 PCLinuxOS PCLinuxOS 专为普通 PC 用户设计:安装驱动,获取办公软件,编辑照片,上网以及使用多媒体等普通用户的操作被特殊照顾