Tag Info

Hot answers tagged

4

The bash command accepts a --rcfile filename option that will: Execute commands from filename (instead of ~/.bashrc) in an interactive shell. So if you run bash --rcfile ~/.config/bashrc then you will load that file instead. There isn't a way to configure it to load from there by default (where would you configure it?), other than recompiling it with ...


3

You only choose audio card once when starting jackd. You can list cards available to alsa with aplay -l (aplay is part of alsa-utils). Then you can start the jack daemon, and pick the card to use with jackd -d alsa -d hw:<card>,<device>.


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

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


2

Haven't looked at the code, but: ECDSA host keys are preferred when learning a host's keys for the first time, or can be learned using ssh-keyscan(1). Source: http://openbsd.das.ufsc.br/openssh/txt/release-5.7


2

Inspired by Gnouc answer, I realized that bash reads /etc/bash.bashrc and ~/.bashrc in the same cases. Thus, you can put at the bottom of /etc/bash.bashrc: if [ -s "${XDG_CONFIG_HOME:-$HOME/.config}/bash/bashrc" ]; then . "${XDG_CONFIG_HOME:-$HOME/.config}/bash/bashrc" fi and then move ~/.bashrc to $XDG_CONFIG_HOME/bash/bashrc Bash will still ...


2

With a login shell, typically, your ~/.bash_profile contains the line: if [ -f ~/.bashrc ]; then . ~/.bashrc fi So you can set your own config folder here: BASHRC_CONFIG_DIR=~/config/bash if [ -f "$BASHRC_CONFIG_DIR/.bashrc" ]; then . "$BASHRC_CONFIG_DIR/.bashrc" fi For non-login shell, you can set it in /etc/bash.bashrc.


1

As said by the xterm(1) man page concerning this menu item (see Section VT Fonts), "This allows you to set the font last specified by the Set Font escape sequence (see the document Xterm Control Sequences)". So, until you use such an escape sequence, this menu item is grayed out. Actually it remains grayed out, but this may be a bug. To try: xterm -xrm ...


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

Try using diffconfig. It most probably would be in the scripts folder in your kernel root directory. If not simply google it. Usage: diffconfig config-a config-b Shows a list of lines removed, modified and added to the config-b file with respect to config-a.


1

You can change the keyboard layout in weston.ini which should be placed in ~/.config: [keyboard] keymap_rules=evdev keymap_layout=de Change keymap_layout according to your needs.


1

FAT filenames (not file contents) are encoded in a country-specific manner, DOS called those "codepages". They need to be present in the kernel so your console con correctly display the characters. This also counts for the UTF-8 encoding of the Unicode charater set. This doesn't apply to ext FS though, read up here.



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