Questions tagged [centos]

Community ENTerprise Operating System; a Linux distribution based on Red Hat Enterprise Linux widely used on web servers.

Filter by
Sorted by
Tagged with
4 votes
2 answers
436 views

Connecting a MIDI Controller to CentOS5

Edit: I'm trying a different tack at the problem, by using /dev/midi with C. Hello all! I recently got a Akai MPD24 MIDI controller, as part of a piece of software I'm writing. I'm looking to use the ...
user1607's user avatar
  • 181
4 votes
1 answer
1k views

Not the same output format from `df` in different Linux distributions

In Ubuntu the output of this command df --exclude={tmpfs,devtmpfs,squashfs,overlay} | sed -e /^Filesystem/d | awk '{print $6 " " $1 " " $3 " " $4 " " $5}' is: /...
Piduna's user avatar
  • 153
4 votes
1 answer
8k views

VirtualBox - shared clipboard not working

Months ago I followed these steps and got shared clipboard working: https://superuser.com/a/42140 Now, I didn't shut off my VM for several days, but instead just saved the current state. I powered it ...
user3893623's user avatar
4 votes
3 answers
22k views

Google Chrome on a fresh CentOS 7.1 not starting up

I am having a bad time trying to run Chrome on my CentOS 7.1 server. I know, it does not have a screen, it's a server. But I installed GNOME anyway and using VNC I can see the screen on a remote ...
Mariana's user avatar
  • 79
4 votes
4 answers
28k views

How to make my default gateway permanent in CentOS? So that after a reboot it does not get lost

I have a CentOS running. It is important to have my CentOS available when I am remotely connected to a VPN router. I tried to add a default gateway to the VPN router, but after reboot it goes away. ...
YumYumYum's user avatar
  • 1,687
3 votes
1 answer
101 views

Special instructions for CentOS VBox virtual machine?

I am gearing up to create a CentOS 5.5 server virtual machine in VBox and was wondering if there are special instructions, configurations or settings that I should be aware of ahead of time. ...
pnongrata's user avatar
  • 2,822
3 votes
3 answers
9k views

How to compile FFMPEG with h.265, h.264 and vp9 support on CentOS

I was using this https://trac.ffmpeg.org/wiki/CompilationGuide/Centos instructions to get through the process but ran into errors. cat /etc/centos-release CentOS Linux release 7.31611 (Core) What ...
Steffen Roller's user avatar
3 votes
1 answer
408 views

certbot-auto fails to install automatic renewal?

I am using kernel 3.10 on CentOS 7. I have successfully installed CertBot 1.10.1 using alternative installation instructions as certbot-auto. Running certbot-auto successfully generated certificates ...
Alex's user avatar
  • 192
3 votes
2 answers
2k views

Resolving unix server disk space not adding up

I'm trying to evaluate where my disk space on my unix server is distributed. In order to see disk space current status I'm running: df -h But when trying to evaluate what is taking the disk space and ...
Noam's user avatar
  • 181
3 votes
2 answers
18k views

Uninstall the VirtualBox guest addition on CentOS 7?

I'm trying to uninstall the VirtualBox guest addition for a CentOS virtual machine. How do I do so?
Hazman Firmanshah's user avatar
3 votes
2 answers
9k views

SSH public keys not working

I've spent a few hours trying to solve this, but have gotten nowhere. The server is running CentOS 6 and using OpenSSH. The client is running OpenSSH too. I created a public key on the client (my ...
user avatar
3 votes
2 answers
8k views

Redirect stdout to a file when process is run in background

How can I redirect the stdout of a program to a file when it's run in the background? I have a program that generates output every second. When I run it normally and redirect to a file, the output ...
Rauffle's user avatar
  • 664
3 votes
3 answers
19k views

CentOS 7 - Won't accept any SSL certificates

I have a problem on my CentOS 7 box doing anything that requires SSL, including curl, wget or updating via YUM. The output is always the same: [root@localhost ~]# curl -I -v https://google.com * ...
user avatar
3 votes
1 answer
3k views

Command running as root but not with sudo

I'm currently configuring a Samba 4 DC on CentOS 7. As myself, samba-tool runs fine but when I run sudo samba-tool I get command not found. samba-tool is located in /usr/local/samba/bin. I've added ...
Oliver Benning's user avatar
3 votes
3 answers
4k views

ssh refuses to authenticate keys

So I am setting up a connection between my machine [fedora 17] and a virtual machine running in Virtual Box in which is running CentOS 5. I have installed openssh from the repositories on CentOS, and ...
MixturaDementiae's user avatar
3 votes
1 answer
3k views

systemd-udevd.service ignoring 60-net.rules

I've tried my hardest to get this to work without asking for help. I can't figure it out. I have a machine that has 6 ethernet ports. I want them to be consistently named eth0 through eth5 just as we ...
dutsnekcirf's user avatar
3 votes
1 answer
639 views

Linux: only allow outgoing connections to specific domains

I have a CentOS server and only want to allow outgoing connections to specific domains. (allowlist) My thought was to have a DNS proxy which adds the allowed ips (only ipv4 needed) to nftable named ...
Alai's user avatar
  • 73
3 votes
1 answer
20k views

How to force `yum reinstall` to overwrite changed files in a `/var` sub-directory?

I have a software package[1] that is already being used by multiple users. Its RPM is created with Cmake. For historical reasons, the software package installs some files in a subdirectory of /...
boardrider's user avatar
  • 1,143
2 votes
1 answer
1k views

Centos Sftp Ssh - How always create files with rwx-rwx-r-x and always owned by a certain group

I have a user myuser, which is only allowed to connect to ssh via sftp. I'd like this user to always create files with rwx-rwx-r-x and always owned by the group apache. I've tried to accomplish the ...
Jojo Coana's user avatar
2 votes
1 answer
3k views

Problems installing x2goserver-xsession on a fresh install of CentOS 7.1 on Amazon EC2

I have a fresh install of CentOS 7.1 on Amazon EC2. After boot I executed: yum update Then I enabled an EPEL with: rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch....
Mariana's user avatar
  • 79
2 votes
5 answers
6k views

How to work around shell limitation of 'Argument list too long'?

How can I work around the bash shell limitation of 'Argument list too long' when using filename wildcards that match a ton of files in /tmp/? [my-centos4 tmp] rm -rf /tmp/myLocalFiles* bash: /bin/rm: ...
WilliamKF's user avatar
  • 7,918
2 votes
2 answers
5k views

SSH through a proxy?

I am trying to connect to a SSH server through a proxy on CentOS 7. I found some solutions with ProxyCommand and connect-proxy but this one is not available for CentOS 7. I found another way with nc (...
None's user avatar
  • 217
2 votes
2 answers
700 views

Tracing what program is making a network connnection? (CentOS)

I was wondering if it is possible to find out which process is trying to make a specific network connection. On a server I support which hosts websites for about 200 users, the iptables firewall keeps ...
Joseph's user avatar
  • 515
2 votes
1 answer
5k views

How reliable are SHA1 sum and MD5 sums on very large files?

I constantly transfer disk images and virtual machine images (usually 800GB to nearly 1 TB per file) to a cloud server via rclone using SSH, and I wonder how reliable are sha1sum and md5sum when it ...
Loo Soo Yong's user avatar
2 votes
3 answers
4k views

Meaning of netstat output?

When I type "sudo netstat -an", this is part of the output I get: Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 192.99.202.17:39922 ...
Henley Wing's user avatar
2 votes
1 answer
4k views

Broken sudo on amazon web services ec2 linux centOS

So I had no idea of the dangers of messing with the /etc/sudoers file, and was just trying to make a simple change in there. However, I seem to have put something with incorrect syntax in there, ...
Evan's user avatar
  • 123
2 votes
2 answers
2k views

NFS from MacOS to Centos in virtualbox

I'm trying to share files from my Mac to a web server hosted in VirtualBox running Centos. Mac I've created the file /etc/exports. It has the following line /Users/jason/projects -alldirs -network ...
JasonM's user avatar
  • 21
2 votes
2 answers
2k views

Linux: Create a user than can access other users' files

I'm trying to have a mother user, with the root directory /home/user1 and have the rest of the users in /home/user1/users. How can I make it so the users still own their files, but the user user1 is ...
hexacyanide's user avatar
2 votes
2 answers
6k views

Partition is missing in /dev

I'm having a strange problem since I moved from Centos5 to Centos6. I have three disks, first two are used as a RAID1, and third one is a stand-alone backup disk that is not listed in /etc/fstab (it ...
haimg's user avatar
  • 22.5k
2 votes
0 answers
481 views

CENTOS 7.2 + installing docker on OS with XFS file system

We have 12 machines with CentOS 7 servers ( VM servers ) where the root file system is XFS (created with ftype=0, default CentOS setting at the time the system was installed). And we want to install ...
King David's user avatar
2 votes
3 answers
6k views

Creating a bootable USB drive from a distro split over two DVD ISOs

I am searching and not finding the right way to do this. Please note, I don't think I'm trying for anything strange here. I just want to make a bootable USB stick of a single OS that happens to be ...
Kev's user avatar
  • 1,154
2 votes
2 answers
15k views

CentOS Dual-screen doesn't work

I am running a CentOS 5.3 x86_64 (fully updated as of today). It has a video card I cannot identify -- I run lspci and it identifies itself as: 01:00.0 VGA compatible controller: nVidia Corporation ...
David Mackintosh's user avatar
2 votes
0 answers
142 views

1 chroot sftp user that is able to traverse all other chroot sftp users files/folders

I have a chroot environment that I have setup on CentOS 6. We have users for all of our trading partners and I would like to create an internal user for another department that can sftp in and only ...
camarokris's user avatar
2 votes
2 answers
23k views

How to install Google's chrome on CentOS 5.3?

Google released their Chrome browser for linux but I got an error when installing. I was informed that I need a higher lsb version? What is lsb? Where can I find the latest lsb package/source ? By ...
Mickey Shine's user avatar
2 votes
2 answers
2k views

LUKS encryption with non-interactive login on RHEL6

I need to have LUKS encryption on this system but during lab development I don't want to have to enter the password at the console each reboot. I'd like a way to set a simple password that can be ...
sp00led's user avatar
  • 91
2 votes
1 answer
4k views

How do I copy large datasets between two VirtualBox virtual machines?

I have two separate CentOS 7 virtual machines running in VirtualBox that is installed in a Windows 8.1 host. How do I transfer large amounts of data from one of the CentOS 7 virtual machines to the ...
CodeMed's user avatar
  • 354
1 vote
1 answer
481 views

CentOS and /dev/midi support

I recently asked earlier about connecting a MIDI controller to CentOS. I've got the same problem, except now I'm backtracing to find a different way at it. I'm talking about the elusive /dev/midi file ...
user1607's user avatar
  • 181
1 vote
2 answers
16k views

Getting an “is not a block special device.” error when trying to mount an 8TB disk in CentOS 7.6

I'm trying to format and mount a 8TB external as an ext4 and it doesn't seem to work right. The drive is a Seagate 8TB expansion desktop drive. Model number is STEB8000402. I can create my partition ...
acme64's user avatar
  • 445
1 vote
1 answer
5k views

sudo: no valid sudoers sources found, quitting

On Amazon Workspaces I ran sudo chmod -R 777 /etc in order to create a file to install Docker but now after every command with sudo I run into this error sudo: /etc/sudo.conf is world writable sudo: /...
Mike D Hovhannisyan's user avatar
1 vote
1 answer
476 views

Is there a way to configure traceroute such that the -T or -I flags do not require root privs to perform?

I am using Centos 7. Basically I just want any user to be able to do a ICMP or TCP traceroute. Is there a way to configure traceroute such that the -T or -I flags do not require root privilegess to ...
mython paster's user avatar
1 vote
1 answer
5k views

Which flags to use on rsync to achieve full replication?

Hi since I have searched stack overflow and did not get info about this, I need to ask again with specific requirements. I have an old storage with approx. 4TB of data and I would like to sync it with ...
dovla110010101's user avatar
1 vote
0 answers
281 views

Measure ram speed for application/ current speed utilization

Is there a way to measure the current ram speed? I have an application which needs a lot of ram and I'm tuning performance and it looks like I have hit the limit of ram speed, but I have to measure it ...
Jan's user avatar
  • 181
1 vote
1 answer
2k views

Xserver doesn't work unless DISPLAY=0.0

Using CentOS. I cannot connect remotely and I believe it is related to fact I can only connect locally if DISPLAY is set to :0.0. Something is misconfigured but I can't figure out what. >xhost + ...
Zigster's user avatar
  • 172
1 vote
1 answer
4k views

Nano displays spaces instead of some symbols

I have a feeling that I have this bug, however I've just installed new Nano 4.7 from sources When I open files, a lot of symbols (even non-unicode) as not displayed properly, but displayed as spaces. ...
The Godfather's user avatar
1 vote
2 answers
4k views

Nftables DNAT doesn't seem to be working

I am trying to setup a DNAT on my new centos 8 using nftables. This utility (and centos 8) is new to me, I've been using iptables (centos through 6) for ages. My assumption is that I did not setup ...
ciuly's user avatar
  • 315
1 vote
1 answer
945 views

how do I ssh from a vm to a private server through an ethernet cable?

A devbox has Windows 8.1 as the host OS running VirtualBox and a virtual machine with CentOS 7 for development. The devbox is connected to a CentOS 7 development server through an Ethernet cable. The ...
CodeMed's user avatar
  • 354
1 vote
2 answers
757 views

Passwordless SSH (Windows --> CentOS)

I am trying to get passwordless SSH authentication to work from a Windows 7 machine to local server. Windows machine: My login name in this machine is MY_LOGIN_NAME. I am using Cygwin as the command ...
tchakravarty's user avatar
1 vote
3 answers
11k views

Automatically deny hacking attempts in CentOS?

My server is under attack. I am logging this kind of attempts: Sep 22 06:39:11 s1574**** sshd[16453]: Failed password for invalid user amber from 64.215.17.4 port 35182 ssh2 Sep 22 04:39:11 ...
spacebiker's user avatar
1 vote
3 answers
10k views

CentOs 7.1 - Install Tomcat 8

I am using this tutorial as a setup reference to getting a Tomcat 8 running on CentOs 7.1, but after typing: [root@localhost tomcat]# sudo systemctl start tomcat I get the error: Job for tomcat....
kiltek's user avatar
  • 141
1 vote
0 answers
102 views

Configuring my Bridged Network on a CentOS Virtual Machine

I am having trouble configuring my Bridged Network Connection on my CentOS 6.7 Virtual Machine. I am trying to run a R Shiny-Server Web Application on this Virtual Machine. When I try to go to :3838,...
Gary's user avatar
  • 163