New answers tagged

0

I know it's an old post, but I was struggling with this issue and this is my result: My disks were "frozen" - Seagate disks. You can check, if you have same issue by entering command: hdparm -I /dev/sdb Which showed: Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count supported: ...


0

This should work as CentOS Stream is just additional repositories on top of CentOS 8 as mentioned on (unofficial) centosfaq.org. I did this on my development machine: $ dnf history centos-release-stream ID | Command line | Date and time | Action(s) | Altered ----------------------------------------------------------------------------...


1

If you are using Red Hat (or something derived from it, like Centos or Scientific Linux) you can install the policycoreutils-python and setroubleshoot-server packages with yum, which will give you some powerful diagnostic tools. From the sounds of it, and without knowing your distribution details, you probably need to set the selinux context on the file ...


0

This issue is a long-standing bug in cyrus-sasl, caused by the the fact that the auth-pam code doesn't really provide a way to pass host (or user) information to saslauthd. In theory, the patch to fix it is supposed to be rolled into 2.2, but I don't see anything about it in the 2.2.X release notes. While it's possible this could get backported in the 2.1 ...


0

It happens that gdm saves the LANG variable for <user_name> in the file: /var/lib/AccountsService/users/<user_name> One just needs to change the LANG setting there, log out and then back in! More info here: https://help.gnome.org/admin/system-admin-guide/stable/session-user.html.en


0

Memory is shared. You'll have one copy of a shared library (e.g. glibc) and many users that count it as part of their memory usage.


1

Even if you managed to get NetworkManager to change the ethernet address of your wifi card, it's not lost: it's stored in some ROM in the NIC. To retrieve the original address without having to reload the kernel module or reboot, while keeping NetworkManager out of it, you can use the command ethtool (from package of the same name). The NIC driver has to ...


0

First of all, I think you have a mistake in the sysctl fields names as they should start with 'net' and not with 'sys', like so: net.ipv4.tcp_congestion_control = agilesd net.ipv4.tcp_fin_timeout = 20 net.ipv4.tcp_sack = 0 Besides that, from what I can tell the file '/etc/sysctl.d/99-sysctl.conf' is actually a symbolic link to '/etc/sysctl.conf': $ll /etc/...


-1

From cron(1): Cron searches /var/spool/cron for crontab files which are named after accounts in /etc/passwd; The found crontabs are loaded into the memory. Cron also searches for /etc/anacrontab and any files in the /etc/cron.d directory


2

Your problem is that you're trying to use a modern desktop environment with an ancient video card that cannot support it. In general, servers come with relatively poor video cards because nobody uses them. You're not helped in this regard by the fact that your GPU is from 2007 and has what would now be considered a tiny amount of video memory. GNOME, by ...


-1

After upgrading python, I edited /bin/yum and /usr/libexec/urlgrabber-ext-down and changed /usr/bin/python to /usr/bin/python2.7 and yum works perfectly. Of course, future upgrades of python will likely break this so keep a record of what you did.


0

I have managed to figure out how to install the 64bit version. Although i still do not understand the mechanics of why this works as it does. If anybody knows please let me know I would love to understand why this works as it does. When installing libnss3.so the 64bit version only installs if I use dnf, when I use yum, it will only install the 32bit version....


0

Welcome to the Unix & Linux StackExchange! Your picture indicates that when you kill the process currently occupying the port with SIGTERM, a new process will take its place. So either systemd is configured to automatically restart the process whenever it gets killed, or the process holding the port is just a "worker" child process of a major server ...


0

To search for processes that listen on a specific port, use the lsof or “List Open Files”. lsof Find Processes running on Specific Port The -i option to filter lsof -i TCP:[PORT] lsof -i TCP:5601 Kill all Processes listening on Specific Port The -t command returns only the PID, precisely for piping, and use xargs on each line returned. lsof -ti tcp:[...


0

It turned out the solution was simple and logical when we just found out what was the problem: The user had in some way no password defined (however that could happen). After setting a password for the user, sudo also worked as expected.


1

I've had pretty good success with TestDisk & PhotoRec for recovering deleted files. Haven't tried it via an SSH session but make sure you install and run screen command. I've had recovery scan that last over 24 hours.


1

It seems your targets live on a different network. You are told that 10.1.0.1 is gateway, as it doesn't give the target's (IPs 10.101.x.x) MAC addresses, they are probably on a different network. Having addresses from 10.1.0.1 to 10.101.0.0 would mean some 600 thousand machines on a network... Find out what the network setup is (network masks, routers, ...)....


1

Welcome to Unix & Linux StackExchange! In order to compile your own programs that use the libi2c library package, you'll need to install the corresponding development package also: libi2c-devel. For both i2cdump and i2cget, it looks like you'll have to specify the bus number/name and an address on the bus to make them do anything useful. In your case, ...


1

I see in your arp -a command output is shows a 10.1.0 address and your ping has a 10.101.2 they are on different networks. arp will be for the local network you are on. Now ip neigh is the new arp -a and has the same behaviour. You will have to get on that subnet to see the mac and subnet info from those computers. Can you ssh into it? If so you can send ...


0

What I did on a DigitalOcean VPS (having 25G /dev/vda1 mounted as root) : using fdisk, delete the first (25G) partition create a 20G partition (the first sector must be same as the original one) create a new partition (obviously with size 5G), it will be /dev/vda2 write partition table and exit fdisk. create an ext4 filesystem on /dev/vda2 note the UUIDs of ...


0

When using LVM, the RHEL/CentOS 7 initramfs generator seems to auto-generate the root= option that specifies the device containing the root filesystem. And the generated entry will be of the form root=/dev/mapper/VGname-LVname. There are also one or two other boot options that will specify the LV(s) to activate within the initramfs phase: the LV for the ...


1

First off, ping isn't the best way to diagnose dns issues; you want dig: shadur@vigil:~$ dig google.com @localhost ; <<>> DiG 9.10.3-P4-Debian <<>> google.com @localhost ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55786 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ...


0

if every configuration is ok type this command nmcli connection up ethx # or ensXX where ethx (or ensXX) is your adapter's name


0

It should be enough if the boot command line (linux ...) uses UUID instead of /dev/sysvg/root_lv.


0

epel is normally enabled by default when the RPM for it is installed. If, for some reason it wasn't, you need to enable it but the command that you ran enabled the codeready-builder repo. Run this command to enable epel: dnf config-manager --enable epel You can then run dnf repolist to see epel listed.


1

One reason the accepted solution works for some people but not for others lies in a design issue of firewalld. Firewalld only processes the first matching zone for any connections. It also processes zones based on IP address before zones based on interfaces. As long as any of your zones happens to include the IP addresses docker is using, the ACCEPT rule in ...


1

OK thanks to @GracefulRestart found the simple "solution": This user showed me where to look and what to look at more precisely I noticed that I had loading an old version of php in apache. [root@nube-preprod-clon ~]# grep -Rn libphp /etc/httpd/conf.modules.d /etc/httpd/conf.modules.d/10-php55-php.conf:6: LoadModule php5_module modules/libphp55-php5.so /...


1

Your XML file uses namespaces, so you need to specify those you need and adjust your query accordingly: xmlstarlet sel -N 'mi=https://mediaarea.net/mediainfo' -t -v 'mi:MediaInfo/mi:media/mi:track/mi:Duration' a.xml or rely on the default namespace, as the error message suggests: xmlstarlet sel -t -v '_:MediaInfo/_:media/_:track/_:Duration' a.xml To ...


2

What you describe is one of the ways, if a library you build does not ship with something like foo.pc.in for example. The convention is that, if the Makefile (or the build system) allows for configuring library directory via an environment variable, then it's being used. So as a first step, identify if a given Makefile has something like that. E.g. this ...


3

The issue was that the directory appeared to have non-visible characters at the end of its name. Using a shell globbing pattern, Gullane*, the user was able to enter the directory, and then also to rename the directory with a more usable name: mv Gullane* Gullane The * part of the globbing pattern would match the blank/non-visible characters at the end of ...


0

Worked on CentOS Linux 8 - sudo grub2-mkconfig --output=/boot/grub2/grub.cfg


0

It looks like your R package needs libpng16.so.16 (1.6. branch) whereas the default on CentOS 7 is the one you installed (1.5 branch, available via libpng package). If you don't mind using a commercial repository, libpng 1.6 is available at GetPageSpeed repo: sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo yum install libpng16 ...


0

This is an easy enough fix, I read and tried what was suggested and it did not work in my case. All I did was simply this Yum search exif RESULT *Loaded plugins: fastestmirror, universal-hooks Loading mirror speeds from cached hostfile * EA4: * cpanel-addons-production-feed: * cpanel-plugins: * base: centos4.zswap.net * epel: mirror.team-cymru....


2

You probably installed Zabbix from a SELinux-unaware source, or perhaps with SELinux disabled on installation. If Zabbix was not installed from a SELinux-aware package, it is likely that running restorecon -R -v /etc would automatically change the unlabeled_t labels to something else, probably etc_t, as that seems to be the default label for files and ...


0

Try ffmpeg -codecs to list all the codecs your build implements. The output is in the following format: Codecs: D..... = Decoding supported .E.... = Encoding supported ..V... = Video codec ..A... = Audio codec ..S... = Subtitle codec ...I.. = Intra frame-only codec ....L. = Lossy compression .....S = Lossless compression ------- D.VI.S 012v ...


1

You can refine the sed expression to eliminate the \r in case it's there: sed -e 's/^/"/' -e 's/+/","/g' -e 's/\r*$/"/' file As begin-of-line and end-of line exist just once in a line, the g flag can be dropped. No need to escape the double quotes in the "replacement". Use "alternation" to further simplify: sed -e 's/^\|\r*$/"/g' -e 's/+/","/g' file


2

The quote is actually there, but it has replaced the initial quote when printing to screen: $ printf '%s\r\n' 'foo' | sed -e 's/^/"/g' -e 's/+/","/g' -e 's/$/\"/g' | od --format c 0000000 " f o o \r " \n 0000007 \r/CR/carriage return, moves the position of the virtual cursor used to output text to the start of the line, so the final " ends up ...


2

With GNU sed and multiple lines of input: sed -n '/pattern/{h;s//replacement/;};p;${g;//!q1;}' file On lines which contain pattern: Add the line to the hold buffer Perform substitution print every line When the last line ($) is reached: get the hold buffer If the pattern space doesn't contain pattern, quit with exit code 1 Empty regular expressions // ...


0

What is wrong with your config file is not clear for me. But, using CenOS 8, a suitable setting to help you could be to use NetworkManager, since network scripts are deprecated: RHEL 8 Deprecated Network Scripts setting connection.autoconnect property to true.


1

The confusing part: I have only plugged in a single monitor(miniDP) to DP(GPU) cable but Xrandr shows 2 connected devices DP-4.8 and DP-4.9. One DisplayPort output can provide data for multiple displays: this is known as DisplayPort Multi-Stream Transport (MST). It looks like your 4k display is presenting itself as 2 separate halves, perhaps as a backwards ...


1

Tcpdump will listen to all packets that go past your network interface. An ethernet switch will do its best to only pass on packets addressed to your MAC. A non-switching-hub, will not event try, it will show you everything. Therefore you will receive all the packets on your lan. Normally we would not expect packets from such a diverse set of IP addresses. ...


1

Tcpdump puts your network interface in "promiscuous" mode. If you have a hub on the network it sends all packets to all interfaces. An interface then checks MAC number and sees if the packet is for that interface. If it is, it forwards it to the receiving software. If not, it drops the packet. However in promiscuous mode the interface can receive all ...


-1

Download the source SRPM entr-4.4-1.el7.src.rpm $ rpm -Uvh entr-4.4-1.el7.src.rpm $ cd rpmbuild/SPECS/ $ rpmbuild -bb entr.spec . Wrote /home/knudfl/rpmbuild/RPMS/x86_64/entr-4.4-1.el8.x86_64.rpm Link to entr-4.4-1.el8.x86_64.rpm https://drive.google.com/file/d/1cVi-AHUqGfHYLP2MCcufJmg3WIfo8g26/view?usp=sharing


0

The processes are started with .desktop files in the /etc/xdg/autostart directory. [user@host autostart]$ pwd /etc/xdg/autostart [user@host autostart]$ ls -lrt tracker* -rw-r--r--. 1 root root 5954 Sep 28 01:27 tracker-miner-fs.desktop -rw-r--r--. 1 root root 5234 Sep 28 01:27 tracker-miner-apps.desktop -rw-r--r--. 1 root root 4635 Sep 28 01:27 tracker-...


3

I have to mention, that the umask is also set in /etc/profile for all accounts to 022. Every shell that uses /etc/profile will override the umask set by pam_umask.so. So you should set the umask in /etc/profile also to 0077 if you want a system wide umask.


0

Apparently you're trying to install barman-cli from a 3rd party repository, which is fine, but this repository doesn't provide all the dependencies that barman-cli requires. You could contact the upstream provider for help, since they are responsible to deliver the required packages, but according to their Github page barman-cli has been merged into barman ...


1

I had the same issue after messing up my ftp directory's labels, and had to manually set SELinux types to allow FTP users to see files: sudo chcon -Rt public_content_t /var/ftp/


3

They seem to have made a packaging error when preparing that rpm. In /etc/yum.repos.d/pgdg-redhat-all.repo, you'll find a section [pgdg10-updates-debuginfo] name=PostgreSQL 10 for RHEL/CentOS $releasever - $basearch - Debuginfo baseurl=https://download.postgresql.org/pub/repos/yum/debug/10/redhat/rhel-$releasever-$basearch enabled=0 gpgcheck=1 gpgkey=file://...


2

A docker image doesn't have a Kernel, It uses the Kernel from the host machine that you are running Docker on. You can run this command inside your Docker container and from your CentOS host, It will show up the same result uname -sr There is a similar question on Super User Ps:// By the way, you should upgrade your CentOS host to kernel 3.10+ as ...


Top 50 recent answers are included