Questions specific to the CentOS Linux distribution. Use this tag if your question relates to how the CentOS distribution affects your problem; do not use it if you just happen to be using CentOS and your question is about a specific configuration detail or syntax.

learn more… | top users | synonyms (2)

0
votes
2answers
10k views

How can I see settings of the email server?

I have root access to a Linux server (CentOS 5.10). I want to see the email server's settings such as whether SMPT is working, wheter there is an email server, port number, does it require SSL, what ...
1
vote
2answers
1k views

Failed to join domain: failed to set machine kerberos encryption types: Insufficient access

did someone have this error when try to join CentOS 7 to Active Directory. I tried on a various ways(via cli, gui, tui) and always get same error. Failed to join domain: failed to set machine ...
1
vote
2answers
2k views

Installing MySQL on CentOS throws error that cannot find mysqld.sock

I have yum install mysql in CentOS 6.4. Now, when I use mysql command, it throws the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld....
0
votes
1answer
24 views

Add shared module to apache CentOS7

I have practiced with my apache 2.4.6 on CentOS7 and I have tried to add shared module. I can list my compiled modules using this command httpd -l. All shared modules is located in /etc/httpd/modules. ...
1
vote
2answers
1k views

install opencv-2.4-9 on centos 6.5 with cuda 5.5 support

I can't seem to install opencv 2.4.9 on centos 6.5 with cuda 5.5 support. This is my cmake output: [root@cadejos-0 opencv]# cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/opt/opencv -D ...
0
votes
1answer
41 views

Set Document Root for site?

Apologies up front for the silly noob question .... I have a CentoOS 6.7 server set up with Apache. I can confirm it is working correctly - say the machine's IP is 123.456.789.123, I can navigate to ...
3
votes
2answers
967 views

tmux unable to start a new session? “1;2c”

Introduction I just installed tmux onto my CentOS 7 machine, but I have encountered a bewildering issue. Whenever I try to attempt to start up a session using tmux or tmux new -s session-name, it ...
5
votes
2answers
10k views

How can I add an application to the Favorites section of the Applications menu in CentOS 7?

I have created a custom application entry in the applications menu for Eclipse as follows in a file /usr/share/applications/eclipse.desktop as follows [Desktop Entry] Version=1.0 Name=Eclipse Exec=...
7
votes
3answers
62k views

pdksh missing from RHEL 6 and CentOS 6?

The package pdksh does not exist on RHEL 6 or CentOS 6 when I try to install it through yum. So my questions: Why is it no longer available in the default repositories? It is available in version 5....
0
votes
0answers
24 views

Error while shrinking root filesystem without booting a lived in centos 7 [duplicate]

I am following the steps in How to shrink root filesystem without booting a livecd After unmounting /oldroot, I am getting below error while resizing the rootlv. Please help. CentOs 7 ...
12
votes
1answer
5k views

How to shrink root filesystem without booting a livecd

I find myself needing to rearrange a system's partitions to move data previously under the root filesystem into dedicated mount points. The volumes are all in LVM, so this is relatively easy: create ...
2
votes
1answer
94 views

clang-tidy install

I have clang installed from packages on both Ubuntu 14.07, Centos 7 and Fedoara 22. I would like to use clang-tidy but can neither find a package nor how to install it without installing clang from ...
0
votes
1answer
3k views

No IP address on VMware running centos 7

I just now installed Cent OS 7 on my VMware 8 and I am not able to connect it to a network. I checked the VM network and its mapped to the physical NIC. The same setting work like charm on my CentOS ...
0
votes
1answer
9k views

How can I extend VMware Partition on Centos 7 using GParted?

I've a problem with increasing a partition from 20GB to 120GB, VMDK file. Here is what I've done: using vmware-diskmanager to increase vmdk file from 20 GB - 120 GB. It's ok. download and boot from ...
0
votes
1answer
2k views

Update yum fails

I'm using centOS 6.4. I'm getting this error when I use "yum update" in the terminal window. Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os ...
1
vote
3answers
95 views

preventing DoS attack in Apache webserver

This is the version of apache we're using - httpd-2.2.15-39.el6.centos.x86_64 We recently had our website down due to DoS attack and hence started exploring iptables, and how to use it to prevent DoS ...
1
vote
1answer
925 views

centos: ping6 unknown host

I have centos 6.5 with ipv6 enabled and working (partially). When I'm trying to execute "ping6 bin6.it" it returns error "unknown host": [root@centos ~]# ping6 bin6.it unknown host Host is ...
0
votes
1answer
2k views

Unable to view traps through snmptrad?

I've been unable to view traps through snmptrapd. I generated a SNMP trap manually using the below provided snmptrap command: snmptrap -c public -v 2c -n "" localhost 0 uptime But I'm ...
2
votes
1answer
5k views

SELinux Write access for vsftpd and samba

This should be easy enough I think, but I'm new to SELinux. I have a CentOS 6 file server. I have some LVM file systems at /var/media and I want to use both Samba and FTP to share them with a Windows ...
0
votes
1answer
47 views

Mixing yum repos for different OS major versions does not work

First of all: I am well aware that in general it is a very bad idea to mix yum repos for different major OS versions. However on CentOS 7 I need a few packages from CentOS 6. So I have added CentOS 6 ...
3
votes
2answers
1k views

How to scroll in a terminal by line in GNOME Terminal 2.31.3?

I use Shift+(PgUp/PgDown) while scrolling in the terminal. But it seems to scroll one screen (or a half may be) at a time. I feel comfortable scrolling the terminal by line with the mouse, but don't ...
2
votes
1answer
45 views

sed unterminated `s' command [closed]

I'm getting: sed: -e expression #1, char 46: unterminated `s' command On this code: sed -i.bak -c 's|net.ipv4.ip_forward.*|net.ipv4.ip_forward = 1|' /etc/sysctl.conf My editor is showing that ...
1
vote
1answer
1k views

CentOS with AutoSSH, Port Forwarding Clarification

I'm using autossh and set it up like shown in the following example: http://surniaulula.com/2012/12/10/autossh-startup-script-for-multiple-tunnels/ I found it works really well, but need some ...
1
vote
1answer
40 views

kick off a systemd service just before shutdown

I am developing a systemd shutdown script (unit file) for a postgresql database and I followed the below two posts but could not get it to work. How to run a script with systemd right before shutdown?...
4
votes
1answer
214 views

How to know the utilization of intel CPU and GPU in Linux?

In ubuntu, to know the time taken by CPU to run a program we would use time in terminal. Whereas in case of intel GPU, we would use intel_gpu_time. But in case of CentOS time command works. But ...
2
votes
1answer
989 views

Corosync & Pacemaker IPTables Rules

When using Corosync with two rings via multi-cast addresses 226.94.1.1 (Port 5405) & 226.94.1.2 (Port 5406) what iptables rules are required to allow two nodes to communicate optimally without ...
0
votes
1answer
36 views

YUM update not working (Centos7, timeout) [closed]

Ive set up a clean Centos7 (1511) minimal install on a dedicated machine. Internet IPv4 connectivity works (ping mirrorlist.centos.org). I am unable to execute yum update. I get the following error: ...
0
votes
1answer
39 views

CentOS, how to watch YouTube videos with Mozilla Firefox?

I'm currently using a CentOS Linux release 7.2.1511 (Core) operating system on a Dell machine. I've been trying to watch YouTube videos with Mozilla Firefox ESR 45.1.1, but it never worked. ("It's ...
3
votes
1answer
820 views

How to enable systemd user sessions for remote logins on CentOS 7?

I am trying to enable systemd user sessions on my CentOS 7 server. All the pieces seem to be there, and I have also run loginctl enable-linger <user>, but I don't have a systemd user session (or ...
0
votes
1answer
22 views

Install samba4.4.4 from source on centos7

Following the steps on Samba wiki page, I was able to build the samba source code. However, after sudo make install, I could not start the samba service since there is no systemd entry under /usr/lib/...
0
votes
0answers
27 views

Trying to find something that can automatically delete certain lines of a text file after a certain amount of days

For example if I have test.txt and when I open it up it has 1 2 on the first line and 3 4 on the second. But after 2 days I want the second line gone but basically automated.
1
vote
1answer
21 views

Ask for password while mounting cifs share

I am looking for a way to make the mount command prompt for the password so my password doesn't show up in any system history, I thought I would have it run read -s -p command inside of the mount ...
4
votes
4answers
40k views

What are the settings to correct vsftpd “500 OOPS: cannot change directory” error?

My question is what settings do I need to change and/or commands to run to allow me to log into my vsftpd system? I am getting this error, when I login using ftp instead of sftp: Name (localhost:...
0
votes
0answers
14 views

Trouble mounting a centos NFS export on Windows 2012 R2

Hoping somebody can help me out here. Have been struggling with this for a while now. I have a Centos 6.7 box which has NFS installed. I have an export/share configured; my exports file is like so.....
0
votes
3answers
35 views

How to stop receiving spam email from server

I have CentOS and the hosting provider provided me Plesk Control Panel. We used to have a problem that website was sending loads of spam emails. It was new joomla installed and it has ...
0
votes
0answers
18 views

Install CentOS 6.2 GUI with XenServer 6.5

This is my first time to use XenServer 6.5. I want to add a CentOS 6.2 Virtual Machine into my XenServer. I put the CentOS 6.2 iso and added > vnc in boot parameter. Below are the screenshot: After ...
0
votes
1answer
151 views

Permissions for non-htdocs directory

I have created a folder outside of my htdocs directory as a means of adding extra security for downloadable digital goods to be sold from within a Magento storefront; so my question is: what ...
0
votes
1answer
225 views

why my subdomain is not accessible from the Internet?

I am using virtualhost in Centos 6.6. This is my conf file: <VirtualHost *:80> ServerName test.mydomain.ca ServerAlias test.mydomain.ca DocumentRoot /var/www/test_mydomain/...
0
votes
1answer
3k views

mcrypt, EPEL and CentOS 6.4

I am having issues installing php-mcrypt. I am not an administrator of any level. I have performed the following. Installed EPEL Installed REMI Configured EPEL Updated YUM Cleaned YUM Installed ...
4
votes
1answer
1k views

initramfs / UUID problems after cloning

So I just cloned a Centos7 "everything install" VM to a physical disk using VMWare Workstation and Clonezilla using the instructions here: https://www.howtoforge.com/converting-a-vmware-image-to-a-...
0
votes
2answers
2k views

ffprobe or avprobe not found. Please install one

I want to add tags to mp3 converted with youtube-dl & ffmpeg in CentOS 6: command line : youtube-dl -o '/Output/qpgTC9MDx1o.mp3' qpgTC9MDx1o -f bestaudio --extract-audio --metadata-from-title "%(...
-4
votes
0answers
21 views

how can create proxy squid as proxy server in centOS 7? [closed]

I want to create a proxy server in CentOS 7. If not centOS 7, I wonder what operating system is best forcreate squid proxy. i see them use window,ubuntu. but by the way, i just choice centOS. What I ...
0
votes
1answer
31 views

I am facing huge attack of layer 7 on port 3306 can anyone help me?

I am facing huge attack of layer 7 on port 3306 can anyone help me? my iptables rules are good too 184 9568 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 ...
1
vote
1answer
50 views

Adding user to ownership in addition to another user [closed]

I had some problems with permissions, the programmers of my website wanted me to add the admin user to the apache group and then set some permissions. My knowledge of Linux is quite limited, so I ...
0
votes
2answers
3k views

Apache won't restart after configuring Virtual Hosts

I am trying to make a web server, but after adding the virtual hosts config, apache won't restart. It had several errors but I've managed to fix most of them. Now I don't know what is happening ...
1
vote
0answers
16 views

Changing CentOS 7 machines disables terminal access during background task

Based on this other posting, I typed the following command into a CentOS 7 terminal on a devbox that has the gnome GUI, and was able to continue to use the terminal for other commands while the ...
1
vote
0answers
13 views

Why do I get “no credentials cache” error when mounting Kerberized NFS share?

I have two systems on a local network, nfsclient (CentOS 7) and nfsserver (CentOS 6). These names correctly resolve to their IP addresses, and Kerberos is working between them (nfsserver is the KDC). ...
0
votes
0answers
27 views

How to disable IBus in CentOS 7?

There's a conflict with intellij IDEA for some reason. I see lots of pages on how to disable it in ubuntu (system settings gui), but nothing for CentOS.
1
vote
2answers
110 views

Apache shows Blank page for PHP

I've installed a fresh version of Centos 7,I'm new to Linux. I installed Apache using yum -y install httpd and i can open the test page and everything is ok with it. after that i installed PHP(5.4....
0
votes
1answer
3k views

What variables are valid within /etc/default/useradd file?

My /etc/default/useradd file is as follow: # useradd defaults file GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel CREATE_MAIL_SPOOL=yes man page for useradd provides many ...