Tag Info

New answers tagged

0

This is one approach. You can convert the existing system from RHEL to CentOS without having to move the software from the box itself. This can be a risky option but I've used this process myself and it does work. Backups are a must prior to doing something like this. Convert RedHat to CentOS General Steps Remove any remnants of RHEL from yum: yum ...


2

CentOS has as one of its central objectives to be binary compatible with the corresponding Red Hat Enterprise release, so it should be just a matter of installing the same package set (check out kickstart, it should give you a way of creating a script to replicate the installed system) and copying the relevant files over. It can get tricky when configuration ...


2

The documentation for these directives is in /usr/share/doc/initscripts-*/sysvinitfiles. Except for "Author", which is non-standard.


6

You are misinterpreting the results, clock-app connects to a website and is not listening on port 80.


1

The alternatives system doesn't always work correctly with third party packages like the Java packages you're installing. You need to either use the CentOS packaged java or create the symlinks yourself without using the alternatives system/command to ensure all links are correct.


0

Memory usage can be quite confusing when first starting out with Linux. In general Linux takes the perspective that all of RAM should be put to use instead of conserving it just for processes. So RAM is used for both processes and as a cache for files as they get loaded from the hard drive. You can see this better with the free command: # free output in ...


0

Read Rod's books on this but basically centos6 isn't the most fit distro for UEFI.


1

2 RPMs The files are remnants of 2 RPM packages. If you run the following command you can see which RPMs are responsible for these directories: # centos 6.4 $ for i in /etc/sysconfig/networking /etc/sysconfig/network-scripts; do echo "==> $i"; rpm -qf $i;done ==> /etc/sysconfig/networking system-config-network-tui-1.6.0.el6.2-1.el6.noarch ...


1

Before NetworkManager was a thing, Red Hat had (I'm guessing still has from your output, I have the directories but no files in them on the two servers I checked) a sysconfig-* tool you could use to specify which networking profile to use, after which you just restart the network service and the other settings take effect. Last one in the find output is ...


2

The "script shell" is not the login shell. It is whatever is running as /bin/sh. Note that many Bourne shell derivatives (i.e., shs like bash and dash, and probably also the Korn shell lookalikes) behave differently when called as sh


1

On Centos (and ever in other linuxes & unices) you can know what is the shell you are using doing this commands: $ id uid=501(john1) gid=1000(groupname1) .... that tell you that you are using user john1 and then: $ grep john1 /etc/passwd john1:x:501:1000:john1,,,:/home/john1:/bin/bash the last string afther / tell you what is your login shell (in ...


2

You can determine your default shell by flowing command: grep $LOGNAME /etc/passwd | awk -F":" '{print $7}' In my machine, sh is a link to dash, try: ls -l `which sh`


0

I figured it out from this: http://selinuxproject.org/page/SambaRecipes Had to set the folder contexts to public_content_rw_t and do setsebool -P allow_smbd_anon_write=1 Now I can write via Samba and FTP (and it will be easy to support other domains later)


1

If you are using a GUI in the virtual machine, install vmware-tools-esx. If your virtual machine has no GUI, install vmware-tools-esx-nox. Either way, this will pull in all the necessary dependencies.


1

It turns out the gedit configuration files were missing completely. Reinstalling fixed the problem.


3

Edit the yum repo, and add a include=ossec-hids* to it, so it only includes those packages.


0

RSH is very insecure - Do you really want anyone with a packet sniffer to see any passwords go over with wire, with the user id, in PLAIN TEXT? It should have been dropped from the distros as soon as SSH was made readily available, but someone still worried that it might break someone's ancient, highly insecure, script from 1986. RSH is bad juju! ...


0

As far as i know the gedit preferences stored in /usr/share/gedit and in other root-owned places such a gtksourceview. you should change permission or simple try run gedit under root, to do all needed changes.


3

First Issue You're missing the kernel-headers package. You need these to compile kernel modules. yum install kernel-headers Assuming this where you downloaded the drivers from. When I unpacked them on a CentOS 6.4 system I got the following error: $ cd jmebp-1.0.8.5 $ ls CHANGELOG jme.c jme.h Makefile scripts $ make make: *** ...


0

It's not the most graceful solution but you should be able to install CentOS by tricking Bootcamp. You would need a Windows disk for the Bootcamp wizard to set up the disk, then when it reboots hold the eject key during the chime to kick out the Windows disc and insert CentOS. Install only using the space allocated for the bootcamp partition. Once the ...


0

These issues sound related to your problem: Can't get full screen Centos-64 guest - vista 64 host Help with virtualbox In these they're saying that your xorg.conf file should not include any specific display settings for the screen resolution. I would experiment with adding/removing a line like this in my xorg.conf to confirm: Modes "1280x1024" ...


0

Did you install the guest additions? How much video memory have you set for the display? 3D acceleration enabled? What does /usr/share/xresprobe/xorg.conf show?


0

Red hat Enterprise linux - how do i install copy paste easy way SSL/HTTPS? (its not rocket science anyway!). 1) Ask your domain provider to give you three license files which is like a) CERTIFICATE -----BEGIN CERTIFICATE----- MIIEvTCCA6WgAwIBAgIS b) KEY -----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAK c) INTERMEDIATE (ROOT CA) -----BEGIN ...


1

Put it into your ~/.Xdefaults such as: emacs*font: -*-fixed-medium-r-normal-*-15-*-100-100-*-*-iso8859-* Then merge it to the X resource database with: xrdb -merge ~/.Xdefaults


1

With bash ≥4, run shopt -s extglob to make **/ traverse directories recursively. (Beware that this traverses symbolic links to directories. In zsh, you don't need any special setup, and **/ doesn't descend into symlinks, but ***/ does.) Then a simple loop suffices: err= for z in **/*.gz; do gunzip <"$z" >"${z%.gz}" && touch -r "$z" ...


1

Please see this post on SF about the same issue. It boils down to an issue of netmasks on the clients.


1

This turned out to be a Java issue. I had Java jdk 1.7 (downloaded from the Java homepage) installed on the server. Instead I've uninstalled it and used yum install java-1.6.0-openjdk instead. Since then the screen has not crashed a single time.


0

find . -name \*.gz | parallel gzip -dc {} \> {.} {.} is an input line without an extension The default delimiter is just linefeed find . -name \*.gz | while read f; do gzip -dc "$f" > "${f%.gz}"; done Add IFS= or -r if the input lines can start or end with characters in IFS or if they can contain backslashes


1

Doing an apache configurations is not enough. To make it work you have to configure multiple IP Address into your Centos (RedHat) box. Assuming that you have only one phisical network interface eth0, then you have this file that contain all the relevant parameters : $ cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static ...


1

Yes, it's too variable for there to be an automated way to look it up. Easiest way to find what package provides what file is to issue a yum whatprovides for instance to figure out what package you have to install to get the setcap command you can issue either a yum whatprovides */setcap or yum whatprovides /usr/sbin/setcap That will help you work around ...


2

Yes you'll need to do this manually. Also take note that some packages go by different names in Debian/Ubuntu vs. CentOS/RHEL/Fedora, so comparing them is going to be tricky. rpm & apt commands These sites include nice tables that show particular package management tasks and how to perform them using the corresponding commands on CentOS/RHEL/Fedora and ...


0

Based on the instructions, I finally got the USB install working using livecd-iso-to-disk, and posted the instructions at http://brakkee.org/site/2013/05/09/creating-a-usb-install-for-centos-6-4/ The post with the commandline for livecd-iso-to-disk on this page got me to try something else than before (basically using /dev/sdb1 instead of /dev/sdb in the ...


1

It is difficult to do this without using an helper script (or a bash function) as done in another answer but not impossible. Here using -execdir option of find and some bash parameter expansion. find /opt/fooapp/foosubdirectory -name '*.gz' -execdir /bin/bash -c 'pwd ; echo ${0%.gz}; cp ${0} ${0%.gz}.tmp.gz ; gunzip ${0%.gz}.tmp.gz ; mv ${0%.gz}.tmp ...


5

Although you can parse the output from a find you have to take care of spaces etc. Unfortunately gunzip does not have a --keep/-k flag for keeping (like bzip2 and xz do have). If would make a small script gunzipkeep that takes one parameter (the gzipped file) and does the decompression, put that script somewhere in your $PATH and call it with: find ...


1

You probably want the disk mounted automatically. You need an entry in /etc/fstab for this. You can do this with any editor (just copy another line and modify it) but there certainly is a distro tool for the job (I don't know CentOS, maybe someone else can add this information). If you use an editor then first make a backup of the file and after the ...


3

The error here was due to not having enough RAM on the VirtualMachine. Running strace ./programname indicated that the program was being killed just as it started running, before loading any of the libraries. Increasing the amount of RAM available ensured that the program could work. Useful responses There were some useful responses from others namely @slm ...


1

Depends on what things you edited in the mentioned files. Probably, as Zoredache mentioned, you forgot to change the /home/mark to /home/john either in the passwd or on the filesystem. Also there is an entry in passwd which tells the default shell for the user. You can also set default shell of existing user by usermod -s <path to shell> ...


2

Can you post some of the libraries that it does link to (from the original system)? You might just need to install some missing libraries. Typically on a CentOS system it's just a matter of running a yum command like so: yum install <package name> You can work backwards from the original system like so: $ ldd /bin/ls linux-vdso.so.1 => ...


0

Monitoring This is a pretty wide open question. There are tons of applications that you can use to monitor the load of a server's CPU, network traffic, file I/O, etc. At the most basic level I would start by monitoring the VMs CPU load. You can monitor this in 2 ways, either within the VMs themselves or externally on the VM Hosts. Monitoring through the ...


0

You can run ps -C qemu-kvm -o pid,time,etime,args on the host regularly and check the change in CPU time (the time field). That allows you an assessment over a larger period. You may save the results from time to time in order to not lose them when a VM crashes or is shut down.


1

The answer is in your question: you try to run an application which was compiled for GNU/Linux one year ago and you try to run it with new libraries, which may not be compatible or available anymore. At this point, you have two choices. If you can recompile it (which I doubt, if I understand well your case), it will run because it will be relinked with ...


1

Debugging the issue Are the other systems identical to this system? You're going to have to determine that they are. There has to be something that's fundamentally different between them. Firmware? Same RPM versions? You can use tools such as lshw, dmidecode, and looking at the dmesg log for clues as to what's different and what's the root cause. I'd get ...


3

That is possible. It requires another Linux to boot (CD/DVD is OK) some spare space outside the PV (100M would be good) a certain amount of fearlessness... Then you copy a block from the encrypted volume to the area outside the PV and (after success) to the unencrypted base device. After that you increase a counter in the safe area so that you can ...


0

The following StackOverflow question may help. You can extract the kernel's .config file and inspect it for the architecture selected: http://stackoverflow.com/questions/14958192/getting-config-from-linux-kernel-image Since this is a CentOS kernel image, it probably has the IKCONFIG flag set. Most compiled kernels distributed have.


2

Edit the ifcfg for this interface. For example, using wlan0. /etc/sysconfig/network-scripts/ifcfg-wlan0 Verify that the ONBOOT selection is enabled. ONBOOT="yes" Configure services to run at boot chkconfig messagebus off chkconfig wpa_supplicant off chkconfig NetworkManager off chkconfig network on Reference link


0

How can i get the status (Success/Failure)? I have a shell file rsyncCommand.sh with code as below which generates RsyncLog.txt file. I want to add a column success/failure and check whether rsync was a success or a failure. In addition , want o send an email notification in case it was a failure. #!/bin/bash fileCreationPath="/u01/Oracle/SyncScriptFolder" ...


0

You need Virtual Box guest extensions. In order to install them you first need the RPMForge repository added for yum, follow these instructions: http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-5aabf02717d5b6b12d47edbc5811404998926a1b Then run this command in a terminal: yum install dkms


1

You can use the following steps to compile tmux 1.7 on CentOS 5.8: Install developer tools yum groupinstall "Development Libraries" yum groupinstall "Development Tools" yum install rpm-build gcc Setup .rpmmacros file $ cat > /home/<myusername>/.rpmmacros << EOF %packager Your Name %vendor Your Orgnazation %_topdir ...


0

That command would have resulted in: File or folder /home/nginx/crap/mymods All directories at / (in theory) All files and directories in /home/nginx/crap/ moved into last directory given by * in /home/nginx/crap/. As in: ls -d /home/nginx/crap/* afile1 afile2 dir1 dir2 Then everything would be put into dir2. If the last entry of * was a file the ...


2

You most likely moved the files at /*, which is essentially everything, given / is the top level directory and you move everything, *, under it. I guess my question would be where did you move it to? You might be able to move everything back if you can figure out where you moved it to. You'll have to call the mv command directly (ie. /accident/dir/mv) given ...



Top 50 recent answers are included