Tag Info

New answers tagged

0

As Python version is 3.3.2, install pip first. wget -O - 'https://raw.github.com/pypa/pip/master/contrib/get-pip.py' | python3 - Install SIP wget -O - 'http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.5/sip-4.16.5.tar.gz' | zcat | tar xf - --no-same-owner cd sip-4.16.5 && python3 configure.py && make && sudo make install ...


5

You can boot grub over the network through TFTP. grub can then present a menu of choices for the next thing to boot in the manner that it usually does. Those choices can be various OS installers. grub can load the chosen OS installer also through TFTP. I know that the Debian (and Ubuntu) installer can be booted as a single self-contained Linux kernel + ...


0

SOA #1. It think, that problem is in downloaded archive. Check md5sum of archive: [root@centos6 ~]# md5sum /root/tmp/pear/cache/zmq-1.1.2.tgz 74da2fc1aa83e6fa27acffb9a37596b9 /root/tmp/pear/cache/zmq-1.1.2.tgz If it isn't the same - remove it and try download it again. Alternativly - you can invoke pecl with -vv parameter - then you should see more ...


1

The recommended method for temporarily locking accounts in EL7 is with pam_faillock. To lock out any non-root user after three unsuccessful attempts and unlock that user after 10 minutes, add the following lines to the auth section of the /etc/pam.d/system-auth and /etc/pam.d/password-auth files: auth required pam_faillock.so preauth ...


1

The faillog utility was removed before CentOS 6 dropped, much less 7.


1

As usual I worked it out 30 seconds after creating this post. I was creating the folder in the same SSH session, ie.. under the root user, so even though the /home/user folder belonged to 'user' the public_html folder belonged to root. Letting the 'user' create the public_html folder allowed me to work within it and of course the domain is now serving the ...


0

So I'm an Amazon AWS customer and I found the simplest solution was to move away from Amazons home grown AMI version and to install the latest version of CentOS. After migrating to CentOS, the missing dependencies we're no longer a factor.


0

There isn't really any such thing as a guaranteed set of directories to include in PATH. You'll find /bin but everything else is just probable or possible. Users on my systems will have something like $HOME/bin:/usr/local/bin:/bin:/usr/bin. Root users would have /usr/local/sbin:/sbin:/usr/sbin in there too. If your file might be in one of a number of places ...


0

The interactive shell loads .bashrc, the script doesn't. If your $PATH is set in .bashrc and you don't export it, the script doesn't inherit your modifications to $PATH. If you call export PATH, the script should see it. Check export -p to see what variables get exported ($PATH should be among them). Also check $BASH_ENV which could potentially override your ...


0

Generally, if you are trying to run something from a package (i.e. pre-compiled binaries) you could set PATH and/or LD_LIBRARY_PATH, or use chrpath to tweak the binaries themselves. If you're careful, there's no reason you cannot have many versions of BerkeleyDB installed. (The configure script is setup to make this easy, and supports --program-suffix (and ...


1

I have created a sample init script based on your question's code and determined that you need to change the one line by moving the double quote from the end to nearer the middle: daemon --user $runas "$exec" -d $config >/dev/null 2>&1 The daemon() function in /etc/init.d/functions looks at the first non-argument parameter, strips back the ...


0

The Debian Wiki has an excellent entry describing what I required. Following this I made my own rules under /etc/udev/rules.d/20-disk-bay.rules. I have only included the first two sata port mappings as an example: # There are different DEVPATHs for major kernel versions! # Example for SATA N: # # Kernel < 3 DEVPATH # *1f.2/hostN/targetN:0:0/N:0:0:0* # # ...


0

I tired to use the Debugging method above in the rsyslog.conf file but just got errors in the logs about $DebugFile etc. not being recognised as a command. My solution was to follow the process detailed for on demand debugging here ( http://www.rsyslog.com/how-to-use-debug-on-demand/ ). It's a bit long winded but at least it worked.


0

Removed Centos from hosts and added this line: mydomain.com.ip.address mydomain.com Now it works.


2

Installing GNOME-Desktop: Install GNOME Desktop Environment on here. # yum -y groups install "GNOME Desktop" Input a command like below after finishing installation: # startx GNOME Desktop Environment will start. For first booting, initial setup runs and you have to configure it for first time. Select System language first. Select your keyboard ...


0

The package you are trying to install has el6 in the version, indicating it is for CentOS 6, not 7. It appears you have added the EPEL repository for the wrong version CentOS. You should remove the yum configuration for EPEL6 and add the configuration for 7. You can add the configuration for 7 with the following: rpm -Uvh ...


1

Most likely it has to do with DNS. You said that IPADDRESS test.mydomain.ca is in your hosts file. Have you also added it to the hosts file of that second computer? Or have you added it to a public DNS server? If you have done one of those things, and you still can't reach it, there are a couple of things that could cause that: A firewall is blocking ...


1

loadkeys re-programs the terminal emulator that is built in to the kernel, via ioctl() requests through a kernel virtual terminal device. You aren't using that terminal emulator when you connect to the machine via ssh. Indeed, you aren't involving any terminal emulator, kernel or user space, on that machine at all. The terminal emulator on your local ...


1

You probably need to install e4fsprogs CentOS package before you want to create an ext4 filesystem. In general, mkfs is just a front-end for a series of mkfs.* binaries. See the following example: root@locutus:/home/asd# strace -f -e trace=execve mkfs -t asdasd /dev/whatever execve("/sbin/mkfs", ["mkfs", "-t", "asdasd", "/dev/whatever"], [/* 18 vars */]) ...


0

Finally solved it... If someone gets in a similar situation where no mysql-server install doesn't go through, after making sure that the installation steps were correct but service won't start or create necessary files see the following: Problem was: I looked at my repos, fault was there, i had corrupted repos that led to downloading and installing wrong ...


1

LoadModule Needs to point to a shared object versus whatever /usr/lib64/php is. For example: LoadModule php5_module modules/libphp5.so AddHandler php5-script .php Loading something else as php5_module might be preventing the actual module from loading (judging from the "already loaded" error message).


1

I've got a somewhat different httpd.conf entry for enabling PHP: LoadModule php5_module /etc/httpd/modules/libphp5.so <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> My observation is that the "LoadModule" directive you post above doesn't specify a .so file to load. Try to find the specific .so file, not just the ...


1

Concise Press 1 Press 2 in order to change [ ] to [x] in front of 2) I accept the license agreement Press q Accept license menu does not prompt anymore at boot Comprehensive The issue was caused because the prompt was not clear to me. First I thought that pressing c would result in continue, i.e., moving to section2, but that was not the case. A ...


1

NOTE: You have not to use LVM for / and /boot But DB: DB always be stored in /var such as mysql and psql, So need a big space for it. You can create the following question from yourself: Do we have syslog center? Do we have more than 10 effective user account? What's size of our memory? (for size of swap) What do we have packages? What's your hdd size? ...


1

IO::Socket::SSL verifies that the name in the certificate matches the name you connect to, but Crypt::SSLeay does not. Newer LWP also verify the certificate chain by default, but maybe this was also done with the older LWP version you used. I recommend you call your program with SSL debugging to see the actual cause of the problem: perl ...


0

You want to update jdk8 using "yum update"? Either with yum localinstall $NEWRPM (manual solution) OR build a repository containing the oracle-rpms and reference that enabled repositoy in /etc/yum.repos.d/ After this yum update should also update oracle-jdk.


1

You need to make sure you export the Java path in either your .bashrc or any scripts calling java binaries. export JAVA_HOME=/path/to/lib/jdk1.6.0_45 Make sure you use the correct path and jdk folder name. You point the JAVA_HOME to the parent folder that contains the bin and lib directories. Example: [User jdk1.6.0_45]$ ls -lh total 19M drwxr-xr-x. 2 ...


0

Hyper-v core server linux VM performance specs ;-) [root@centos7-serv01 vfio]# time (dd if=/dev/zero of=/tmp/test bs=64k count=16k > /dev/null; sync) 16384+0 records in 16384+0 records out 1073741824 bytes (1.1 GB) copied, 1.07525 s, 999 MB/s real 0m1.137s user 0m0.005s sys 0m0.753s [root@centos7-serv01 vfio]# time (dd if=/dev/zero ...


1

I had the same errors after a first failure caused by a missing package (gcc). So after installing gcc, another make attempt gave these errors : zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory zmalloc.h:55:2: error: #error "Newer version of jemalloc required" These errors were caused by some files left here after the failure of the ...


2

When you've been rooted (and it sounds like you have been), the recommended practice is to reinstall the OS and to carefully restore your data from backups. If it's an important system, I'd disconnect it from the network straight away. If the server isn't that important, it can be educational to spend time attempting to track down the root cause so that you ...


0

SELinux can be configured to stop programs from opening ports, even ports above 1024. This can be a useful protection against malware. If SELinux is enabled (which you can check by running getenforce - if the respons is Enforced, that means that SELinux is active), there are two ways of fixing the problem. First, the easy way. This one is to simply disable ...


0

From your description it seems that the problem isn't with the LDAP server as other servers and machines were able to authenticate without problem. My thoughts were to look at /etc/pam.d/common-auth and /etc/pam.d/common-account to have OpenSuSE read from those files for authentication.


0

while configuring , used flags : --without-libpam --without-sha-crypt . The useradd command was successfully creating users now.


1

There's a RPM variable you can define _topdir to move the default output folder of the BUILD, RPMS, SOURCES, SPECS and SRPMS folders. There are two ways to define this: Create .rpmmacros in the your folder and add %_topdir /path When you call rpmbuild add --define: rpmbuild --define "_topdir /path" -bb $specfile


1

No, it is not possible. Note that it is not just a matter of formatting. The free program in procps-ng has been recently updated to include the new MemAvailable metric that was recently introduced in the Linux kernel and that is a much better indication of the memory actually available than the typical (and often wrong) "free + buffers/cache" estimation ...


0

If you are a non-sudo user trying to bind sockets, then yes it might be a permissions problem. Have you tried running it as sudo?: sudo restart php-fpm I don't see a pid file for php-fpm, edit/add: pid = /var/run/php-fpm.pid #Change location to whatever you want, like /tmp killall php-fpm sudo restart php-fpm


0

Aha! I added: Provides: libcrypto.so.1.0.0 libssl.so.1.0.0 to the spec file, respun and installed. NOW.... openssh installs without question! Question now is.... WHY? I don't see a lib or pre-requisite in the openssh.spec file. Update Thanks to Mark for putting me onto the requires bits... figured out that I had the AutoReqProv attribute set to ...


1

I face-off a similar problem, I am using CENTOS 7, with US Keyboard Layout, but any dead key (a.k.a. tildes, ñ, etc) didn't work, because there was no way to install or setup a US International Keyboard layout. At google, I found this suggestion: yum install system-config-keyboard after that, I had available the system-config-keyboard and let me ...


0

To add to what Aleksandr said (I can't comment yet, unfortunately): smartctl -x -A -d sat+cciss,0 /dev/sda The sat+ bit gets you more than just cciss on its own - in particular, you should be able to access the individual attributes, not just the overall SMART status and computed values.


1

This doesn't seem to be an OS issue so much as a minecraft issue, so I would read through the minecraft forums for answers to this. There are tons of pages dedicated to this issue like this one: http://minecraftserverhq.com/blog/can%27t-keep-up/ Snippet: "Other info which may be useful is that this is a vps server with 3 cpu cores. I've tried to tell ...


2

The content of the RPM database and the one of the file system are independent. To prove that the libcrypto are installed from an RPM, you should check, if the files belongs to the rpm: rpm -qf /lib/libcrypto.so.1.0.0 rpm -qf /lib/libcrypto.so.1.0.1l Additionally you can do rpm -ql {RPM of libcrypto}


0

Try loading the usb-storage.ko driver using: # modprobe usb-storage


0

Your bridge is not being controlled by the network initscripts, it's being controlled by libvirt. The bridge should come up when the libvirtd service comes up. I would not run like this. I would make the bridge controlled by the network initscript, and have no bridge in the libvirt configuration. The ifcfg- files you have now are fine. Just remove the ...


0

When yum insists there are no packages to be updated, check if kernel is not excluded from updates: In /etc/yum.conf, there is usually a line similar to exclude=kernel* You need to remove kernel from the list or, if it is the only entry in the exclude list, remove the line completely or comment it out using #. Then, yum update (or yum update kernel) ...


0

Well, looks like I needed the libtalloc-devel package. yum install libtalloc-devel -y Solved! Thanks! :) want to have a look on config.log? there you have it: pastebin.com/3DfPTtVP


0

You need to query the current kernel RPM package to see which kernel is installed rpm -qa| grep kernel-2.6.32-431 If a new RPM is available install it, and then reboot your OS and check loaded kernel as below: uname -r


0

I suspect GNOME Disks will be too old to do this in CentOS, but it seems worth a look. Run the "Disks" app (maybe under a "utilities" menu), select your disk, then the ntfs partition (under Volumes), then click the cogs button under the partition. If there's an "Edit mount options", you can play with the GUI and do it that way. I'd suggest not mounting it ...


0

Just to add details to previous answers: Two character prefixes based on the type of interface: * en -- ethernet * sl -- serial line IP (slip) * wl -- wlan * ww -- wwan Type of names: * b<number> -- BCMA bus core number * ccw<name> -- CCW bus group name * ...


0

To answer my own question; The rescue image is automatically generated by dracut after a new kernel is installed, and this can be prevented by creating a file under /etc/dracut.conf.d/, containing: dracut_rescue_image="no" (The file must have a '.conf' extension)


0

Denying root login is a good decision, root is a popular target in brute-force ssh attacks. Root seems an ususual choice for owner of the web content, I use an ordinary user account. Where the development work is shared a webdeveloper group makes sense, where there is only a single developer, or the developer account is shared among several developers ...



Top 50 recent answers are included