Tag Info

New 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 ...


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


0

You're probably looking for the -E option of sudo which causes it to keep your user's environment variables: -E, --preserve-env Indicates to the security policy that the user wishes to pre‐ serve their existing environment variables. The security policy may return an error if the user does not have permis‐ ...


0

I had the same problem (although mine doesn't have ATI graphics, just the Intel Haswell), and found that an upgrade to Jessie sorts out both the graphics and wifi. To upgrade, point your sources at the testing version (Jessie) and dist-upgrade cp /etc/apt/sources.list{,.bak} sed -i -e 's/ \(stable\|wheezy\)/ testing/ig' /etc/apt/sources.list apt-get update ...


0

bash --noprofile --norc <<ALIAS $(alias) exec </dev/tty ALIAS That should do it if you're running the bash --noprofile... bit from a bash that knows your aliases. Else you could do as @WilliamEverett suggests (which, as I believe, is ultimately the better way to go). One way to facilitate this is: alias >~/.aliasrc { cp ~/.bashrc ...


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.


0

You could put if [ -f ~/.Mayur_Patel_special ] then . ~/.Mayur_Patel_special rm ~/.Mayur_Patel_special fi at the end of your .bashrc, and then have your application create that file.  And, obviously, run bash without the --noprofile and --norc options.  If there might be multiple instances of this running concurrently, make the filename unique; ...


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 ...


0

If the user running the crontab command is vagrant, and the directory where the output is written to is owned by root, and has permissions 755, it can not be written to. sudo chown vagrant /var/backup/all may fix that. To check whether that's the problem, try writing to a file in /tmp instead. But there is another problem: A command like mysqldump mydb | ...


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

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 - ...


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. ...


0

you need to assign the ipaddress using following format Here 192.168.1.1 is my Router (gateway) auto eth0 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 gateway 192.168.1.1 network 192.168.1.0 broadcast 192.168.1.255 dns-nameserver 192.168.1.1 8.8.8.8 8.8.4.4 you have to edit the resolv.conf for accessing the ...


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 ...


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 ...


0

You need to create the service file by enabling openvpn@<configuration>.service. For example, if the configuration file is /etc/openvpn/client.conf, the service name is openvpn@client.service. From the Arch Wiki


0

If you want postfix to deliver mails for aevidi.com by doing an MX lookup (i.e to Zoho mail servers, in your case), then you should remove $domain i.e aevidi.com from mydestination.


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.


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 ...


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 ...



Top 50 recent answers are included