Tag Info

Hot answers tagged

3

As steeldriver notes in a comment, there is a typo. If that's not just a typo in your question, you need to fix that. iface etho0 inet static ^ extra "o" Also, for readability, traditionally they are indented and you don't actually need to specify the network and broadcast when the defaults are OK: iface eth0 inet static address ...


3

You could use make oldconfig. After you copy the 2.6 .config file, this make option will prompt to you for options in the current kernel source that are not found in the file. However, you will have to deal with choosing options out of the context, being difficult to give the right answer Further reading: What does “make oldconfig” do exactly - Linux ...


3

Use a transport map: Find or add the following line in your main.cf (alter the file location to fit your CentOS setup): transport_maps = hash:/etc/postfix/transport Edit the transport map file above to: localhost : <your FQDN> : * error: Outgoing mail from this system has been disabled. localhost and your FQDN will use local delivery. ...


2

I think the Debian OpenVPN setup with systemd is currently a tad bit broken. To get it to work on my machines I had to: Create /etc/systemd/system/openvpn@.service.d (the directory), and place in it a new file with this:[Unit] Requires=networking.service After=networking.serviceI called my file local-after-ifup.conf. It needs to end with .conf. (This is ...


2

Have a look at crudini, which is a shell tool designed for this conf=/etc/puppet/puppet.conf crudini --set "$conf" agent server "$PUPPET_MASTER_TCP_HOST" crudini --set "$conf" agent masterport "$PUPPET_MASTER_TCP_PORT" or a single atomic invocation like: echo " [agent] server=$1 masterport=$2" | crudini --merge /etc/puppet/puppet.conf


2

There are very few files that absolutely must be different between two machines, and need to be regenerated when cloning: The host name /etc/hostname. The SSH host keys: /etc/ssh_host_*_key* or /etc/ssh/ssh_host_*_key* or similar location. The random seed: /var/lib/urandom/random-seed or /var/lib/random-seed or similar location. Anything else could be ...


2

Of course, the error is that you don't have a mailer (sendmail,postfix, etc) implemented and active. That being said your other problem is that the >/dev/null 2>&1 ONLY only applies/associates to the LAST command in this case gzip. Thus there must be some type of output going to STDERR for your mysqldump. The correct way to do what I think you want ...


1

You could make your .bashrc more modular (for example by sourcing a .aliasrc with your aliases) and then have your custom environment only source the modules that you specify for that environment.


1

LESS uses several environment variables to control colors based on termcap library. The list of variable is the following: export LESS_TERMCAP_mb=$'\E[6m' # begin blinking export LESS_TERMCAP_md=$'\E[34m' # begin bold export LESS_TERMCAP_us=$'\E[4;32m' # begin underline export LESS_TERMCAP_so=$'\E[1;33;41m' # begin standout-mode - ...


1

This type of unit file is an Instantiated Service - more details are available here The following is the unit file for openvpn on CentOS 7: [Unit] Description=OpenVPN Robust And Highly Flexible Tunneling Application On %I After=syslog.target network.target [Service] PrivateTmp=true Type=forking PIDFile=/var/run/openvpn/%i.pid ExecStart=/usr/sbin/openvpn ...


1

Officially that is not recommended but you can do it and that's what I do. You have to go through the build menus very carefully. Things change (especially from 2.6 to 3.2), and without review you might end up with a lot of features and drivers you don't need. I don't know of a migration guide but for kernel tweaking you may want to look at Linux Kernel ...


1

Short answer From the Debian wiki page dedicated to D-I preseed : Do not work off a debconf-get-selections (--installer) generated preseed.cfg but get the values from it and modify the example preseed file with them. The preseed example file provided by Debian should be enought to start but you can find a lot of other preseed files provided by ...


1

The program etckeeper does manage /etc in git, you just need to change the default vcs backend from bzr to git in /etc/etckeeper/etckeeper.conf. It is installed by default in Ubuntu Linux, and handles the common cases of when to commit automatically. It commits before installing packages in case there are uncomitted manual changes, and after installing.



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