New answers tagged

0

It looks like the best way is to configure a dummy interface, which worked in my case on CentOS8. From RedHat dokumentaton: A dummy interface provides a device to route packets without actually transmitting them. It enables you to create additional loopback-like devices managed by NetworkManager and makes an inactive SLIP (Serial Line Internet Protocol) ...


0

Some home routers do not handle a request from inside the router to its outward facing IP address. I had this issue with some Linksys and Netgear routers back in the day. I imagine if you curl the host's LAN IP, it will work as expected.


2

UEFI class 3 essentially means the system does not have a Compatibility Support Module (CSM) to provide legacy BIOS compatibility, so it boots in native UEFI mode only. AHCI is the currently dominant hardware programming interface standard for SATA disk controllers. Your system may have no way to select "AHCI mode" in the firmware settings (used to ...


0

Thank you Shadur, I found the resolution, I was running pdns authoritative and pdns-recursor on same both so when you do that in that case you need to run pdsn authoritative server on port 5300 and recursor run on 53. (somehow slave DNS was asking for zone transfer on port 53 but it was recursor replying back instead of 5300 port). I have created alias ...


-1

Got the same problem on a Slackware box. The answer is here: https://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/misc-securetty.html


2

It is not OK to have two VMs with identical IP addresses on the same subnet. This can be caused by: Selecting "I moved" instead of "I copied" when importing a VM. When you "move" a VM, its MAC address is preserved. When you import the same VM twice with a "move" option, the two VMs will have an identical MAC address. ...


4

If you have "physical access" to the machine and can reboot it, you can add init=/bin/bash to the kernel-boot-parameters, remount rw and set a new root-password with passwd


0

The last line explains what's going wrong: While trying to retrieve the zone from the master via AXFR, pdns received a SERVFAIL response rather than a proper zone transfer, and therefore couldn't populate the zone, and thus can't respond on it. Check the master server's logs to see what's going wrong on that end -- it's not a permissions issue or you'd be ...


2

Resize the /dev/sda2 partition using fdisk or parted. You might also need to fix the partition table on /dev/sda (the tools should be able do that automatically). Resize the PV on it using pvresize /dev/sda2 (no size means it should be adjusted to device's size). Create new logical volume using lvcreate. Mount the new LV to /var (you'll need to update /etc/...


0

Just install the dependency outside the installation. example: yum install libcom_err-devel works for me :).


0

Although I'm not sure if this was the case, after a "hard reset" as the VPS company calls it, the alias file ifcfg-eth0:0 reappeared and I had my second IP again. I don't know if it was because of some kind of freeze on the hosting company end or if it was because I was trying 0:1 instead of 0:0. But this is what fixed it.


1

By default, auditd in all versions of Red Hat Enterprise Linux rotates its own log files automatically when they reach a certain size, as determined by the max_log_file setting in auditd.conf (which defaults to 6 megabytes) Replacing auto-rotation based on size with auto-rotation based on time Disable rotation in /etc/audit/auditd.conf so that: ...


0

I finaly found a GUI to administer both users and groups. It's still browser based, I'm afraid, and while proprietary, it's still free. It's called "webmin": https://www.webmin.com/download.html


0

To preface this, I don't personally host minecraft servers. I just helped a friend of mine make his server into a systemd service. You'll want to enable RCON in your server's config (Which I'm guessing you have already) and then you can use mcrcon from your terminal to connect to your server after it has started. mcrcon -h <ip> -P <port> -t This ...


0

Running createrepo should just work if you placed new files into an already existing repo.


0

Interesting question :) The first thing would be to get the base version (without release) of the currently installed package. You can do this by querying rpm: VER=$(rpm -q --queryformat "%{VERSION}" foo) Next, you just install that version with wildcard set for release: yum install foo-${VER}-* One-liner: yum install foo-$(rpm -q --queryformat &...


0

rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm dnf install cpulimit Should work. cpulimit is not part of the official CentOS repository, you've got to enable EPEL for that: https://fedoraproject.org/wiki/EPEL


0

You just need to specify the version you want to install: sudo yum install package-2.1.0-2


-1

I think it's all handled by the pig known as systemd. If I wanted a system to run like Windows, I'd run Windows.


-1

You can try to add Type=oneshot RemainAfterExit=yes To the section [Service] in CentOS the service should be placed in /etc/systemd/system So you should create a file minecraft_server.service inside the mentioned directory with the content you provided in your post. [Unit] Description=Minecraft Server After=network.target [Service] User=minecraft Nice=1 ...


1

The RHEL8 Documentation shows you how to use command line tools and the Cockpit web GUI to manage users. The old tools like system-config-users are not available on CentOS8.


0

Try this: TTYA='ls /dev/ttyA11' eval $TTYA echo $TTYA echo "outside" if [ $TTYA == 'ttyA11' ] then echo "inside" chmod g+rw /dev/ttyA* fi


1

There are a number of issues with your script that need attention. TTYA=$ ls /dev/ttyA11 Not sure what you are trying to accomplish here, but if you do TTYA=$(ls /dev/ttyA11) (note the correct syntax for assigning the output of a command to a variable), TTYA wil contain /dev/ttyA11, if that device exists. echo $TTYA You should probably put quotes here, as ...


0

Do not use xargs with tar. There is no need to do so. Gnu/tar (and I believe other tars) have an option -T (long form: --files-from) to read an unlimited number of filenames from a side file. (You can also send them through stdin using -T -.) The --null option can be used so that the -T list can contain null-terminated strings, just like xargs (and for the ...


0

I found a workaround. Split the command in 2 different things to bypass the long names and large content. sudo find /path/to/_Logs -name "RATE*" > test1.txt tar -czvT test1.txt -f logs.tgz


0

As the comments already suggest, tar is run multiple times by xargs. The most obvious way to handle this would be to append the files to the archive instead of re-creating the archive from scratch. sudo find /path/to/_Logs -name "RATE*" -print0 | xargs -0 tar -rf logs_rate.tar and compress afterwards. The remark about the leading / is a warning ...


1

If you have a device with two wifi adapters, and you want to use the second one, then you should do the following commands. I used this with my AWS DeepLens, since the internal WiFi antenna is quite basic, but my USB WiFi adapter is very very good: # Find the device name (such as wlan0) of your good adapter ip a ifconfig # Ensure that NetworkManager sees ...


0

The best solution is to use vsyscall=emulate as advised in the other answer, of course, but if you can't reboot the machine containing CentOS 6 container (or just a CentOS 6 installation inside a chroot, as in my case) and don't mind some open-heart surgery, you can also "upgrade" CentOS 6 to use CentOS 7 glibc version to work around the problem. ...


2

Forget specifications, and consider what would happen in practice. The main thing to note is that the filesystem permissions, don't contain a group name, they only contain the integer group id. (The underlying system call is chown(), you can see the gid_t in the argument list there.) So, chgrp, chown, or whatever tool used to change the group of the ...


3

No, it’s not valid; I’m not sure it’s spelled out explicitly in POSIX, but the chgrp definition assumes that a single group id (if any) exists for a given group name: group A group name from the group database or a numeric group ID. Either specifies a group ID to be given to each file named by one of the file operands. If a numeric group operand exists in ...


0

That's an ip address from the private address range 10.0.0.0/8. Everybody can use them within their local or virtual network, and so can VirtualBox. It's just like my neighbor and I can both have 192.168.178.1 in our wi-fi networks. Outgoing connections from those VMs will be NATed so there's no confusion, and if you want to make services on those machines ...


0

Just followed @RuiFRibeiro's suggestion and got an Ethernet cable. With it, the process was way faster as it required a variety of packages with various dependencies. Apart from Artem S. Tashkinov's suggestions, that didn't solve my issue (dnf install kmod-wl this one was giving me dependencies errors), I ran sudo dnf install kernel Then sudo yum install ...


0

Thanks - clearing my known_hosts file made that error go away. Not a long-term solution, but OK for a one-off workaround.


0

You have a BCM43228 wifi network adapter. You have to enable the RPMFusion Nonfree repo and install kmod-wl. This unfortunately requires a working Internet connection: rpm -ivh https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm dnf install kmod-wl


0

Sorry, i am late to the party, but maybe this will help others. I had the same problem, and actually, the /run/systemd/resolv directory was missing. Then I realized that systemd-resolved.service was not running. For some reason, it got disabled. So I had to simply just bring it up again. sudo systemctl enable --now systemd-resolved.service


2

Your /dev/sda[1-7] are not LVM logical volumes, but plain traditional disk partitions. Each partition must always be a single group of consecutive disk blocks on a single disk. Extending a partition is only possible at its tail end: if a partition occupies blocks X..Y, you could extend it to cover blocks X..(Y+N) - but only if blocks (Y+1)..(Y+N) are all ...


1

yum install installs the latest PHP available. Since you have newer PHP 7.4 already installed, yum keeps what it has because it sees PHP 7.3 in the enabled repositories. To downgrade, you can try: yum downgrade php*


0

I'm not entirely clear what your question is, or whether you are trying to install CentOS from a USB created from the boot ISO, or just run it from a USB created from the boot ISO. The root password on the boot ISO seems to be null (that's what I see in /etc/shadow after booting from the boot image and dropping into a single-user shell), so I am not sure why ...


0

I ran rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial then reran sudo yum update.


0

If you are going to be compiling against postgresql, you need to install the libpq-devel package to get the pg_config executable. You could try running dnf install /usr/bin/pg_config to get this.


1

You’re compiling C++ code, so the frontend is looking for the C++ compiler. mingw{32,64}-gcc only provides the C compiler, you need to install the C++ compiler too: dnf --enablerepo=PowerTools install mingw{32,64}-gcc-c++


1

I logged in as root user. [root@innolx20122 ~]# ls anaconda-ks.cfg Python-3.7.0 Python-3.7.0.tgz and then navigate to the Python-3.7.0 directory [root@innolx20122 Python-3.7.0]# ls aclocal.m4 config.status Doc Lib Mac Misc PC pyconfig.h python-config setup.py build config.sub ...


0

Opinion. You've used hardly any of your /home. I'd suggest you copy off the data there to your external disk and remake the /home LVM at around 60GB. Going forwards, increase the root partition (or /home) by only around 10GB at a time. The big problem with mixing SSDs and HDDs in the same volume group is that you are potentially downgrading the VG speed. In ...


0

as xfs cannot be resized I think that is wrong. xfs might not be shrinkable, but it can be grown (I've done that). disks of different types shouldn't be mixed in the same volume group Notice that it (although that is your own words) is a shouldn't not a can't. LVM doesn't care about the technology, so you can do it. Whether you should is an entirely ...


0

You can look at the /etc/firewalld/zones directory and change public.xml Default /etc/firewalld/zones/public.xml <?xml version="1.0" encoding="utf-8"?> <zone> <short>Public</short> <description>For use in public areas. You do not trust the other computers on networks to not harm your computer. Only ...


1

The podman and buildah packages conflict with docker-ce. Remove them first: yum erase podman buildah And you can then install docker-ce: yum install docker-ce Or dnf install docker-ce


2

By default XFCE with compositing turned on has a zoom feature which can be enabled by pressing Alt and mouse scrolling Up or Down. In Window Manager Tweaks this key Alt might be changed to Super (A windows key, ⊞).


1

There you can find the answer with iptables https://superuser.com/questions/769814/how-to-block-all-ports-except-80-443-with-iptables/770191 you can just put the ports you need open there intead of 80 and 443


0

Please use Google next time. Here's a comprehensive guide on how to configure a network interface in RHEL/CentOS 7: https://phoenixnap.com/kb/configure-centos-network-settings In case you're using Network Manager: nmcli device modify <interface_name> ipv4.address <ip_address> In case you're not using NM: ifconfig <interface> <ip_address&...


Top 50 recent answers are included