Skip to content

SysTutorials

  • Tutorials
  • Linux
  • Linux Manuals
  • Systems
  • Programming
  • Software
  • Subscribe
  • Search
SysTutorials

  • QA

    How to make Fedora Linux not clean some files in /tmp/?

    ByEric Ma Mar 24, 2018Mar 30, 2026

    On my Fedora 41, I find that the system automatically clean up file under /tmp/. This is convenient. However, it cause some problems for some programs. For example, HDFS puts its DataNode pid file under /tmp/ by default like hadoop-hadoop-datanode.pid. After it is cleaned up, the hadoop-daemon.sh script will consider there is no DataNode running….

    Read More How to make Fedora Linux not clean some files in /tmp/?Continue

  • Linux | Systems | Tutorial

    How to deactivate a LVM logical volume on Linux?

    ByEric Ma Mar 24, 2018Feb 20, 2020

    How to deactivate a LVM logical volume activated by #vgchange -aay on Linux You may need to make a LVM volume group inactive and thus unknown to the kernel. To deactivate a volume group, use the -a (–activate) argument of the vgchange command. To deactivates the volume group vg, use this command # vgchange -a…

    Read More How to deactivate a LVM logical volume on Linux?Continue

  • QA

    How to put AdSense ads in BuySellAds without iframe?

    ByQ A Mar 24, 2018May 31, 2020

    Hi, I noticed that your site serves AdSense ads through BuySellAds and it is not in an iframe. By default, BuySellAds puts the backfill ads in an iframe. Puting AdSense ads in iframe is violation of the terms. How do you make BuySellAds not put AdSense ads in an iframe? Thanks! To inline the ads…

    Read More How to put AdSense ads in BuySellAds without iframe?Continue

  • QA

    Xterm color codes for Vim on Linux

    ByEric Ma Mar 24, 2018Mar 24, 2018

    Vim uses Xterm color codes like 9, 1 and 114 on Linux. What’s the overall mapping from color to codes or codes to color? Xterm color table: You can also find the Xterm color codes here.

    Read More Xterm color codes for Vim on LinuxContinue

  • QA

    How to mount LVM volume from an external hard disk on CentOS?

    ByEric Ma Mar 24, 2018Mar 30, 2026

    On Fedora, after inserting/plugging in an exteranl hard disk with LVM partitions on it, the partitions will appear under /dev like /dev/lvm-group/lvm-partition. However, on Rocky Linux 9, the LVM volumes do not appear automatically. How to mount LVM partitions from an external hard disk on CentOS? What you need on CentOS is to activate the…

    Read More How to mount LVM volume from an external hard disk on CentOS?Continue

  • QA

    What’s wrong with the messages like “UnrecovData 10B8B BadCRC” and “failed command: READ FPDMA QUEUED” on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I keep seeing messages in dmesg as follows with “exception Emask 0x10” -> “SError: { UnrecovData 10B8B BadCRC }” -> “failed command: READ FPDMA QUEUED” -> “hard resetting link”: [ 7395.936692] ata4.00: exception Emask 0x10 SAct 0xe000 SErr 0x280100 action 0x6 frozen [ 7395.936701] ata4.00: irq_stat 0x08000000, interface fatal error [ 7395.936703] ata4: SError: {…

    Read More What’s wrong with the messages like “UnrecovData 10B8B BadCRC” and “failed command: READ FPDMA QUEUED” on Linux?Continue

  • QA

    mkfs refuses to make filesystem with message “is apparently in use by the system; will not make a filesystem here!”

    ByEric Ma Mar 24, 2018Feb 20, 2020

    I have a disk from another server installed on a new server. However, when I try to make a filesystem on it, mkfs reports # mkfs -t ext4 /dev/sdd1 mke2fs 1.42.8 (20-Jun-2013) /dev/sdd1 is apparently in use by the system; will not make a filesystem here! This is a new disk to the new server….

    Read More mkfs refuses to make filesystem with message “is apparently in use by the system; will not make a filesystem here!”Continue

  • QA

    How to make curl request pass the Squid proxy?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I use curl to send requests to remote servers like following command. curl http://example.com/send –date-urlencode “data=hello” However, it is blocked by the network proxy squid in some networks with message like (some info anonymized with “…”): ERROR The requested URL could not be retrieved POST /… HTTP/1.1 Proxy-Authorization: Basic … User-Agent: Mozilla/4.0 (compatible;) Host: ……

    Read More How to make curl request pass the Squid proxy?Continue

  • QA

    How to run screen on a Linux host reporting “Cannot make directory ‘/var/run/screen’: Permission denied”?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I want to run screen on a remote host on which I do not have root/sudo privilege and screen is not installed. I can compile or copy the screen program that can run on the host. However, it reports: “Cannot make directory ‘/var/run/screen’: Permission denied” As screen is not installed on the host, the directory…

    Read More How to run screen on a Linux host reporting “Cannot make directory ‘/var/run/screen’: Permission denied”?Continue

  • QA

    How to encode spaces in curl GET request URL on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    The problem is like this: I would like to send a GET request using curl and the content has spaces, such as curl “http://example.com/send?msg=hello world” The space and the “world” will be left away if this command is executed directory on Linux. How to encode spaces in curl request URL? You can use the –date-urlencode…

    Read More How to encode spaces in curl GET request URL on Linux?Continue

  • Storage systems | Systems

    How to handle missing blocks and blocks with corrupt replicas in HDFS?

    ByEric Ma Mar 24, 2018Feb 20, 2020

    One of HDFS cluster’s hdfs dfsadmin -report reports: Under replicated blocks: 139016 Blocks with corrupt replicas: 9 Missing blocks: 0 The “Under replicated blocks” can be re-replicated automatically after some time. How to handle the missing blocks and blocks with corrupt replicas in HDFS? Understanding these blocks A block is “with corrupt replicas” in HDFS…

    Read More How to handle missing blocks and blocks with corrupt replicas in HDFS?Continue

  • QA

    how to install older version gcc/g++ in Ubuntu (other linux distro are similar)

    ByWeiwei Jia Mar 24, 2018Jan 7, 2020

    When we compile some project, it needs older version gcc/g++ version. So how to insall older ones in ubuntu 16? Install older gcc/g++ version sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilib Set gcc/g++ version to be used automatically sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-4.4 50 sudo update-alternatives –install /usr/bin/g++ gcc /usr/bin/g++-4.4 50 You may need…

    Read More how to install older version gcc/g++ in Ubuntu (other linux distro are similar)Continue

  • QA

    How to identify a certificated lightning cable for iPhone 6?

    ByQ A Mar 24, 2018

    There are various lightning cables on the market. I ever purchased one but it does not work for iPhone 6… How to identify a certificated lightning cable that is good for iPhone 6? (I know the cables from Apple will definitely work. But it takes time to receive one from Apple or not always easy…

    Read More How to identify a certificated lightning cable for iPhone 6?Continue

  • QA

    How to make AdSense responsive ads show rectangle ads instead of horizontal ones?

    ByEric Ma Mar 24, 2018Oct 7, 2019

    I noticed that many sites with AdSense responsive ads show large rectangle ads (336px x 280px) or large rectangle text ads (full width x 280px). However, in my own website (640px width content area), it shows most of time horizontal ones. How to make AdSense responsive ads show rectangle ads instead of horizontal ones? At…

    Read More How to make AdSense responsive ads show rectangle ads instead of horizontal ones?Continue

  • QA

    How to find a wireless network adapter’s speed in Linux?

    ByEric Ma Mar 24, 2018Mar 9, 2020

    How to find a wireless adapter‘s speed in Linux? ethtool does not show the speed of the wireless adapters. For finding the configured speed of wireless adpaters in Linux, you can use the iwconfig tool. iwconfig: configure a wireless network interface For example, to find the speed of the wireless adapter wlp8s0: # iwconfig wlp8s0…

    Read More How to find a wireless network adapter’s speed in Linux?Continue

  • QA

    How to find a network adapter’s speed in Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I have a Linux box and it is connected to a network through a network adapter, say gate. How to find what is the current speed (10Mbps, 100Mbps or 1000Mbps) of the adapter? You can find the network adapter speed by the ethtool command: ethtool: query or control network driver and hardware settings For example,…

    Read More How to find a network adapter’s speed in Linux?Continue

  • QA

    How to disable SSH reverse DNS lookup on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to disable the reverse DNS lookup by the SSD server on Linux? To turn off reverse DNS lookups of the SSH daemon, log on the server and add UseDNS no to /etc/ssh/sshd_config. And remember to restart the sshd service by service sshd restart or systemctl restart sshd.service or other commands depending on your system.

    Read More How to disable SSH reverse DNS lookup on Linux?Continue

  • QA

    Implementation of strstr in glibc

    ByEric Ma Mar 24, 2018Mar 24, 2018

    What is the implementation of strstr in glibc? Implementation of STRSTR in glibc (string/strstr.c): /* Return the first occurrence of NEEDLE in HAYSTACK. Return HAYSTACK if NEEDLE is empty, otherwise NULL if NEEDLE is not found in HAYSTACK. */ char * STRSTR (const char *haystack_start, const char *needle_start) { const char *haystack = haystack_start; const…

    Read More Implementation of strstr in glibcContinue

  • QA

    Printing “powernow-k8 transition frequency failed” after install XEN

    ByWeiwei Jia Mar 24, 2018Jan 7, 2020

    After I installed XEN hypervisor, the tty0 (CTRL+ALT+F1) prints “powernow-k8 transition frequency failed” to STDOUT continously, how to solve it? sudo rmmod powernow_k8 From https://lists.debian.org/debian-user/2013/01/msg00754.html How to make the settings persistent (take effect after reboot)? 1, Create script file ‘/etc/init.d/stop_pwoerk8.sh’ as follows. harry2vera@node1:/etc/init.d$ cat stop_pwoerk8.sh #! /bin/sh rmmod powernow_k8 2, Add the full PATH of…

    Read More Printing “powernow-k8 transition frequency failed” after install XENContinue

  • QA

    rtnetlink answers file exists

    ByWeiwei Jia Mar 24, 2018Jan 7, 2020

    When you replace dynamic IP to static IP, you may need to restart your netwrok on Debian as follows. $sudo /etc/init.d/networking restart … …. reconfiguring network interfaces…rtnetlink answers file exists … However, error happens here “rtnetlink answers file exists”. How to solve it??? Run following commands could solve this problem # ip addr flush dev…

    Read More rtnetlink answers file existsContinue

Page navigation

Previous PagePrevious 1 … 24 25 26 27 28 … 70 Next PageNext

© 2026 SysTutorials

  • Tutorials
  • Linux
  • Linux Manuals
  • Systems
  • Programming
  • Software
  • Subscribe
  • Search