Tag Info

Hot answers tagged

2

In Vim 7.3, the combined relativenumber-number setting you describe is not supported. See :help relativenumber, which states that: When setting this option, 'number' is reset. Vim 7.4 supports using both together, and the same section says that: The number in front of the cursor line also depends on the value of 'number', see number_relativenumber ...


2

It depends a lot on the directory and distro in question. For example: update-motd.d scripts in Ubuntu have to be executable, as the update-motd manpage says: Executable scripts in /etc/update-motd.d/* are executed by pam_motd(8) Files in profile.d in Ubuntu should have the a .sh extension, since /etc/profile contains: if [ -d /etc/profile.d ]; then ...


1

k, so in /etc/sysconfig/network, you want to change HOSTNAME=Nagios to be HOSTNAME=Nagios.yr.domain.name (reboot) and then in /etc/hosts, you want to remove the line nagios.localhost.com 172.16.22.249 and change the line 172.16.22.249 nagios.localhost.com to read 172.16.22.249 nagios nagios.ur.domain.name (mind the space ...


1

You need to close the <startupnotify> tag with a corresponding </startupnotify>. See the official documentation.


1

The extra logic could be handled with awk. BEGIN { FS = OFS = "=" } $1 == "setting" { $2 = "value"; found=1 } {print} END { if (!found) { print "setting=value" } If the property is not found by the end, then found won't be set and the END clause will append the new config line. The FS=OFS= ensure the same format and the print will always send a newline ...


1

I think the better option (compared to running Pulseaudio systemwide) is to set a configuration location outside the NFS mount. The Pulseaudio manpage explains two possibilities: If a ~/.pulse/client.conf is not found, the global /etc/pulse/client.conf is used (and other config files in the same directories). To use the global settings, simply delete the ...



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