date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,681,080,673,000
I am using ranger as my terminal file manager and now that I understand the basics, I wanted to get a bit deeper into customizing the rc for my purposes. One thing I like to do is to map a command to a keybind that copies a template into the current folder and then starts the rename_append command, (usually called wit...
You need the chain command to execute multiple commands. chain <command1>; <command2>; ... This part is probably not relevant anymore but for the copy and rename task I came up with this solution: map NS chain shell cp ~/.templates/bash.sh .; console shell mv bash.sh%space This binding can be used by pressing NS, ty...
ranger chain commands in config
1,681,080,673,000
After some read and search through the net, I am still having the following problem. I am using Pop!_OS on a Lenovo X230. After some time with GNOME DE, I have decided to see how Xfce DE looks like. While still in progress to know it better, I have encountered the following issue. In GNOME when I close the lid, and th...
In the following reddit thread one can find a solution that worked for me. Basically, there you can find in detail instruction to switch from Light-locker to XScreenSaver. User ID: u/EMH_Mark_I https://www.reddit.com/r/xubuntu/comments/9tlnnu/how_to_setup_xscreensaver_to_lock_on_suspend_for/
Not logging off in Xfce when closing the lid
1,681,080,673,000
I have configured CentOS VM, with NetworkManager disabled. Question: When I start VM I have access to the internet, but after a while I lose it. How can I fix that?
in step one, you say: When I start VM I have access to the internet, but after a while I lose it: test this on console: dhclient -v You will notice it will bound IP address as shown below [root@localhost network-scripts]# dhclient -v Internet Systems Consortium DHCP Client 4.2.5 Copyright 2004-2013 Internet Syst...
CentOS loses internet connection
1,539,973,562,000
I am trying to understand what I am doing wrong here. I was under the impression that make savedefconfig would be the way to go to reduce one config to the (equivalent) bare minimum. So here are my step, take a config file from the Debian package directly: $ dpkg -S /boot/config-4.14.0-3-powerpc linux-image-4.14.0-3-p...
Turns out that this was simply bad timing. The git/master (actually 4.15) is affected by: https://patchwork.kernel.org/patch/10185397/ After upgrading an old laptop to 4.15-rc9, I found that the eth0 and wlan0 interfaces had disappeared. It turns out that the b43 and b44 drivers require SSB_PCIHOST_POSSIBLE wh...
Does `make savedefconfig` lose configuration options?
1,539,973,562,000
I'm trying to write a build script for SLES/RHEL that modifies config files to conform to our company standards. Some configs are formatted as setting = value and some are just setting value. I'm using sed currently and feel I'm almost there but it's not working when there is no equals sign. Current code: (Sorry I...
You can simplify the set of "similar" sed substitutions to the following: cat replace.sh #!/bin/bash replace () { var=$2 new_val=$3 sed -e "s/^$var *= *.*/$var = $new_val/; s/^$var [^=]*$/$var $new_val/" "$1" | grep $var } replace test.conf setting1 value1new replace test.conf setting2 value2new replace test...
sed function to replace any config file entry
1,539,973,562,000
How do I configure a CentOS7 server to connect to the internet and be known as a specific IPv4 address in the form of: aa.aa.aaa.aa2? HERE ARE THE DETAILS (Updated 2/27/2017): Cable Modem A Cisco DPC3941B (see link) router from an internet access provider has a Gateway IP aa.aa.aaa.aa6, and has several IP addresse...
Long story short, need to configure a static IP address on Centos7, which is covered in the FAQ. Once this was done everything worked.
Claiming IP address from CentOS 7 server
1,453,926,487,000
I am trying to open a website since I was told to use and they gave me some tasks to do from there. I have always been able to use it from my work network, but not from other networks. And the guy who created and used to administer the page has gone MIA, so I can't ask him.It gives me a: 403 Forbidden You don't have p...
Certain websites are configured this way for security reasons. If I'm not mistaken, they use subnet filtering to make sure that the network you are trying to access the page from is on the same network as the hosting server. Think of it like this: if you can't access the network from outside, it'd be more difficult to...
Can't access website from other networks
1,453,926,487,000
I try to set up saslauthd for the XMPP server prosody but got stuck somewhere. I used the following documentation: http://blogs.mafia-server.net/nur-bahnhof/2013/12/prosody-authentification-ldapactivedirectory/ http://prosody.im/doc/cyrus_sasl https://wiki.debian.org/InstallingProsody My problem is that I can't get ...
I found the solution: First of all: I was on the wrong trace because sasl-sample-server doesn't seem to support ldap in any way. It seems it doesn't talk with saslauthd but instead has its own implementation. Because of this, it cannot care about the -a ldap option of /usr/sbin/saslauthd. So I started through testing ...
testsaslauthd succeeds but sasl-sample-server/client fail
1,453,926,487,000
I use CentOS 7 and I need to change the file that delivers the SSH configuration /etc/ssh/sshd_config to /etc/ssh/sshd_config_other. This demand was due to a security automation that always overwrites the sshd_config and I dont have allow to change. I tested changing the /etc/systemd/system/multi-user.target.wants/ssh...
Note that /etc/systemd/system/multi-user.target.wants/sshd.service is just a link to /usr/lib/systemd/system/sshd.service, and you should change this file by copying it first to /etc/systemd/system/, then editing this copy. However, if your sshd.service file has the line EnvironmentFile=/etc/sysconfig/sshd then you c...
CentOS - SSH - File That Change Iunput Setup
1,453,926,487,000
I have configured freeradius on RHEL 6.5 server for MAC based authentications and for this, I've followed this guide. According to the mentioned guide, I have created authorized_macs file for the valid MAC addresses as below: xx-xx-xx-xx-xx-xx Reply-Message = "Device with MAC Address %{Calling-Station-Id} authorize...
Set the Reply-Message in an update reply block, rather than update control. Using your example: update reply { Reply-Message := "Login Failed. MAC Address %{Calling-Station-ID} is NOT valid." }
Freeradius: No reply message for Failed Authentications
1,453,926,487,000
I'm building my own Embedded Linux distro using bitbake . I added udev in the list of dependencies (RDEPENDS). I noticed that the output of: udevadm info --query=property --path=/sys/block/sda is just: DEVNAME=/dev/sda DEVPATH=/devices/pci0000:00/0000:00:13.0/ata1/host0/target0:0:0/0:0:0:0/block/sda DEVTYPE=disk MAJO...
The problem is that udev was not started. /etc/init.d/udev start Conclusion: in case someone experiences any issue related to udev, firstly make sure it has been started.
udevadm does not show expected information
1,453,926,487,000
I have a CentOS box running my Apache website and Postfix, but whenever I try PHP's mail() function to my @aevidi email, it sends to my local mailbox in ~/mail, but is not visible in Zoho's webmail. When I send an email from my Gmail account to my @aevidi email, I see it in Zoho but not in my local mailbox (expected r...
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.
Postfix is sending and receiving mail locally, but not to external mailbox
1,453,926,487,000
First off, I've installed arch before, but managed to not encounter any of the problems I'm having at the moment (not sure how). But I'm well and truly stuck. First, my network interface is now called enp3s0 rather than eth0, so every time I start arch, I need to run ip link set enp3s0 and then dhcpcd enp3s0 how d...
Your first issue (the networking) can be automated with a systemd service file. You would use the [email protected], in your case: systemctl {enable,start} [email protected]. The other issue is that, when starting X, you are still starting twm. See Xorg page on the Arch Wiki on why this is happening, but essentially, ...
Newly installed arch linux problems
1,453,926,487,000
AFAIK, FreeBSD has strict separation between base system and userland. IMO, theoretically, it seems possible to transfer whole userland to other machine by simple copying. If the base systems are equal (version) Can I actually copy the userland by simple copying? If it's possible what directories should I copy? If it ...
Simple copying is insufficient because cp doesn't preserve uids/gids, flags, hard/symlinks etc. But you can easily copy userland with tar. If you have mean packages/ports when say "userland" you have to try pkg create -a command that creates in current dir bundles for all the software installed from ports/packages. Th...
Is it possible to copy whole userland into other machine in FreeBSD?
1,453,926,487,000
I'm setting up a proFTPd server so I can upload files to my webserver, but I've never tried this before. I've installed proftpd, added a user with a home folder: /home/FTP-shared and added /bin/false shell to it as well. But what do I do configuration-wise now in proftp to be able to login with this user, and up and d...
For your first question, you can read it here. For your second question, I'm currently using mount --bind.
Creating a proFTPd user
1,453,926,487,000
I have a Macbook Pro 6,1 that I have dual booting OSX and now Fedora 15. I'm working on getting the audio working. In System Settings > Sound > Output there are two options for audio devices: High Definition Audio Control Digital Stereo (HDMI) Internal Audio Analog Stereo There is no sound when the first option (HD A...
I was able to get this working. Problem was the channels were muted. See instructions here: http://linsek.com/?q=node/12
Fedora 15 - Audio Configuration
1,453,926,487,000
In an Linux application I don't want to use "my own" configuration parser, but use the one which (should be?) is already available. Simple to keep the maintenance of the application config simple and not adding extra libraries.
There really isn't a 'standard' configuration parser library. If you peruse through /etc, you will find some combination of: XML config Windows INI style config Basic KEY=VALUE config JSON (mostly seen with web applications). YAML (mostly seen with newer stuff, especially if written in Python). Things that look like...
Which is the "standard" configuration parser library used in Linux?
1,453,926,487,000
When editing configuration files, such as /etc/sysctl.conf for example, it is often useful to do the update in an idempotent way, meaning that if the script is executed multiple times, you don't end up with multiple entries for the configuration change you made. As a real-world instance where I encountered this, I nee...
Instead of running shell commands, use the sysctl module. If possible, avoid using shell. - ansible.posix.sysctl: name: vm.swappiness value: '10' state: present
Edit configuration files idempotently
1,453,926,487,000
When I start fish, it prints: Welcome to fish, the friendly interactive shell Type `help` for instructions on how to use fish And then the prompt. I've actually used fish for a while so I don't need this welcome message. How can I disable it?
this has already been answered here but tldr youll want to use the command set -U fish_greeting "" you can customise the welcome prompt too by typing what you want in the double quotes e.g set -U fish_greeting "üêü"
Fish shell: How to disable help message?
1,453,926,487,000
I've been using GNU/Linux for over a year now. And there's this question to which I need an answer from you, Linux gurus: What language(s) do config files like .bashrc, .vimrc, .i3status.conf, .conkyrc, .xinitrc, etc. use?
There's no global standard. They can be (and are) all different syntaxes. For example, the bashrc is simply a bash script, the vimrc a vimscript script, i3 uses its own syntax that's pretty close to a scripting language (but they claim it isn't a programming language, but I think they're lying there, the conditional ...
What language do config files use?
1,590,078,237,000
I have a script like this: #!/bin/bash . config ./sub-script There are a lot of variables in config and I don't want to pass them to sub-scirpt like ./subscript arg1 arg2 ... arg100500. Also, I don't like an idea to source config from sub-script, because in general it may not know where there config file resides. I...
You can export your variables: VAR=foo export VAR or: export VAR=foo However, these variables will be visible in the environment of all subprocesses.
BASH: pass arguments to sub-script
1,590,078,237,000
The Linux kernel has a large set of parameters that enable users to adjust the kernel behavior without recompiling it. There doesn't seem to be a parameter to adjust the preemption model: -*- Preemption Model No Forced Preemption (Server) (PREEMPT_NONE) --> Voluntary Kernel Preemption (Desktop) (P...
Preemption is implemented using a (large) number of explicit preemption points (look for might_sleep in the kernel), many of which are in somewhat hot paths. Full preemption (CONFIG_PREEMPT) has an even greater impact; for instance spinlocks check the preemption count (at least, on non-SMP kernels), as do IRQs. Curren...
Why can't the Linux preemption model be changed by kernel parameter? [closed]
1,590,078,237,000
I have multiple errors while trying to start Hostapd I will post the errors output which i got after i tried to start it and looked at the status: root@l0calh0st:~# service hostapd status ● hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator Loaded: loaded (/lib/systemd/system/ho...
Your system is using systemd. In some distributions, I've noticed that using the legacy service wrapper can hide some error messages that would be visible using the systemd-native systemctl command. But it looks like there is enough information here. In /lib/systemd/system/hostapd.service file, the line that determine...
Cant Start Hostapd because multiple Errors
1,590,078,237,000
I need a kernel compiled, featuring the qcserial module to have support for the Huawei EM 680 model (Gobi 3000). I got kernel 3.11.6 and can find the appropriate source file in ./drivers/usb/serial/qcserial.c but how can I make sure it gets compiled and loaded statically? I can't find it in the kernel config dialog......
If you look into drivers/usb/serial/Makefile, you'll see that CONFIG_USB_SERIAL_QUALCOMM is responsible for this driver. Execute make menuconfig and goto "Device Drivers"->"USB support"->"USB Serial Converter support"->"USB Qualcomm Serial modem"
how do I include the qcserial module in the kernel?
1,590,078,237,000
Installed a fresh Debian Wheezy to enjoy Gnome 3 but it starts in fallback mode. I suppose that's because the loaded drivers do not support 3D acceleration. Installed packages I know are relevant: xserver-xorg-video-ati libgl1-mesa-dri The Gnome 3 was working fine with Ubuntu 12.04, and I belive it was using the FOS...
The firmware for your graphics card is missing. You have to explicitly install firmware-linux-nonfree from the non-free repository. Add the non-free repository to /etc/apt/sources.list (or /etc/apt/sources.list.d/) Run apt-get update as root Install firmware-linux-nonfree with apt-get install firmware-linux-nonfree ...
How to configure FOSS ATI drivers on Debian Wheezy and ATI RS880 [Radeon HD 4250]?
1,590,078,237,000
I'm trying to set up the Hashicorp Vault Agent as a systemd service. I can manually run that agent with the user vault. Note, perhaps that's important: here's the /etc/passwd for that user : vault:x:994:989::/home/vault:/bin/false So I need to do sudo su -s /bin/bash vault to get a vault session. With that in mind, I ...
The option ProtectSystem=full literally mounts /etc as read-only for the process defined in the service: Takes a boolean argument or the special values "full" or "strict". If true, mounts the /usr/ and the boot loader directories (/boot and /efi) read-only for processes invoked by this unit. If set to "full", the /et...
systemd / service user has not the same rights / permission as same user in a shell
1,590,078,237,000
I need to edit /etc/lightdm/lightdm.conf using sed inside specific section, uncomment and set value. This section is [Seat:*] and line is #autologin-user= I expect this change: Before: [LightDM] . . . [Seat:*] . . . #autologin-user= . . . After: [LightDM] . . . [Seat:*] . . . autologin-user=pi . . . I've tried this ...
Try with this, given an altered input file sample: [LightDM] [Seat:*] #autologin-user= [Foo:*] #autologin-user= [Bar:*] #autologin-user= The command: $ sed '/^\[Seat:\*\]$/,/\[/s/^#autologin-user=$/autologin-user=pi/' foo.txt [LightDM] [Seat:*] autologin-user=pi [Foo:*] #autologin-user= [Bar:*] #autologin-user=
Enable lightdm autologin using sed
1,590,078,237,000
I'm trying to connect to a Gateway via ssh. In order to connect to the Gateway I write ssh root@ip_GW , where ip_GW is the ip of the Gateway. So, in order to not always write the ip adress of the GW, i made an alias in the .ssh/config file like this ( I also made key to connect passwordless) : Host GW2 #Iden...
Add the IP address to the list of the host name patterns that should match the configuration section. Here, GW2 and 203.0.113.1 will match: Host GW2 203.0.113.1 #IdentitiesOnly=yes HostName 203.0.113.1 Identity file ~/.ssh/id_rsa_GW2 User root You can find this documented (briefly) with man ssh_config...
~/.ssh/config Host entry not honored when connecting via IP address
1,590,078,237,000
We can put a 3rd party apps new global PATH in /etc/profile, appending to the original $PATH, ok. But.. I can see that the /etc/profile file is provided by a package: aaa_base. What would happen if someone upgrade the aaa_base? The Q: How can we ensure that the $PATH stays somewhere, where an upgrade wouldn't modify...
Since you have an existing /etc/profile.d directory (and presumably the corresponding /etc/profile or /etc/${SHELL}rc files that source files in that directory), I'd recommend placing an /etc/profile.d/3rd-party-app.sh and/or /etc/profile.d/3rd-party-app.csh file with the required code. If you are the packager of the ...
Update $PATH variable that survives updates?
1,590,078,237,000
Ifconfig returns the following: eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.39 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::a00:27ff:fefa:258e prefixlen 64 scopeid 0x20<link> ether 08:00:27:fa:25:8e txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 ...
It appears that the gateway address you are using, 192.168.1.1 does not match the address of your router. If you are using static IP addressing the details much match your network or it cannot work. Start with the IP address of your router. It might be 192.168.1.254. It might be 10.11.12.13. It could be something else...
Internet not working when using Static IP. No current solutions working [closed]
1,590,078,237,000
I have configured Apache2 in Debian 8 and created a website. I created a new .conf file in /etc/apache2/site-avaliable directory. I edited the file properly to point to the directory which holds the .html file. My question is when I enter my url I get a page with has my .html file as a link and I have to click on it t...
httpd has a list of files to try to display when you give a URL that points to a directory, which can be configured with the DirectoryIndex directive. (Its default value is just index.html, so if you renamed your file1.html to index.html, it would also show immediately.) The listing that you see is generated by mod_au...
How to create website in Apache 2 Debian 8?
1,590,078,237,000
I'm trying to make use of Ansible for configuration management and centralized administration. All the machines I'm interested about are actually containers on the host which is going to run Ansible. Currently I am writing a dynamic inventory script that groups the different hosts and makes certain hostvars available ...
If I understand correctly you need to access some ansible variables defined for a generic host. You can access all hosts variables by the dictionary hostvars, that has hostname as primary key, for your example: {{ hostvars['foo']['ipv4']['address'] }} Credits goes to: https://docs.ansible.com/playbooks_variables.htm...
How can I reuse the Ansible inventory for local tasks?
1,590,078,237,000
Is there a way to set default options for cryptsetup? For example, lets say I want to make sure that I only open cryptsetup devices with the -r option. I would like to add it to a config file, so that I don't have to type it every time (and potentially forget it) Reading man cryptsetup did not reveal any information.
AFAIK there is no configuration file for cryptsetup. You can of course define an alias and put that somewhere where it gets read in at login: alias cryptsetup='cryptsetup --readonly'
setting default options for cryptsetup
1,590,078,237,000
When searching the occurrence of the chain /var/log in default configuration files of apache this cannot be found anywhere. But log files are defined as such # part of httpd.conf ErrorLog logs/error_log I cannot understand how does apache decide where to placed its error log file. Why does not apache define exactly w...
If you don't use absolute path, apache assume that it's relative path to ServerRoot directive. According to apache doc: The ErrorLog directive sets the name of the file to which the server will log any errors it encounters. If the file-path is not absolute then it is assumed to be relative to the ServerRoot. In ...
Why does apache not define where to log by default?
1,590,078,237,000
I'm using zsh 5.0.2 (x86_64-apple-darwin12.3.0) on the latest MacOSX. If it makes any difference, I have also enabled oh-my-zsh. The shell seems to be missing the .zshrc file when I want to source it. The result of the execution of the following commands should expose my problem clearly. (~ » is my prompt). The file e...
The . command searches for the file in your $path, it does not by default search in the current directory. That is why it works when you give the absolute path ("$(pwd)"/.zshrc). From the zsh manual about the . command: . file [ arg ... ] Read commands from file and execute them in the current shell environment. If f...
Weird behavior when sourcing .zshrc
1,590,078,237,000
I install slime through ELPA. Here is what my .emacs file looks like: (setq inferior-lisp-program "sbcl --noinform") (add-to-list 'load-path "~/slime/") (require 'slime) (slime-setup) (setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") ("marmalade" . "http://marmalade-repo.org/...
I installed emacs 24 using the Debian amd64 package from Damien Cassou's ppa. I had some problems with slime (I don't recall if they were the same as those above). I fixed it by reinstalling quicklisp (http://www.quicklisp.org/), then using it to install slime: (ql:quickload :quicklisp-slime-helper) It works fine wit...
problems using slime on emacs24
1,590,078,237,000
How can I install another PHP version? I have php 5.4.5 for now, but I need the version 5.3.15 running too. How can I perform this on Fedora 17? Without using a Virtual Machine?
One of the standard ways of doing this is to download the php source code from http://php.net/downloads.php and compile it with ./configure --prefix=/opt/php/5.3.15 or something to that effect. Then, your new php will not conflict with any system packages. Note that on Fedora, you will need to install a bunch of -deve...
Install another PHP version. Fedora 17
1,590,078,237,000
So I have a KVM machine, where I run an Ubuntu 12.04 (server edition). I want to compile a minimalistic kernel for the KVM guest, but I only found the howto for hosts, and guests with paravirtualization. I want to compile a kernel for a guest. Nothing more. With only the things it needs.
If you don't care about paravirtualization, then compiling a minimalistic kernel for a KVM guest is the same as compiling a minimalistic kernel for hardware. There is lots of documentation available on the latter topic: https://www.google.com/search?q=linux+build+minimal+kernel
How to compile kernel for KVM guest (without paravirtualization)?
1,590,078,237,000
Is there a command to set settings in sshd_config, instead of manually editing the file? I would prefer it to do this way, because it's easier to automate. Otherwise I'd have to grep config with my script.
Although there is no standard tool to change settings in sshd_config, Ubuntu's post-installation script has some functions for modifying the configuration. It supports: enabling and disabling options renaming options reading the value of settings, e.g. it retrieves 22 from Port 22 setting the value of settings, e.g. ...
wrapper command for sshd_config?
1,590,078,237,000
I am running syslog-ng on debian. How do I check which conf file was loaded upon startup? Neither systemctl status syslog-ng nor systemctl show syslog-ng tell me.
By default, syslog-ng loads the configuration from a hard-coded default configuration path (you can check that path with the syslog-ng --help command, it's next to the --cfgfile option. This can be changed via the command line with the mentioned option. If you want to see all the configuration files loaded recursively...
How do I check which conf file was loaded by syslog-ng when starting?
1,590,078,237,000
I'm about to upgrade from Debian 10 to 11. During this step, and like when I do common apt-get upgrade or dist-upgrade, I'm expecting to receive a lot of questions: "Do you want to replace or to keep your configurations files?" And having little knowledge (or absolutely no, sometimes) about the goals and the effects o...
Most of the time, keeping your current configuration is the best option - you generally want an upgrade to be providing the same functionality in pretty much the same way, and you generally don't want to lose any hand-crafted configuration changes. That's why it's the default. It's extremely rare for an upgraded prog...
During any upgrade, and even upgrading my Linux major version, should I reply: "replace configuration files" or "keep them" when I'm asked for?
1,590,078,237,000
About a week ago (maybe after an update) the starting directory of xfce4-terminal changed from ~ to ~/Documents when launched from the panel. I'm pretty sure that wasn't because of anything I have done: there are no cd commands in ~/.bashrc (and that should not be necessary) and the launcher did not contain anything i...
Looks like the xfce4-terminal defaults to opening in whatever directory it was launched from. I just installed it on my Arch system, and confirmed the behavior. So I looked at its Preferences section (Edit => Preferences) and saw: So, just set that field to /home/yourUser and it should work. It should, but at least o...
xfce4-terminal starts in ~/Desktop instead of ~
1,590,078,237,000
What I'm looking to do is modify ~/.fvwm/config, adding a few lines that would allow me adjust the audio volume by hitting non-standard keys on my keyboard (volume adjustment buttons). I can't see how to detect it though. Is there any way in FVWM to detect when volume and mute buttons are pressed on a keyboard? I'm u...
You'll need to identify the media keys in question so you can tell fvwm to bind them. I suggest using xev(1) for this. Then you'll need to use an appropriate tool to change the volume. Here's an example: Key XF86VolUp A A Exec exec volume_increase +5 Here. "XF86VolUp" is the name of the key which xev told me about,...
Is there a way in fvwm config to listen for non-standard keyboard buttons?
1,590,078,237,000
I've been setting up archlinuxarm installs on my headless raspberry pis and I recently ran into an interesting problem. All of the characters []\{}| are being displayed as different characters in my terminal when connecting over SSH. It doesn't prevent anything from working it is just strange to see and annoying that ...
Your binary data file probably included some sequences that messed up your terminal. Odd that only those characters changed. Sometimes your whole terminal may be gobledihook. You can issue the reset command to clean it up to the initial state. Or you can open a new terminal window.
Characters are being displayed incorrectly in bash
1,590,078,237,000
I need to re-instate an RAID 1 (mirror) array. I have both drives and mdadm tells me the following about them: $ sudo mdadm --examine /dev/sdb1 [sudo] password for pi: /dev/sdb1: Magic : a92b4efc Version : 1.2 Feature Map : 0x1 Array UUID : c3178bbd:a7547105:dca0fc2a:4c137310 Nam...
mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1 Devices get their indices based on the order of create, it's purely ordinal
How do I reassemble mdadm array with both drives available?
1,547,329,167,000
XPROP returns WM_CLASS, and WM_NAME how do I target the different values returned by XPROP in i3?
i3's names are a little different. For all of these if the same key is available as _NET_ it holds precedence to the non-_NET_ variant. For reference WM_NAME can be matched with title. WM_CLASS is a two part field comma-seperated and quoted, The first part is instance The second part is class WM_WINDOW_ROLE is wind...
Is there a list of names indexed by xprop to i3 config?
1,547,329,167,000
Is it possible to customize Dconf's file storing path? I'd like to store Dconf configuration file in one of my synced directory, like Google-Drive/Dropbox or any other for constant syncing. Let's say I have Dropbox auto synced directory at ~/Dropbox I'd like to store Dconf config file at: ~/Dropbox/dconf so that it's ...
man 7 dconf explains that the user configuration is saved by default in file $XDG_CONFIG_HOME/dconf/user. Depending on your system, this often means file ~/.config/dconf/user when XDG_CONFIG_HOME is not defined. You should be able to move this directory to the wanted place, and replace it with a symbolic link. Eg mv ...
Is it possible to customize Dconf's file storing path?
1,547,329,167,000
Does anyone know an easy practical way to remove configuration blocks. I have a file in the format: lease { interface "eth0"; ... } lease { interface "wlan3"; fixed-address 192.168.0.108; option subnet-mask 255.255.255.0; ... } I want to remove the configuration block for interface "wlan3";. I started tr...
With awk: awk -v RS='}' 'NF && ! /interface "wlan3";/{print $0"}"}' infile The output would be: lease { interface "eth0"; ... }
Removing blocks from configuration files?
1,547,329,167,000
I am trying to use augtool to auto edit my /etc/hosts, as I wish to add an alias for localhost (so that I can test my webserver with a different host-name, localy). I have been looking every-ware to find good documentation. I with to find the node with ipaddr of 127.0.0.1 and add an alias to it. I would also like to f...
While adding an alias to a host is not really hard, what's usually more interesting is to ensure a host entry has an alias, i.e. make the operation idempotent. Here is how you can do that with Augeas: set /files/etc/hosts/*[ipaddr="127.0.0.1"]/alias[.="mycouchdb"] "mycouchdb" which will only add the alias if it doesn...
add alias for localhost in /etc/hosts using Augeas
1,547,329,167,000
I just broke a machine running Linux Mint with KDE 4. Thankfully I managed to back up /home/, so I have all my data. Now I've installed Kubuntu with KDE 5, and I'm trying to configure my Shell colorscheme to match my previous setup. I usually created a variant on "Linux Colors" in "Shell Profiles". Where can I find th...
You probably mean the KDE Konsole shell profiles and their color schemes. These are usually saved in ~/.kde/share/apps/konsole/. Custom shell profiles use the extension .profile, custom color schemes use .colorscheme.
Where are the Shell Profile Settings Stored?
1,547,329,167,000
I have been browsing some examples of avahi services files (XML format), and some of them had <!--*-nxml-*--> comment following the document type definition. For example: <?xml version="1.0" standalone='no'?><!--*-nxml-*--> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> <service-group> <name replace-wildcards...
The XML comment <!--*-nxml-*--> will be ignored by any XML parser, so it has no function whatsoever in terms of the actual meaning or function of the XML from that point of view. It is only there to allow emacs to do correct highlighting etc. In vim, this is called a modeline, and would look like <!-- vim: set filetyp...
Is it considered good practice to use a nxml tag in xml conf files?
1,547,329,167,000
[root@localhost ~]# hostname hello [root@localhost ~]# hostname hello [root@localhost ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 [root@localhost ~]# The command line output is as abov...
The system hostname is not set using the file /etc/hosts. The hostname is set using the system configuration management system. Where the hostname is stored persistently depends on the distribution. For instance, on my kali machine the hostname is stored in the file /etc/hostname from where it is read during startup; ...
Why does the hostname command's output differ from /etc/hosts?
1,547,329,167,000
I am not sure , whether i should i ask this question here or some other stack-exchange community , but i am trying some simple commands to run on a list of servers , using python fabric. The code for the command: from fabric.api import run def host_type(): run('uname -s') This will run the uname -s co...
There are two ways that you can do that. Fabric uses openssh on the backend so if you already configured passwordless connection then you will not need to set anything and it will work. The other way is simple as well. You only need to set up the env variables. from fabric.state import env env.user = "user" env.passw...
Running a command on all servers using Fabric
1,547,329,167,000
I've been using Postfix on my CentOS 6 Server on it's default install settings but I would like to configure it to use the mail server from my existing email. I altered the /etc/postfix/main.cf file by adding relayhost = [mail.mywebsite.com]:993 Then at the bottom I added smtp_sasl_auth_enable = yes smtp_sasl_passwor...
Postfix is an SMTP server, but port 993 is used for IMAPS. Try using 25, 465 or 587 instead, depending on what mail.mywebsite.com supports.
CentOS Postfix changing mail server
1,547,329,167,000
I used to use gconftool-2 to edit keys in this way (here I change the cursor shape in gnome-terminal): gconftool --type string --set /apps/gnome-terminal/profiles/Profile0/cursor_shape ibeam But it doesn't work anymore, and I feel like there is a problem with the DBus daemon, even though I can't explain why. This com...
Got it! Credits to this answer. I added the following lines to my .zshrc or .bashrc: sessionfile=`find "${HOME}/.dbus/session-bus/" -type f` export `grep "DBUS_SESSION_BUS_ADDRESS" "${sessionfile}" | sed '/^#/d'` And the settings are now refreshed as soon as I use gconftool-2.
gconftool-2 doesn't refresh with the dbus anymore?
1,547,329,167,000
I have a very basic question here. This thing is puzzling me a little bit. I have two machines, one is my local desktop running Windows and I have cygwin installed in it and second machine I have is in staging domain in our company which is running Ubuntu 12.04. I started Netflix Exhibitor like this in my desktop thro...
Based on the clarifying comments above, your DNS resolver is apparently unaware of the name phx5qa01c.stratus.phx.qa.host.com. You have two general choices: Talk to your DNS administrator and see whether they can make that name available for you to use, or suggest a different name that would work Add phx5qa01c.stratu...
How to recognize hostname on the port number 8080 in Ubuntu machine?
1,547,329,167,000
I upgraded to Fedora 40 and was introduced to its new feature of MAC address randomization (for Wi-Fi interfaces at least). How do I disable it? Links I found didn't work for me: https://discussion.fedoraproject.org/t/f40-change-proposal-wifi-mac-randomization-system-wide/99856/5 https://fedoraproject.org/wiki/Changes...
I tried to follow the advice from link 2 and create 2 I don't think that is what link 2 suggests. The Fedora change introduces a new file /usr/lib/NetworkManager/conf.d/22-wifi-mac-addr.conf. That's all. You can prevent that file from being loaded at all, by creating a file /etc/NetworkManager/conf.d/22-wifi-mac-add...
How to disable MAC address randomization in Fedora 40?
1,547,329,167,000
I have a Linux device that utilizes USB gadget for RNDIS support. The goal was to be able to connect any computer this device without having to mess with IP settings. I've set a static IP address on my RNDIS device. As far as communication goes, everything works. What does not work is my host PC seems to add my RNDIS ...
The RNDIS device may have static IP address, but where and how does the host PC get the IP address settings for connecting to the RNDIS device? If the RNDIS device provides the settings for the host, using DHCP, PPPoE or some other mechanism, then the RNDIS device should not provide a default gateway setting if it is ...
RNDIS interface gets a gateway
1,547,329,167,000
First of all, I know what the option does. According to the Arch Linux Wiki, it gives the command line "wpa_cli" utility the permission to rewrite wpa_supplicant.conf: Warning: Setting update_config to 1 allows wpa_supplicant to overwrite the configuration file. When overwriting, wpa_supplicant will reset file permis...
The option appears to be documented in the example configuration file on the project's web site: # Whether to allow wpa_supplicant to update (overwrite) configuration # # This option can be used to allow wpa_supplicant to overwrite configuration # file whenever configuration is changed (e.g., new network block is adde...
Where is the wpa_supplicant.conf option "update_config=1" documented?
1,547,329,167,000
I am asking this question about several different linux systems: Ubuntu Raspbian Arch Linux Each of these systems offers a GUI with a list of Wifi servers in which you pick the one you wish to connect to. I would like to know, for each of these, where this choice is persisted, so that it's available the next time y...
For systems using NetworkManager (which includes all of the above distributions, at least in common configurations), the location is typically /etc/NetworkManager/system-connections; e.g: $ ls /etc/NetworkManager/system-connections Starbucks.nmconnection Company Wifi.nmconnection Where the files look something like: ...
In what file is the WiFi connection chosen in the GUI persisted?
1,547,329,167,000
I'm making a file manager system for managing my projects. My package is named filesystem. I need a config file that stores the path to the root of my file system. I think I need to create a file /etc/filesystem/root.conf and add it to DEBIAN/conffiles. If the file doesn't exist I want to prompt the installer for a ro...
To prompt the user for a root directory, you should use debconf. This will allow you to prompt the user, while still allowing pre-configuration, and explicit re-configuration using dpkg-reconfigure. See Configuration management with debconf and man debconf-devel for details, in particular Config file handling in the l...
Common practice for config files
1,547,329,167,000
I have a custom ssh config on a directory. When the jump parameter -J is passed, ssh ignores the custom config, instead it looks at the home config at ~/.ssh/config. Is this how ProxyJump works or is it a bug? This doesn't work: ssh -vvv -F config -J [email protected] [email protected] OpenSSH_9.3p1, OpenSSL 3.0.8 7...
The two methods are not equivalent and I think your interpretation is wrong. With ssh … [email protected] ssh [email protected] you connect from the local computer to 192.168.56.11 and then from 192.168.56.11 to 10.0.3.120 (by running ssh [email protected] on 192.168.56.11). The second connection uses credentials and ...
Custom ssh config is ignored with jump host
1,547,329,167,000
We have an Ubuntu PC that has one user, dev, which multiple people ssh into simultaneously. How can each user that's sshed into dev use their own .conf files? There are numerous scripts that only work for dev, so it's not practical for us to have separate users for every person. We could run something like su - dev -c...
You're trying to reinvent user accounts. Don't do that but instead use the tools you've already got. There are numerous scripts that only work for dev, so it's not practical for us to have separate users for every person. Fixing these would be the better investment of time. This way you'll have a standard maintainab...
Multiple users ssh onto the same account simultaneously. How can everybody use their own .conf files?
1,547,329,167,000
How to ignore the the last cursor position of the editor XED by console? It is known that something similar is possible in the following way: XED, wipe the history for search: gsettings reset org.x.editor.state.history-entry history-search-for XED, wipe the replace history: gsettings reset org.x.editor.state.history-...
You can disable the restore-cursor-position with gsettings set org.x.editor.preferences.editor restore-cursor-position false This is permanent. If you want a temporary solution you can invoke xed with +1 as option and the filename in question e.g. xed +1 infile that will open infile and position the cursor at the be...
How to temporarily ignore/disable the the last cursor position of the editor XED?
1,547,329,167,000
For Fedora Server 36 was installed MySQL 8 Community through the .rpm from MySQL Community Downloads. Now according with the Editing Conf. Files section is indicated to use the /etc/my.cnf.d/community-mysql-server.cnf file, but it does not exist, it because the /etc/my.cnf.d/ directory is empty, the truly valid file i...
The problem is related to SELinux (Troubleshooting problems related to SELinux) because as @Artem S. Tashkinov said, this allows mysql only to listen on port 3306. So if you want to be able to use another port you (e.g. 3307) you will need to run this command: sudo /usr/sbin/semanage port -a -t mysqld_port_t -p tcp 33...
Is not possible change MySQL's port at Fedora Server 36
1,547,329,167,000
Please consider the prior discussion as background to this new question. I have modified my script and applied the same filesystem options to my USB drive's ext4 partitions using tune2fs, and mount options specified in the fstab. Those options are all the same as for the previous discussion. I have applied those chan...
Some ext4 filesystem options may not take effect if specified in /etc/fstab as they require changes to filesystem structures. Some of those can be simply applied with tune2fs while the filesystem is unmounted, but there are some options that may require running a full filesystem check after tune2fs to take effect prop...
EXT4 on USB - how to specify journalling behaviour to be same as for root disk partitions
1,547,329,167,000
The idea is to have a docker image, or something similar, where I configure a whole bunch of hardware-unrelated things, and then deploy that to an actual device like a raspberry pi or plain x64 server. I'm assuming this is not possible to do it this straightforward, since docker has some virtualized hardware that will...
I assume that what you are looking for is a way to "clone" an image of the installed system with applications, configuration etc.) to a different machine (actual bare-metal hardware, not a virtual machine). So you should start off also with real hardware as the source, not a virtual machine or Docker container. Instal...
Linux config & applications deploy on fresh hardware
1,547,329,167,000
I recently came across the Linux password change method via the GRUB by entering single user mode. After some digging around I found some articles on how to secure it with a sha512 hashed password.While this sounds like a good option to secure GRUB I also read you can simply change it using a Linux installation. So ho...
So how can you go about securing the password in a way that cannot be modified or removed through the use of a Linux installation? This is not possible. If someone has physical access to your device, they can do everything. You have two options: Encrypt all the partitions and boot from e.g. a USB stick which only y...
Securing GRUB password from linux installation
1,547,329,167,000
I find myself preferring the interactive mode that can be accessed by adding the -i flag when running Alpine's apk over the default non-interactive mode. However, it is rather tedious to constantly write e.g. # apk add -i over # apk add. Is there any way I can make the interactive mode the default mode of operation fo...
The source code of apk has this function that might be of interest. static void setup_automatic_flags(void) { [...] if (!(apk_flags & APK_SIMULATE) && access("/etc/apk/interactive", F_OK) == 0) apk_flags |= APK_INTERACTIVE; } APK_INTERACTIVE is the flag enabled by the -i option: #define GLOBAL...
Can you configure Alpine's apk to be interactive by default?
1,547,329,167,000
I'm trying to use the postconf(1) command to add a new entry to the master.cf file like so: $ sudo postconf -e -M 'submission/inet=private=n unpriv=- chroot=y wakeup=- maxproc=- command=smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o syslog_name=postfix/su...
Yup, annoying, isn't it, the way it is so badly documented. Try: sudo postconf -M submission/inet="submission inet n - y - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o syslog_name=postfix/submission" And a postconf -M | grep submission will hopefully confirm your requirements.
How do you use the `postconf -Me ...` option?
1,547,329,167,000
How to set an alternative path for the zsh history file instead of the default ~/.zsh_history?
~/.zshrc ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ HISTFILE="your/custom/history/file/path"
Set custom shell history file [duplicate]
1,547,329,167,000
Operating System: Debian GNU/Linux 10 (buster) Kernel: Linux 4.19.0-17-amd64 Architecture: x86-64 I am studying behavior of crontab -e. Are following assumptions correct? crontab -e edits the crontab file in "default editor" Such "default editor" is selected by sudo update-alternatives --config editor If printenv EDI...
man crontab answers most of your questions; if you’re using Vixie Cron: The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the editor, the modified crontab will be installed automatically. If neither of the environment variab...
Behaviour of crontab -e and environmental variables or configuration of default editor ( Debian )
1,547,329,167,000
When I open xpdf, I'm seeing a bunch of errors printed to my console: Config Error: No display font for 'Courier' Config Error: No display font for 'Courier-Bold' Config Error: No display font for 'Courier-BoldOblique' Config Error: No display font for 'Courier-Oblique' Config Error: No display font for 'Helvetica' Co...
It turned out on Arch Linux specifically (not sure about other distributions), the file /etc/xpdfrc is not all comments. Possibly the Ghostscript fonts are not installed in the "default" location (as explained in /etc/xpdfrc), which is why the font mappings (fontFile) are required. The solution for me was to: cp /etc/...
xpdf: Config Error: No display font for
1,547,329,167,000
I'm new to QEMU and currently playing around with QEMU config file to understand how it works. I tried to put all the options of my simple QEMU command line sudo qemu-system-x86_64 -cpu host -enable-kvm -m 8192 -nic user,host=192.168.0.2,net=192.168.0.2 -nic bridge,br=virbr0 ubuntu.img in the config file qemu.cfg and...
After hours of googling I didn't find any comprehensive manual related to the syntax of the configuration file. So I looked at the source code and here is the resulting config file: [nic] type = "user" host = "192.168.0.2" net = "192.168.0.2" [nic] type = "bridge" br = "virbr0" [memory] size = "8192" There are some...
Qemu config file error "Invalid parameter host"
1,617,612,428,000
According to the man-page, it's possible to rebind keys in zathura, but I can't seem to get it to work. N is "search next" and n is "search previous". I would like it to be the other way around. However, when adding this my file, looking at the documentation : unmap n unmap N map N search previous map n search next ...
Hey not sure if it still matters but you just forgot to add [normal] after the map. I have this in my config and it works: map [normal] n search forward map [normal] p search backward Now to unbind \ as search and replace it is something I am still trying to figure out.
zathura config keybinding not working as supposed to in the documentation?
1,617,612,428,000
Can someone please share examples of when and/or where the rpmrc files under the path (/etc/rpmrc and ~/.rpmrc) are used by a system administrator ? Evident from the question but stating it for clarity - I am noob s/w eng and have no experience with Linux, much lesser with CentOS. I have scoured the internet for when,...
The file /etc/rpmrc is old and obsoleted. Modern systems use /etc/rpm/macros.* or even /usr/lib/rpm/macros.d/. You should not touch it. Not even as a user. Not even as a packager or DevOps guy. People creating the distribution put there the distribution default. Nearly all macros do not affect runtime. They are read a...
Example of customisations with rpmrc?
1,617,612,428,000
A mysterious '~' directory recently appeared inside my home directory (as in ~/~). Inside I found a single hidden directory .confit which contained a single directory chromium. Inside that ~/~/.confit/chromium directory were several of the same contents as ~/.config/chromium. I have been using Chromium for years and t...
I found it. User error sure enough. My i3 config file was the culprit. I had keybindings set to launch chromium with flag --user-data-dir=~/.confit/chromium/... Really obvious in hindsight. Changed it to --user-data-dir=$HOME/.config/chromium/... and it works correctly now. Thanks for all the help!
Chromium suddenly started creating redundant '~' directory inside home directory. How to get rid of it?
1,617,612,428,000
Is it possible to define a configuration file for zsh scripts? I am running macOS 10.15 and the default shell is zsh. I have defined, i.e., alias abc="echo yes" in ~/.zshrc, ~/.zsh_profile, ~/.profile, and ~/.zsh_login, every configuration file I can think of. However, a shell script t.sh calling abc will complain com...
For any zsh script you run, ~/.zshenv will be sourced: => cat ~/.zshenv alias abc="echo yes" => cat t.sh abc => zsh t.sh yes A simplified hierarchy of dotfiles for zsh: ~/.zshenv - sourced for all zsh scripts. ~/.zshrc - sourced for all interactive zsh sessions (those attached to a terminal). This is usually the bes...
Configuration file for shell script?
1,617,612,428,000
I've noticed that the PASS_MIN_LEN is missing from the password aging controls section inside /etc/login.defs (Ubuntu 20.04 LTS). At the end of the file there is a note that it's obsolete, alongside other options, and someone needs to edit the appropriate file in /etc/pam.d directory. ################# OBSOLETED BY PA...
Pluggable Authentication Modules (PAM) is a (not really) newer generic API for authentication originally proposed by Sun Microsystems in 1995 and adapted a year later on the Linux ecosystem. With an API change, don't expect things to keep the same name (nor to always map exactly the same). from man pam_unix: OPTIONS ...
PASS_MIN_LEN missing from login.defs
1,617,612,428,000
I keep asking myself how to get familiar with the software (mostly a daemon) and its configuration. When running man <program name> I am very overwhelmed by the options available. How do you or other professional system administrators learn what they need from the manual? Which steps are made by you/them to get a cl...
Unix/Linux systems are complex beasts. Welcome to a wonderful world. Check out the site of your favorite distribution, they should have some "introduction to system administration" pages. Look for the various "introduction to Unix/Linux command line" tutorials. The various GNU tools (workalikes of much of the traditio...
How to handle information overflow of man and the documentation?
1,617,612,428,000
I have a device DEV1 which should communicate with device DEV3, however in the middle there is DEV2. My understanding is that I need to use IP Forwarding in DEV2 and edit route tables on DEV1 and DEV3. For DEV2 I have enabled IP Forwarding: -> sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 1 I can’t set up rest o...
Given that the two routers allow all connections to pass from either side the simplest thing is to add new IP addresses to the two interfaces of DEV2. We do this so that DEV2 can easily distinguish between packets meant for it, and packets meant to go through: ip addr add 192.168.2.3/24 dev INTERFACE2 ip addr add 10....
How to configure IP Forwarding
1,617,612,428,000
I want a specific matched User to have its 'ssh/scp' activities logged in an alternative facility. The current default is AUTH, but I'd like to log stuff for user 'dummy' to syslog Facility 'LOCAL2'. I've tried this in /etc/ssh/sshd_config, without success: Match User dummy SyslogFacility ...
The current version of OpenSSH's sshd, which is typically ahead of the OpenSSH version provided in AIX, does not support the SyslogFacility directive in a Match block, just as it says. The sshd documentation says, for the Match directive: Only a subset of keywords may be used on the lines following a Match keyword. A...
OpenSSH Server: Directive 'SyslogFacility' is not allowed within a Match block
1,617,612,428,000
I am sending mail message logs and amp logs from the same server 10.10.10.10 via syslog to my RHEL7 server. I am running rsyslog and have the following config file: mail_logs.conf $template NetworkLog, "/var/log/mail_logs/mail_logs.log" :fromhost-ip, isequal, "10.10.10.10" -?NetworkLog & ~ And my mail_logs.log looks...
You are using one of the older, more basic filter styles supported by rsyslog. A slightly less old style allows you to use expressions including the and operator. The property programname should hold the "mail_mess_logs" string. So you can do if $fromhost-ip=="10.10.10.10" and $programname=="mail_mess_logs" then -/v...
How to edit my config file to create two log files while ingesting syslog events?
1,617,612,428,000
I am trying to get a samba share setup so that users have both read and write permissions. I thought that I would be able to do this by editing /etc/samba/smb.conf to add my share like so: [CLOUD] path = /cloud writable = yes security = user valid users = neon, win write list = neon, win and then runni...
Try this: [CLOUD] writeable = yes path = /cloud valid users = neon,win Restart smbd Check also read/write permissions directly in your Linux system when you have logged in as user neon or win. I often had to sign out/in again in Windows
Samba write access problem: parameter does not show in testparm even though it is in smb.conf
1,617,612,428,000
Is there a LAMP-MySQL (or equivalent) agnostic way to create a DB stack that includes: DB-user and a relative password DB with the same name as of the user Setting a host for the DB (say, localhost) Give the user all privileges The reason I need such a way or approach is to have easier life when working with differe...
I am not sure whether anything already exists (i.e. in Galaxy), but Ansible certainly provides all the building blocks to do this. A reason this may well not have been done, or at least released publically, is that there is no one way to configure a database, much less an agreed method that any DB technology should be...
LAMP DB-agnostic way to create a DB stack
1,617,612,428,000
I know that some of the advantages of Ansible over many other CMs are these: Ansible's scripts being written in YAML, a simple serialization language. The fact that one doesn't have to install it on the machines you deploy its commands/playbooks. Ansible's strong user base and community (for example, galaxy-roles) I...
In Ansible push mode, a centralized server connects to other target servers and runs a series of commands to set the target servers into a desired state. Because the centralized server can potentially serve hundreds or thousands of target systems, this can put quite a bit of load on the centralized system. In pull mod...
What's the difference between CMs "push" method (Ansible) to "pull" method (Chef/Puppet)?
1,617,612,428,000
I'd like to be able to host users who have different native languages (e.g. English, French, Spanish, German and so on). Is there a way I can configure a system so that man pages are available in each language (for both the base install and any packages added via the OS package manager)? If so can this be configured t...
Most distributions (and perhaps even all general-purpose distributions) are already set up like this. You’ll see manpages in various languages under language-specific directories in /usr/share/man; for example, /usr/share/man/de, /usr/share/man/fr... These manpages are used automatically, based on the language specifi...
Linux - How to setup a multi lingual system?
1,617,612,428,000
Below is the current configuration for Syslog-NG logging, locally, source s_network { udp( flags(syslog_protocol) keep_hostname(yes) keep_timestamp(yes) use_dns(no) use_fqdn(no) ); }; destination d_all_logs { file...
If you want to combine multiple match statements, use or: filter send_remote { match("01CONFIGURATION\/6\/hwCfgChgNotify\(t\)", value("MESSAGE")) or match("01SHELL\/5\/CMDRECORD", value("MESSAGE")) or match("10SHELL", value("MESSAGE")) or match("ACE-1-111008:", ...
SyslogNG-How to optimise filter and log statements? [closed]
1,617,612,428,000
What's wrong with my config? I had to --force the logrotate a couple times to see changes, but the numbering is all wonky. ----@----------:/var/log/upstart# ls -Anh total 4.0G -rw-r----- 1 0 0 56K Aug 21 08:41 graylog-server.log -rw-r----- 1 0 0 1.1G Aug 21 08:36 graylog-server.log.1.1.gz -rw-r--...
It seems that you are log-rotating already log-rotated logs. In your config you use /var/log/upstart/*-server.log.* to select the files to rotate. This expression matches graylog-server.log.1 but no graylog-server.log. So you are rotating the old rotated log files but not the current log file. Probably you want to use...
Upstart Logrotate?
1,617,612,428,000
I started with the default localhost.cfg found in /usr/local/nagios/etc/objects. I simply added a service field at the top of the appropriate section. I used existing "ping" service section as a template ... ############################################################################### # # SERVICE DEFINITIONS # ####...
Check the command.cfg config file that sets up all the commands referenced in the localhost.cfg file
Nagios failing restart with new service directove in localhost.cfg [closed]
1,617,612,428,000
When I install Postfix as a mail server to transfer emails from my Content Management System's contact-forms, into my Gmail account, I choose the option internet-site. After I choose that option Postfix asks me to insert the domain of my site. But what I have 2 or more sites instead just one? What domain should I inse...
The list of choices is not a standard Postfix feature; it's probably the result of the package management system of your Linux distribution. Perhaps Ubuntu, or some other Debian-related distribution? If I'm correct, you should treat the option dialog as an "easy first installation wizard" only. For a non-trivial confi...
Why does Posfix “limits” me to use only one domain under “internet-site”?
1,617,612,428,000
Running Yum (version 3.4.3) on a Centos 7.3.1611 system. I've tried to enable colors on yum for a while now, with no luck. Here's what I've tried: Using the --color=always option on a command (e.g. yum list installed --color=always) Adding color=always to /etc/yum.conf In addition to adding that to yum.conf, specify...
It has to be color=on instead of color=always in /etc/yum.conf.
Yum color=always option isn't working
1,617,612,428,000
In all instructions I found to setup vhosts on Ubuntu LAMP you need to create a new vhost conf file for each vhost. Can I declare all my vhosts in one single file and what I need to do for it?
You can do one big file, and if you only have a host name or two to worry about it will work fine. Even with LOTS of hosts one file will technically work. BUT ... when you have lots of hosts (more than 2 or 3 for me), having each one in its own file, named after the FQDN w/ a SSL indicator (ie ssl-webapp3.example.com...
Ubuntu all of Apache's vhosts in one file
1,617,612,428,000
Can I use systemd-nspawn to setup a "chroot" install(in that case debian using debootstrap) before booting it? I.e. unattended install and setup. I need to set the keymap, hostname, maybe timezone and locale. And I'd like to use systemd tools such as hostnamectl, localectl, timedatectl,... Is it possible and the way t...
Is it possible yes. I've run Debian in nspawn. It works great with minimal installs. On the other extreme, if you do this with a desktop install, you should expect to find one or two little issues to work around. should I use config files? Are they even recogised by systemd? For example if I set a hostname in /etc...
System setup using systemd-nspawn
1,617,612,428,000
I'm writing a bash script to install a certain development environment on a computer. In order to do this I need to enable the CONFIG_USB_ACM module in the kernel. I am doing this through: cd ~/l4t-kernel-surgery-kernel/kernel-4.4 zcat /proc/config.gz > .config # PART I NEED IDEAS vim .config # change the line that s...
zcat /proc/config.gz | sed 's/CONFIG_USB_ACM=n/CONFIG_USB_ACM=m/' > .config
Kernel Surgery in a Script
1,617,612,428,000
Once an openbox session is running, ps ax | grep openbox shows that it has been started from ~/.config/openbox/lubuntu-rc.xml. Now, openbox --reconfigure will re-read this file and apply any changes made in it. Can it be reconfigured with a different configuration file stored somewhere else? If not, would the option -...
Have you looked into openbox's manual? Or running: openbox --help Note that there is the option --config-file. Although I am not personally in need of multiple configurations I can think of so many situations it would be much appreciated. So the next time you need a different configuration just replace your normal op...
How to reconfigure openbox from a different configuration file
1,617,612,428,000
After installing Debian Jessie on a System76 Gazelle laptop I was presented with the classic "black screen with blinking cursor". I figured this was some problem with X so I tried startx - it gave me this error: (EE) Fatal server error:(EE) no screens found(EE) I ran Xorg -configure as root and then X -config /root/...
In my case it was not a question of missing firmware, unsupported hardware, etc. I ran a postinstall script from d-i preseed that grabbed the latest kernel from backports, but for some reason did not install the latest X as it usually does. Running apt install xserver-xorg-video-intel -t jessie-backports fetched the c...
Xorg does not recognize laptop screen?
1,617,612,428,000
So here's the deal; I was reading the man page for xorg.conf when I decided to edit /etc/X11/xorg.conf to try some of the flags listed in the 'SERVERFLAGS' section. When I opened the file in vim, I found it to be empty (or nonexistent), so I added one line to the file. I believe it was Option "DontZoom" "True" I don't...
When you supply an xorg.conf file, this is the complete configuration. You can't just add one option, you have to supply all mandatory parts, including declaring the input and output peripherals. It's common for programs to start with sensible options and allow them to be overridden by a configuration file, but in the...
Why did xorg.conf break X?
1,617,612,428,000
I wrote a simple module for the Linux Kernel and it has a stack buffer overflow vulnerability. I want to exploit the module, but I have to turn off the stack protector in the kernel first. How could I do this quickly and simply? Is it required to compile the kernel every time? Is there any other way to turn off sta...
Those options work by passing options to the compiler, so the most straightforward way is to recompile the kernel. However for a reproducible and module-specific way kbuild allows you to set custom CFLAGs on a per-module basis. https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt You particularly want to set...
How to turn off stack protector in linux kernel easily? [duplicate]
1,463,327,505,000
A router runs firmware containing BusyBox and in addition to flash memory the device has secondary memory storage. That USB stick is mounted at both /media/Main and /opt: # mount | grep sda /dev/sda1 on /media/Main type ext4 (rw,noatime,data=ordered) /dev/sda1 on /opt type ext4 (rw,noatime,data=ordered) Duplicates in...
Where to export After having read https://bitbucket.org/padavan/rt-n56u/wiki/EN/UsingCron a good way to export configuration variables for both crontab and shell usage, is to insert the /opt related variables into /opt/etc/profile. Where and how to source To use ("source") the variables in cron it is suggested to: cr...
How to “export” configuration variables and "source" them on embedded Linux?