Hot answers tagged

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.


3

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


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 ...


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.


1

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 ...


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

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] # ...


1

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 ...


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/


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 ...



Only top voted, non community-wiki answers of a minimum length are eligible