Tag Info

Hot answers tagged

7

There are no more dedicated flush threads anymore. The Linux kernel has moved on to a worker thread model, where several generic worker threads can handle a variety of different tasks. You will see these in the process list as [kworker/#.##] Unfortunately this new design makes it a bit difficult to tell exactly what any given kworker thread is doing at any ...


3

sestatus is showing the current mode as permissive. In permissive mode, SELinux will not block anything, but merely warns you. The line will show enforcing when it's actually blocking. I don't believe it's possible to completely disable SELinux without a reboot.


3

I did find this method for installing Spotify which I've confirmed does install cleanly on my Fedora 20 system. Given the method this install utilizes it should be adaptable to other RHEL based distros. There are 2 RPMs that you need to download from this URL: http://sourceforge.net/projects/postinstaller/files/fedora/releases/20/x86_64/updates/ These ...


3

Ethernet cards might have (supposedly) unique MAC addresses, but what about virtual interfaces like aliases (e.g. eth0:0), bridges or VPNs? They need an ID too, so an UUID would be a good fit. By the way, since the question is about NetworkManager and NetworkManager deals with connections, there are scenarios where you can have multiple connections for a ...


3

Since you do not specify which shell, I'll just cheat. You can find the following and much else on grml.org's zsh-lover's command reference man page. $ zmodload zsh/zpty $ zpty PW passwd $1 $ zpty PW passwd $1 # ``-r'': read the output of the command name. # ``z'' : Parameter $ zpty -r PW z '*password:' # send the to command name the given strings ...


2

from wikipedia On Linux, netstat (part of "net-tools") is deprecated, ss (part of iproute2) should be used instead. The net-tools package has not seen a Linux release in more than a decade. That's a long time to go without an update for a program suite designed to manage and monitor an ever-evolving kernel's communications interfaces - especially when ...


2

It looks like you have an invalid GATEWAY value in /etc/sysconfig/network for server1. So, change it to your gateway ip address: GATEWAY=129.XXX.XXX.1 Save file, restart networking service to make the change.


2

hostname returns the configured hostname or nodename. In practice, it can either be a short name (in most configurations) or a long name (normally the FQDN in this case). The short name is given by hostname --short. hostname --fqdn returns the FQDN, which is gethostbyname on the nodename (as returned by the uname system call, see uname(2) man page). ...


2

Converting to an answer to address piecemeal. We have bought a "Redhat Enterprise Linux 5 Server" license Red Hat doesn't use licensing, it uses an entitlement system for managing sales. You buy access for x number of nodes for a particular base channel. The base channels are specific to a particular RHEL version (such as "rhel6-x86_64" or ...


2

Boot into single user mode by going into the Grub menu and select the kernel version and press e to edit press space and type single


2

Take a backup first. Run: # cd <directory where new RPM is located> # yum install java-1.6.0-openjdk-1.6.0.0-5.1.13.3.el6_5.rpm If things don't go well and the previous version's RPM is available to the system, you can roll back with: # yum history undo last If it's not on the system, you can downgrade by re-installing the previous version ...


2

You can expand your range by editing the config file: vi /etc/dnsmasq.conf Look for the dhcp-range line: dhcp-range=192.168.0.10,192.168.0.50,12h will issue from 192.168.0.10 to 192.168.0.50 with a lease time of 12 hours. You can see your current leases with: cat /var/lib/dnsmasq/dnsmasq.leases That path might differ, depending on your distro. If ...


2

Disabling SELinux without reboot is not possible. But I guess making it in permissive mode is going to satifsy your requirement. The output of sestatus shows SELinux is enabled but also shows it is in Permissive mode, which is what you just did with the setenforce command.


2

Specific actions that need to happen when a RPM package is installed or removed are included within the RPM package itself in pre-install, post-install, pre-uninstall and post-uninstall sections. For every installed RPM package you can query the RPM database for the exact scripts that are included with the rpm command: rpm -q --scripts ...


2

It's a bad idea if it doesn't work. I think your concern about profile.d not running unless someone logs in is legitimate. Put an init script in /etc/rc.d/init.d (I think this is the correct directory for Red Hat; in Ubuntu it's /etc/init.d) to start your daemon. In this script you can declare/define any variables you need and when you start the daemon ...


1

To directly answer your question, it's only a bad idea if it doesn't work. So my direct answer is "no", if it doesn't work, "yes" if it works. Did you try it? That is, have you confirmed that profile.d doesn't run on your system if no one logs in? As a suggestion of how to make it work: Edit the rc.local file in the same way, to ensure the settings are ...


1

After analyzing the scripts in Fedora, I realize that the configuration file path is read from the symlink /etc/grub2.conf. The correct grub2-mkconfig line is thus: grub2-mkconfig -o "$(readlink /etc/grub2.conf)"


1

You can use su with -c: /bin/su tomcat -c "$CATALINA_HOME/bin/catalina.sh stop 30 -force" From su man page: -c, --command=COMMAND pass a single COMMAND to the shell with -c


1

What are the difference between SLED and RHEL WorkStation? As I understand it they are mostly related to configuration (e.g. SuSE has YaST, while RHEL has the system-config-*) tools. What are the advantages over community supported distros? You have a company that can provide you support (rather than needing to rely on mailing lists, forums ...


1

Try removing ntfs-3g-2:2011.4.12-5.el6.x86_64 package by: yum remove ntfs-3g See which packages depends on this package. If there is only one package appeared in list of removing package by yum, you can confidently remove this package. (Note: Don't press 'Y' for removing packages if you don't know which are they.) After this go for yum update.


1

Tidy up the yum cache directory: # yum clean all Then, try downgrading the package with: # yum downgrade fuse-ntfs-3g From the man page: downgrade Will try and downgrade a package from the version currently installed to the previously highest version (or the specified version). The depsolver will not necessarily work, ...


1

Besides booting into single user mode you could attach a virtual CD-ROM containing an installation or rescue system image, boot that, mount the root filesystem of the machine and edit the boot scripts. This may be more comfortable to use than using single user mode.


1

init scripts are gone. Now its systemctl. Its out there in all CentOS7 docs. To chkconfig ipatables or to start iptables service at startup you need to use this:- systemctl enable iptables You should checkout simple things to be known about systemctl at the Cyberciti docs on iptables.


1

Try the script below: #!/bin/sh FILE=/opt/dailydbscriptoutput.txt TO=myemailid@domain.com (cat - $FILE <<END) | /usr/sbin/sendmail -i $TO TO: $TO END Sendmail expects headers and body separated by an empty line in "raw" format. To get better debug info execute the above script as root with -Am -v command line options passed to sendmail. ...


1

It would probably be easier to have two separate versions of the script. Since it is short it may not be worth adding extra code to handle the differences between the two formats as jw013 suggested. On the other hand if you had a larger script it would probably be easier to have one and make the script execute different commands depending on where it is ...


1

First, there are two rather different versions of Grub. The older version can be referred to as "Grub" or "Grub legacy". The newer version is Grub2. In the places where a user typically wants to make changes they work very differently (Grub legacy is simpler, Grub2 offers finer control). When booting, execution jumps from BIOS to the first boot device. On a ...


1

That is probably a device file permission problem. pinentry doesn't use the inherited file descriptors but tries to access the passed TTY directly which doesn't work. You may run tty in the shell and afterwards ls -l /dev/pts/1 with the result and you will probably notice that apache does not have access to it. You may also run strace -o gpg.strace -f -e ...


1

Have you tried creating a new user and invoking the command with sudo instead? If fear this might be some permission issue and the easier way would be removing the agent node from /var/www to somewhere we know is accessible to the gpg user, maybe the /tmp directory. You can manually specify the agent node location changing the env variable GPG_AGENT_INFO.


1

Strings sent to the standard output go to /dev/console (most often you can see them on your screen, but not always). To log these messages, you can use bootlogd, which, as described in its man page, "runs in the background and copies all strings sent to the /dev/console device to a logfile", and the default logfile is /var/log/boot.


1

I have to give this one to my co-worker who discovered that the permissions on /tmp were incorrect: [user@host01 ~]$ ls -ld /tmp drwxr-xr-x 7 root root 4096 Jul 28 18:44 /tmp And we know they should be set with 1777: [root@host01 ~]# ls -ld /tmp drwxrwxrwt 7 root root 4096 Jul 28 18:44 /tmp Found this out when I tried to run nroff. [user@host01 ~]$ nroff ...



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