Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

linux

Run interactive Bash with popen and a dedicated TTY Python

August 11, 2022 by Magenaut

I need to run an interactive Bash instance in a separated process in Python with it’s own dedicated TTY (I can’t use pexpect).
I used this code snippet I commonly see used in similar programs:

Categories Python, Q&A Tags bash, linux, python, python-2.x, tty Leave a comment

How can I benchmark my HDD?

August 11, 2022 by Magenaut

I’ve seen commands to benchmark one’s HDD such as this using dd:

Categories Q&A, Unix & Linux Tags benchmark, hard-disk, linux Leave a comment

What is the difference between “all”, “default” and “eth*” in /proc/sys/net/ipv[46]/conf/?

August 11, 2022 by Magenaut

In sysctl, the /proc/sys/net/ipv[46]/conf/ keys have the following subkeys: all, default, and a key for each network interface. For example, on a machine with a single network interface eth0, it will look like this:

Categories Q&A, Unix & Linux Tags ipv6, linux, proc, sysctl Leave a comment

Can’t use “userspace” cpufreq governor and set cpu frequency

August 11, 2022 by Magenaut

I’m trying to change the cpu frequency on my laptop (running Linux), and not having any success.
Here are some details:

Categories Q&A, Unix & Linux Tags cpu-frequency, linux Leave a comment

How to inject keystrokes via a shell script?

August 11, 2022 by Magenaut

I’m trying to inject keystrokes into the input daemon so as to simulate typing from a Bash script. Is this possible, and if so, how can I make it happen?

Categories Q&A, Unix & Linux Tags input, keyboard, linux, shell-script Leave a comment

Remapping Caps Lock to Compose

August 11, 2022 by Magenaut

Because I now and then need to use scandinavian letters despite using US Dvorak as my layout, I would like to use Caps Lock as a compose key. (I don’t need Caps Lock at all, I’m not a forum troll)

Categories Q&A, Unix & Linux Tags compose-key, console, keyboard-layout, linux, x11 Leave a comment

How to read environment variables of a process

August 11, 2022 by Magenaut

Linux’s /proc/<pid>/environ does not update a process’s environment. As I understand it, the file contains the initial environment of the process.

Categories Q&A, Unix & Linux Tags environment-variables, linux, process Leave a comment

How to colorize output of ls ?

August 11, 2022 by Magenaut

I’m running CentOS in Linux text mode. When I run the command ls /usr/, the output is too hard to read (dark blue on black). How can I change the text coloring?

Categories Q&A, Unix & Linux Tags centos, colors, console, linux Leave a comment

How to fix Ctrl + arrows in Vim?

August 11, 2022 by Magenaut

I am using Putty -> Suse box -> vim 7.2 combo for editing and want to remap Ctrl + arrows combo to a particular task. But for some reason, Vim ignores the shortcut and goes into insert mode and inserts character “D” (for left) of “C” (for right).

Categories Q&A, Unix & Linux Tags keyboard, linux, putty, vim Leave a comment

What is this folder /run/user/1000?

August 11, 2022 by Magenaut

What is this folder: /run/user/1000 on my Fedora system and what does it do?

Categories Q&A, Unix & Linux Tags directory-structure, fedora, filesystems, linux Leave a comment
Older posts
Newer posts
← Previous Page1 … Page8 Page9 Page10 … Page63 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress