New answers tagged

0

Use traceroute command to find out at which node traffic is getting stopped. Looks like you are connected to LAN but not connected to internet. Do you use proxy to access internet websites? If yes then you are not directly connected to internet but connected to internet through proxy and ping to internet IPs will not work


2

PkgDB is official Fedora package repository for Fedora, which is accessible using your fedora.repo and fedora-updates.repo files on Fedora. You don't need to add anything to default Fedora installation to have it working (if you are using up-to date Fedora version). If you want to use it on different distro (RHEL, CentOS), you can download the packages from ...


0

CentOS 6 doesn't include other Linux OS in the boot menu. Solution : Run an Ubuntu live-DVD (or a live Ubuntu from USB), and do : 1) sudo update-grub .... and 2) sudo grub-install /dev/sdb/ ( If you want to boot from sdb/.)


1

Note: This appears to be a CentOS6 system, not CentOS 5.6. You appear to have versions of gcc (and related packages) installed that are newer than what are in the CentOS6 repos. Also, you have the 'rpmforge' repo, which isn't recommended anymore. Once you've disabled rpmforge, try running yum downgrade gcc. You should have something like version ...


2

Yes and no: Yes, you can do that with Mock. You just run mock -r epel-7-x86_64 yourpackage.src.rpm and it will build package for RHEL/CentOS 7 no matter what is your current host. No, you cannot do that with rpmbuild as that builds packages for your current platform.


0

You are trying to install a version of python from CentOS6 onto a CentOS7 system. This won't work. You also appear to have the CentOS6 repository definition for rpmforge. Not only is rpmforge a bad repository to use anymore (it is no longer maintained), but it's also for the wrong version of CentOS. I suggest you figure out why you've got bad repo ...


0

if you want to just update your servers automatically, which is remarkably safe under CentOS 4/5/6/7 unless you've done really bad things. Just do this: yum install -y yum-cron sysconfig yum-cron on service yum-cron start You're done. If you want to just check what's available, and not install anything, do yum upgrade and hit N when you have the ...


1

Congrats: you have encountered Dependeny Hell [tm]. Good news: It's always self-inflicted; no exceptions. Virtualmin - I worked with Jamie on a project before outta SCONJ; this isn't like him - is providing an httpd-devel that violates the naming convention set forth by the fedora guidelines that in turn regulates enterprise linux packaging around CentOS ...


0

If you have glibc 2.12 installed, you do NOT have CentOS7; you're on CentOS6. While there's been a lot of grief about the locking of major/minor versions after distro release - it's for stability, testing and certification; you'll learn the value later - the version you're looking at should not exist under an up-to-date centos7. Update your CentOS7, do a ...


0

Be careful if you're thinking a simple conversion will do it: converting a deb to an RPM and vice versa, due to vast differences in filesystem layout, is like dressing up an American in French clothing and expecting him to fit in. Differences in filesystem layout, kernel, libraries and tunings are like cultural differences; and you can't expect a smooth ...


0

If you are not sure what version of CentOS you are using, then run this command: rpm --query centos-release You will get output like this: centos-release-7-2.1511.el7.centos.2.10.x86_64 So obviously from the output I can tell I have CentOS 7.2. In my case, baseurl will look like this: baseurl=http://nginx.org/packages/centos/7/$basearch/


1

/dev/shm - shared memory, is used for programs to share things on the RAM. /run - it contains small files, with information about programs in execution, is usefully for example, when a program cant be run twice, so the executing program can alert a second program preventing it to be executed, and other things. /sys/fs/cgroups - ...


3

There is nothing abnormal about having tmpfs filesystems in your Linux box. tmpfs is a memory only filesystem, much like the "RAM disks" of other operating systems. As the name implies, the content lives in RAM, so it goes away after a reboot. It is also extremely fast. tmpfs is commonly used in situations where you don't care about the contents of a ...


2

You simply have to install the epel repository: yum -y install epel-release to make the openvpn package available.


2

cpio has a -E (--pattern-file) option, which allows you to read the list of filenames from a file instead of (or as well as) providing the filenames on the command line. For example: cpio -icuBdmv -E files-to-extract < preserved.cpio cpio also has -F to specify an archive name (instead of using stdin/stdout). -I and -O are similar but work instead of ...


0

Did you try to increase DHCP client timeout in the config file? Can you try to edit /etc/dhcp/dhclient.conf and set the 'timeout' option like shown below: timeout=60


1

You have to build OpenSSL manually - https://miteshshah.github.io/linux/centos/how-to-enable-openssl-1-0-2-a-tlsv1-1-and-tlsv1-2-on-centos-5-and-rhel5/


0

You can try to run: yum install python-2.6 Maybe it will help.


3

Spaces in file names can be tricky, but I think this might help. Instead of cating your files-to-extract, try feeding it through xargs substituting the NULL character for EOL. Something like tr '\n' '\0' < list-of-files | xargs -0 -I{} sh -c 'cpio -icuBdmv "{}" < preserved.cpio' should do the trick.


0

Do you not read your error messages? "FAILED DEPENDENCIES" --- "libgnutls" You need gnutls, which is a very common Linux package. Find the package name for your distribution, and install it.


0

If it looks like "an old DOS program", you might have a dark blue background. An easy fix for the PuTTY users would be to change the dark blue to a lighter shade. This also helps with blue text on a dark background. Here is an example, "before" with just blue text: and the result with a brighter blue: On a light background, yellow is just as bad, ...


0

The solution I implemented was to add the repo at installation time using the following line within the kickstart: repo --name="PostgreSQL" --baseurl="http://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/" and then to add in the POM.xml: <requires>pgdg-centos95-9.5-2.noarch.rpm</requires>


1

What you should do is install Django in a virtualenv and not directly in your python installation (2.6 nor 3.5). Where you install virtualenv is not important (it probably goes into the 2.6 install): pip install virtualenv now create a 3.5 virtualenv by doing: virtualenv -p $(which python3.5) /opt/django (adapt the /opt/django to your needs), and then ...


1

I have the same issue on my RHEL 7 machine. But it use GRUB2. When I remove those rd_LVM_LV= in kernel args. Press e before booting, remove those rd_LVM_LV= in kernel args, type CTRL+x I can then boot successfully. Steps to permanently solve on RHEL 7: Open /etc/default/grub remove those rd_LVM_LV= in "GRUB_CMDLINE_LINUX" Run grub2-mkconifg to create a ...


2

'yum' is not recognized as an internal or external command, operable program or batch file. This is a Windows error message, you need to run your commands inside a shell in your CentOS VM, not at a Windows command prompt.


0

vncserver is a perl script, so you look inside to see that it runs xauth to add a newly created random MIT-MAGIC-COOKIE-1 value (got from mcookie) for the server it is about to start. By default it tells xauth to use the file ~/.Xauthority, but you seem to have set XAUTHORITY=/root/.xauthVdNayr in your environment, and this takes precedence. The authority ...


0

Assuming you are meaning groups a user is member (which affect what the user could do in a system), you can use the following comand: id username


1

NOTE- The answer from Argonauts worked with some mods. Here is the working version in my environment based on a standard install: # xymonlaunch.service # systemd file for Fedora 18 and up, or RHEL 7 and up [Unit] Description=Xymon systems and network monitor Documentation=man:xymon(7) man:xymonlaunch(8) man:xymon(1) After=network.target [Install] # ...


0

I guess the post install commands I was having to issue where a bit of a clue. Following another "successful" install I checked the contents of /mnt/sysimage/var/log/anaconda/anaconda.log which indicated that no kernel was being installed. Sure enough I hadn't added the kernel package into the repo on my ISO - so I added in the kernel package (and grubby, ...


0

Assuming you are doing this in your home-network, with privately administered dhcp server on the Router: First of all, you need to have a ssh client on your windows machine, like putty. Then you set the virtual machine's network adapter mode to "bridged" in virtual box manager, and start that machine. The CentOS guest will then acquire an ip-address from ...


0

http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html-single/Pacemaker_Remote/ See section: 4.1.1. Configure Firewall on Host


0

Physical security is security. You have three options: Log in as root, either from the console or by ssh. Boot in single-user mode, which traditionally doesn't need the root password (but might on your system). Mount the disk image from another OS. Any of these will give you the ability to change the ownership of any file on the disk. If none of ...


0

Usually systemd can convert init.d scripts into services without you having to generate a .service unit file - if the scripts are in the init.d directory, are executable and can be parsed succesfully by systemd, then (without a .service file) running systemctl status xymon should just work. That, obviously, isn't always the case. The only service that I have ...


2

This seems to be a common problem with the latest update to the kernel module. The CentOS package maintainer seems to have left out or munged the step that builds initramfs after the new kernel is installed. You're left with an unbootable system. The steps for fixing this are to boot into the previous kernel version (in rescue mode), re-run dracut for the ...


2

Your regular expression doesn't match the pattern in your filename. To match at least one digit, you need to use [0-9]+ (you can also use \d to match digits); your pattern will only match 1 digit. Your example filename doesn't have spaces around -, but you have them in the pattern. And you're not doing anything to remove the ] at the end. Try: rename ...


2

Your fonts and colors would be determined by the type of terminal emulator and where it is run. Some people do something like ssh -X remotehost -e xterm and some do this ssh (running in a terminal on the local host). Technically the local X display determines the maximum number of colors which you can use (in either case), but most users have ...


0

It doesn't work because showkey simply opens the first special device which it tests (from a hardcoded list) that happens to be a terminal. Here's the list it uses (quoted from version 1.15): static char *conspath[] = { "/proc/self/fd/0", "/dev/tty", "/dev/tty0", "/dev/vc/0", "/dev/systty", "/dev/console", ...


0

In the first case you have to quote the vertical bar (|), since inside lftp it is a special symbol too (also use double quotes to interpolate src and dest variables, quote backslash and dollar sign to prevent their interpretation by the shell): /usr/local/bin/lftp -u user,pass -e "mirror -x '^(\\.mp4|\\.swf)\$' $src $dest" ftp.host In the second case you ...


3

Add /home/user/opt/bin/ to your PATH variable. e.g.: PATH="$PATH:/home/user/opt/bin/"


0

Add net.ifnames=0 to your kernel command line (via grub or whatever you use) The issue involves the non-standard 'standard' names given to network interfaces. The net.ifnames=0 cmdline option reverts the network device names to the older conventional names. (eth0, wlan0, and so forth)


0

Answer extracted from question: It is the loopback interface: -A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT -A INPUT -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT -A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT -A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT -A INPUT -j LOG ...


0

awk '{ORS=""; print $0}' textfile <div id="crmpicco"> <div class="ayrshireminis">... content in here ... </div></div> Additionally, as was already pointed out, the tr utility is awesome for this. To remove newlines and tabs/spaces all at once using the tr utility, do: # cat textfile |tr -d '\n\r" "' ...


0

In order to establish an SSH connection, the client needs to authenticate to the server. You're probably using key-based authentication, with a key stored in a password-protected file and loaded into the SSH agent. The SSH client knows how to find the agent through the environment variable SSH_AUTH_SOCK. In a cron or incron job, the environment is not the ...


1

It comes from your provider's internal DNS server at 192.168.74.2. That DNS server is most likely configured in /etc/resolv.conf unless you already have bind running on your machine.


2

If you run a similar command to yours: $ cut -d: -f1,6,7 /etc/passwd root:/root:/bin/bash bin:/bin:/sbin/nologin daemon:/sbin:/sbin/nologin adm:/var/adm:/sbin/nologin lp:/var/spool/lpd:/sbin/nologin sync:/sbin:/bin/sync shutdown:/sbin:/sbin/shutdown halt:/sbin:/sbin/halt mail:/var/spool/mail:/sbin/nologin operator:/root:/sbin/nologin ...


1

In some cases, the 'at' command is missing entirely and the package needs to be installed. Look for the at.x86_64 or at_i386, at_i486, at_i586 packages. Both OEL71 and CentOS can add it with: yum -y install e.g.: yum -y install at.x86_64 If you try copying the commands from another host, you will get pam authentication errors when run by anything ...


0

It looks like the problem here were the permission settings on the folder being exported on the server side. So, doing the following on the server allowed me to write from the client: [root@centosserv ~]# chmod 777 /NFSSHARE I did this on fresh installs of both the server and the client. Was experiencing the same problems all over again, and, not even ...


0

Using python 2.7 from SCL works for cassandra 3... as long as everything is set up correctly. # Install all of the necessary packages $ yum install centos-release-SCL python27 cassandra30 # Tell SCL about the normally installed python2.7 packages $ echo "/usr/lib/python2.7/site-packages" | sudo tee ...


0

If the window is deleted and recreated, then the window manager (gnome) loses the setting. This happens to me with pidgin chat windows if I ever close them. I don't know if eclipse does this on major state transitions (edit->build), but watch for gnome's tab order to change, or the window to completely vanish for a moment. I'd really like to be able to ...


0

This means the repo "epel" was not configured. The first command evidently failed: rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm This should place a file at /etc/yum.repos.d/epel.repo, with a first line: [epel] That first line is the name of the repo, so if you don't see it, it's not there. Try downloading ...



Top 50 recent answers are included