Tag Info

New answers tagged

0

Nuke the VPS and reload from backups. I'll spend all kinds of time recovering physical machines and VMs in place, but it usually isn't worth bothering with remote VPSes, because: They're usually single-purpose machines with complete unpack-in-place backups, so rebuilding isn't difficult. Reinstalling the OS takes just a few minutes on a VPS, instead of ...


1

Also you may log in to your machine using ssh -X -Y login@hostname (if allowed by sshd settings) and start vncviewer on a remote machine.


2

Well, asides from the obvious security holes that VNC causes (seriously, key stokes are sent unencrypted so anyone in the middle can grab a password), you're going to want to make sure that you have to adjust your firewall which is in: Applications -> Firewall -> Enter your root password -> Services -> vnc-server Enable it, quit, and make sure that vnc is ...


1

After some back-and-forth through comments and chat the OP's problem is now resolved. The IMAP server needed to be specified as imap.mydomain.com instead of mydomain.com although for some reason this only worked when set using the advanced account settings, not using the account creation dialog box. In addition to mentioning this situation-specific ...


1

Comments in GNU libc sources (intl/l10nflist.c:_nl_normalize_codeset) state: There is no standard for the codeset names. Codeset names are normalized by that function to all-lowercase with all non-alphanumeric characters stripped i.e. "UTF-8" turns into "utf8". The locale names inside the locale archive are using normalized codeset names. Since ...


0

Try to install MariaDB-shared first. It should statisfy all dependencies normally provided by mariadb-libs.


0

Generally, the model right now is to just start your application directly as the single process in the container. This approach has its flaws, but also seems to be the current main thinking of containerization efforts. The other models — containers as something more like a lightweight vm, with more supporting infrastructure running — is useful too, but ...


0

Check which libraries postfix requires: rpm -q --requires postfix Check which libraries that compat RPM provides: rpm -q --provides mariadb-compat # (please check the name) If compat does provide what is needed, you can delete the 5.5. libs: sudo rpm -e mariadb-libs If that gives an error of unsatisfied references, bug the MariaDB people to provide a ...


0

There are no RPMs of MySQL 5.1 for CentOS 7. Your only chance is to take the "generic tar-ball", its installation is described in the manual. At the top of my head, I see two potential points of trouble: 1) You may need to disable SElinux. 2) Some system library may have had an API change between the build platform of the binaries and CentOS 7. I have no ...


0

I've hit the same issue, but found a working solution: reposync -c option is looking for a yum.conf, not a repository definition, so by feeding it a full yum configuration with repodir set to nothing it only pulls the required urls: [main] reposdir= [vmwaretools-rhel6-i386] name=VMware Tools 6 x32 ...


2

You should explore a few distributions with at least the two main package types : A rpm-based (like RHEL, fedora, ...) A deb-base (Debian, Ubuntu, Mint,...) And the two main init : systemd (which is on pretty much every last versions of the main distributions) sysV, the legacy init you can still find on Debian 7 "Wheezy" , or RHEL 6 You should also ...


0

Another option is to use pmount. It seems a little easier to use commonly. However it requires installing (from the EPEL repository). CentOS Forum on pmount


0

Common alternative technique. Installing GLIBC 2.14 in parallel (Intall it to the /opt directory) Then it is available to the programs which require it without breaking your core OS.


4

compare file modification times with test, using -nt (newer than) and -ot (older than) operators: if [ "$file1" -ot "$file2" ]; then #do whatever you want; fi


4

I haven't tried it, but find should be able to handle the whole operation just fine: $ find dir/ -type f ! -newer reference -delete ... or... $ find dir/ -type f ! -newer reference ! -name reference -delete Basically: ! -newer reference matches files which have been modified less recently than reference. -delete deletes them. ! -name reference ...


1

For what it's worth, I recently went from the standard kernel in Ubunto 3.0.16 to the low latency kernel and the change to my desktop performance was phenomenal. It took some doing because the Nvidia driver included in the Ubuntu distribution would not load with the low-latency kernel however the exact same driver version from Nvidia's website worked fine. ...


1

You are missing -n switch of command. You have to type: unix2dos -n /path/to/filename_unix.txt /path/to/filename_dos.txt As you typed it I think unix2dos is looking for two files to convert. So now your filename_unix.txt should be converted to dos.


1

Cron doesn't start with common environment variables that your user has, including $PATH. You have the full path in your cron, which is good, but you need to add it to your script as well. which lsof and which seoserver will give you the full path. Modify your script to use that instead of lsof and seoserver.


2

Had the same problem on my VM This helped. 1. Start guest OS 2. When GRUB message comes on the screen press `Esc` 3. Type 'a' to append the word "single" to the end of the kernel statement 4. Press enter 5. At the 'root' prompt remove/rename Xorg configuration file: mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bk 6. Reboot the system


1

You haven't added your tun0 device to any zone, so it defaults to the default zone, which in your case is the public zone. As root, run: firewall-cmd --zone=internal --add-interface=tun0 You can then leave ssh and https enabled in the internal zone and disable it in the public zone.


0

Why are you trying to add an OpenSuSE repo? zypper and yum aren't compatible. If you're trying to get the stress application installed it's in EPEL so you'll have to add the EPEL repo even if you're on CentOS.


0

To use PCI Express passthrough you will need to set the virtual machine's chipset to Q35, which is a relatively new and still somewhat experimental option in QEMU/KVM, and can only be done at virtual machine creation. It exists in Fedora and CentOS 7, but I would probably choose Fedora so that you can be sure to get future upgraes for this feature. (In fact, ...


-1

You should set JAVA_HOME=/usr/local/jdk1.8.0 or JRE_HOME=/usr/local/jdk1.8.0/jre


-1

You need to add some repositories. From looking at the OpenSUSE listing for stress, I think you can get it from the server:monitoring repository. With SUSE 11, I think this command should add the repository. cd /tmp wget "http://download.opensuse.org/repositories/server:/monitoring/SLE_11_SP3/server:monitoring.repo" zypper addrepo "server:monitoring.repo" ...


0

The most practical way to do this is likely going to be with a third-party application like Opsmatic, though I'm admittedly unfamiliar with the particulars of SOX compliance gelling with SaaS services. I've used this and, though they have been having some growing pains, their product is really useful for the type of monitoring you're talking about. (Also, ...


0

That looks like file corruption. I would try running fsck on the system to see if it can recover the files/fix the filesystem corruption. Example 1: Using the shutdown command [root]# shutdown -rF now Example 2: Force fsck on boot using /forcefsck file When you create a /forcefsck file you will force the Linux system to perform a full file system ...


0

I'd say by looking at the output, it is a bit strange. I believe you have a filesystem corruption or even a failure of the disk. You never did say if you looked into your log files and found anything bad. I'll assume that the disk containing these files are directly connected to your system. First attempt to take a backup of the failed disk (if you can). ...


2

To run an interactive command via the ssh command line you need to tell ssh to allocate a tty on the remote end. (Usually it doesn't bother, and most of the time this is a good assumption.) Add the -t flag to allocate a tty: ssh -t someaccount@somemachine mysscript.sh


0

You have to do : root@debian:/home/mohsen# ssh mohsen@192.168.1.10 "~/test.sh" mohsen@192.168.1.10's password: What machine is sick ?192.168.1.4 1) Ping 192.168.1.4 3) Option 3 2) Option 2 4) Quit Please enter your choice: 1 you chose to ping 192.168.1.4 PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data. 64 bytes from 192.168.1.4: icmp_req=1 ...


0

As has already been said: You are not ending your session, you are simply disconnecting. If you want a proper login session you should look into xdmcp which is the "native" remote shell. https://www.centos.org/docs/5/html/5.2/Installation_Guide/s2-trouble-remotex.html


0

Xinetd and standalone servers can coexist without problems. Just check /etc/xinetd.d/ for the servers that are under xinetd and set to "enabled=no" the servers you want to keep standalone.


1

Try with the magic SysRq key. The magic SysRq key is a key combination understood by the Linux kernel, which allows the user to perform various low-level commands regardless of the system's state. It is often used to recover from freezes, or to reboot a computer without corrupting the filesystem. Press and hold Alt Press and release the key labeled ...


2

You could modify the zone and add a Rich Rule which blocks all ssh traffic other than from a certain range - the Employee subnet. Find which zone your tun interface is in by listing all zones: firewall-cmd --list-all-zones | less In the output you should see something similar to: internal (active) interfaces: tun0 sources: services: dhcpv6-client ...


0

It sounds like your networking is not working. The delays you are seeing are due to the numerous daemons present in startup that utilize the network and taking a long time to timeout requests. I'd suggest that you closely examine your VM NIC configuration parameters closely. One other thought, are you sure you set the ONBOOT parameter to yes in the NIC ...


0

Your need is an excellent use case for Ansible. It's an open source configuration mgmt / orchestration tool that will solve this issue for you. It is agentless and works over SSH so you typically don't need to do any client setup.


0

You should pass the command directly to su: su <username> -c 'service <software> start' If you simply execute the line su <username> then you start an interactive shell as that user. It's a bit strange that starting the service should be done as the specified user; it's more usual that the start script takes care of running whatever as ...


1

Run this one command, no need to restart any service & server : # setenfore 0 To check selinux status : # getenforce or edit this file : /etc/sysconfig/selinux to include SELINUX=disabled Doing so will require a reboot.


0

I found the solution. In gnome on CentOS 7, goto Applications -> Utilities -> Tweak Tool. In the Shell portion of the Tweak Tool, you can specify 'Dynamic Workspaces' and change the number of workspaces available, including adding additional workspaces.


0

I think by default selinux is enabled and is only configured to allow port 22 for ssh. have you either disabled it or added an exception for the new port? semanage port -a -t ssh_port_t -p tcp 2110


1

You can try: yum -y install net-snmp net-snmp-utils net-snmp-libs


1

--direct commands cannot be made permanent. Use equivalent zone command: sudo firewall-cmd --zone=public --add-port=7199/tcp --permanent sudo firewall-cmd --reload and to check the result: sudo firewall-cmd --zone=public --list-all


1

Even if an answer has been accepted and up-voted, I do not think it is a correct one. I fail to find clear explanation in the documentation, but from the implemented behaviour it looks like that: interface and source are used as selectors - which zone(s) to activate both are ignored for the default zone (always active) So the answer would be: lock down ...


0

If you believe it's just a load issue you may have to either configure limits.conf or put it in a cgroup and limit resources such that there's always a healthy amount of memory and cpu available at any given point in time. It will slow down the indexing (which would likely finish on its own eventually even with a blackout) but the VM should remain usable in ...


2

Linux applications almost always use dynamic linking to the C library, meaning it is not compiled into them -- it is linked at runtime. This means if you have upgraded the C library, you should not have to do anything else. However, while it would be very unusual, it is not impossible for things to be built with a statically linked glibc. The best thing ...


0

It may mean that you should modify /etc/grub.conf (in my RHEL system at least) to add selinux=1 enforcing=0 to the end of your kernel line. You may also need to rebuild your initramfs while explicitly specifying that the SELinux module should be added. (Is this done by default when the selinux-policy package is installed and dracut is run?)


0

It appears that there is a bug in Webmin that is causing it to not start with the server. Running 'netstat -an | grep '10000' returned nothing which implied the server wasn't listening to port 10000. I then checked webmin status by running "sudo service webmin status". This did not return "Webmin (pid #####) is running". SOLUTION: "sudo service webmin ...


2

That information is poorly documented. I will tell you that I understand from my experience: frame counts only misaligned frames, it means frames with a length not divisible by 8. Because of that length is not a valid frame and it is simply discarded. Meanwhile errors counts CRC errors, too-short frames and too-long frames. overruns counts that times ...


0

Most systems have a locate database which is updated every night. This does a find over the whole system and stores the result in an optimized database. In this case locate mysql-connector-java should have given an answer quicker than the find solution. Note that locate will only show files that are findable by every user, so files in protected directories ...


1

Your cron job is set to be executed at 20 hour 5 minutes (24 hour format). And the log you provide is from 9 a clock. So you should wait till 20h to see it in the log. And do not enter leading zeroes, this is not good practice, make your record like: 5 20 * * * root /data/CENTRAL_BACKUP/xxx.sh


0

Turned out that the IPNHost program was dependent on intel ipp libraries environment variables for which the location was not specified at that point of time during boot. Did a script autoStart.sh #!/bin/bash source /opt/intel/bin/compilervars.sh intel64 cd /root/IPNHost ./IPNHost The source /opt/intel/bin/compilervars.sh intel64 loads the required ...



Top 50 recent answers are included