date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,304,322,391,000
I'd like to know whether binaries use (are compiled for) special instruction sets like SSE 4.1/4.2, AVX, F16C or not. How can I find out whether a binary in a package uses certain instruction sets? I know that I may enable such instructions using configure switches when compiling packages by hand, but when using preco...
To answer your question generally, https://superuser.com/questions/726395/how-to-check-if-a-binary-requires-sse4-or-avx-on-linux gives a script which can be fed a disassembled binary (the output of objdump) and will try to figure out the minimum required instruction set. This technique is necessarily approximate, sinc...
Debian: what instructions do x86-64 binaries use?
1,304,322,391,000
I was inspecting the preprocessed output of my C program and happened to look at the header file wordsize.h It is located in /usr/include/i386-linux-gnu/bits/wordsize.h the file contains only one macro #define __WORDSIZE 32 My question is, is the wordsize then being decided by the compiler that is installed or doe...
In general wordsize is decided upon target architecture when compiling. Your compiler will normally compile using wordsize for current system. Using gcc (among others) you can also tune this by using various flags. E.g. on a 64-bit host you can compile for 32-bit machine, or force 32-bit words. -m32 # int, long and p...
default wordsize in UNIX/Linux
1,304,322,391,000
So when I run Raspbian (basically a ARM Debian derivative with LXDE), I can install any normal package using aptitude. But if, for example, I wanted to download a .deb file, I would have to choose 32-bit or 64-bit and download that, and try to run it on Raspbian (it wouldn't work). Why does installing packages from t...
TL,DR: if you're only offered a choice of “32-bit” and “64-bit”, neither is right for a Raspberry Pi (or any other ARM-based computer). You need a package for ARM, and the right one to boot, which is armhf. “32-bit” and “64-bit” are only one of the characteristics of a processor architecture. Many processor families c...
32-bit vs 64-bit vs ARM in regards to programs and OSes
1,304,322,391,000
I'm looking for a tool that can create both graphical files as well as text based ASCII representations of my system's CPU & motherboard architectures.
I recently came across this tool called lstopo that's bundled in the package hwloc (at least on Fedora 19, that's where it was located). This tool seems to have everything one would want and more. Here are a couple of samples. The first is a graphical representation that is outputted when you run the tool without any ...
Is there a tool that I can use to create a diagram of my system's architecture?
1,304,322,391,000
man uname -m, --machine print the machine hardware name -i, --hardware-platform print the hardware platform or "unknown" What exactly is meant by hardware platform here and how is it different from the "machine hardware name"? I found some related questions on SE but there seems to be some cont...
A bit more info in info uname: `-i' `--hardware-platform' Print the hardware platform name (sometimes called the hardware implementation). Print `unknown' if the kernel does not make this information easily available, as is the case with Linux kernels. `-m' `--machine' Print the machine hardware ...
Meaning of hardware platform in uname command ouput
1,304,322,391,000
I see the term i386 instead of x86 in many places related to Linux. As of my knowledge, they are not interchangeable. x86 is a family of instruction set architectures where i386 is a specific one of the x86 processors. But why do Linux world uses the term i386 instead of x86 ? References: x86 | Wikipeadia Intel 8038...
i386, or 80386, was the first 32-bit processor. When it was introduced, the word i386 is started to be using in many places, including in OSs and compilers, which made it impossible or very difficult to change later. Even after the introduction of other advanced x86 processors, including the 486 and 586, many manufac...
Why do Linux world use the term i386 instead of x86?
1,304,322,391,000
Building deb packages optimized for arbitrary CPU instructions, how do I put the CPU instructions as a dependency on the deb packages ? The package isn't intended for mass distribution, but I don't want to have people confused with crashes because their CPU is too old for my builds.
I'm not sure the dpkg format, itself, can do what you require. However you can make use of preinstall scripts. In this you can test to see if the CPU is of the right level and abort if it is not good enough. In this way your package won't install. The preinst script is part of the control section of a pkg; you can r...
How do I put hardware dependencies on .deb packages?
1,304,322,391,000
On my computer, uname -m prints x86_64 as output. What is the list of possible values that this command could output? I intend to use this command from a dynamic runtime to check the CPU architecture.
I’m not aware of a definitive list of possible values; however there is a list of values for all Debian architectures, which gives good coverage of the possible values on Linux: aarch64, alpha, arc, arm, i?86, ia64, m68k, mips, mips64, parisc, ppc, ppc64, ppc64le, ppcle, riscv64, s390, s390x, sh, sparc, sparc64, x86_6...
`uname -m` valid values
1,304,322,391,000
I've previously added i386 support in order to install wine32 with: sudo dpkg --add-architecture i386 Now I don't need wine32 anymore and removed it, then wanted to remove the i386 architecture again, but it states: sudo dpkg --remove-architecture i386 dpkg: error: cannot remove architecture 'i386' currently in use b...
On a debian amd64 system, the i386 architecture is an optional extra. No i386 packages are required for the system to function. If you are not using any 32-bit programs, you can safely remove all :i386 packages, and the i386 architecture. Personally, I wouldn't bother removing them unless disk space was extremely t...
Added i386 support for wine, removed it now I can't remove the architecture
1,304,322,391,000
Is there a (relatively) simple way to test if an executable not only exists, but is valid? By valid, I mean that an x86_64 Mach-O (OS X) executable will not run on an ARM Raspberry Pi. However, simply running tool-osx || tool-rpi works on OS X, where the executable runs, but does not fall back to tool-rpi when the x86...
Rather than testing for a valid executable, it's probably best to test what the current architecture is, then select the proper executable based on that. For example: if [ $(uname -m) == 'armv6l' ]; then tool-rpi else tool-osx fi However, if testing the executable is what you really want to do, GNU file can ...
Test if valid executable
1,304,322,391,000
How can using huge page improve performance? I have read that huge pages improve performance by reducing TLB lookups and reducing the size of the page table. Can someone tell me how this helps with performance? Is this like if I have an application that uses 4 pages of virtual memory (4*4kb=16kb) then each page is m...
Serge answered it. The TLB has a fixed number of slots. If a virtual address can be mapped to a physical address with information in the TLB, you avoid an expensive page table walk. But the TLB cannot cache mappings for all pages. Therefore, if you use larger pages, that fixed number of virtual to physical mappings co...
Huge page and performance improvemnt
1,304,322,391,000
The man for cpuset doesn't seem to clearly list how to figure out which numbers map to which processing units. My current machine has two Intel Xeon E5645s, each of which has 6 cores and hyperthreading enabled, so I have 24 total processing units I can refer to with cpusets. My challenges are 1) determine which cpuset...
use cat /proc/cpuinfo there you will get each hyperthread listed like this: processor : 0 physical id : 0 core id : 1 "processor" stands for the "logical processor", what is presented to the operating system as a processor. If you have hyper threading switched on, you will see two "logical processo...
Finding the CPU id numbers to use with cpu sets
1,304,322,391,000
When I do cat /proc/interrupts on my multicore x86_64 desktop PC (kernel 3.16) I see this: 0: 16 0 IO-APIC-edge timer LOC: 529283 401319 Local timer interrupts When I do cat /proc/interrupts on my multicore x86_64 laptop (kernel 3.19) I see this: 0: 1009220 0 IO-APIC-ed...
Under your apparently x86_PC architecture : IRQ 0 is the interrupt line associated to the first timer (Timer0) of the Programmable Interval Timer. It is delivered by the IO-APIC to the boot cpu (cpu0) only. This interrupt is also known as the scheduling-clock interrupt or scheduling-clock tick or simply tick: If the ...
What is the difference between Local timer interrupts and the timer?
1,304,322,391,000
I sometimes develop code on ARM hardware (Cubietruck or Rpi) as their dire slowness helps me to find code bottlenecks more easily than on amd64. However I want Vim to remain responsive so I need to turn a few things off depending on which architecture I'm running on (cursorline in particular is very resource intensive...
What about if you use system() to call uname -m and check your Kernel architecture? if system("uname -m") == "armv7l\n" set foo set bar endif Fix suggested at the comments to add \n at the comparsion string, since uname -m will add a newline after the command is executed.
Can I detect instruction set architecture in vimrc? (ARM vs x86)
1,304,322,391,000
I am trying to find out the cache mapping scheme for all the levels of class of a Linux server, including associativity, however I do not have root access. I would just use dmidecode for this but you need root access. Is there another way of getting the same information without root?
lscpu, in util-linux, describes the cache layout without requiring root: [...] L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 8192K The files in /sys/devices/system/cpu/cpu*/cache/ should contain all the information you’re looking for, including associativity,...
How to get all CPU cache information without root access
1,304,322,391,000
In the Debian download CD/DVD images page they have different ISO's for the different instruction set architectures. How do I know what is the ISA of a CPU before I buy one? I know about using the commands cat /proc/cpuinfo and lscpu but these are only good after getting the CPU and running these commands on a Linux...
If you don't have the cpu, I presume you are buying one or something. If that is the case, then you can find out everything about the prospective cpu you are going to buy by looking up the data by the model number of the cpu you are looking at. You can guess the architecture by the manufacturer, as most manufacturers ...
How to find out what is the Instruction Set Architecture (ISA) of a CPU?
1,304,322,391,000
my platform: SOC = STM32H743 (ARMv7E-M | Cortex-M7) Board = Waveshare CoreH7XXI Linux Kernel = 5.8.10 (stable 2020-09-17) initial defconfig file = stm32_defconfig rootfs = built using busybox | busybox compiled using arm-linux-gnueabihf-gcc I've created rootfs by following this guide. my kernel cannot execute any f...
the problem is that you are compiling it in a normal static elf format. you should compile it as an FDPIC-ELF executable (because you need a position independent executable (FDPIC) due to the lack of MMU). FDPIC ELF is not ET_EXEC type. it is ET_DYN (it means it's shared) type and it is loaded by the Linux dynamic loa...
kernel cannot execute binaries (error -8)
1,304,322,391,000
I want to know the difference between architecture and platform in Linux kernel. When I had downloaded the latest kernel tarball, observed that a directory named with arch, it contains different names of processors & inside to any one processor directory again there is a directory called platform. For example:- /arch/...
The architecture is the processor type. There are only a relatively small number of architectures. All processor types that execute the same user code are classified as the same architecture, even though there may be several different ways to compile the kernel; for example x86 and powerpc are a single architecture bu...
Difference between architecture and platform in linux kernel
1,304,322,391,000
I have a system with an unrecoverable /usr partition. Terrified the drives are going bad, I've got it booted into a LiveCD environment, and I can't remember what the install architecture was, the most I have is it's CentOS 5.5. Because of the Live environment, none of the standard methods work such as uname or checki...
file vmlinuz-2.6.18-194.32.1.el5 will tell you what architecture the kernel was compiled for. If there's a file /boot/config-2.6.18-194.32.1.el5, it will give more information about the kernel compilation options, including the processor architecture. ls /lib* will tell you what architecture the userland supports. For...
Determining Linux architecture from files
1,304,322,391,000
In start_kernel(), one of the first things the kernel does is run setup_arch(). setup_arch() is defined for every supported architecture, so it is passed a pointer to the appropriate command line. How is this pointer initialized, and how and when does the kernel get the architecture of the computer?
A given kernel is built for a single architecture, so it has a single implementation of setup_arch. The generic start_kernel calls that, but it doesn’t pass an initialised pointer to the command line, it passes a pointer to a pointer to the command line, and it’s part of setup_arch’s job to initialise that pointer. Fo...
How does the Linux kernel know the computer architecture?
1,304,322,391,000
I need to set the arch option in debootstrap. So I did some research and read the manual. After reading the manual I see that the section on the options simply says --arch=ARCH Implying that I should know the correct syntax for the architecture I need. I don't. I need 64 bit architecture. I know that "i386" can be u...
The possible values are the codenames of the architectures supported by the target operating system. For Ubuntu, check the architectures for which the C library is built: for 64-bit x86, the appropriate value is amd64. On systems with dpkg, dpkg --print-architecture will show the current architecture (which is the de...
What are the possible options for the --arch option in debootstrap?
1,304,322,391,000
We have physical Linux machine with 16 cpus lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 16 We want to disable 14 cpus on that machine , so its actually like we have linux machine with only 2 cpu In order to achieve this , I did ...
This might or might not depending on the application. If the application simply uses APIs to poll the number of available cores, it might not work because the Linux kernel might return all the cores. However disabling CPU cores in BIOS must work - it depends on your BIOS implementation, so please consult with your mot...
rhel + how to disable CPU's on my machine
1,304,322,391,000
I'm just learning a bit about lower-level languages and I've noticed that gcc you can specify -march and -mtune parameters to optimise the software for particular CPU families. But I've also found people saying that building a program from source won't make it noticeably faster than downloading the binary. Surely bein...
Distribution packages are built with reference to a pre-determined baseline (see Debian’s architecture baselines for example). Thus, in Debian, amd64 packages target generic x86-64 CPUs, with SSE2 but not SSE3 or later; i386 packages target generic i686 CPUs, without MMX or SSE. In general, the compiler defaults are u...
What microarchitecture are packages on apt/yum typically built/tuned for?
1,304,322,391,000
The context is the following: Additionally, the following rule is required in systems supporting the 32-bit syscall table (such as i686 and x86_64). I'm trying to figure out what this means, and how I can check whether my system needs this rule. They reference the chown and chown32 commands/(syscalls, maybe), and co...
I take it you’re following the RHEL 5 Security Technical Implementation Guide. “Does my Linux system support the 32-bit syscall table?” is a very interesting question and, as Gilles mentions, not one which has conclusively been addressed on the site. It’s also a tough question to answer. I’ll start by reducing it to t...
Does my Linux system support the 32-bit syscall table?
1,304,322,391,000
I'm working on setting up a minimal Debian install on a USB stick, and am just trying to wrap my head around debootstrap and differences in architectures. I want to create a system to run on AMD64 (AMD Sempron 145) from i686 (Intel Atom N450). As far as I understand, the atom is a 64 bit processor, so can I just do th...
debootstrap needs to be able to run executables in the target system. If that'll work, then it'll be fine. If not, it'll blow up obviously. I'm pretty sure it should work as long as you're running a 64-bit kernel. You can run a 64-bit kernel with a 32-bit userland (but not vice versa). So, worst case, you may need to ...
debootstrap from Intel Atom (i686) to AMD Sempron (AMD 64)
1,304,322,391,000
Trying to find the most portable way to determine the CPU architecture of a system, be it 32bit x86, 64bit or something else (e.g. ARM). does the arch command exist on all systems? otherwise how do I test this from the shell?
arch is a GNU command. It's just a synonym for uname -m. uname -m is portable in that its presence is guaranteed by POSIX and it exists on historical Unix systems except for extremely early ones. What isn't so portable is the meaning of the output. That does vary between Unix variants. The output does not tell you whe...
does arch exist on all linux/unix systems?
1,304,322,391,000
Recently I downloaded latest kde neon amd64.iso. I don't know how it's corrupt. But can I install amd64 software on i686 architecture ?
You CAN run 64bit (=x86_64 in redhat and relatives, =amd64 in debian relatives) or 32bit (i386-i686) software (code, kernel, OS) on 64bit (AMD64,EM64T) enabled x86 compatible hardware (CPU). Check support with HW vendor. Generally speaking AMD Athlon64 and newer, Intel Xeon Nocona/Pentium Prescott and later are 64bit ...
Can I install kde neon amd64 on i686 architecture?
1,304,322,391,000
Ran the top command to check CPU performances and memory usage on the New RPi3 while running a browser. Since we have a 4× ARM Cortex-A53, 1.2GHz, how should I read the result? $ top Mem: 327132K used, 620864K free, 29124K shrd, 5800K buff, 164492K cached CPU: 80% usr 8% sys 0% nic 2% idle 0% io 0% irq 9...
Depending on the version of top, the CPU usage summary might use 100% to mean one core's worth or to mean the total available CPU. Given your output, it appears that you're using the BusyBox version of top; it uses 100% to mean the total available CPU time, so your CPU is fully busy, spending about 80% of its time on ...
Understanding the top command output on an ARM multicore computer
1,288,603,099,000
sha1sum outputs a hex encoded format of the actual sha. I would like to see a base64 encoded variant. possibly some command that outputs the binary version that I can pipe, like so: echo -n "message" | <some command> | base64 or if it outputs it directly that's fine too.
If you have the command line utility from OpenSSL, it can produce a digest in binary form, and it can even translate to base64 (in a separate invocation). printf %s foo | openssl dgst -binary -sha1 | openssl base64 -A -sha256, -sha512, etc are also supported.
How can I get a base64 encoded shaX on the cli?
1,288,603,099,000
The cryptographic signature of an RPM can be verified with the rpm -K command. This returns a string containing gpg (or pgp) and ending in OK if the signature is in RPM's database and is valid. If the package is not signed but the checksums are valid, you'll still get OK, but no gpg. If the package is signed but the k...
rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE} %{SIGPGP:pgpsig} %{SIGGPG:pgpsig}\n'
How do I tell which GPG key an RPM package was signed with?
1,288,603,099,000
For a class on cryptography, I am trying to drain the entropy pool in Linux (e.g. make /proc/sys/kernel/random/entropy_avail go to 0 and block a command reading from /dev/random) but I can't make it happen. I'm supposed to get reads from /dev/random to block. If I execute these two commands: watch -n 0.5 cat /proc/sys...
There is a surprising amount of development going on around the Linux random device. The slow, blocking /dev/random is gone and replaced by a fast /dev/random that never runs out of data. You'll have to travel back in time, like prior to linux 4.8 (which introduced a much faster crng algorithm) or possibly linux 5.6 (...
How can I force /dev/random to block?
1,288,603,099,000
I’m having fun with OpenSSH, and I know the /etc/ssh directory is for the ssh daemon and the ~/.ssh directory is for a particular user. Both directories contain private and public keys: But what is the difference between those keys? I’m confused because the ones I use as a user is in my home directory, and what are t...
/etc/ssh provides configuration for the system: default configuration for users (/etc/ssh/ssh_config), and configuration for the daemon (/etc/ssh/sshd_config). The various host files in /etc/ssh are used by the daemon: they contain the host keys, which are used to identify the server — in the same way that users are i...
What is the difference between /etc/ssh/ and ~/.ssh?
1,288,603,099,000
Is there any program or script available for decrypt Linux shadow file ?
Passwords on a linux system are not encrypted, they are hashed which is a huge difference. It is not possible to reverse a hash function by definition. For further information see the Hash Wikipedia entry. Which hash function is used, depends on your system configuration. MD5 and blowfish are common examples for used ...
Program for decrypt linux shadow file
1,288,603,099,000
In order to verify a password hash we can use openssl passwd as shown below and explained here openssl passwd $HASHING-ALGORITHM -salt j9T$F31F/jItUvvjOv6IBFNea/ $CLEAR-TEXT-PASSWORD However, this will work only for the following algorithm: md5, crypt, apr1, aixmd5, SHA-256, SHA-512 How to calculate the hashing passwo...
perl's crypt() or python3's crypt.crypt() should just be an interface to your system's crypt() / crypt_r(), so you should be able to do: $ export PASS=password SALT='$y$j9T$F31F/jItUvvjOv6IBFNea/$' $ perl -le 'print crypt($ENV{PASS}, $ENV{SALT})' $y$j9T$F31F/jItUvvjOv6IBFNea/$pCTLzX1nL7rq52IXxWmYiJwii4RJAGDJwZl/LHgM/U...
Verifying a hashed salted password that uses yescrypt algorithm
1,288,603,099,000
How can I make a file digest under Linux with the RIPEMD-160 hash function, from the command line?
You can use openssl for that (and for other hash algorithms): $ openssl list-message-digest-commands md4 md5 mdc2 rmd160 sha sha1 $ openssl rmd160 /usr/bin/openssl RIPEMD160(/usr/bin/openssl)= 788e595dcadb4b75e20c1dbf54a18a23cf233787
RIPEMD-160 file digest
1,288,603,099,000
I am currently in the process of setting up an encrypted homeserver with zfs and geli. However I am not sure what the correct partition type for geli-crypted filesystems are. Do I just take 'freebsd-zfs' like I would do for a noncrypted zfs partition? Do I go with the more generic 'freebsd'? All I want to know in the ...
In case of doubt, use 0xDA (“raw / nōn-filesystem data”). That will always work, and be ignored by virtuall all OSes, so geli can just use the corresponding block device.
What is the correct partition type for a geli-crypted partition on FreeBSD?
1,288,603,099,000
Is it possible to use kernel cryptographic functions in the userspace? Let's say, I don't have md5sum binary installed on my system, but my kernel has md5sum support. Can I use the kernel function from userspace? How would I do it? Another scenario would be, if I don't trust the md5sum binary on my system (my system c...
According to this article titled: A netlink-based user-space crypto API it would appear that what you're proposing is possible. I'm not sure how to answer your question any further than this article though.
Using kernel cryptographic functions
1,288,603,099,000
I need to send a private key file to someone (a trusted sysadmin) securely. I suggested a couple options, but he replied as follows: Hi, I don't have neither LastPass nor GnuPGP but I'm using ssl certificates - this message is signed with such so you will be able to send a message to me and encrypt it with my pub...
You can do openssl smime -encrypt -text -in <file> smime.p7s where <file> is the file you want to encrypt. If the file smime.p7s is in DER format instead of PEM, you will have to convert it with : openssl pkcs7 -inform DER -outform PEM -in smime.p7s -out smime.pem You obtain a file you can send to your sysadmin. If ...
How to encyrpt a message using someone's SSL smime.p7s file
1,288,603,099,000
In the Linux kernel configuration, I see these options: config CRYPTO_PCRYPT tristate "Parallel crypto engine" depends on SMP select PADATA select CRYPTO_MANAGER select CRYPTO_AEAD help This converts an arbitrary crypto algorithm into a parallel algor...
In synchronous execution, you wait for the task to finish before moving on to another task. In asynchronous execution, you can move on to another task before the previous one finishes. These terms are not specifically related to cryptography. In general, text-book descriptions of crypto algorithms are neither synchr...
Asynchronous and parallel algorithms in the Linux kernel
1,288,603,099,000
I am writing a simple bash script to download stream from Twitter: curl -H "Authorization: ${TOKEN}" "$URL" and I am looking for a way to generate the $TOKEN. I have all the input necessary (CONSUMER_KEY, ...), but where can I get the program oauth_sign that will generate the token from the input data? TOKEN=$(oauth_...
I just downloaded the link @goldilocks provided, http://acme.com/software/oauth_sign/, and confirmed that it compiles. Looks very straightfoward. compile $ make gcc -c -Wall -O liboauthsign.c liboauthsign.c: In function ‘oauth_sign’: liboauthsign.c:123:5: warning: implicit declaration of function ‘getpid’ liboauthsign...
generate Token for OAuth (Twitter)
1,288,603,099,000
I know that GnuPG is all about security, thus it's not giving many chance of retrieve private keys (otherwise anyone could do it) but I've got a private key, and my own rev.asc file. I had to reinstall my Ubuntu box (former Ubuntu Studio) and I have backup of /home and /etc. Is it possible to recover my GnuPG key inst...
By default, GPG stores everything under the .gnupg directory in your home directory. (Your encrypted private key should be in ~/.gnupg/secring.gpg). Restoring the entire ~/.gnupg directory from your backup will do the trick.
How to restore GnuPG key after reinstall?
1,288,603,099,000
I am looking for a simple way (perhaps using openssl) to generate SCRAM-SHA-1 hash of a password for use for Prosody Jabber Server. The passwords on the server are stored in the following form: ["iteration_count"] = 4096; ["stored_key"] = "f76e63cb5bb7f78e99b07196646c39a0f9422ef7"; ["salt"] = "5317fe92-be09-4e0c-8501-...
Correct me if I'm wrong, cryptography isn't my strong suite 8-) but this library looks to give you what you want. It's in Python: http://pythonhosted.org/passlib/lib/passlib.hash.scram.html You can use it like so: >>> hash = scram.encrypt("password", rounds=1000, algs="sha-1,sha-256,md5") >>> hash '$scram$1000$RsgZo7T...
generate SCRAM-SHA-1 hash of a password
1,288,603,099,000
scrypt is a password-based key derivation function that can be tuned to use a large amount of memory. I want a command-line interface to calculate the key given my own values for parameters: password, salt, n, r, p, length (these are like the parameters password, salt, cost in bcrypt). Preferably, I can use something ...
This implementation of scrypt appears to cover your requirement, see https://github.com/jkalbhenn/scrypt scrypt-kdf [options ...] password [salt N r p size salt-size] string string integer integer integer integer integer] options -b|--base91-input password and salt arguments are base91 enco...
scrypt key calculator
1,288,603,099,000
When encrypting a file with symmetric key, most common utilities (such as gpg, mcrypt, etc) store information in the encrypted message which can be used to verify integrity of the key during decryption. E.g., if the wrong key is entered during decryption, gpg will retort with: gpg: decryption failed: bad key Supp...
As an alternative to my other answer, I'd like to offer something else. Something beautiful ... dm-crypt. Plain dm-crypt (without LUKS) doesn't store anything about the key; on the contrary, cryptsetup is perfectly happy to open a plain device with any password and start using it. Allow me to illustrate: [root:tmp]# f...
File encryption utility without key integrity check (symmetric key)
1,288,603,099,000
I installed a kernel source from the official Linux kernel repository (http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.15.tar.bz2) and I recompiled it with some needed options to support the mobility IPv6. When I needed a module to encrypt some data I didn't find it among the rest of the modules already built. The...
The first step is to determine what configuration options you need to set in order for the module to build. I use make menuconfig for that; / followed by the configuration option you want will tell you where to find it and what its dependencies are. For ECHAINIV, you need to enable CRYPTO and then enable ECHAINIV (as...
How to build a specific kernel module?
1,288,603,099,000
How do I add a key to a keyring in /proc/keys ? My openembedded Linux does not come with a keyctl command program. And all I can find on google is the programming interface, but I would like to do it from console input.
I don't know what you mean by "console input" but I guess you want to add and remove keys from shell scripts or the command line or such. The interface to the kernel keyring is a set of system calls such as add_key(2). You cannot access system calls directly from the command line. keyctl is the command line interface ...
add key to proc/keys
1,288,603,099,000
Is there a program that displays my SSH RSA key fingerprint 43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8 as PGP words? Added on 16th October 2012: I decided to write my own code. I found pgp words from Wikipedia. However, I find some word capitalized while others not. Is this a typo, or are they to be used as i...
20131029: I now have this on github. My solution. Still working on it. Any tips would be helpful. I plan to put this out on git once I am done with all due acknowledgements. I tried to make this behave as cat - work from both command line and stdin. ssh-keygen -lf ~/.ssh/known_hosts | pgpWords.py pgpWords.py 1:2:3 pgp...
PGP words of an RSA fingerprint
1,288,603,099,000
I need to encrypt some data using aes-256-ecb since a backend code expects it as a configuration. I'm able to encrypt using a key which is derived from a passphrase using: openssl enc -p -aes-256-ecb -nosalt -pbkdf2 -base64 -in data-plain.txt -out data-encrypted.txt | sed 's/key=//g' This encrypts using derived key a...
You have to specify the key in hex using -K. Note that you also need to specify the IV with -iv for some ciphers and modes of operation. You will also need to add -nopad for ECB decryption if you are decrypting a raw AES block (i.e. no padding is used). Be aware that ECB is highly insecure if used to encrypt more than...
openssl encrypt by specifying AES 256 key instead of passphrase
1,288,603,099,000
I have CentOS 7 and Apache and the Haproxy load balancer with SSL support. How to make the server compliant to FIPS 140-2? From CHAPTER 10. FEDERAL STANDARDS AND REGULATIONS | redhat.com I got the following instructions: /etc/sysconfig/prelink PRELINKING=no # yum install dracut-fips # dracut -f fips=1 $ df /boot F...
In addition to SSL/TLS, OpenSSL provides general purpose crypto libraries. In context, FIPS-mode merely removes access to all of the algorithms that have not been approved by NIST. If in FIPS mode, the following command should fail. openssl md5 filename On RedHat system at least, one can also find the status of FIPS ...
FIPS 140-2 compliance for Apache and Haproxy on CentOS 7 [closed]
1,288,603,099,000
I would like to have an encrypted DNS queries + a DNS Cache + Domain Name System Security Extensions (DNSSEC) . I used this bash script to install DNSCrypt and I choosed to use dnscrypt.eu servers : DNSCrypt.eu (no logs) Holland Server address: 176.56.237.171:443 Provider name 2.dnscrypt-cert.dnscrypt.eu Public key 6...
Thanks @Jiri Xichtkniha and @Anthon When typing sudo lsof -nPi | grep \:53 I can see that bind is also listening on the same port : TCP *:53 (LISTEN) I made then a modification on /etc/unbound/unbound.conf by adding this line : port:533 ps : The port number, default 53, on which the server responds to queri...
DNSCrypt, Unbound and DNSSEC
1,288,603,099,000
$ ssh 192.168.29.126 The authenticity of host '192.168.29.126 (192.168.29.126)' can't be established. ECDSA key fingerprint is SHA256:1RG/OFcYAVv57kcP784oaoeHcwjvHDAgtTFBckveoHE. Are you sure you want to continue connecting (yes/no/[fingerprint])? What is the "fingerprint" it is asking for?
The question asks whether you trust and want to continue connecting to the host that SSH does not recognise. It gives you several ways of answering: yes, you trust the host and want to continue connecting to it. no, you do not trust the host, and you do not want to continue connecting to it. [fingerprint] means that...
What is the fingerprint ssh is asking for?
1,288,603,099,000
I try to prepare an nvme for encryption, so i first follow this post on SO. But the speed of dd is really really slow (less than 100 mb/s). I see there is new option to speed up dm-crypt on kernel 5.9 (see this post), but before updating my kernel, i want to know if using nvme-cli format zero tools is equivalent to /d...
Found the answer, this is much much better with oflag=direct, jumping from 45 Mb/s to 536 Mb/s :) dd if=/dev/zero of=/dev/mapper/ecrypt oflag=direct bs=1M status=progress Thanks to these two posts : NVMe performance hit when using LUKS encryption https://stackoverflow.com/questions/33485108/why-is-dd-with-the-direct...
Slow /dev/zero format using dd with nvme to prepare crypto, is there nvme specific tool?
1,288,603,099,000
man 3 crypt clearly states that it uses DES. I thought DES was deprecated, but I see no notice that crypt would be deprecated. Why does it not use AES instead, and is crypt(3) deprecated? Is it simply a case of "DES is secure enough for the purpose of this library", and that programs should use other libraries for en...
crypt is easily breakable (it was in fact written by Robert Morris, a famous contributor to the early Unix, as a workbench for codebreaking activities) and should not be used for anything important. From the crypt manpage: The DES algorithm itself has a few quirks which make the use of the crypt() interface a very po...
Why does crypt(3) use DES? [closed]
1,288,603,099,000
I recently learned that Linux supports Adiantum as a disk encryption cipher (run cryptsetup benchmark -c xchacha20,aes-adiantum-plain64 to try it out on your system). While Adiantum is primarily meant to provide faster disk encryption for low-end devices that do not support hardware AES acceleration, it is also a wide...
The designers of Adiantum also tackled this question and came up with HCTR2. It is similar to Adiantum but uses AES-XCTR as encryption and POLYVAL as accelerated hash function. Available in Linux kernel version 6.
Fast wideblock AES disk encryption in Linux?
1,352,615,133,000
I know I can change some fundamental settings of the Linux console, things like fonts, for instance, with dpkg-reconfigure console-setup. But I'd like to change things like blinkrate, color, and shape (I want my cursor to be a block, at all times). I've seen people accomplishing this. I just never had a chance to ask ...
GitHub Gist: How to change cursor shape, color, and blinkrate of Linux Console I define the following cursor formatting settings in my .bashrc file (or /etc/bashrc): ############## # pretty prompt and font colors ############## # alter the default colors to make them a bit prettier echo -en "\e]P0000000" #black echo ...
How to change cursor shape, color, and blinkrate of Linux Console?
1,352,615,133,000
Is xeyes purely for fun? What is the point of having it installed by default in many linux distrubutions (in X)?
xeyes is not for fun, at least not only. The purpose of this program is to let you follow the mouse pointer which is sometimes hard to see. It is very useful on multi-headed computers, where monitors are separated by some distance, and if someone (say teacher at school) wants to present something on the screen, the ot...
What is the purpose of xeyes?
1,352,615,133,000
So I have a 4k display, and for some reason Ubuntu decides that it's a good idea to give me a huge cursor instead of something normal. I don't have any DPI settings on the 4k monitor, and I don't want any, so why is the cursor so huge? This is how it looks like: This is on Ubuntu 15.04 with XFCE4 with Nvidia drivers....
I ended up solving it myself (kind of). It's not the ultimate way, but it's a workaround that I can live with myself. Essentially, I took the original sources of the DMZ-Cursors package and created a fork of DMZ-Black, then I removed the 32x32 and 42x42 images, and am now using that as my cursor set. For convenience s...
Cursor is huge on Ubuntu due to high resolution monitor
1,352,615,133,000
I was wondering if there is a feature in linux like OSX "shake to locate cursor", which temporarily makes the user's mouse or trackpad cursor much larger when shaken back and forth, making it easier to locate if the user loses track of it.
In Linux Mint (18.1) you can go to Preferences > Mouse and, under Locate Pointer you can check a box that will tell the system to "Show position of pointer when the Control key is pressed". I'm not sure if something similar is available on other distros. Not quite what you asked for. Possibly useful?
"Shake to locate cursor" feature
1,352,615,133,000
Blinking is a common practice since the early time of computing, especially for cursors. However, when I run strace to check their system calls, both a terminal emulator konsole and a shell bash, don't register any kind of timer (through timer_settime()), or interval timer (through setitimer()). Meanwhile, these progr...
I've strace'd gnome-terminal-server, which is the actual process of GNOME Terminal. When otherwise idle, just blinking the cursor, it resides in a poll(..., 598) or similar kernel call, i.e. a poll() with a slightly shorter than 0.6 second timeout. (GNOME's default for the full blink cycle is 1.2 seconds, therefore 0....
How is cursor blinking implemented in GUI terminal emulators?
1,352,615,133,000
When running top -n1 | head the terminal's cursor disappears. Running top -n1 brings it back. Tested in gnome-terminal and tilix in Ubuntu 16.04 and CentOS 7.5. Running top -n1 | tail doesn't have this issue, so I think, something at the end of top output let the cursor reappear which is not executed when printing t...
I wasn't able to recreate this behavior everywhere, but it does show up on Ubuntu 18.04 It is instructive to examine hex dumps of the top output: $ top -n1 | head -n1 | xxd 00000000: 1b5b 3f31 681b 3d1b 5b3f 3235 6c1b 5b48 .[?1h.=.[?25l.[H 00000010: 1b5b 324a 1b28 421b 5b6d 746f 7020 2d20 .[2J.(B.[mtop - 00000020:...
Cursor disappears when running `top -n1 | head`
1,352,615,133,000
The default X11 cursors are quite tiny when the display is a 4k screen. How can I use bigger cursors? Requirements: Must work under plain X11 (no KDE, Gnome or similar bloat) Should have at least a bigger root window cursor, i.e "arrow" Should work on FreeBSD I have looked at the Xcursor(3) manual page which talks a...
First off you don't need to remove, or prevent updates to, the old cursor.pcf file. Next if your system already has the cursor.pfa properly installed in any existing fonts directory that your system is already using (i.e. it has a valid fonts.dir file and is already in the server font path), then you don't need to ins...
Bigger X11 Cursors suitable for 4k screens
1,352,615,133,000
I am of course referring to the 'screenmate' cat, Neko - looks like this: A few years ago, I remember Neko could follow my mouse cursor around, and was a helpful distraction from during long hours of work. I am reminded of this after finding this extension for XPenguins: And in my short quest, I have found: http://u...
Oneko. Ubuntu, Fedora. Hasn't been updated since the last millennium so it's got to be the one you remember (also the image matches).
Have you seen this cat?
1,352,615,133,000
I recently installed Antergos with Xfce. However, the default cursor is massive when it's over a window that isn't the OS itself. So, if I'm within the file manager everything looks normal. With Chrome/VSCode/Terminator the cursor is drastically bigger. Within my appearance settings it is set to 16 which is the lowes...
It seems like you have different cursor configurations for your Desktop Environment (Xfce) and your X server (in this setup: your desktop). As Xfce relies on GTK, it'll store it's settings to the GTK settings. There are some other apps that don't read this and need to be configured. You can create a ~/.Xresources file...
Large cursor XFCE
1,352,615,133,000
When I try to search for this problem I get many results, but most of them seem to be about mouse cursor themes, and I haven't played with that, and can't see how that could explain the symptoms I see. When the mouse cursor is over a window from thunderbird, firefox or a (group) chat from pidgin, the mouse cursor is 2...
I just discovered that the problem is actually not window-related, but widget(?)-related, the huge cursor doesn't occur when it's over pidgin chat windows (as I wrote), but only when it's over one of the text fields (which takes up most of those windows, which probably explains why I didn't realise that before), eithe...
Huge mouse cursor in some windows
1,352,615,133,000
So I'm writing a terminal emulation (I know, I should just compile putty, etc.) and am at the stage of plodding through vttest to make sure it's right. I'm basing it on the VT102 for now but will add later terminal features such as color when the basics are working right. The command set is mostly ANSI. DEC had their ...
I got in touch with Thomas Dickey (invisible-island.net) who maintains xterm and vttest - he explained that CSI 0 C is the same as CSI 1 C or CSI C in xterm. For anyone looking for more information on terminal programming I highly recommend checking out the xterm source he hosts - specifically the ctlseqs.txt inside x...
DEC ANSI command sequence questions; cursor movement
1,352,615,133,000
Consider the file tmp.txt whose contents are: x abcd I want to open it in VIM and move cursor to the c character. So I run VIM with the arguments: $ vim -c "/c" tmp.txt But it sets the cursor on a. It looks like VIM was able to find c but placed the cursor at the line begin. Why does it work different if I execute /...
You can position the cursor on the first match using the -s (script) option. According to the vim manual: -s {scriptin} The script file {scriptin} is read. The characters in the file are interpreted as if you had typed them. The same can be done with the command ":source! {scriptin}". If the end of the file is...
How to open a file in VIM and move cursor to the search result
1,352,615,133,000
My screen is cracked, and the touchscreen makes the courser spasm every once and a while. Is there any way i can fully disable it? As requested: Module Size Used by ctr 13023 2 ccm 17587 2 rfcomm 57995 0 bnep 17432 2 blue...
It looks like hid_multitouch might be your driver. Before blacklisting, try the following: modprobe -r hid_multitouch If this works then add it to the blacklist
How to disable my touch screen
1,352,615,133,000
in school we have been assigned a homework in which we are suppose to print an ascii art into a terminal window. A input is data in format [x_coordinate, y_coordinate, char_ascii_value] (there is no data for coordinates where shouldn't be print any character). I don't have any trouble actually doing it but I guess I a...
As mikeserv explains, POSIX doesn't specify tput cup. POSIX does specify tput but only minimally. That said, tput cup is widely supported! The standardised way of positioning the cursor is using ANSI escape sequences. To position the cursor you'd use something like printf "\33[%d;%dH%s" "$Y" "$X" "$CHAR" which will p...
Posix command that moves cursor to specific position in terminal window
1,352,615,133,000
Can you configure the cursor in Eclipse to be a (possibly non-blinking) block, instead of a (blinking) bar? I am running Xfce 4.10.
Short answer: no Long: From comments, OP clarified that the question was about Eclipse. The clue that the question was about the application's cursor (displayed as a part of the graphics within the window) rather than the desktop cursor was the comment about the blinking bar. Desktop cursor themes do not blink, and ...
Block cursor for Eclipse
1,352,615,133,000
Xcursor is a format for the graphics of the cursor in X11 (file reports X11 cursor). xcursorgen allows you to convert PNG files and some metadata to Xcursor files. How do I convert an Xcursor file to PNG images? Imagemagick's convert unfortunately returns: no decode delegate for this image format
Use xcur2png. Xcur2png takes PNG images from Xcursor-file, and generate config-file which is reusable by xcursorgen. To put it simply, it is converter from X cursor to PNG image. Basic usage xcur2png cursorfile Converting all cursor files of a theme find . ! -name '*.*' -type f -exec xcur2png {} \; Availabilit...
Convert Xcursor to PNG
1,352,615,133,000
I've changed my .Xdefaults for a black background, white foreground, but my cursor is now opaque. I can't see the letter I'm over, and worse I can't see my screen hardstatus. Google is just pulling up how to make the whole term transparent. How can I make my cursor transparent again? $ cat .Xdefaults URxvt*transparent...
With that colour scheme, you could define a cursor colour that provided sufficient contrast, so that it would be readily visible in the window and also transparent enough to highlight the letter it is over. Try: URxvt.cursorColor: #666 One other thing you might want to change: comments in this file are a ! not a # - ...
urxvt transparent cursor
1,352,615,133,000
Saving and restoring the cursor position should be possible with simple ANSI escape sequences ANSI escape sequences allow you to move the cursor around the screen at will. This is more useful for full screen user interfaces generated by shell scripts, but can also be used in prompts. The movement escape sequences are...
Am I missing something, i.e. can you reproduce this?! I can, if I'm at the bottom of the terminal and the next line makes the content move up. But repeat the test in a terminal that doesn't scroll in the meantime. Hit Ctrl+L (or invoke clear) and start from the top. Then it behaves as you wish. Is this the intended...
Restore cursor position after having saved it
1,352,615,133,000
Below is a screenshot from Chromium browser, running in Razor-Qt desktop, In other DEs, the cursor is just normal, but here you can see it becomes a big X, anyone know how to fix that? The cursor theme is not broken, as it works for KDE4 and XFCE4 P.S That happens to all GTK apps, Qt app works fine
That is the default cursor. You can run: xsetroot -cursor_name left_ptr to set the pointer to the left arrow. Typically, this goes in your .xinitrc file.
Mouse cursor became a big X
1,352,615,133,000
I need to use some Alt and Shift cursor combinations in emacs and the KDE Konsole is interfering with them. It switches the tabs instead. How can I disable that behaviour? It is hard to tell whether it is something to configure in the necessary terminal itself or it is something controlled at the level of the GUI.
This can partly be done in the Settings->Configure Shortcuts menu in Konsole. As can be seen from the image the Shift Right key was for navigating to the next tab, and it has been disabled. The Alt key may require different dialogs and there is a related question - How can I remap the shortcut keys for scroll down/u...
How can KDE Konsole be prevented from trapping the Ctrl/Alt/Shift + Cursor keys?
1,352,615,133,000
I have switched to Emacs as my editor and when using multiple windows in the terminal I want the cursor to flash in the current window. I have run the (blink-cursor-mode t) command and nothing happens. I have also tried a few commands to get the cursor to flash in the terminal and nothing happens.
It's a konsole setting: Settings → Edit Current Profile… → Advanced, checkbox "Blinking cursor". I had to exit and restart konsole before it took effect here.
How can I get a blinking cursor in KDE Konsole?
1,352,615,133,000
The pointer moves too fast (demonstration video) when I use the tablet in relative mode after I run xsetwacom set "Wacom Bamboo stylus" Mode Relative However, xsetwacom --list parameters does not show an obvious setting to change this. My mouse is set to accelerate rather a lot: xset m 4 1. Running xset m 0 0 makes ...
The solution is to scale the Area parameter. To get the current value: $ xsetwacom get "Wacom Bamboo stylus" Area 0 0 14760 9225 The value might depend on my setup (two screens, 3840x1200 resolution) or on my tablet (Bamboo MTE-450) so it might be different in your case. Multiply the values by the factor by which you...
How to make a Wacom tablet stylus slower (less sensitive)
1,352,615,133,000
When I move my mouse slowly over the desktop the pointer jumps often a few pixels (one or two) in the opposite direction of which I move my mouse. Horribly when trying to set the cursor around some semicolons in eclipse. I guess this is the result of a wrong set resolution. I suppose this is because the mouse was set ...
Okay well that took a while. But I got a solution. Meanhile I even bought a new mouse. When you have a mouse with a high dpi you can use its standard dpi with minimum acceleration (which is anyway going to be to fast) follow these steps: Get xinput $ sudo apt-get install xinput List your input devices xinput --list Y...
Weird mouse behaviour. Mouse too fast
1,352,615,133,000
I want to change the shape of the cursor in my various (emulated) terminals. The shape that I want is ⼕ (sorry if it doesn't render). It's a three sided box that opens to the right. This way I could see where insertions are, and also see which character the cursor is "on". I found that character in Unicode at U+2F15. ...
The shapes for cursors that are available in virtual terminals and real terminals are limited. Generally, they only enable setting shapes that match old display hardware, which usually only permitted specifying a blink cycle and a starting and an ending scanline for when the cursor was gated on, sometimes only a very ...
How can I make a custom terminal cursor shape?
1,593,554,170,000
I have a custom PC build (AMD Ryzen 3800x, ASUS TUF GAMING X570-PLUS mobo, Nvidia 1660 TI, 16GB ddr4 3200mhz RAM) running Linux Mint 20 (recently released), kernel 5.4.0-39-generic. While it works normally, the 1st TTY just has the LM splash screen spinning (like when it's booting) and the TTYs 1 to 6 are black screen...
After some messing around, I've found the fix for this situation. Removing splash from the kernel params lets me access the TTYs just like normal. I noticed TTY1 had the splash screen constantly there so first removing quiet splash with success, and then just splash (which also worked) showed me that splash was indeed...
Linux Mint 20 TTY 1-6 blinking cursor, GUI at tty7 works normally
1,593,554,170,000
I know that X server can be started with --nocursor flag which hides mouse pointer, however I can't seem to find the same option for Wayland. I am running an electron app under (X)Wayland and mouse cursor is visible (can't hide it with css without moving the mouse - chromium bug). I have to add that the device is a ta...
The only way I found to solve this is to replace Adwaita icons. First I generated X11 cursor file with xcursorgen from transparent png file and then replaced all X11 files in /usr/share/icons/Adwaita/cursors/....
Hiding cursor in Wayland
1,593,554,170,000
I have Geany installed via apt-get on debian 8. I want to set the caret shape to be a block, but i can't find any filetypes.common in my .config/geany/filedefs. How can i do this?
The file ~/.config/geany/filedefs only exists if you have created it, either manually or by using the menu Tools / Configuration Files / filetypes.common to save your configuration. Debian's package for geany-common has the default settings for this file in /usr/share/geany/filetypes.common
Geany text editor caret block
1,593,554,170,000
I am using Fedora 20, and whenever a new line opens in the command line terminal, the cursor, which is a solid black rectangle, flashes on and off about ten times, then remains steady. I think I have read somewhere that I can do something useful during the flashing period, but I have forgotten what it was, or where to...
I can't find anything about "something useful" you can do during that time (though some random undocumented feature would not surprise me). However, it seems that this behavior is to "save energy" (by not having to wake up the GPU and redraw the screen for each blink). See the related question, and the (rejected) GNOM...
Why does terminal cursor flash briefly?
1,593,554,170,000
xdotools gives the ability to insert text at the current text insertion point, but it doesn't seem(?) to have an option which gets the actual screen x,y co-ordinates... Is there any such program? ... the reason is: I want the mouse to jump to the current text insertion point.. ie to the text-cursor..
I'm pretty sure there's no way to do this in full generality, because text cursors are an application feature, not a server feature like mouse cursors. The application decides where to place input based on its internal data structures, and the text cursor is a way to tell the user what it's going to do with the input....
Is there a program which gives the X screen co-ords of the Text-cursor (insertion point)?
1,593,554,170,000
After I've installed proprietary FGLRX driver (version 1:14.9+ga14.201-2) from Debian 8 Jessie repositories, my cursor became invisible. All mouse actions are working correctly, just can't see the cursor. I've got Lenovo E420 laptop with Intel/AMD hybrid graphics, discrete card is Radeon HD6630M. After install, I've c...
Installing fglrx-driver (1:15.7-3) from Debian 9 Stretch repository solves the problem.
Invisible cursor after FGLRX install (Debian Jessie)
1,593,554,170,000
I'm working on code for a serial terminal and I'm implementing the ANSI escape codes for moving around the cursor, clearing the screen, etc, and I am curious how to know which to use since there doesn't seem to be a clear stopping point for the codes. I'm using https://www2.ccs.neu.edu/research/gpc/VonaUtils/vona/term...
For "ANSI" (actually ECMA-48), the characters which begin the control sequence, determine the set of final characters. It's documented near the beginning of ECMA-48 (section 5.4 is particularly pertinent, though you may need an ASCII chart to understand its terminology). The parameter 75 in a control sequence would b...
How to know the end of an ANSI control code?
1,593,554,170,000
Often I want to skim through a document or piece of code, which I do with page down (Ctrl-D) and page up (Ctrl-U), but it feels like I am violating the spirit of Vim using emacs-like chords/control keys. Is there a non-control key method of skimming through a document?
Ctrl-D, Ctrl-U, Ctrl-F, Ctrl-B are pretty standard for this, but there are a few other ways I've found useful: Ctrl-E and Ctrl-Y scroll one line down and one line up, respectively, without moving the cursor (unless it would be moved off the screen, of course). These are handy because they accept counts, i.e., 5Ctrl-E...
Moving by page without chords in Vim
1,593,554,170,000
I have a kiosk system with an X server running, hosting different graphical programs. All programs are mutually exclusive as their systemd units conflict. On some of those programs I want to use a native X11 cursor, such as tcross. I can set it in the respective application's systemd unit via xsetroot. Is it also poss...
If your X11 server has the XFIXES extension (seen in xdpyinfo), you can write a small C program to call XFixesHideCursor() on the root window to hide all cursors until the program ends. You will probably need to install some X11 development packages (like libXfixes-devel, but it depends on your distribution) to have t...
Programmatically toggle cursor visibility on X server
1,593,554,170,000
I've installed the big-cursor package in Ubuntu 20.04.3 LTS, but it doesn't show up on the update-alternatives list, and I can't find any instructions on how to use it. I use the dwm window manager and the command line (i.e., no Gnome, etc.). How do I use the cursor theme?
Cursor themes are configured via environment variables (or X resource settings of the Xcursor library).
How to use big-cursor in Ubuntu?
1,593,554,170,000
In the Linux source code, specifically in linux/drivers/video/console/vgacon.c, there is a switch case block for cursor shapes. Each of these shapes are rectangles of the same width and varying heights. Clearly, Linux handles the height of the cursor, but does it handle the width? Does Linux choose the width, or does ...
In vgacon, the hardware chooses the width, and it’s always the full width of a character cell — that’s all that VGA supports. mdacon is similar, for the same reason. Other console implementations with cursor size handling can be found by looking for CUR_UNDERLINE. Some of them, such as fbcon, could theoretically suppo...
What handles virtual console cursor specifics?
1,593,554,170,000
I'm using KDE Plasma, and I would like to disable cursor blinking in Qt5 applications (KWrite for example, but not only) thanks to the .so file in this git repo*, as there is no checkbox "disable cursor blinking" in the config panel :( I've added an export LD_PRELOAD=/full/path/to/qt5noblink.so in my .bashrc file, but...
.bashrc is only read when you run an interactive shell. It's the wrong place to set environment variables: as you've discovered they are only set in applications started through an interactive shell. To set an environment variable for your whole session, on most systems, you can set it in ~/.profile. Since you're usin...
Graphically start applications with a custom LD_PRELOAD?
1,593,554,170,000
I have the problem that my cursor icon doesn't get drawn on the secondary monitor of a two monitor setup. It looks like this on the main screen: But on the second screen it look like: Interestingly, if I screenshot it with gnome-screenshot -p the cursor shows on the resulting picture (regardless of which monitor th...
The OP has reported that updating to the latest Catalyst driver seems to have solved the problem.  The version info is now: OpenGL vendor string: Advanced Micro Devices, Inc. OpenGL renderer string: AMD Radeon (TM) R9 390 Series OpenGL version string: 4.5.13416 Compatibility Profile Context 15.302
In Debian Fluxbox, how do I fix the cursor on the second head? [closed]
1,593,554,170,000
i have rpi connected with hdmi on big tv few meters from my workplace and i want to change size of mouse pointer. xsetroot -mouse .. .. will change just one type of cursor and not covering all situations. How to load my custom image above all windows in any window manager, to follow mouse movements over all programs a...
A bit late to the game, but just spotted this Large software cursor for screen recording on X11 repo and I think it does what you want. If you still care nearly 8 years later : D
X Image following cursor mouse pointer
1,593,554,170,000
In Bodhi Linux, there is a poor choice of mouse cursor - only from the MOKSHA desktop theme, is it possible to change the theme of the mouse cursor?
Install lxappearance Install breeze-cursor-theme (find another one if you want, see below) Open lxappearance (press AltEsc to open the quick launcher and start typing lxapp...) Go to cursor tab Choose the theme and apply Reset Moksha desktop with CtrlAltEnd Other themes include chameleon-cursor-theme, dmz-cursor-the...
How to change the mouse cursor in Bodhi Linux
1,593,554,170,000
I am using GNOME with a 4k monitor and 200% scaling and everything seems to be working fine, but after logging out and logging back in, cursor scaling seems to reset to 100%. I am attaching the photo since taking a screenshot fixes cursor scaling back to normal. The cursor also goes back to normal if I change the dis...
The problem was with Gnome Extension, not the Gnome itself. The extension name is "Soft brightness" and it seems to be fixed now.
Tiny cursor after logout
1,593,554,170,000
Recently tried installing both latest ApricityOS and Fedora 25 (gnome versions). The cursor freezes in the top left corner. I can still click on things (if I guess correctly). Everything else seems to work fine. I've got an Nvida GTX1080 which I suspect is the problem. I've read that there are some issues with nouveau...
I ran into the same issue, and found the solution here: https://bugzilla.redhat.com/show_bug.cgi?id=1398764 To summarize: First, you'll have to install Fedora using the keyboard. Slightly annoying, but not too hard. Then, after you're installed and booted, run the following: sudo dnf config-manager --add-repo=http://...
Cursor Frozen During Install
1,593,554,170,000
Condition: unstable caret-cursor and its position Other complications: many enter-artifacts, much lost content because sudden selections of contents and overwrites, often ctrl+z does not work etc in Google Product Forums so much lost work time; my typing speed in Debian now: 10-30 WPM; normally, 80-95 WPM long-term wi...
Fig. 1 Disable touchpad while typing, Fig. 2 Keyboard > Typing settings, Fig. 3 Disable long-key presses, Fig. 4 Better long-term WPM by using Fig. 3's option I think the problem is mainly caused by the over-sensitive touchpad, which causes the cursor's position change much. I did the following change i.e. disable...
How to Calibrate Caret-Cursor's position when unstable Cursor in Debian?
1,593,554,170,000
I am curious, is there a way to hide the cursor right before it will be placed at the top left corner of the terminal emulator? And do it independently of terminal emulator (not modifying the source code). Is it possible to use terminfo for such purpose? Or is there something similar to .xinitrc or .bashrc, but for te...
No, there is not. Terminal emulators do the same thing as real terminals: from the reset state the cursor starts off visible, until a control sequence is received from the host saying otherwise. The doco of (some of) the terminals being emulated explicitly defines the reset state, including the initial cursor visibil...
How to hide text cursor without shell?
1,593,554,170,000
I started Kali Linux this morning and everything was like the days before; the cursor was there. Then I turned it off, started again and boom -> No cursor. I'm using Windows 8.1 and Kali Linux is running with VirtualBox.
Go to Settings -> System -> Pointing Device and set to ps2 mouse. Be sure that machine is powered off to change settings.
Kali Linux: Cursor not showing
1,593,554,170,000
Currently cursor always active and visible in st that even go over text or not, cursor's shape always like |, I'd to change to | only when go over text to ready to select, otherwise keep its normal pointer shape.
This is not possible in current st. The mouse cursor shape is set by the following line in config.def.h (and therefore config.h): /* * Default colour and shape of the mouse cursor */ static unsigned int mouseshape = XC_xterm; ...and never altered anywhere else in the code. If you modified the above line in config....
st terminal: only change cursor's shape when move over text
1,593,554,170,000
Using i3wm Using arch wiki https://wiki.archlinux.org/title/Cursor_themes#XDG_specification $ ls .local/share/icons/ Bibata-Modern-Ice/ In ~/.icons/default/index.theme [icon theme] Inherits=Bibata-Modern-Ice In ~/.config/gtk-3.0/settings.ini [Settings] gtk-cursor-theme-name=Bibata-Modern-Ice Also used ln -s ~/.icon...
I claim your order when creating the symlink is wrong. I just had the same problem but fixed it with: cd ~/.icons/default ln -s /usr/share/icons/Bibata-Modern-Classic/cursors/ cursors
Not able to use cursor theme universally