date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,405,814,980,000 |
Is it true that find is not supposed to be doing even the most simple path unification/simplifications operations, such as coalescing multiple successive slashes together (which would be equivalent to the original form)?
For example the output of find ./// is:
.///
.///somefile
[…]
(tested with find from GNU and busy... |
If you don't have utilities that can understand NUL characters, then this historical behavior can be used to distinguish between files. The output of find will never contain two slashes in a row unless they are provided as part of the initial path. This means that output like
.//path/to/file
./name/more
tells you tha... | Any reason why find does not merge multiple slashes into one? |
1,405,814,980,000 |
I looked at this scheme and now i want to know, can one executable be runned in a two systems, which have the same ancestor? (and so probably the same kernel?)
For example, according to the scheme: Solaris <- System V R4 <- BSD 4.3, so, can the BSD* (OpenBSD, FreeBSD, NetBSD) and the Solaris run the same executable?
P... |
Short answer: No.
Medium answer: Maybe, if the target OS supports it.
Long answer...
First thing to be aware of is that different vendors may use different chip sets. So a Solaris binary may be compiled for a SPARC chip. This won't run on an Intel/AMD machine. Similarly AIX may be on a PowerPC. HP-UX might be on PA... | *nix executable compatibility |
1,405,814,980,000 |
I'm trying to execute a compiled Lazarus file which was working on macOS 10.14.x. After updating to 10.15, I started to get an error, "Bad CPU type in executable", which as far as I understand means that it is no longer compatible.
./myScript
->>>>>>>>>>>>>>> bad CPU type in executable
file myScript
->>>>>>>>>>>>>>> M... |
macOS Catalina (10.15) dropped support for 32-bit executables, which is why your executable no longer works.
The ideal solution is to build a 64-bit binary. The Lazarus wiki describes how to do this: target x86_64, use Cocoa widgets, and build with fpc rather than ppc386.
| Executing "Bad CPU type" executables in 10.15.x |
1,405,814,980,000 |
Here on a Debian system I use mainly gpg2. Some (Debian packaging/signing) tools use gpg1 internally, and changing them as it should be would be infeasible.
Both my gpg versions are using the same work directory (~/.gnupg) and their databases / configuration seem mainly compatible. An exception for this is the handlin... |
GnuPG 1.4, 2.0 and 2.1 all support the "good old" pubring.gpg file for storing public keys. As long as a pubkey.gpg exists, also GnuPG 2.1 will continue to use it and not create a public keyring in the new keybox format.
There are differences with respect to private keys, though. While GnuPG 1.4 and 2.0 both store pri... | Can I use GnuPG 2 and GnuPG 1 concurrently, seeing the same keys? |
1,405,814,980,000 |
sfdisk --delete $disk
From Ubuntu 18.04 or later works. What is the equivalent command in Ubuntu 16.04 LTS?
Ubuntu 16.04 LTS (--delete missing),
Ubuntu 18.04 LTS (--delete present)
|
Solution 1: build and install sfdisk from sources (to be able to use a more recent version)
wget https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.35/util-linux-2.35.tar.gz
tar -xvf util-linux-2.35.tar.gz
cd cd util-linux-2.35
./configure
make
make install
/usr/local/bin/sfdisk --delete $disk
Solution 2... | Missing argument option in sfdisk? |
1,405,814,980,000 |
Occasionally, NixOS changes config options in a way that is not entirely backwards compatible. For example, nixos 19.09 did not have a programs.gnupg.agent.pinentryFlavor option, but in nixos unstable (soon 20.03) I need to set it to a non-default value in order to get the right pinentry variant.
I share my configurat... |
The configuration function does receive an options attr, so it is possible to check if a given option is defined using builtins.hasAttr before setting it in the configuration.
Most NixOS configurations don't extract options, so you may need to add it first. For example:
{ config, pkgs, options, ... }:
{
programs.gnu... | Set NixOS config option only when it is valid, for backwards compatibility |
1,405,814,980,000 |
If for example I have compiled a simple C program that uses GTK 3 on a machine running Ubuntu, will I be able to run it on other Linux flavours?
Note: My actual questions is "Should I label my compiled program for Linux or just Ubuntu?"
eg. Should I label my downloads page as
Windows
program.exe
Linux
program... |
Linux executables are not specific to a Linux distribution. But they are specific to a processor architecture and to a set of library versions.
An executable for any operating system is specific to a processor architecture. Windows and Mac users don't care as much because these operating systems more or less only run ... | Compiled Executable |
1,405,814,980,000 |
I run Puppy Linux (Puppeee to be precise) on my old x86 netbook and I love it: It's breathed new life into my netbook and made it suitable as a low(ish)-power home server.
However, some cloud and telephony companies only grudgingly compile their proprietary code for Linux and usually then only for a few major distros ... |
As mentioned in my comment, docker would work very well for this. The downside to it is that it eats a lot of disk space. Aside from disk space, there's no other overhead, not even CPU or memory.
In a nutshell, docker essentially sets up a chroot inside a full OS image. So you end up running another distro inside your... | Are there methods or compatibility libraries to run .deb applications on Puppy linux (where where no app source is provided)? |
1,405,814,980,000 |
When I establish LAMP environments on Debian, I install some PHP extensions:
apt install php-{cli,curl,mbstring,mcrypt,gd}
From the above, besides php-gd, all packages are missing in Arch.
What are their substitutes, if at all, in Arch? How should I handle this situation?
|
Not every distro splits it up the same way, so some of it is already in the main package.
# archlinux with only main php package installed
$ php --modules
[PHP Modules]
Core
ctype
curl
date
dom
fileinfo
filter
hash
json
libxml
mbstring
mysqlnd
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
SimpleXML
SPL... | Arch: Some very-common PHP packages missing in repo |
1,405,814,980,000 |
Are the MDoc macros, commonly used to create BSD manpages, commonly available on non-BSD systems (such as Ubuntu and other GNU Linux distros)? Is it safe to design manpages using them when writing cross-platform documentation?
|
I think you can probably use these macros without problems.
I looked on 3 sample OS's I have: ubuntu 14.04, debian 7.8, fedora 21, and they
all use the groff package to include the mandoc macros (though not the mandoc command)
and to provide a man page on them: mdoc(7).
I checked if there were any man pages installed ... | Is the mdoc macro set available on non-BSD systems by default? |
1,405,814,980,000 |
We have a typical account domain with NFS home directories, accessible by the mail server as well as various user workstations.
Do the versions of the vacation package installed on the mail server and the workstations need to match?
My understanding is that the vacation program uses a Berkeley DB to keep track of whic... |
Yes, vacation does use Berkeley DB for the purpose you described.
Indeed, you could run into problems if you try and access the same Berkeley DB files using different versions of the client libraries. The on-disk format does change from time to time and upgrading is normally handled transparently by the client applica... | Can the vacation e-mail auto-responder cope with Berkeley DB version skew? |
1,405,814,980,000 |
Following up on Is Ubuntu LTS binary compatible with Debian?
I know Ubuntu and Debian binary packages are incompatible more often than not. I know mixing packages from different sources is generally a bad idea, and people get warned against doing that all the time. So let's keep the discussion pure technical --
What e... |
Binary and package incompatibilities are different and are worth explaining separately.
Binary incompatibility
This is usually what is referred to when people talk about toolchain differences etc. Toolchain incompatibilities themselves are unusual, because the toolchain is, along with the kernel, one of the areas were... | What introduce package/binary incompatibility? |
1,405,814,980,000 |
Why does Linux support this:
umount /
Why would anyone write that, instead of this:
mount / -oremount,ro
I'm looking at the kernel code here:
if (&mnt->mnt == current->fs->root.mnt && !(flags & MNT_DETACH)) {
/*
* Special case for "unmounting" root ...
* we just try to remount it readonly.
*/
... |
Luciano Andress Martini points out:
First time I have a problem in a filesystem in linux I received a message by fsck like "/dev/hda2 is mounted read-write". In that epoch (1999), I did not understand what that means. I am 11 y.o. The only thing that come to my mind was: umount /, and it works (as it remounted read... | Why does the Linux kernel support "umount /"? |
1,405,814,980,000 |
Apologies if this is a stoopid question.
With some effort I have managed to install openSUSE Leap 15.3 on my laptop. As you may know 15.3 is rather different to earlier releases in that it apparently "uses binaries from" SLE 15 SP3. Unfortunately, another difference appears to be that many packages which were there al... |
Do not mix packages from OpenSuse and Suse Enterprise, if it's not crucial. Adding repositories would mean to actually have the system licensed and being able to reach the SLE repos. I see there is a package for llvm for Leap 15.2, which should work on 15.3. Grab the binary package and install it.
| How close are Leap 15.3 and SLE 15 SP3? Can I use one's rpms with the other? |
1,632,089,077,000 |
I would like to run the following command:
tar --sort=name --owner=root:0 --group=root:0 --mtime='UTC 2020-01-01' -cvf api.tar api
But need the following fallback for macOS:
gtar --sort=name --owner=root:0 --group=root:0 --mtime='UTC 2020-01-01' -cvf api.tar api
(Note: the arguments are identical.)
Can I call gtar ... |
Can I call gtar first, and then tar as a fallback, as a one-liner, writing the arguments only once?
To answer this as asked: this can be done as a simple implementation of storing the arguments in an array. (Bash/ksh/zsh. See How can we run a command stored in a variable? for the issues and the POSIX-compatible work... | Running a 2nd command as a fallback with the same arguments as the 1st command |
1,632,089,077,000 |
I personally work cross platform with Windows and Linux and sometimes I edit .sh files with Notepad++. It is hence problematic for me to keep all my files' tab indents as Unix-like so my solution was to use space-based indenting.
Yet, I encounter problem when indenting herdocs inside heredocs. For example, here is an... |
First of all, there is no such thing as a Unix-like tabulation or a Windows-like tabulation. A tabulation character is the same in Windows and Unix. What may change among text editors (not among OSes), is 1. what happens when you hit the TAB key or 2. how many spaces are displayed when the editor meets a tabulation ch... | Why must I use tabs instead of spaces in heredocs? [duplicate] |
1,632,089,077,000 |
Are there any drawbacks to having Cygwin and Windows share the same $HOME directory, in this case the Windows profile directory?
|
Merging them will work fine.
Cygwin proper doesn't store anything in your HOME directory. On first running Cygwin with a fresh home directory, default versions of .bash_profile and such get put there, but again, there is no conflict with things that already get put there.
I, too, find it frequently convenient to be ab... | setting Cygwin's $HOME to Windows profile directory |
1,632,089,077,000 |
Consider the following Makefile:
X = macro-X-value
foo:
echo $$X $(X)
The intention here is to use X both as a name of an environment variable and
of a macro. When using bmake, it works as intended:
$ env X=env-X-value /usr/bin/bmake
echo $X macro-X-value
env-X-value macro-X-value
$ env -i /usr/bin/bmak... |
Based on what I can read from the manual, it seems GNU make treats its variables a bit like the shell. When it starts, it imports variables from the environment to its internal set, and when running commands, exports to their environment the ones marked for export. Which implies it only has a single table for all vari... | GNU Make exports macro as environment variable only when it's already present |
1,632,089,077,000 |
When expanding the /etc/passwd GECOS field to get the user's full name, should we expand only the first ampersand (& character), or all ampersands?
In a GECOS field with comma (,) delimited subfields, should ampersands only be expanded in the first subfield (i.e. the user's full name) or in all subfields?
If the Unix ... |
Ampersands should only be expanded in the first comma-delimited subfield (i.e. the so-called "full name" or "real name" subfield). If there are no commas in the GECOS field, treat the entire field as the real name.
Any and all ampersands are expanded, not only the first one.
If the first character of the username is ... | Ampersand in the passwd GECOS field |
1,632,089,077,000 |
If I install Linux on a USB stick using computer A, then plug it into computer B with different hardware and try to boot and work on it, should I generally expect it to work? Or should I rather accept that Linux, when installed (as opposed to using Live CD/USB), gets tied to the hardware and is generally not supposed... |
I've done it; when I got a new laptop about 2 years ago I just pulled out my old hard drive and put it into the new one. A couple months ago I upgraded the OS (Debian stable) and things are still working fine. The only thing I noticed is that instead of eth0 and wlan0 I have eth1 and wlan1.
Generally, Linux installati... | How tied are Linux installations to hardware? [duplicate] |
1,632,089,077,000 |
Based on this link the Hyper-V 2019 is compatible with Debian 10.0 up to Debian 10.3.
Is this a strict case or can I use 10.5 or even 10.7 without any problems?
|
10.x releases are backwards-compatible with previous 10.x releases, and the kernel is still based on the same stable branch, so you shouldn’t have any problem running the latest 10.x point-release on Hyper-V 2019.
| Debian 10 Hyper V compatibility |
1,632,089,077,000 |
I have made a package in Arch Linux by using the PKGBUILD and makepkg method. So the file is a .pkg.tar.xz format. My goal is to be able to somehow convert this package to a format compatible with other Linux flavors (such as centOS) so I can install it on them as well. Is there a good way to do this? Or is there anot... |
There is no clear way to "convert" Arch Linux packages into CentOS packages. The best thing you can do is to follow this ArchWiki guide on how to create packages to other distributions from inside Arch.
Depending on what distribution it is, the technique will change like using virtualization or chroot. If you take a l... | How do I convert a package made in Arch Linux by using PKGBUILD and makepkg into a package that can be used by other Linux flavors such as centOS? |
1,632,089,077,000 |
I understand that Linux does not support .exe's, but is adding Linux support as simple as providing a .jar version? This summer I'm going to try to really start programming and contributing to... well anything I can. I think Linux is the future. So what makes or breaks compatibility? What do I need to change about my ... |
Since you are using languages, which leverage bytecode for platform independece, you have nothing special to do, to run e.g. Java or Python. As long as the runtimes are supported by linux - which is the case for the mentioned languages - you have nothing to do.
The only thing which differs under linux is the way how y... | What makes a program Linux compatible/incompatible? |
1,632,089,077,000 |
Each new release of openZFS has a range of supported linux kernel versions (for example openZFS v2.1.9 supports kernels versions between 3.10 and 6.1)
But when I run zfs version I get:
root@pve:~# zfs version
zfs-2.1.9-pve1
zfs-kmod-2.1.6-pve1
PVE it's because I'm running proxmox virtual environment distribution, but... |
I have found out.
As zfs-kmod it's a kernel module, it gets embedded into the kernel package. So it's the maintainer of the kernel package who should place a compatible version of the zfs-kmod in their kernel package (if they want to support zfs).
To check the zfs-kmod version of installed kernels without having to bo... | OpenZFS and Linux Kernel versions compatibility question |
1,632,089,077,000 |
I can't seem to find anything about getting WINE to use an actual MS-Windows install, instead of emulating a Windows directory system on Gnu/Linux. Is that even a good idea?
I have two SSDs: one with Arch Linux, the other with Microsoft's Windows 10. All the dependencies for the MS-Windows programs are there, since ea... |
I don't recommend Wine. But to answer you question. Yes mount the MS-Windows partition, then it will look like a regular directory. Point Wine at this directory. There may be problems caused by Gnu/Linux writing to this partition. So mount it read-only.
If you need to write to it (but not so MS-Windows can see), then ... | Run MS-Windows programs directly from MS-Windows drive, on Linux |
1,632,089,077,000 |
Suppose I'm writing a CMakeLists.txt file for a project of mine. I would like to use some newer CMake features... but I don't want to end up requiring a CMake version that's not present in many users' distributions.
So, my questions are:
What is the latest CMake version which is no later than the default version inc... |
pkgs.org tells me that the available versions of CMake in the Linux distributions it knows about are as follows:
Arch Linux: 3.15.2
CentOS: 2.8.12.2 (CentOS 7 and 6)
Debian: 3.13.4 (Debian 10), 3.7.2 (Debian 9), 3.0.2 (Debian 8)
Fedora: 3.14.5 (Fedora 30 and 29)
Mageia: 3.14.3 (Mageia 7), 3.10.2 (Mageia 6)
OpenMandri... | What CMake version can I rely on in current popular Linux distributions? [closed] |
1,632,089,077,000 |
yum groupinstall "Compatibility Libraries"
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Warning: Group compat-libraries does not have any packages to install.
Maybe run: yum groups mark install (s... |
Intel Parallel Studio needs the 32-bit libraries.
yum install libgcc*i686 libstdc++*i686 glibc*i686 libgfortran*i686
| 32-bit libraries GCC for RHEL/CentOS 7 |
1,632,089,077,000 |
I wrote C that displays info about my hardware on ubuntu. Now I wonder how I can make it more flexible such as querying the hardware directly instead of the file the os updates. So I think I can look what write to /proc/scsi/scsi and do the same so that this code can work also on unices who could have other method tha... |
The /proc filesystem is not real, it is a view into kernel-internal data, exported to look like files. It exists in Linux and in Solaris (from where the idea was shamelessly pilfered), and maybe other Unixy systems. The format is very system-dependent (and has even changed substantially among Linux kernel versions).
T... | Which process updates /proc/scsi/scsi? |
1,632,089,077,000 |
For instance, say hypothetically (or in reality) one was using and needed to continue using Debian Jessie, but wanted to utilize PHP7 from Debian Stretch. They might edit /etc/apt/sources.list to use Stretch and install the new software and then revert /etc/apt/sources.list back to Jessie. But would they also need t... |
Here’s what to look out for when mixing stable releases: don’t.
What’s more, adding a different release to sources.list temporarily is a really bad idea, because you won’t get any updates to the packages you pull in from that different release. If you really do want to go down this route, set up pinning properly and e... | What to look for when mixing software in different releases of a distribution? |
1,632,089,077,000 |
I've been tracking the upstream Linux firmware repo in /lib/firmware on a couple of machines, doing very periodic updates of that tree.
I think I saw a firmware loading error booting an older kernel on the machine where I did a git-pull last week.
Does that repository have a policy about backwards compatibility with o... |
You can find the policy/guideline in the kernel source code package as Documentation/driver-api/firmware/firmware-usage-guidelines.rst, or here:
https://docs.kernel.org/driver-api/firmware/firmware-usage-guidelines.html
Firmware Guidelines
Users switching to a newer kernel should not have to install newer firmware fi... | tracking linux-firmware.git and backwards kernel compatibility |
1,632,089,077,000 |
I switched recently to Artix Linux with OpenRC as Init-system. I was using Manjaro before, which uses Systemd. Anyway, I was trying to install some packages I used on Manjaro that I have gotten from the snap-store. But I couldn't install it because of some systemd dependency.
I think was trying to onlyOffice and other... |
Titular Question
While this is indeed too vague for the specific answer the body of your question is seeming to ask, there is a specific answer to the question being asked in the title.
Packages depending on systemd and requiring such are going to contain service files placed where systemd expects them and uses these ... | What breaks package compatibility between OpenRC and Systemd |
1,632,089,077,000 |
I'm trying to use auCDtect to check the authenticity of my audio files. I can run the linux binary successfully on my Synology NAS (DS918+) with the addition of libstdc++-libc6.2-2.so.3. I wanted to do this faster on my macbook pro laptop. I repeated the same step in Debian GNU Linux 9 (in Parallels Desktop), which re... |
I've been using auCDtect under wine for as long as I remember myself:
wine ~/bin/auCDtect.exe -v -mS0 '*.wav'
You could also consider https://github.com/alexkay/spek which shows waveforms in a visual form. You can instantly see if the audio file has been processed by a bad encoder though good encoders e.g. Apple AAC ... | auCDtect: Fatal error: glibc detected an invalid stdio handle |
1,632,089,077,000 |
Is there anything OS-dependent about gcc that would cause a meaningful change between the two versions? Are the two versions even different? Just want to make sure, because I test my code on onlinegdb but paranoidly compile and check it on my school's CentOS server before I submit. I'm wondering if this necessary.
|
Agree with @fox, but additionally there are platform dependent behaviour, and undefined behaviour (GCC tried to define these where it can). These may differ by platform OS and hardware. However Gcc will try to keep things consistent (where it can).
An example of differences, will be the size of the long int and size_t... | Will gcc on onlinegdb always agree with gcc on CentOS 7? |
1,494,635,506,000 |
Say I want something like the following in my .conkyrc
NAME PID CPU% MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ... |
As long as you stick to left-aligned columns or a non-proportional font, ${goto N} works.
NAME${goto 100}PID${goto 200} CPU%${goto 300}MEM%
${top name 1}${goto 100}${top pid 1}${goto 200}${top cpu 1}${goto 300}${top mem 1}
For right alignment, you can try playing with alignr and offset.
| conky: proper column alignment |
1,494,635,506,000 |
It's long time I'm trying to fix my .conkyrc configuration file in order to set real transparency.
There are many post out there about it, but none of them helped in my case, it seems the solution depends on many factors(windows manager, desktop environment, conky version and probably others).
Actually it seems that ... |
-You just define:
own_window yes
own_window_transparent yes
own_window_type conky
own_window_argb_visual yes
own_window_class override
...and you can get the transparency on the desktop.
| .conkyrc - how to set real transparency |
1,494,635,506,000 |
I am trying to instate a more graphically minimal notification system in Arch Linux. Specifically, I've taken interest with programs such as dzen2 or conky that allow for more text-based status bars.
Is it possible to pipe notifications (as in the libnotify, notify-send ones) to a status bar made from programs like d... |
I think you would be better off just removing libnotify and notify-send from the equation, given your stated requirements they do not provide any additional flexibility of functionality.
If you are looking for a minimal status bar, conky has a comprehensive amount of functionality, all of which can be updated in real ... | How do I pipe notifications into my statusbar? |
1,494,635,506,000 |
Is there any way to change the height of a conky window?
.conkyrc
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
# Window specifications #
own_window_class Conky
own_window yes
own_window_type... |
Just add ${voffset 200} at the end of the .conckyrc file and play with the value.
| Increasing conky height |
1,494,635,506,000 |
I've got a strange issue with my Conky setup:
What I'm looking to get rid of/fix is the fact that my CPU percentages (using ${cpu cpuX}) won't seem to pad properly. I'd like all values to be aligned vertically so that statuses never wiggle. Here's excerpts from my conky file:
# ...
pad_percents 3
# ...
${cpubar cpu1 ... |
A solution provided by @jasonwryan above:
Create a Lua script for Conky to use. I created mine in a folder I made in ~/.config/conky/scripts, but you can create yours wherever you'd like:
$ mkdir -p ~/.config/conky/scripts/
$ vim ~/.config/conky/scripts/conky_lua_scripts.lua
Fill the file with the following Lua func... | Creating Conky text variables with zero padding? |
1,494,635,506,000 |
My idea is to use a minimized conky window on the desktop to show basically CPU and memory data all the time. Is this possible with Conky?
|
Yes, that's possible.
In the old times, I run xfwm4 with a fixed margin left on top side, now I just set the window type to panel in conky, the screen margin is no longer required.
| Can conky float over maximized windows? |
1,494,635,506,000 |
I've created a pretty awesome layout in Conky for my desktop machine.
I'm unfortunately having a hard time trying to add padding to the text on the right to separate the right side of the text from the right border.
Here's my configuration:
background yes
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval ... |
Conky has an absurdly comprehensive array of settings for displaying your system information.
The two that would be of most interest in this case are:
border_inner_margin
border_outer_margin
In the situation that you have described, I would suggest the former:
Inner border margin in pixels (the margin between the bo... | Adding spacing around text in Conky? |
1,494,635,506,000 |
When my laptop gets slow for a moment during somewhat heavier processing I expect to see higher numbers (for CPU use) than what I in fact see in the conky Process Panel that I have on the desktop and in the System Monitor.
Using top in terminal I see numbers that justify that momentary slowness of the computer. For e... |
This is because top is showing the value as a percentage of a single CPU core, while conky is showing the percentage of total available CPU power. If you run top and press I you should see the same (almost the same, there will always be a race condition: the time that top polls the CPU won't be the exact same time tha... | Why are `top` CPU numbers different from those of System Monitor and Conky Process Panel? |
1,494,635,506,000 |
I have been trying to find the names of these two elements so I can edit/remove them. However, I have failed. What widgets(?) are these and where are their config files? And what placed them on the desktop?
EDIT: Thank you, for naming these, jasonwryan. After spending some more time with google, I ran 'locate conky' ... |
The default session of Manjaro 17 (i3 edition) is using the files in /usr/share/conky/.
Pick the ones you want to use and copy them to /home/user/(.config), then edit the options for conky's startup in i3's settings to use those instead.
Now you can edit the new config files to suit your needs.
| Name/Edit/Remove Manjaro i3 Desktop Elements |
1,494,635,506,000 |
Is there some widget that I can put in the panel of my Xubuntu system that will show me a countdown of time? I've tried pystopwatch, but although it minimizes, it doesn't show me how long I have left. I've also tried xfce timer-plugin, but it doesn't really minimize. I just need something that will show how much time ... |
My answer will be not on panel. Im using conky to make it visible on desktop
Step 1.
Install conky
sudo apt-get install conky
Step 2.
Pearl Package
You may need to install libdate-manip-perl and libtime-modules-perl packages.
sudo apt-get install libdate-manip-perl libtime-modules-perl
Step 3.
Save at home folder
... | Countdown timer in panel |
1,494,635,506,000 |
I use the following .conkyrc:
The key Question: How can I set the window width, so that I could have a wider "window" for my stuff?
background yes
use_xft yes
xftfont Terminus:size=8
xftalpha 0.8
update_interval 3.0
total_run_times 0
double_buffer yes
own_window yes
own_window_type override
own_window_transparent ye... |
Conky has excellent documentation:
maximum_width Maximum width of window
minimum_size Minimum size of window
| How to set conkys window width? |
1,494,635,506,000 |
I'm using vnstat together with conky. To show the monthly traffic I'm mixing vnstat and grep to find the month. The command to collect the data is
${execi 3600 vnstat -m -i wlan0 | grep "$(date "+%h")" | awk '{print $3 $4}'}
but the problem is that vnstat returns the month in English (Dec for December) and date retur... |
You need to export LANG to date. Assuming that execi invokes a POSIX-compliant shell to do the heavy lifting (note: I don't know if it does or not, your mileage may vary), something like the following should work:
${execi 3600 vnstat -m -i wlan0 | grep "$(LC_ALL=C date "+%h")" | awk '{print $3 $4}'}
| How to change the language for date command? |
1,494,635,506,000 |
I want to use this conky script: Conky Vision
But I don't want the days of the week to be displayed in English.
When I change my locale to another language, the day of today is displayed in that language but the 5-day names from the lower part of the image are always in English, even if I change the system language t... |
I'm the creator of that conky theme. :)
The names of days are provided in the xml file, and yahoo's API only offers English.
You can use 'execi' and run the date command to show all the days instead, and use the LANG variable to change the output language.
Here is an example:
#---Names of days---#
\
\
${font Raleway:... | How to make this conky (Conky Vision) use other language than English? |
1,494,635,506,000 |
I would like to perform basic, arbitrary maths without writing a lua function for it.
One (non-working) example might be: ${${loadavg 1}*100)}%
If this were possible then many other uses might be imagined.
|
The answer depends on how you look at it. If you consider Conky's built-in Lua support and the associated use of Lua to be part of Conky, then yes. Otherwise, no.
Using Lua to do calculations is fairly straightforward. Here's an example Lua file called temps.lua for doing some calculations (I threw in your example, to... | Can Conky perform basic maths nativly? |
1,494,635,506,000 |
I want the output of
stdbuf -i0 -o0 -e0 jack_cpu_load | sed -n 's/[A-Za-z]*//g;s/ //g;s/.\{4\}$//;9,$p'
to be displayed in Conky but, I suspect, Conky is starting the script with every refresh and the script is too slow producing an output for anything to show.
Or, maybe it's something else entirely.
I used ${execp /... |
You should say that this is related to Pipe output of jack_cpu_load through sed
So you wish to extract the float values from this output
jack DSP load 0.163633
jack DSP load 0.159914
jack DSP load 0.159449
jack DSP load 0.164087
jack DSP load 0.159971
Never heard of conky before. Looks cool.
What I would do here:
Do ... | Shell script too slow for output to Conky |
1,494,635,506,000 |
I know conky can monitor my personal computer, but can it monitor the other Linux servers I have on the network? I'd like to see data on CPU and memory usage and some critical processes each server uses. For instance, one server is our MySQL server, so I'd like to display the CPU and memory usage for this server, how ... |
I wrote a program for this very purpose: Conkw. It stands for web based conky.
This is a program that, like conky, can monitor many vitals on your system but also all sorts of stuff (stocks, weather, etc) and exposes a REST API with all the data. It can also monitor a Windows or a MacOS machine.
There is also a HTML U... | Can conky monitor other Linux computers on the network? |
1,494,635,506,000 |
In my .conkyrc file I use some shell-scripts and call it via {execi}.
The problem is it doesn't execute these scripts on startup, e.g. get_public_ip.sh doesn't need to get called every 30 seconds like the get_cpu_temp.sh, so I use:
{exceci 3600 get_public_ip.sh}
with this command I have to wait one hour until I get m... |
As far as I can tell execi should work, not sure why it doesn't. In any case, I get conkyto show my public IP as follows:
${texeci 3600 wget -qO - http://cfajohnson.com/ipaddr.cgi}
Try replacing execi with texeci, see if that helps.
Another possible problem is that conky may be loaded before your connection is establ... | conky execi doesn't execute on startup |
1,494,635,506,000 |
I'm setting up conky and I would like to add the CPU frequency, but if I put
${freq_g cpu0} Ghz
I get 1.2Ghz. Why is that? My CPU is 2.8Ghz.
|
From the conky man page.
cpu (cpuN)
CPU usage in percents. For SMP machines, the CPU number can
be provided as an argument. ${cpu cpu0} is the total usage, and ${cpu
cpuX} (X >= 1) are individual CPUs.
freq_g (n)
Returns CPU #n's frequency in GHz. CPUs are counted from 1.
If omitted, the parameter defaults to... | How does CPU frequency work in conky? |
1,494,635,506,000 |
So: I just installed Conky, and it looks very nice. But it's annoying to constantly open it on startup manually. So I've search for a way to autostart Conky
I've tried:
Making a .desktop file and put it in /home/<username>/.config/autostart/, but it wouldn't open, even if I added a 30 seconds delay.
[Desktop Entry]
... |
So after looking at Issues in the GitHub repo of Conky, more specifically: https://github.com/brndnmtthws/conky/issues/869
and also looking at the log: May 20 16:47:00 fedora conky[1568]: conky: can't open display
I've added a new config into the services file: Environment="DISPLAY=:0"
And now it worked nicely, even w... | Cannot autostart Conky in Fedora 36 - GNOME 42 |
1,494,635,506,000 |
I want to set the color of a line to a specific shade of yellow (but not just yellow).
I set it like this:
${font LCDMono:bold:size=20}${color yellow}Uptime:$color $uptime
Where all the line has a font size of 20, and only the word "Uptime" will be yellow. The thing is that I don't want it in that kind of yellow, I... |
Conky lets you define your own color:
colorN : Predefine a color for use inside TEXT segments. Substitute N by a digit between 0 and 9, inclusively. When specifying the color value in hex, omit the leading hash (#).
So, add this line before the TEXT part of conkyrc:
color1 FCD862
Then, use $color1 instead of $color... | set color of conky |
1,494,635,506,000 |
I'm using Ubuntu 20.04 and I'm looking for a bash script to start Quodlibet (a music application) and conky simultaneously. Edit: The idea is to use the sh script in a .desktop launcher
Start Quodlibet
Start conky 2 seconds later
Close conky if Quodlibet is closed
I made some tests but I believe the following script... |
Just start Quodlibet in the current shell, not in a sub-process:
#!/bin/bash
trap "exit" INT TERM ERR
trap "kill 0" EXIT
(sleep 2 && conky) &
quodlibet
[update] You mention that you want to run this script from a .desktop file in a graphical environment. @fra-san made me aware that every process run this way are li... | Starting and closing an application based on an other application |
1,494,635,506,000 |
I had a simple conky script for the Deadbeef audio player:
The part that is concerned with the lines above is this:
TEXT
${color 3399FF}${alignr}db audio is playing:
#${alignr}
${color FFFFFF}${alignr} ${exec deadbeef --nowplaying "%a"}
${color FFFFFF} ${alignr}${exec deadbeef --nowplaying "%t"}
${color FFFFFF}${al... |
You can draw a default-sized bar using execbar followed by a command that should return a number from 0 to 100 giving what percentage of the bar is filled. For example, if you have the following shell script myscript in your PATH:
#!/bin/bash
deadbeef --nowplaying "%e %l" |
awk '
{ n = split("::" $1,t,":")
elapsed ... | In conky, how can I show a progress-bar for the track playing in Deadbeef? |
1,494,635,506,000 |
I have started using Conky some days ago, and I'm willing to create my own configuration. I have added some colors, cool ASCII art and learned the basics.
However, I don't like the default progress bars coming with Conky, and I would like to create something like a string of 50 '#' signs or 'rectangles' (219th charact... |
You can do something simple like this, which uses execpi to run a shell script every 30 seconds that parses the output of df / and converts it into a long string of conky color commands and \# characters (since # is used for comments):
${execpi 30 df --output=pcent / | awk 'NR==2 {
n = ($1+0)/2; yellow = 20; red = ... | How can I create my own custom progress bar in Conky? |
1,494,635,506,000 |
I'm trying to use conky's image variable in a way that it read the image file path from a file or a pipe.
Something like ${image ${execp cat /home/r1y4n/.conky/imagepath.txt} -p 30,0 -s 150x150 }
But it seems conky doesn't support nesting variables.
here says image variable can be modified at runtime using $execp
So... |
I would simply use a symlink and change its target as needed. For example, create a link called conkyimage.png which points to ~/myimages/unicorn.png:
ln -s ~/myimages/unicorn.png ~/conkyimage
Then, in conkyrc, have it show that image (note the -n, which tells conky not to cache the image):
${image ~/conkyimage.png -... | Dynamic conky variable argument |
1,494,635,506,000 |
There is a Linux program I like which is Conky, when I run conky -c mycustomconf.txt it runs fine.
I want this program to run automatically when I start my computer, without having to type in the command again to start it.
How can I do this?
I am using Ubuntu with Xfce4.
|
You can add programs that you wish to start up alongside Xfce to your startup items using xfce4-autostart-editor, which is accessible at Settings, and then "Xfce 4 Autostarted Applications".
| Running a program automatically? |
1,494,635,506,000 |
I redid my i3bar recently with conky. This morning when I woke up the there were un-recognized characters symbols in my bar (where there are spaces in my conkyrc file). Nothing has really changed to my knowledge and I am not sure why this happened overnight. My conkyrc:
background no
out_to_x no
out_to_console yes
upd... |
Found the answer: updating the awesome font seemed to fix it.
pacaur -S awesome-terminal-fonts
| Conky i3bar not recognizing spaces |
1,494,635,506,000 |
I'm using this command, which searches pacman.log for packages updated today and converts them into a conky string:
tail -500 /var/log/pacman.log | grep -e "\[$(date +"%Y-%m-%d") [0-5][0-9]:[0-9][0-9]\] \[ALPM\] upgraded" | sed 's/^.*\([0-2][0-9]:[0-5][0-9]\).*upgraded \([^ ]*\).*/${color2}\2${goto 250}${color1}\1/' ... |
You can do (with a shell with support for zsh's {x..y} form of brace expansion like zsh, bash, ksh93 or yash -o braceexpand):
{
printf '%.0s\n' {1..18}
your-command
} | tail -n 18
Note that it prepends newline as opposed to appending them. To append, you could do:
your-command | tail -n 18 | awk '{print};END{whil... | Append new lines to stream, until certain number is reached |
1,494,635,506,000 |
Conky is a system monitor software. I want to display the directory size of /usr and /var. Unfortunately I did not found any conky command so i made my own.
/usr $alignr${exec du -sch /usr | head -n1 | awk '{print $1}'}
/var $alignr${exec du -sch /var | head -n1 | awk '{print $1}'}
It works as expected for my /usr di... |
Yes, you can give your user the right to run sudo du /var with no password, I'll show you how later. However, do you really want this? There are very few files and subdirectories that du needs root access to. The difference is reported size between sudo du /var and du /var is tiny (at least on my system):
$ sudo du -s... | directory size in conky |
1,494,635,506,000 |
Summary:
I recently installed Crunchbang and want to change the color of Conky, which is installed by default and shows system status info on the desktop. However, changing the config settings doesn't seem to make a difference, even when I manually restart conky.
Details:
I found two config files:
/etc/conky/conky.con... |
The default configuration file for conky is ~/.conkyrc. This follows classic *nix convention that wants configuration files to be hidden (dot files) in ~/.
If that file exists, it will be read when you launch conky and the files in /etc will be ignored as you have seen. You can override the default with the -c flag (... | Conky on root desktop doesn't show config file changes |
1,494,635,506,000 |
As I understand, conky_update reloads the whole conky window every time. So, if I have rss fetching there and some scripts running they all rerun every few seconds. Is this right? Can I make the rss fetching part be very infrequent (say, every 10 hours), but other parts with few-seconds updating?
Relevant part from my... |
As the conky documentation notes, there is a rss variable that defaults to a 15 minute interval for checking feeds:
Download and parse RSS feeds. The interval may be a floating point value greater than 0, otherwise defaults to 15 minutes. Action may be one of the following: feed_title, item_title (with num par), item_... | What does Conky update interval update and how to tune it? |
1,494,635,506,000 |
I am using conky 1.10.3 (conky-all) in Ubuntu 16.10 (x86-64), kernel 4.8.0-59-generic, Cinnamon 3.0.7.
How can I create a bar for diskio (actually, one for diskio_read and another for diskio_write)?
Conky has diskio (which gives a number) and diskiograph - no bars.
I tried, but could not find a way, to use something l... |
The main problem when using name="diskio_read" and diskio_write with the given lua bargraph widget is that these two functions return numbers like 2.33KiB rather than simple integers like 12345. The widget only uses the lua function tonumber() to convert returned values, and this fails on these strings.
The other prob... | How can I create a custom conky bar for diskio in Linux? |
1,511,577,491,000 |
I wanted to add mpd informations to my conky and therefore I created a script which role is to get the cover from ID3 tags
This script is called using the {exec 'path'} command
My probleme is that since I added this feature, my conky refuses to stand on his own :
If I launch it from a terminal using
conky -c `path.con... |
The issue wasn't conky closing but it going behind everything, including the wallpaper.
Changing the window settings solved the problem:
own_window yes
own_window_type normal
own_window_transparent no
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorate,sticky,skip_... | {exec} cause Conky to stop |
1,511,577,491,000 |
I've been messing around with Conky for a while now and I recently started dabbling in Lua scripting. One of the things that used to bug me about a "flat" conkyrc approach (as opposed to a combined conkyrc and lua script) was that you had to set the position for everything using trial and error.
Using lua and cairo I ... |
Perhaps not the solution I had in mind, but a solution nonetheless:
the Conky Lua API describes a conky_config function that returns "[a] string containing the path of the current Conky configuration file."
So my solution would be to open this file and edit it in place from within my lua script.
| Editing Conky configuration variables from Lua |
1,511,577,491,000 |
i'd like to display the output of lsb_release -ds in my Conky display. ftr, in my current installation that would output Linux Mint 18.3 Sylvia.
i had thought of assigning the output of that command to a local variable but it seems Conky doesn't do local vars.
maybe assigning the output of that command to a global (sy... |
You should prefer the execi version of exec, with an interval, where you can give the number of seconds before repeating:
${execi 999999 lsb_release -ds}
| how to display lsb_release info in Conky? |
1,511,577,491,000 |
e.g.: my sample conkyrc (the last line is the only important part!):
background yes
use_xft yes
xftfont Terminus:size=8
xftalpha 0.8
update_interval 5.0
total_run_times 0
double_buffer yes
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pag... |
Counting the characters, conky is displaying 257 characters, which looks suspiciously like an arbitrary limit for a single line of TEXT in conky. Add in some hidden quotes internally to conky, and the shell expansion, and you loose the "times" characters. Conky used to limit what it displayed to the first 128 charac... | Conky buffer too small? |
1,511,577,491,000 |
I' m trying to setup conky and I saw that I can use from cpu0 to cpu4
CPU0 ${cpu cpu0}% ${cpubar cpu0}
CPU1 ${cpu cpu1}% ${cpubar cpu1}
CPU2 ${cpu cpu2}% ${cpubar cpu2}
CPU3 ${cpu cpu3}% ${cpubar cpu3}
CPU4 ${cpu cpu4}% ${cpubar cpu4}
Why I have 5 cpu % if I go over cpu4, example:
CPU5 ${cpu cpu5}% ${cpubar cpu5}
It... |
cpu0 is the average load, cpuN (where N >=1) is the load only on the Nth Cpu.
Excerpt from conky objects
CPU usage in percents. For SMP machines, the CPU number can be
provided as an argument. ${cpu cpu0} is the total usage, and ${cpu
cpuX} (X >= 1) are individual CPUs.
| How cpu works in conky |
1,511,577,491,000 |
According to the Archlinux wiki, in the "Prevent flickering" section, the line "double_buffer yes" should be placed "below the other options, not below TEXT or XY".
But when I look at Crunchbang default Conky, there are several options (not TEXT or XY) below "double_buffer yes" (line 45).
So is the positioning of "dou... |
man conky (online here) says:
double_buffer
Use the Xdbe extension? (eliminates flicker) It is
highly recommended to use own window with this one
so double buffer won't be so big.
There is nothing about placing the option below others.
Secondly, the official conky FAQ on sourcef... | Position of "double_buffer yes" in ~/.conkyrc |
1,511,577,491,000 |
I want to build a simple infobar using conky. Take the following example:
dropbox zotero should be aligned to the left.
SSID: Hier Volume... should be aligned to the right.
Currently I am working with {offset 800} to move the second output to the right. However, this is very inflexible when the right output changes. ... |
As Ash said in the comments, the way to do this is $alignr/$alignl. Something like:
TEXT
${exec basename $(ps -efa | grep dropbox |grep -v 'grep ' | awk '{print $NF}')} \
${exec basename $(ps -efa | grep firefox |grep -v 'grep ' | awk '{print $NF}')} \
$alignr ${battery BAT0} SSID: ${wireless_essid wlan0} Vol... | Conky infobar alignment left and right |
1,511,577,491,000 |
Environment
Debian Linux 11.5 "bullseye"
Conky 1.11.6 (compiled 2020-08-17, package 1.11.6-2)
Xorg 1.20.11 (package 2:1.20.11-1+deb11u2)
FVWM version 3 release 1.0.5 (built from git 23854ad7)
Problem
I am trying to reduce the Conky window to show just a single graph (chart, plot) with absolutely no other elements. ... |
The conky object voffset changes the vertical offset position of the object following it by a given positive or negative number of pixels. A construction like the following may do what you need, where a negative value determined by trial-and-error should be substituted for each of y1 and y2:
conky.text = [[${voffset y... | Conky 1.11.6 - Want to eliminate gaps above/below graphs |
1,511,577,491,000 |
Recent system updates have broken Conky manager, well it hasn't been updated on Github 4-5 years, looks abandoned but still maybe anyone knows how to fix it. It happened with the latest updates on Kali and Arch too.
Here's Conky clock code:
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times ... |
Your config file needs to be updated to the latest version using Lua syntax. The wiki in the conky GitHub repository provides detailed configuration information.
| Fix Conky widgets, not loading |
1,511,577,491,000 |
I would like to list the last 3 logins on conky so it would look something like this
username 1/1/2018 12:15 - 12:21 (00:06)
The format can very.
|
You can run a shell script from conky with execi followed by the time to wait between reruns:
${execi 30 last | awk '
/^wtmp begins/{ print s[(i+1)%3]"\n"s[(i+2)%3]"\n"s[i]; exit }
/^reboot /{ next }
NF>0{ i=(i+1)%3; s[i]=$0;}'
The above, for example, runs the last command every 30 seconds, and keeps the last 3 l... | Can I list logins on Conky? |
1,511,577,491,000 |
I have this simple .conkyrc config:
own_window yes
own_window_type conky
own_window_argb_visual yes
own_window_argb_value 255
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_xft yes
xftfont Sans Regular:size=70
update_interval 1
alignment middle_mi... |
Ok I modified your code.try this
own_window yes
own_window_type conky
own_window_argb_visual yes
own_window_argb_value 255
own_window_transparent yes
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_xft yes
xftfont S... | Large space under text above HR in conky |
1,511,577,491,000 |
Here is my conkyrc:
conky.config = {
use_xft = true, -- use xft?
font = 'DejaVuSans:size=9', -- font name
xftalpha = 1,
uppercase = false, -- all text in uppercase?
pad_percents = 0,
text_buffer_size = 2048,
override_utf8_locale = true, -- Force UTF8? note that UTF8 support required XFT
... |
Unfortunately, lua_parse will run on every update cycle, and so a new
empty graph will be created each time. If you only want to create the
network part of the config once at the start, you can take advantage of the
fact that the .conkyrc file is just a lua file, so you can put lua code
in it.
Use this to call a revis... | {up, down}speedgraphs not shown using `lua_parse lua_func` |
1,511,577,491,000 |
I was wondering how I could remove those information I am showing you in the following images:
As I said, the window manager I am using is i3 and it has been installed through Manjaro Architect, so the config file is generated and customized by the operative system. Any hint on how I can remove this?
EDIT:
As sugges... |
According to the config files you just posted, you could try commenting (adding # in front of the line) the line n°290
exec --no-startup-id start_conky_maia
I found relevant information according to your issue on this forum post.
| How to remove i3wm info on Desktop |
1,511,577,491,000 |
I'm trying to load a .png to display a battery icon in conky. So far I've tried nesting the function call, using eval but I can't seem to find a solution.
Here is my non working conky.text:
conky.text = [[
${image ${lua battery_icon $battery_status $battery_icon}}
]]
Where my battery_icon function looks like this:
... |
Rather than returning the path alone, you can return a fully formed conky statement to display the icon. For example, if I have a Lua function that returns an image statement, such as...
function conky_myimg()
local path = "/home/David/System/Icons/StuffedTux.png";
local s = "${image "..path.."}";
return s... | Dynamically loading image based on function output |
1,511,577,491,000 |
Ideally, I could use something like colortail or multitail and have conky configured to pass the color through, if that is possible. If not, then I need a way to do it some other way. Apologies for the cruft. It's a work in progress and theres probably stuff in here that doesn't need to be.
# *************************... |
You can convert any ansi escape sequences into conky colour commands and use execp instead of exec to then have the output parsed.
For example, (not ansi), you can highlight in red the text systemd: with
${execp tail -n 15 /var/log/syslog |
sed 's/systemd:/${color red}&${color gray}/g'
}
| How can I display ANSI color in a CLI conky display? |
1,511,577,491,000 |
I've set conky to be started after logging in by creating the file conky.sh in /usr/local/bin, and adding the entry conky.sh to the Xfce startup applications list. conky.sh contains the following text:
#!/bin/bash
sleep 10
conky
exit
Conky starts as expected, but I now have two conky-related processes permanently r... |
You have two processes because one is the actual call to conky.sh and within conky.sh, you are calling the binary conky. You should be able to tell your startup application to call the conky binary 10 seconds after a system boot instead of telling it to call a script, which then calls the conky binary.
I use Gnome and... | Autostarting Conky Weird Behaviour |
1,511,577,491,000 |
How does a minimal conky config look like to draw a persistent top bar that stretches horizontally across the entire visible screen?
|
#if screen resolution = 1280x1024
alignment bottom_left
#bigger number = thinner bar
gap_y 950
minimum_size 1280
| Conky top bar that stretches across the whole screen |
1,511,577,491,000 |
I recently started using a bash script to setup terminal workspaces for myself, and everything worked fine for the first couple of days. I run the script, and four or five or seven terminals pop up, all in precisely the right places on the screen, all cd'ed into the proper directories, ready for use.
This morning I in... |
Append an & to the end of each gnome-terminal command to make sure each terminal starts in the background. If you haven't killed them sooner, the terminals will exit when conky exits and kills all child processes.
| Script that spawns terminal windows suddenly waiting for each window to close before opening the next one |
1,511,577,491,000 |
I am trying to use this rings script to make nice rings appear on my desktop. It allows for customization, addition of more rings, or so it says. How do I feed the output of my python script to these rings?
|
I'm not sure whether questions this old need to be answered but since it's returned in search results, it may as well have an answer.
The lua script declares functions that accept parameters, E.G.
function draw_ring(cr,t,pt). The solution is to declare a function that receives your python script values.
function myC... | Passing custom variable from conky to lua |
1,511,577,491,000 |
I have the exact same issue as Creating Conky text variables with zero padding? for displaying network speed.
Except that I'm piping conky to dzen2. It seems lua_parse is not working within that setup.
I've tried :
Formatting the string directly : ${lua_parse format %2s ${downspeed re0}}
Using goto : ${downspeed re... |
I realize this is a pretty stale question, but I recently ran into the same problem and this was high on the search results. Since I was able to uncover the answer, I figured I'd post it for the sake of anyone else that runs into this problem.
The lua_load = ... must be in your conky.config table (and not at the top l... | Conky text padding with dzen2 |
1,511,577,491,000 |
I'm setting conky and I'd like to add the usb space, I use:
$font${color DimGray}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${fs_bar /}
for the full hdd, what should I write as path for USB?
|
It should be:
${fs_used /media/Name_You_See} / ${fs_size /media/Name_You_See}
Or, if you use udisks2:
${fs_used /run/media/User/Name_You_See} / ${fs_size /run/media/User/Name_You_See}
Also consider ${if_existing /media/Name_You_See} to check if path exists (which means it's mounted, not accurate but useful)
| Add USB space in conky |
1,511,577,491,000 |
My conky's cpu graph appears to not be functioning properly. It is just a block as per the screenshot that does not respond to actual cpu usage. Kind of annoying. I have also attached my conkyrc. I honestly don't know why this isn't working right. Thanks...
conky.config = {
background = true,
update_interval = 1... |
You have
${cpugraph cpu0 40,220 009696 009696 -0.5 -l}
I'm not sure what a scale of -0.5 and logarithm mode means when together, but it seems to work for me (Conky 1.9.1), i.e. not a solid bar. I would have thought you would get a better idea of what the cpu is doing with a simple linear scale which might work, ie
${... | CPU graph not functioning properly |
1,511,577,491,000 |
I cannot print my GPU usage I have the following regexp:
${execgraph 16,235 $(nvidia-smi --query-gpu=utilization.gpu --format=csv -l 5 | sed -n '2p' | grep -Po "\\d+")}
Which prints the wanted value but for some reason the graph won´t render.
What am I missing?
|
Conky includes an nvidiagraph argument that seems directed to what you're trying to do. See man conky for details. Unfortunately, I'm unable to test it, as I have an AMD GPU.
| Print GPU usage in conky |
1,511,577,491,000 |
Origanaly posted by RodrigoSQL on StackOverflow. I answered this question on StackOverflow but it was deleted
How do I make this border round?
Hello guys, I'm setting up Conky in the manjaro, but I would like to know if it is possible to leave the rounded corners indicated in the image Below enter image description he... |
It does not appear to be possible with Minimalis Conky because conky.conf can't have a border option (all possible config lines).
You can round borders if you use lua, see here for example.
Here is an article on how to get lua working with Conky.
If you don't want to go and find the radius setting your self in the .... | How do I make this border round in conky Manjaro KDE? (Repost from "off topic" StackOverflow post) |
1,511,577,491,000 |
I am changing my vertical conky into a horizontal conky bar going across the top of my screen.
For the Name and CPU %, how do I set a max width column? I need to set a fixed width on Name CPU% so I bring the next column out past it with offset. Right now now it automatically expands to the end of the terminal edge.
c... |
One approach is to use a tab object to position the right-hand heading and use offsets to position the right-hand column top objects.
${offset 15}${color orange}Name${tab 160 15}CPU o/o
${offset 15}${color white}${top name 1}${offset 25}${top cpu 1}
${offset 15}${color yellow}${top name 2}${offset 25}${top cpu 2}
${of... | conky - how to set a hard width limit to |
1,511,577,491,000 |
I am trying to get the distribution name and version number to enter into conky. I am currently using the following
rpm --query centos-release
resulting in
centos-release 7-4.1708.e17.centos.x86_64
How do I pare that down to just centos 7-4.1708.e17?
After trying all the suggestions I ended up entering this into my... |
With sed:
$ rpm --query centos-release | sed 's/^centos-release//;s/\.centos.*//'
7-4.1708.e17
With only shell:
#!/bin/sh
a=$(rpm --query centos-release)
a=${a#centos-release }
a=${a%%\.centos.*}
echo "$a"
| bash command to get distribution and version only |
1,511,577,491,000 |
I am currently attempting to configure my Conky layout. I would like a very thin panel behind the text to go across a portion of my screen (something like 20 pixels high by 400 pixels wide).
Having fiddled with some settings, I can't seem to get the panel behind the text thin enough in the y-direction (things are fine... |
I think the answer is quite simply that conky is taking literally what you provided in the TEXT section, and that is 3 lines of text! Simply remove the blank lines before and after your wanted output commands.
| Create a very thin conky window? |
1,304,322,391,000 |
I'm trying to write a script which will determine actions based on the architecture of the machine. I already use uname -m to gather the architecture line, however I do not know how many ARM architectures there are, nor do I know whether one is armhf, armel, or arm64.
As this is required for this script to determine ... |
On Debian and derivatives,
dpkg --print-architecture
will output the primary architecture of the machine it’s run on. This will be armhf on a machine running 32-bit ARM Debian or Ubuntu (or a derivative), arm64 on a machine running 64-bit ARM.
On RPM-based systems,
rpm --eval '%{_arch}'
will output the current archi... | Easy command line method to determine specific ARM architecture string? |
1,304,322,391,000 |
I have a machine with both glibc i686 and x86_64, and a very annoying problem with glibc.
Is it normal to have two libraries of the same name installed on one computer? How can I know which library is executed?
Until recently, I believed that x86_64 was i686. Well, I must be mistaken but why?
[root@machin ~]# yu... |
Technically, i686 is actually a 32-bit instruction set (part of the x86 family line), while x86_64 is a 64-bit instruction set (also referred to as amd64).
From the sound of it, you have a 64-bit machine that has 32-bit libraries for backwards compatibility. That should be totally fine.
| What is the difference between i686 and x86_64 packages? |
1,304,322,391,000 |
Does anyone know of a command that reports whether a system is Big Endian or Little Endian, or is the best option a technique like this using Perl or a string of commands?
Perl
# little
$ perl -MConfig -e 'print "$Config{byteorder}\n";'
12345678
# big
$ perl -MConfig -e 'print "$Config{byteorder}\n";'
87654321
od | ... |
lscpu
The lscpu command shows (among other things):
Byte Order: Little Endian
Systems this is known to work on
CentOS 6
Ubuntu (12.04, 12.10, 13.04, 13.10, 14.04)
Fedora (17,18,19)
ArchLinux 2012+
Linux Mint Debian (therefore assuming Debian testing as well).
Systems this is known to not work on
Fedora ... | Is there a system command, in Linux, that reports the endianness? |
1,304,322,391,000 |
My goal is to be able to develop for embedded Linux. I have experience on bare-metal embedded systems using ARM.
I have some general questions about developing for different cpu targets. My questions are as below:
If I have an application compiled to run on a 'x86 target, linux OS version x.y.z', can I just run the s... |
No. Binaries must be (re)compiled for the target architecture, and Linux offers nothing like fat binaries out of the box. The reason is because the code is compiled to machine code for a specific architecture, and machine code is very different between most processor families (ARM and x86 for instance are very differe... | Are binaries portable across different CPU architectures? |
1,304,322,391,000 |
I'm familiar with lshw, /proc/cpuinfo, etc. But is there a method for getting at a CPU's CPUID opcode?
|
There's a tool called cpuid that one can use to query for much more detailed information than is typically present in lshw or /proc/cpuinfo. On my Fedora 19 system I was able to install the package with the following command:
$ sudo yum install cpuid
Once installed, cpuid is a treasure trove of details about ones und... | Is there a way to dump a CPU's CPUID information? |
1,304,322,391,000 |
I don't know anything about CPUs. I have a 32-bit version of ubuntu. But I need to install 64-bit applications. I came to know that it is not possible to run 64-bit apps on 32 bit OS. So I decided to upgrade my os. But a friend of mine told me to check CPU specifications before the new upgrade. I run this command as w... |
Intel’s summary of your CPU’s features confirms that it supports 64-bit mode, as indicated by
CPU op-mode(s): 32-bit, 64-bit
in lscpu’s output.
This isn’t an Atom CPU either, so the rest of your system is, in all likelihood, capable of supporting a 64-bit operating system.
You can re-install a 64-bit variant of ... | Can I run 64 bit ubuntu on my pc (>10 years old) |
1,304,322,391,000 |
The output from uname:
root@debian:~ # uname -a
Linux 5asnb 2.6.32-5-amd64 #1 SMP Mon Jun 13 05:49:32 UTC 2011 x86_64 GNU/Linux
However the /sbin/init executable shows up as 32-bit:
root@debian:~ # file /sbin/init
/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared li... |
The 64bit kernel can be installed on Debian 32bit. You can see that the amd64 kernel is available for 32bit Debian on it's package page. This can be used as an alternative to using a PAE enabled kernel to support more than 4G of total RAM. Note that 32bit binaries still can not access more than roughly 3G of RAM per p... | 64-bit kernel, but all 32-bit ELF executable running processes, how is this? |
1,304,322,391,000 |
I am trying to learn operating system concepts. Here is two simple python code:
while True:
pass
and this one:
from time import sleep
while True:
sleep(0.00000001)
Question: Why when running first code CPU usage is 100% but when running the second one it is about 1% to 2% ? I know it may sounds stupid but wh... |
Why when running first code CPU usage is 100% but when running the second one it is about 1% to 2% ?
Because the first is a "busy loop": You are always executing code. The second tells the OS that this particular process wants to pause (sleep), so the OS deschedules the process, and if nothing else is using CPU, the... | What is difference between sleep and NOP in depth? |
1,304,322,391,000 |
I am getting a series of errors similar to this
file /usr/share/doc/glibc/NEWS from install of glibc-2.25-10.fc26.i686 conflicts with file from package glibc-2.25-7.fc26.x86_64
when I try to dnf update, and a Python exception when I dnf install anything. These are a new errors that appeared at the same time, possibly... |
I got past the Python exception by booting from a live USB, and using dnf --installroot=/mnt/fedora; the package conflicts kept coming, including errors when I tried to dnf remove --duplicates or even trying to remove packages one-by-one. So I ended up deciding the system was not fixable, and reinstalling Fedora - alo... | dnf error conflicting packages between i686 and x86_64 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.