Tag Info

Hot answers tagged

11

What was wrong in my command line? Nothing. It did what you asked it to do -- removed iptables and, by inference, everything that depends on it. And everything that depends on those things and so on. As Kiwy points out, it is pretty reckless to run a remove -y without having first considered what might happen. I'm sensing some frustration in the ...


7

With zsh: mkdir -p -- *.doc(:r) Or: for f (*.doc) { mkdir -p -- $f:r && mv -- $f $f:r/ } The bash equivalent (though it will also work in all POSIX shells and zsh): for f in *.doc; do mkdir -p -- "${f%.*}" && mv -- "$f" "${f%.*}/" done (note that it excludes hidden files).


2

cd /path/to/dir ( set -- *\ * printf 'd="%s" ; mkdir ./"${d%%.doc}"\n' "$@" ) | . /dev/stdin You can set a subshell's parameters with shell globs and then feed a pipe with printf, and . source the pipe as a script. And if you want to move the files in each directory: cd /path/to/dir ( set -- *\ * printf 'f="%s" ; d="${f%%.doc}" mkdir ...


2

The content /proc/version only gives you information about the kernel. It does not directly provide information about the distribution. Linux version 2.6.18-348.1.1.0.1.el5 This is the version of the kernel. 2.6.18 is the upstream version number. What follows is a distribution-specific built number. The el5 suffix at the end is a clue that this is a ...


2

After a lot of searching, I did this, and it works (on Ubuntu Precise, other OS versions may have different package install commands). All the nedit FontStruct errors are gone. :) xlsfonts # Will show no fonts (or the wrong ones) xset q # Shows no font paths apt-cache search xfonts # Find them sudo apt-get install xfonts-traditional # install them # Answer ...


1

Use chage -l to see a decoded interpretation of the aging information. The user name is expected as the argument. If you are interrogating your own account, no special privileges are requried. Otherwise use sudo chage -l someaccount. When an account is locked, the password field of /etc/shadow will begin with an exclamation point. The remaining ...


1

This looks like Oracle Linux, version 5. Check the file /etc/redhat-release This is an enterprise Linux distribution, largely compatible/comparable with Red Hat Enterprise Linux 5 or CentOS 5. The idea of the enterprise Linux distro's is to have a long life cycle, 5-10 years, more compatible with enterprise requirements such as stability then bleeding ...


1

According to your ouput of cat /proc/version, you are using Redhat 4, the newest version is Redhat 7. AFAIK, you can not run MySQL 5.6 in Redhat 4, it's not supported by MySQL. You can refer to this for more details. Update It's my mistake. You are running Oracle Linux 5.9, according to lsb_release ouput. Oracle Linux 5.9 is fully compatible — both ...


1

It is possible that some third-party software could check for the existence/contents of that file and do something variable based on the result. So, for example, if something is designed to run only on RHEL and not CentOS, checking that file would be a simple (and FWIW, easy to bypass) way to enforce that. I would be surprised if there is a good reason for ...


1

Looks like multipath on the Hypervisor refuses to update its maps for LUN sizes. This LUN was originally 28Gb and was later grown to 48Gb on the storage array. The VG information thinks its 48G and indeed this disc is 48G, but multipath won't update and thinks it's still 28G. Multipath clinging to 28G: # multipath -l 350002acf962421ba 350002acf962421ba ...


1

See devices.txt in the kernel documentation: Major 202 is "Xen Virtual Block Device", major 253 is LVM / device mapper. All your dm-x devices are 253:n; they just point to 202:n. The error message is clear: device-mapper: table: 253:7: xvdb too small for target: start=58714112, len=41943040, dev_size=58720256 It seems there has been a change to the XEN ...


1

You can usually find selinux denials in /var/log/messages. Try this (as root): grep avc /var/log/messages | grep ftp Review the output and decide whether the denials are erroneous, given your desired configuration. Tune the grep statements as necessary to whiddle the information down to only the statements you want to fix. It's often useful to ...


1

SELinux won't let vsftpd serve files from places other than /var/ftp or write logs outside /var/log on purpose. SELinux is all about disaster mitigation. FTP is fundamentally insecure. Running vsftpd under SELinux is a good idea, because it minimizes the damage an attacker can do if he decides to attack your FTP service. Running a fundamentally insecure ...


1

I know nothing about cygwin but this tutorial titled: 3 Steps to Perform SSH Login Without Password Using ssh-keygen & ssh-copy-id. It's pretty much how I set things up when I do this. I use the ssh-copy-id command rather than cat, I think its a lot simpler. $ ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host


1

It seems that you don't register with RHN, so you missed base repo for Redhat to work. You can not get Redhat official packages without register. If you don't have RHN credential, you can use Centos base repo instead. See this link for more details.


1

Yes vino only, if you don't find, install it using: # yum install vino If you encounter a problem doing so with yum, then try to configure registering it: # rhn-register Of course if you have RHEL licensed, otherwise try creating your own repository. As an alternative, you can also find vino packages on your RHEL media, installing it using this ...


1

So after perusing the manpages looking for how to change the remote port to connect to a virtual machine... I found the answer. All I had to do was adding -o allow_other and bam, it worked. Apparently, sshfs assumes you will read the mounted directory under the same user used to mount it, without considering that usually only ROOT is allowed to mount ...



Only top voted, non community-wiki answers of a minimum length are eligible