Tag Info

New answers tagged

1

If you take a look at the rules that are included with fail2ban you'll notice that they use these variables to make things neater and more parameterized. For example in the included jail.conf they've used them to make general action rules that they can then use when defining the various jails. Example Here are some basic variables at the top. # ...


0

vim isn't loading vanilla. What's happening is the file you're editing isn't recognized because it is a temporary file. ncftp / > edit appiniconfig.sh Please wait while appiniconfig.sh is downloaded for editing. /tmp/ncftp_editcmd.L1XVxZ: 130.00 B 2.87 kB/s Notice how you're actually editing ncftp_editcms.L1XVxZ. It is ...


0

The proper solution would be, to make use of systemd's systemd-ask-password/"Password Agents", which provides a systemd builtin way to funnel passwords/passphrases to services. You'll need OpenVPN 2.3.0 or newer to do this.


1

I ended up doing the following: sudo service stop lightdm Then I had to run ctrl + alt + F2 and log in the second terminal, otherwise it would just sit there with dark screen. To start it back up: sudo service start lightdm


0

Have you tried, sudo /etc/init.d/lxdm stop lxdm starts/stops the X server.


1

a. Is my understanding of the three files correct ? If somebody could better explain it would be nice. In general, it's correct. But you can read more details, if you open /etc/apache2/apache2.conf: # * apache2.conf is the main configuration file (this file). It puts the pieces # together by including all remaining configuration files when starting ...


2

You must set ServerName directive: ServerName localhost In Debian, you can set it in /etc/apache2/conf.d/httpd.conf.


4

On Red Hat and CentOS systems, it is defined in /etc/profile.d/less.sh. On version 5, this contains # less initialization script (sh) [ -x /usr/bin/lesspipe.sh ] && export LESSOPEN="${LESSOPEN-|/usr/bin/lesspipe.sh %s}" On other systems, such as version 7, the value may be ||/usr/bin/lesspipe.sh %s; there is a slightly different interpretation ...


28

Yes! This is a big deal, and incredibly common. And there are two basic approaches. One way is simply with scripted installs, as for example used in Fedora, RHEL, or CentOS's kickstart. Check this out in the Fedora install guide: Kickstart Installations. For your simple case, this may be sufficient. (Take this as an example; there are similar systems for ...


-3

You could try the following technique of ssh'ing into server1 followed by ssh'ing into server2. $ ssh -t user1@server1 ssh -t user2@server2 Doing it like this works for me.


1

The kernel doesn't read any configuration file. As a rule, kernels avoid accessing the filesystem; there are a few exceptions and variation, but mainly, the kernel launches a program at the location /sbin/init when it boots, and the only accesses filesystems on behalf of user land processes. Network configuration files (like other kinds of configuration ...


0

There are tons of manuals, even from Ubuntu. The Ubuntu Community Wiki is a good place to start, for example. There's this topic titled: BIND 9 Server Howto.


2

BIND is one of the best DNS server in the world, you can use Bind to achieve your goal. For configuration purpose here some useful sites: Server World: (For Ubuntu) DNS Web Linux Home Networking: DNS Web To use BIND with web server here is a useful Link.


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


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

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


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.


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


0

Idea #1 - Is it running? After making those changes to your Apache httpd.conf file, did you restart it? $ sudo service httpd restart Idea #2 - right httpd.conf? Are you sure that this httpd.conf file is the appropriate one for your Apache you're connecting to? There are many ways to diagnose this, I generally like to check the httpd executable to see ...


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

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



Top 50 recent answers are included