date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,318,598,595,000
There is a lot of stuff that is configured using directories in /etc with .d suffix, which stands for "directory" and even though Unix doesn't require such suffix, it is used to avoid name clashing. It's hard to google it. I wanted to disable one of the scripts in /etc/update-motd.d/ and could not do it. How to disabl...
It depends a lot on the directory and distro in question. For example: update-motd.d scripts in Ubuntu have to be executable, as the update-motd manpage says: Executable scripts in /etc/update-motd.d/* are executed by pam_motd(8) Files in profile.d in Ubuntu should have the a .sh extension, since /etc/profile conta...
How to disable script in "dot-d" (with suffix ".d") directory in /etc without deleting it?
1,318,598,595,000
Almost 3 weeks that, in my downtime, I try to find out where the files cron.allow & cron.deny are located in debian7 distro. No way, it seems that by default they are not in the system. 'Just' for hardening purposes, I would have those files available in my system. My question is actually if I can just touch them and...
From the manual man 1 crontab: If the /etc/cron.allow file exists, then you must be listed (one user per line) therein in order to be allowed to use this command. If the /etc/cron.allow file does not exist but the /etc/cron.deny file does exist, then you must not be listed in the /etc/cron.deny file in order to use ...
debian7 cron.allow & cron.deny files
1,318,598,595,000
After a long struggle I finally seem to have installed the non-free wireless firmware for my wireless NIC. I'm trying to set up a file server, so I want to configure the network to be static. Would one of you guys mind helping me? For example I don't know what my /etc/network/interfaces file should look like, currentl...
Have you tried Network Manager? It's easy to set up static IPs for wireless networks using the GUI. Once you get things working there, if you want the connection available all the time even when you're not logged in (e.g. for a file server), just select the "Connect Automatically" and "Available to all users" checkb...
Configuring Wireless Network
1,318,598,595,000
Recently I bought this disk and I cannot get rid of funny clicking -- funny because normally not configured disk make dry click. This one make click like a sweet chirp. But besides this, this click occurs every several seconds, and it is annoying. I tried as usual: hdparm -B 254 but it changed nothing. So does anyone ...
This is a known issue and the fix is here: http://forums.seagate.com/t5 Barracuda-XT-Barracuda-Barracuda ANNOUNCEMENT-New-firmware-update-for-Barracuda-1TB-platter/td-p/162362
How to disable clicking in Seagate ST3000DM001?
1,633,501,064,000
I set up a reverse SSH tunnel to access a node, node1, behind a NAT. I have set up an EC2 instance, myEC2, to act as the intermediary. From my laptop, when I want to access node1, I have to SSH into the EC2 in order to then SSH into the node. The workflow is like this: In node1, make sure to run: ssh -i key.pem -R 30...
You're actually using myEC2 as a jump host. You could ssh to node1 from your laptop with: ssh -p 3000 -J ubuntu@myEC2 xavier@localhost The corresponding ssh_config entries would look like: Host node1 Hostname localhost User xavier Port 3000 IdentityFile key.pem ProxyJump ubuntu@myEC2 Note that the IdentityFile there...
SSH config for connecting to host via reverse SSH tunnel
1,633,501,064,000
I have an Ubuntu 19.10-based distro with LightDM installed. I changed the username recently, but lightdm keeps displaying the old username. Is there a way I can fix this? I have tried fiddling with /etc/lightdm/lightdm.conf with no success. Attached are pictures demonstrating what I am talking about. Is this a lightdm...
It looks like the name batcastle is the username, while live is the so-called fingername. Both are stored in the file /etc/passwd. The username (that is the login name) is somewhat more complicated to change, because most likely you want to have the home directory called /home/$(whoami). To change the username, use us...
Lightdm displaying wrong username
1,633,501,064,000
I am bringing in log files via rsyslog and my config looks like the following: root@rhel:/etc/rsyslog.d# head mail_prod_logs.conf if $fromhost-ip=="10.10.10.10" and $programname=="AMP_Logs" then -/var/log/mail_logs/amp.log My logs are all stored in the /var/log/mail_logs/amp.log folder: Oct 18 13:29:28 server.com AMP...
You can do this with a dynamic file template. Use a property replacor to select parts of the %timestamp% property, in particular the option date-day and date-hour and characters 1 to 3 of date-rfc3164 (which is a string like "Oct 9 09:47:08"). Typically, in examples, the template is called DynFile: $template DynFile,...
How to split logs into monthly, daily and hourly folders when bringing in syslog events?
1,633,501,064,000
I'm planning on setting up a new personal OpenBSD-current system by means of installing the latest OpenBSD snapshot, and I would want it to look more or less similar to my existing OpenBSD-current system in terms of local changes made to the files under /etc without actually copying the /etc directory over to the new ...
After upgrading my (old) system to the latest snapshot, a copy of the pristine /etc hierarchy (and also of other variable files under /root and /var) is available in /var/sysmerge/etc.tgz. There is also a separate archive called /var/sysmerge/xetc.tgz holding the base system's default X11 configuration. Note that et...
OpenBSD: Check what files under /etc has changed in comparison to pristine base system
1,633,501,064,000
I want to assign multiple IP4 addresses to a USB->Ethernet adapter in an Ubuntu 18.04 LTS system. I have removed netplan, since I find the yaml-based configuration even more obscure than the traditional way of configuring the network. Since I want the extra addresses to be permanent, I put them into /etc/network/inter...
Because ifupdown is deprecated since the Ubuntu 17.10 release (the /etc/network/interfaces file is used by ifupdown), you should reinstall netplan on your system and remove the ifupdown package. There is how to configure a multiple IP address for a network interface using the following example from the official websit...
Can't permanently assign additional IP addresses to USB ethernet adapter via /etc/network/interfaces. Why?
1,633,501,064,000
Problem I'm transitioning the configuration of my multihead monitors from using some rather ugly scripts to /etc/X11/xorg.conf.d/10-monitor.conf. My layout has two monitors of 1920x1200, one rotated left. The scripts were able to configure this just fine using the following command: xrandr \ --output "DP-1" \ ...
What worked in the end was to explicitly set the virtual screen size and the preferred mode for both of the screens: Section "Monitor" Identifier "DP-1" Option "Primary" "true" Option "Position" "1200 360" Option "PreferredMode" "1920x1200" EndSection Section "Monitor" Identifier "DP-2" Option...
X11 ignores preferred mode
1,633,501,064,000
I've installed a minimal installation of CentOS 7, meaning no GUI, on my Dell XPS 15 9560 laptop.  uname -r returns 3.10.0-862.11.6.el7.x86_64.  The laptop does not have an Ethernet card, but it does have a Wi-Fi card.  During the installation I configured a Wi-Fi connection and I could confirm that I received an IP ...
See https://bugs.launchpad.net/ubuntu/+source/linux-firmware/+bug/1520343 for instructions on the Ubuntu approach to fixing the issue. Here are what I think are the relevant extracts, but note that I have not tested this as I don't have your hardware: If you have kernel 4.5.0 sudo mkdir -p /lib/firmware/ath10k/QCA6174...
How to configure/connect to Wi-Fi with minimal CentOS installation? [closed]
1,633,501,064,000
In /etc/sysconfig/* scripts one can have ordinary name=value assignments, of course. But these files are interpreted by . from a shell, aren't they? Are there any restrictions upon the shell language that can legitimately (i.e. in accordance with whatever rules there are for the operating system) and portably (i.e. a...
short: it depends longer: Redhat and Mageia/Mandriva use a symbolic link for /bin/sh to point to bash, so when those are scripts, you'll get bash acting like sh, or bash itself, depending on whether the sourcing script uses bash or "sh". There are both cases for both systems. Not all of the files in /etc/sysconfig ar...
Is general (POSIX) shell language allowed in /etc/sysconfig/* scripts? Or are there restrictions?
1,633,501,064,000
Since browsers on Xubuntu started using GTK3 instead of GTK2, and when saving a file, the dialog for entering a new folder name is white on white and hence unreadable. I gather this might be changed in ~/.config/gtk-3.0/gtk.css, but I am unsure under what element ID name that would be. Furthermore, is there a system ...
I found the culprit. gtk-theme-config serves both GTK2 and GTK3 applications. Resetting Custom menu colours to its defaults resolves the issue. I opened a bug report against gtk-theme-config. Xubuntu LTS 16.04 comes with version 1.2.1-0ubuntu1. The bug persists in the latest version 1.2.2-1.
GTK3 Folder Name dialog is white on white
1,633,501,064,000
How can I configure ~/.emacs so that I indent how nano does by default? Uses a tab character instead of 5 spaces I can add as many tabs to a line as I please
I added the following to ~/.emacs: (setq-default indent-tabs-mode t) (setq backward-delete-char-untabify-method nil) (setq indent-tabs-mode t) (defun my-insert-tab-char () "Insert a tab char. (ASCII 9, \t)" (interactive) (insert "\t")) (global-set-key (kbd "TAB") 'my-insert-tab-char) ; same as Ctrl+i
How to make 'emacs' indent with tabs exactly how 'nano' does...?
1,633,501,064,000
I have a request to increase the POST limit of a particular vhost in Apache to 20MB. I do neither wish to increase all the vhosts in the server, nor disable modsecurity to that particular vhost. Is it possible to raise the POST limit only of one vhost in ModSecurity?
Indeed you can increase the POST limit of a particular vhost. However, that is configured directly in the vhost file definition and not in modsecurity. For that, add this line to your vhost: SecRequestBodyLimit 20971520 Where 20971520 is 20MB, as this directive expect an argument as bytes. From ModSecurity Handbook ...
ModSecurity+Apache: Bigger POST limit for a vhost?
1,633,501,064,000
Is there a desktop environment in which I can modify all settings completely through config file(s)? And then load them on a new system? I'm currently using Manjaro with KDE, and I really like my setup. I use a dark theme and I've defined a number of custom keybindings. I use several different computers, and I'm also...
What I would like to do is version control the desktop environment config file(s) with git and then simply push/pull changes. All Linux desktop environments (DEs) that I know of store their configurations in files, so choice of DE is not critical for this. On balance though, this ain't such a great idea, because a l...
A desktop environment completely editable through config files?
1,633,501,064,000
I want to change login failure message in Debian 8 x64 login: root password: login incorrect - /this/ login: Can you tell me how to do that? P.S.: and for more - how to set number of login attempts? Something like: 3 failed attempts and then 15min cooldown.
Here: https://github.com/shadow-maint/shadow/blob/master/src/login.c it is hardcoded at line #834: (void) puts (""); (void) puts (_("Login incorrect")); So you have to modify the source then compile login.c for your system. ps: one question per post
Change login failure message
1,633,501,064,000
It is my understanding that on a desktop/laptop for normal, personal use (not servers or for other specialized tasks), one of the primary benefits of having /home on its own partition is keeping the user's files and quite a lot of application configuration files between re-installs (as novice Linux users are wont to d...
As a rule of thumb, applications you run as a non-root user will put their configuration under /home. System-wide configuration resides under /etc (and to a lesser extent under /var/lib and other locations), but applications not running as root don't have write access to these locations. As for your 2nd question, it d...
Are configuration files which are desirable to keep when reinstalling normally kept in /home?
1,633,501,064,000
So far this is what I've done: $ less /etc/nginx/hhvm.conf location ~ \.(hh|php)$ { fastcgi_pass unix:/var/run/hhvm/sock; include fastcgi_params; } $ less /etc/hhvm/server.ini ; php options pid = /var/run/hhvm/pid ; hhvm specific hhvm.server.file_socket = /var/run/hhvm/sock hhvm.server.type = fas...
You should check the file permissions. nginx must be able to write to the php5-fpm or hhvm Unix socket. You probably can find a line like this one inside the nginx error log /var/log/nginx/error.log, confirming that this is the problem: 2015/10/28 16:32:24 [crit] 14845#0: *1 connect() to unix:/var/run/php5-fpm.sock fa...
How do I configure UNIX socket in nginx/HHVM?
1,633,501,064,000
The following /etc/network/interfaces file brings up the dummy0 interface automatically at startup (or using the ifup command), but without multicast. What is the proper way to enable multicast in this file? # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback auto dummy0 iface dummy0 ine...
Try: auto dummy0 iface dummy0 inet static address 10.10.0.1 netmask 255.255.255.0 post-up ifconfig dummy0 multicast
How to set multicast in /etc/network/interfaces?
1,633,501,064,000
I was trying to configure LightDM. It appears that lightdm.conf is sensitive to trailing spaces. I found that I get different behavior with greeter-hide-users=true and greeter-hide-users=true where the second has a trailing space. Without the space, the greeter hides the list of users as I expected. With the space, t...
It depends on the configuration, /etc/passwd for example can be whitespace sensitive, because then you've set a user's shell to /bin/tcsh and then they cannot login because /bin/tcsh does not exist. This can also be difficult to debug; logging should ideally quote or bracket things so the logs have '/bin/tcsh ' or [us...
Are configuration files usually sensitive to trailing whitespace
1,633,501,064,000
I'm using vim, tmux and zsh. I love those tools. I spent a lot of time to configure those tools, particularly Vim. In my day-to-day job, I have to access a lot remote machines. I use ssh to be connected with remote servers, Raspberry PIs or virtual machines. For now, every time I access to a new machine, I have to rec...
Assuming you have root access to the machine, you could write an installation routine. I made a few assumptions, as the availability of apt-get #script, saved local, executed on ssh server: #install tools: apt-get -y install tool1 tool2 #be careful with the -y option, though #new zsh tools: #load standard .zshrc fi...
A way to keep dotfiles and configuration with ssh
1,633,501,064,000
I had a server restart and since then I am no longer able to run any commands under SSH. Any command will just return something like: -bash: ls: command not found I realize my $PATH must have been changed somehow, doing /bin/ls seems to work fine. An echo $PATH returns: /usr/local/sbin:/usr/sbin:/sbin:$PATH:/opt/jdk1....
You can execute the following command to add /bin, or whichever directory you need, to PATH. export PATH="$PATH:/bin" You can then add that line to .profile or .bashrc (if you use bash) to make sure that directory is included in your path each time you log in.
How to reset $PATH on CentOS 6.5
1,633,501,064,000
I'm building a cross compiled 3.2.15 kernel for a Marvell Armada 370 system. The vendor's default config file for this is armada_370_v7up_defconfig. So when I perform a make armada_370_v7up_defconfig step, shouldn't that result in a .config file that matches the armada_370_v7up_defconfig file? Instead, I'm seeing a ...
Defconfig generates a new kernel configuration with the default answer being used for all options. The default values are taken from a file located in the arch/$ARCH/configs/armada_370_v7up_defconfig file. These default configurations are not designed to exactly fit your target but are rather meant to be a superset s...
Linux kernel build : shouldn't make <manufacturername>defconfig yield the same .config file?
1,633,501,064,000
I have no problem adding config files to a given script, but automatically updating them is another matter. In this instance I'm providing a few variables to a script, and I'd like the script to be able to change the values provided by the config file. Is there a standard way to change the value of a variable in a run...
Using sed Starting with this file: $ cat >file EXIT_ON_GEN="true" //exit on successful generation of text file if true One method for changing true to false (and displaying the new version on the terminal) would use sed: $ sed 's/^EXIT_ON_GEN=[^[:space:]]*/EXIT_ON_GEN="false"/' file EXIT_ON_GEN="false" //exit on succ...
Updating config files within the script that references them?
1,633,501,064,000
I'm using OSX Mavericks. Using VIM 7.3, I can't seem to get the "hybrid" line numbers to work. I was reading a tutorial stating that if both set number and set relativenumber were included in the .vimrc file, you could get a relative number on all lines but get the actual line number on the current line you're editin...
In Vim 7.3, the combined relativenumber-number setting you describe is not supported. See :help relativenumber, which states that: When setting this option, 'number' is reset. Vim 7.4 supports using both together, and the same section says that: The number in front of the cursor line also depends on the value of 'n...
on osx vim 7.3 set number set relative number not working
1,633,501,064,000
Let's say I didn't know what ~/.bashrc is for. Is there a command that would tell me what the file is/does? Other than googling for an answer. The man pages have a files section, maybe there is a way to tell man: give me the man page for the command that has this file in its man page FILES section. Does something like...
If you have a package manager, you can query, which package owns a given file. On Arch Linux, you can use pacman -Qo FILENAME On Ubuntu, Debian and other distributions with apt, you can use apt-file FILENAME To search man files, you can use zgrep cd /usr/share/man find -name *.gz | \ # List all *.gz files wh...
Find command associated with configuration file
1,633,501,064,000
I am looking for an Open Source Voice Chat Application, like Skype, but within an isolated intranet (no Internet is available). Is there any application which can run on Scientific Linux or CentOS? Client-Server will be OK, but our need is Client Based. Update: As per Anonymous answer I have installed Ekiga. In two ...
SIP VoIP? Empathy and Ekiga can do it.
(IP Telephony, VoIP and Video Conferencing) Ekiga configuration for LAN with same subnet
1,633,501,064,000
Using the Emacs editor I can set it to enable OpenVMS EDT editor keypad mode with this command: M-x edt-emulation-on How can I set it so that whenever I invoke Emacs, EDT emulation is the default on a Linux system?
From the emacs edt documentation: (add-hook 'term-setup-hook 'edt-emulation-on) For term-setup-hook have a look at the emacs documentation about terminal initialization.
Set EDT emulation by default for Emacs
1,633,501,064,000
I've bought some new speakers, and they play much louder than my old ones. It's so much that I most of the time keep them at 1% to 3% in alsamixer, which is -103dB to -84dB. This obviously leaves little room for details in configuration. 3 options in total. What I would like is to be able to set them at 1.6% or 2.3%. ...
You can use amixer to better control the volume. But it really depends on the channel/card. For example, my card only has 255 levels, so even if I issue amixer set PCM '0.1dB-', the volume is reduced by a full 0.2 dB. Btw, it's a command line program, not graphical control. See man amixer or amixer -h.
Getting more details in ALSA volume
1,702,549,088,000
I have an issue with an internal networking utility server that I am building, specifically around Basic Authentication. Now I have managed to get it to work with the following configuration:- root@P-UIDMON-02:/# /usr/local/scripts/LinuxVersion.sh ### Linux Standard Base Information No LSB modules are available. Dist...
It seems to me that you've got three major issues: You have put the htaccess configuration statements in the Virtual Host managing port 80 rather than the one managing port 443 You have put your SSL configuration statements into the non-SSL port 80 host instead of the SSL port 443 host The Virtual Host on port 80 qui...
Ubuntu Apache2 Basic Authentication Issue
1,702,549,088,000
I would like to configure Mutt so that the default save folder changes depending on the current folder: When reading messages in the folder =account1/Unsorted or =account1/Important or any other sub-folder under =account1/, I'd like the default save folder (the one suggested when pressing s in the message index) to b...
Update: Reportedly, the following two lines were used folder-hook +account1 unhook save-hook folder-hook +account1 save-hook . +account1/INBOX repeated for each account. Mutt, as you know, is configured by .muttrc file. Look at man muttrc, the patterns at all others is there. I also do not see a folder pattern there...
Set Mutt's default save folder depending on the current folder
1,702,549,088,000
On Linux, each software can decide the configuration format he wishes to use. Some uses TOML, INI, JSON, XML, CSV, YAML, JS, CSS, scripts, and so on. However, some configuration files use kind of INI-like text formats, which seem non-standard, e.g. : A text file in which each line is composed of a key and a value sepa...
"Text-based configuration format, with weak structural hierarchy" is what I'd call the common denominator of both examples. An nginx config file is syntactically as different to an SSH config file as it is to JSON – it might look similar on a cursory glance, but the things both parsers can do with the content of the f...
Is this type of Linux configuration files format has a name or a way to designate them?
1,702,549,088,000
I want to be able to share a folder in Dolphin. Right click on a folder, then go to Share tab. Unfortunately I see a message there: "You appear to not have sufficient permissions to manage Samba user shares": I am on Arch Linux, if that matters. I have installed samba package and I am able to manually configure a sha...
You should follow https://wiki.archlinux.org/title/Samba#Enable_Usershares. It explains the steps. But here they are. Run: sudo mkdir /var/lib/samba/usershares sudo groupadd -r sambashare sudo chown root:sambashare /var/lib/samba/usershares sudo chmod 1770 /var/lib/samba/usershares In /etc/samba/smb.conf add: [global...
How to share a folder in KDE Dolphin?
1,702,549,088,000
I know this question has been asked before but none of the answers worked out for me. I use Arch Linux and KDE with the linux-zen kernel and I have set my locale to en_US.utf-8. Whenever I open Konsole I get: bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8) How can I fix this? Here is my /etc/envi...
The file /etc/enviroment has nothing to do with system locale and you have to edit LC_COLLATE=C.UTF-8. LC_ALL=C was back in the days but you using a rolling release. When using sysvinit or openrc or something similar ... your locales are created with locale-gen and /etc/locale.gen then passed to /etc/locale.conf and /...
LC_ALL: cannot change locale (en_US.utf-8)
1,702,549,088,000
I am trying to determine whether rules put in place using tc persist beyond a reboot (I do not believe they do by default), and whether there is any way to cause them to persist, or if the best you can do is to re-execute the commands at boot in order to put them in place again. Also: how/where do these rules get pers...
Consolidating comments into an answer Based on comments from @dirkt and @berndbausch, it seems like the bottomline is: There is no tc-specific way of persisting rules that are put in place using tc. The specifics of how to do so the Right Way will vary depending on your distro, but it will come down to re-running the ...
Can TC rules persist beyond a reboot? Where?
1,702,549,088,000
I've been reading through documentation and sample configurations of the Lynx text-based browser to learn how to map a key to a command in Lynx. I learned that the space bar key can be used to page down, which is similar to the behavior in most major browsers such as Chrome. See the following link. http://web.mit.edu/...
Generally speaking, you don't (because unless you're able to (re)configure the keyboard, terminals won't send a distinct set of characters for ShiftSpace). Beyond that, lynx doesn't have a special feature for mapping key-modifiers since that's too terminal-specific to have been standardized. Lynx's KEYMAP feature use...
How do you map the "shift + space bar" keystroke command in the Lynx browser?
1,702,549,088,000
I know KConfig serves to tune the C preprocessor, at the start of the Linux kernel compilation. And that the device tree is used to give a compiled kernel a description about hardware at runtime. How do these two configurability features overlap? Both give information about intrinsic CPU details and drivers for extern...
A compile-time kernel configuration can specify whether or not include each of the standard drivers included in the kernel source tree, how those drivers will be included (as built-in or as loadable modules), and a number of other parameters related to e.g. what kind of optimizations and other choices will be used in ...
How does kbuild compare to the device tree?
1,702,549,088,000
I changed user for supervisor from root to non-root called dev. All is good, supervisor is running as dev: me@server$ ps aux | grep supervisor dev 25230 0.2 1.0 60404 21392 ? Ss 21:42 0:00 /usr/bin/python /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf ...but logs shows this message: Nov 15...
According to docs, you have to start supervised as root, and let her drop privileges. Current version logs the user change like Set uid to user dev succeeded Probably you are using some older version, if you upgrade for current, this misleading log message will disappear. For now, you can safely ignore it. Here is the...
Changing user for supervisor - error CRIT Set uid to user
1,702,549,088,000
I have a virtualhost which I configured to redirect any hit to a different site, so: <VirtualHost *:80> Redirect 301 / http://other.site/ </VirtualHost> Now I would like to re-configure it on a way, that it should redirect any hit, except to a specific virtual directory. Intuitively, I would think some similar: <Vi...
Yes, it is possible. You can use RedirectMatch with the mod_alias Apache module, like this: <VirtualHost *:80> ServerName _default_ RedirectMatch 301 ^/(?!subdir...)(.*) http://other.site/ </VirtualHost> Or you can use Apache's mod_rewrite module and do this: <VirtualHost *:80> ServerName _default_ R...
How to make negative rules in Apache?
1,702,549,088,000
I want to start keepassX in floating mode in i3wm. my .config/i3/config contains the line for_window [class="keepassx"] floating enable and the xprop xprop _NET_WM_USER_TIME(CARDINAL) = 7578932 WM_STATE(WM_STATE): window state: Normal icon window: 0x0 _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 29360...
As Adaephon said, you just looked at the wrong string. Everything else should be fine. You want to distinct by class, so let's look at your xprop: WM_CLASS(STRING) = "keepassx", "Keepassx" This line is defined like: WM_CLASS(STRING) = instance, class As you see, you wanted to float keepassx, but the class is Keepassx ...
Make KeepassX float in i3wm
1,702,549,088,000
I am using a lenovo thinkpad w520 running fedora 22 and gnome 3. This particular laptop has both an integrated (Intel HD Graphics 3000) and discrete graphics (NVIDIA Quadro 1000M) card. When I'm in Linux, I only ever use the integrated graphics card because support for the NVIDIA card isn't awesome without installing ...
Create the following config for X11 following Archlinux wiki to force optimus hardware to use intel_backlight instead of nv_backlight: # cat /etc/X11/xorg.conf.d/20-backlight.conf Section "Device" Identifier "Intel Graphics" Driver "intel" Option "Backlight" "intel_backlight" EndSection Note t...
Change which brightness device gnome uses?
1,702,549,088,000
I want to filter the netflow records by engine_id, I have tried nfdump -r <FILE> engine_id 10 and nfdump -r <FILE> -s engine_id 10 But, it is not working. What do I do wrong? Here you find the manual for nfdump.
I don't know we can filter with engine id in netflow records. I found this LINK. My goal is to differentiate the input OVS port in different servers. From that article, we can differentiate the input OVS ports with combination of "add_to_interface=true”, “engine_id=10”. In that Article "There is another use case for ...
How to use option from manual for netflow?
1,702,549,088,000
I have an application which modifies environment variables. The intent is to launch a bash shell with a modified context-specific environment. When my application modifies the environment, and exec()s "bash --noprofile --norc" with the modified environment then I almost get the behavior I want, except that aliases are...
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 {...
bash: dynamic environment control
1,702,549,088,000
I'm currently working on updating our CentOS server, however whenever I'm trying to use yum I get this error. Config Error: Plugin "replace" requires API 2.6. Supported API is 2.5. I'm new to CentOS and have previously only worked with Debian/Ubuntu servers and I can't seem to get rid of this error; Google also doesn...
If you don't use command yum replace something-soft-name, you can remove package yum-plugin-replace: rpm -e yum-plugin-replace
CentOS replace config error
1,702,549,088,000
I have used Webmin on multiple distros, both on the Red Hat-based side and the Debian-based side, and have had various issues with it on both. My issues have included things like configuration failing when restarting a service from within Webmin, or settings not sticking when I enter them via Webmin and apply changes...
Webmin should work with most of the major distros such as CentOS, Debian, and Ubuntu. As you move away from those I would expect it to start to fall off. I found this thread titled: Any better distro than CentOS for Webmin/Virtualmin?, which has several peoples perspectives on using Webmin on different OSes. One thin...
Is Webmin oriented toward a particular Linux distro?
1,702,549,088,000
Seen similar question many times on AskUbuntu, but most answers was bout unity-helpers or gconf ...canonical... etc, so this actually doesn't seem to work. The problem is that I decided to move to lightdm from gdm. Yep, it works,but I can't setup background image to it - always getting black bg color in exchange of p...
Thanks all. Seems, that it was some bug - in lightdm itself (meening package-specific or some libraries) or, possibly, it was simply installed with some errors/bugs. I'm now trying to install many different things, like compiz, awesome, enlightenment, lightdm and others, so can't be sure. The fact is today both lightd...
Change lightdm background
1,702,549,088,000
I am trying to configure a wireless network on a newly installed Arch Linux. The command iw dev wlp3s0 scan gives information about all the found networks. I only need the information about my SSID.
I don't have wifi around here to check, but I believe iw dev IFACE scan starts each section with a non-indented line and indents all subsequent lines. So you can treat a non-indented line as a section break. This is not very easy to parse with the usual commands, so you can do it in two steps. First insert an empty li...
How to restrict output of iw dev wlp3s0 scan?
1,702,549,088,000
I've worked with Fontconfig previously, and understand how to do most of the common configurations. All my aliases work as expected, and I'm almost completely finished. I'm trying to set the default unavailable font selection, and couldn't find anything helpful in any documentation. Countless Google searches return...
As mentioned in the fonts.conf man page, you can set the FC_DEBUG environment variable to turn on a wide variety of additional messages from Fontconfig. For example, I tried FC_DEBUG=$((1 + 2 + 4 + 4096)) fc-match "nonexistent font" and I got a whole lot of messages that looked helpful. Of course there are even more ...
Fontconfig default unavailable font selection, How is it defined in the XML configs? Couldn't locate in documentation
1,702,549,088,000
I think I seriously messed things up on my EC2 instance which I'm currently hacking on. I tried to install some rpmfusion repository from which to install FFMPEG, but it broke things and I wasn't able to do any updates or install anything. So, I ran a pretty straightforward rm command: rm /etc/yum.repos.d/rpmfusion-*...
You can reload the REPO RPMS here: http://rpmfusion.org/Configuration You probably want to find the version that matches what you have installed and do: yum reinstall packagename
I wiped my /etc/yum.repos.d
1,702,549,088,000
I have a print server using CUPS on a CentOS 5.3 box. On my PC, I set up a remote printer with the URI http://$PRINT_SERVER:631/printers/$PRINTER_NAME, and have successfully been able to print files to it. There is another system, which my team does not have control over, that sends all of its print requests using LPD...
I ran xinetd with the -d (debug) flag, and got the following helpful error messages: 11/9/6@15:32:33: ERROR: 2767 {server_parser} Server /usr/libexec/cups/daemon/cups-lpd is not executable [file=/etc/xinetd.d/cups-lpd] [line=10] 11/9/6@15:32:33: ERROR: 2767 {identify_attribute} Error parsing attribute server - DISABLI...
How to enable cups-lpd / port 515?
1,702,549,088,000
I have the Jack Audio Connection Kit (JACK) installed, but cannot seem to get jack_control start to start the service. I'm using Slackware64-current, which recently updated its /etc/dbus-1/system.conf to have a more restrictive configuration: <!-- ... --> <policy context="default"> <!-- All users can connect to syst...
I figured this out a while ago. Turns out it was a CAS-ARMv7 patch to JACK that broke DBUS functionality and I managed to fix using this patch. The issues were resolved some time ago in the JACK subversion repository and it works fine now.
Configuring DBUS to start JACK
1,640,274,829,000
When modifying Linux configuration files, it is often recommended to place local changes under a .d directory, e.g., /etc/sudoers.d/ or /etc/apt/sources.list.d. In my understanding this is to avoid system updates overwriting the local changes if they were directly placed to files such as /etc/sudoers or /etc/apt/sourc...
No, not by default. However there are many alternative solutions. You can make sshd look for the configuration elsewhere, or keep a backup of the configuration. You can also 'chattr +i' your configuration as root to prevent editing/removal by any user as long as the immutable flag is set.
Persisting sshd_config settings
1,640,274,829,000
I'm running Ubuntu 18.04 on an MSI GE63 Stealth 8RE, with an NVIDIA GTX 1060. There's a good amount of screen tearing when watching videos, and I found several sources online telling me that creating a file in /etc/modprobe.d/ with options nvidia_drm modeset=1 would resolve the issue. Lo and behold, it did! No more sc...
I fixed the issue!! I switched from using GDM3 to LightDM, rebooted, and I no longer have the issue of not being able to connect to external monitors. I tested on both DisplayPort and HDMI external monitors. It also happened to fix a problem I'd been having with external monitors not being recognized as viable audio s...
HDMI not showing in xrandr after nvidia modeset=1
1,640,274,829,000
I have created /etc/X11/xorg.conf. Section "ServerFlags" Option "NoTrapSignals" "true" EndSection It successfully affects my GNOME session if I start a GNOME session which uses X and not Wayland. I have checked this by killing the X server with SIGABRT, and verifying that it does not try to print it's own backtr...
I say this is the correct value for NoTrapSignals, because it's an inherently fragile feature, and AFAICT it's pointless in an unprivileged Xwayland server. It's not like the bad old days of user mode setting, where the kernel couldn't reset the display to text mode, so you desperately hoped the X server would still ...
How can I configure Xwayland (to set NoTrapSignals to the correct value)
1,640,274,829,000
I have the following virtual host in /etc/apache2/vhosts.d/ip-based_vhosts.conf: <VirtualHost test.local:80> ServerAdmin [email protected] ServerName test.local DocumentRoot /home/web/test.net/html ErrorLog /var/log/apache2/test-error.log CustomLog /var/log/apache2/test-access.log combined HostnameLookups Off UseCan...
You should check: whether the .htaccess file has proper permissions whether mod_rewrite is enabled
.htaccess rewrite not working?
1,640,274,829,000
Why is one of the Unix paradigms to save both the configuration name (aka attribute name) and the configuration value in configuration files? An alternative is to save the attribute name in the file name, and only the configuration value inside the file, following the KISS (keep it simple and stupid) principle. Sorti...
A couple of thoughts here on why configuration files are not exploded, option by option into a format such as: config default key key ... key other key key ... where the first sub directory is a config type and each file inside ('key's here) are all sepa...
configuration: why not conf option = file name and conf value = file content [closed]
1,640,274,829,000
I have 2x stunnels linux based, 1 server, 1 client. What I am trying to do is to use a stunnel client and with verify 3 it authenticates the user based on the certificate. Here are the config files of each: Client: cert = /stunnel/client_Access_stunnel.pem key = /stunnel/client_Access_stunnel.pem CAfile = /stunnel/cli...
CApath is used with the verifyChain or verifyPeer options, I don't see either of those options set anywhere. Also note "the certificates in this directory should be named XXXXXXXX.0 where XXXXXXXX is the hash value of the DER encoded subject of the cert." (taken from stunnel manual) What happens when you test the cert...
stunnel No certificate returned unknown CA
1,640,274,829,000
I would like to monitor every syscall being called on my FreeBSD using auditd. I know it is possible on Linux but I cannot find any information on how I should configure FreeBSD. Is it even possible to monitor every system call in FreeBSD? Detaills My /etc/security/audit_control looks like this at the moment: # # $...
I looks like there was a typo in my /etc/security/audit_control: # # $FreeBSD: releng/10.3/contrib/openbsm/etc/audit_control 293161 2016-01-04 16:32:21Z brueffer $ # dir:/var/audit dist:off flags:all minfree:5 naflags:all policy:cnt,argv,arge,seq, filesz:2M expire-after:10M This configuration produces insane amount o...
How to monitor syscalls being called by a user on FreeBSD using auditing?
1,427,075,345,000
I want to configure two screens side by side and want the configuration to persist a system restart. (I'm using xfce on Xubuntu 12.) I've inspected old questions and the answers mentioned arandr and xrandr, and so I did create the (working) shell script that calls xrandr with appropriate options and arguments to fit m...
Here's a solution that solved the issue for me (for Xubuntu 12): In directory /etc/X11/Xsession.d/ create a file 45-custom_xrandr-settings (with Xubuntu 13 its name would have to be 45x11-custom_xrandr-settings). The content of the file is (for my case; adjust the definitions as necessary): # The IDs of the screens IN...
Persistent configuration of two screens
1,427,075,345,000
How can I update my Buildroot without losing my configuration, packages, etc.? And how can I update the Linux kernel that is configured? Is it just change the url from git repository in menuconfig? If someone helps me I will be grateful.
Yes, you can update your Buildroot and keep your .config. Buildroot has a mechanism for handling legacy configurations, which will warn you if certain options have disappeared or been renamed. You can also keep your packages, even though some changes might be needed as the package infrastructure evolves from time to t...
Doubts about the Buildroot configuration
1,427,075,345,000
I can't find a configuration file for memcached (1.4.21-1) on archlinux. I have looked in /etc/ and /etc/conf.d/ . Is there a config file? And where can I find it?
memcached doesn't have a configuration file on Arch anymore since May 2013.
Where is the memcached configuration file in archlinux?
1,427,075,345,000
While I have asked quite a few questions about how to run subtitles in movies, this time though it's the opposite, how do I tell mpv not to load subtitle file while playing a media file. The media file is structured something like this - Format : Matroska Format version ...
From the mpv(1) man page: --sid=<ID|auto|no> Display the subtitle stream specified by <ID>. auto selects the default, no disables subtitles.
how to tell mpv to NOT play subtitles which may be embedded in a media file.
1,427,075,345,000
Is there any keyboard shortcut to switch to either or: Switch to desktop on the right. i.e. [ctrl + ->] Switch to desktop on the left. i.e. [ctrl + <-] Switch to 3rd desktop. i.e. [ctrl + 3] I've been trying to find it but the topic is so polluted with so many other searches related that I have not been able to fin...
Yes! They are: Win/Super + Right Arrow Key Win/Super + Left Arrow Key Win/Super + 3 If you press F1 while beeing on the Desktop it shows a little manual where you can find more details. In the keyboard section in the setting you will find a list and an option to configure new shortcuts.
Deepin: Switch to next desktop
1,427,075,345,000
I have access to a machine running linux. Apache2 is installed on it. I need to add 3 virtual hosts. In /etc/apache2/sites-available, there is a set of about 15 files displayed with ls -la. I was told Apache2 would read these files one-by-one in alphabetic order to create virtual hosts, is this correct? How does Li...
You may want to read the Apache2 documentation. I was told Apache2 would read these files one-by-one in alphabetic order to create virtual hosts, is this correct? Virtual hosts are not read in /etc/apache2/sites-available but in /etc/apache2/sites-enabled. That said, apache2 uses the libc, and according to gnu.org, Th...
Configuring Apache virtual hosts in extra file
1,427,075,345,000
I am trying to create Apache virtualhost that is closed for all IP addresses with exception of one IP address and two URLs that should be publicly accessible. <IfModule mod_ssl.c> <VirtualHost *:443> ServerName example.com ServerAdmin [email protected] DocumentRoot "/var/www/example.com/app/webroot" <...
There were two problems in my configuration: As @sotirov mentioned, <Location> tags are processed by order of presence - correct order should be: restrict all access to certain IP addresses and by following <Location> tags allow access to specified locations. Rewrited URLS - my url /foo/bar/ is rewrited in .htaccess...
Not working `<Location/>` tag in Apache Virtual host
1,427,075,345,000
I saw the following in /etc/shells - % cat /etc/shells # /etc/shells: valid login shells /bin/sh /bin/dash /bin/bash /bin/rbash /bin/zsh /usr/bin/zsh I want to know if there is a difference betweem /usr/bin/zsh and /bin/zsh ? I did chose /usr/bin/zsh as it has to be interactive login and CTE skills.
One of them is probably a link to the other... Traditionally, shells (like bash, csh and zsh) are located in /bin - because a shell is needed even in single user mode or other times when /usr may be unmounted (/usr is often on a separate partition and may even be mounted through the network - thus not readily availabl...
what's the difference between /bin/zsh and /usr/bin/zsh? [duplicate]
1,427,075,345,000
In one of my config [~/.tmux.conf] there is a line : set -g default-terminal "screen-256color" set -s escape-time 10 I think it sets global variables of my system. But I am not sure.. I searched for it on the web ... & even the man pages doesn't give me information about -g option when in bash I did help set and the...
set is an alias to tmux set-option tmux man Commands which set options are as follows: set-option [-agsuw] [-t target-session | target-window] option value (alias: set) Set a window option with -w (equivalent to the set-window-option command), a server option with -s, otherwise a session option. If -g is specified, th...
what does set -g means in config files?
1,427,075,345,000
I had a function inside .zshrc that I removed. Now, when I try to source it, it indeed sources it, but doesn't remove the function that once was inside .zshrc from memory. Is there a way to remove the function (now I believe in memory, in zsh namespace or something like that) without restarting my machine?
In zsh, you can remove a function with unhash -f functionname or unfunction functionname. That doesn't automatically clear functions you've removed from a given startup file, though, because of course the shell doesn't remember where it got it from in the first place and attribute any special meaning to re-sourcing th...
Is it possible to source again .bashrc and .zshrc AND remove functions once inside them without restarting?
1,427,075,345,000
I want to make a bash file that reads a parameter from a config file. In Debian based linux it works fine by: my.config: MYVARIABLE=12345 my.sh: #!/bin/bash source my.config echo $MYVARIABLE But I am not able to achieve this in FreeBSD. Do you have any idea?
You do not supply any errors or what you have done. This then leaves us guessing: Bash is not installed by default. You might need to add it yourself: pkg install bash As with Debian you need to make the script executable: chmod +x my.sh The first line of your script should point to the location of bash. It is not ...
Getting a parameter from a config file in FreeBSD
1,427,075,345,000
I installed org.mozilla.firefox from Flathub, and upon investigating with xeyes, I found that it seems to be running via XWayland as the eyes are able to trace my cursor when hovering over Firefox. I'm using GNOME via Wayland, and I would like to run Firefox as a native Wayland client instead of running it via XWaylan...
You can do this by setting the environment variable MOZ_ENABLE_WAYLAND to 1 and allowing org.mozilla.firefox to access the Wayland socket via flatpak override. Something like this: $ flatpak override --env=MOZ_ENABLE_WAYLAND=1 --socket=wayland org.mozilla.firefox --user You can omit --user if you want to do this for ...
How do I run org.mozilla.firefox from Flathub as a native Wayland client?
1,427,075,345,000
Which programs / services are parsing contents of /etc/securetty configuration file?
The securetty manpage lists two users of /etc/securetty: some versions of login, and pam_securetty. The intention in both cases is to limit the terminals on which root can log in.
Which services read the /etc/securetty configuration file?
1,427,075,345,000
I want all users of nano to have tabsize 4 instead of the default 8. What is the best way to achieve this? I would prefer a file that overrides /etc/nanorc at the system level so I don't have to maintain separate user nanorc's for this purpose. In the simple case, my override would only need to contain: set tabsize 4 ...
So /etc/nanorc.pacnew is the new rc file that came with the new distribution upgrade? How about sed '/tabsize/ {s/^# *//; s/[0-9]*$/4/}' /etc/nanorc.pacnew > /etc/nanorc , then? Another possible trick might be to have a symbolic link ~/.nanorc in every user's home dir pointing to a central file with the relevant com...
How to override /etc/nanorc systemwide?
1,427,075,345,000
Ubuntu 16.04 Bash version 4.4.0 nginx version: nginx/1.14.0 How can I test the Nginx configuration files in a Bash script? At the moment I use -t when I'm in a shell: $ sudo nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful B...
Use the exit status. From the nginx manpage: Exit status is 0 on success, or 1 if the command fails. and from http://www.tldp.org/LDP/abs/html/exit-status.html: $? reads the exit status of the last command executed. An example: [root@d ~]# /usr/local/nginx/sbin/nginx -t;echo $? nginx: the configuration file /usr/...
How can I test if nginx configuration files are valid within a Bash script?
1,427,075,345,000
I have a headless box based on Debian. It is intended to be accessed via its network interface. The Network is configured via the /etc/network/interfaces. I'm trying to validate if the file is really valid. My idea is to check if the file have any error, and in this case, fallback to a default file. My question is abo...
Short answer: Call ifup --no-act with the network config to test and check the return code. Long answer: I've been doing something very similar for an embedded appliance; here's the relevant part of the init script I created for this purpose, which is executed before networking is started, so it is ensured the system ...
How to make sure /etc/network/interfaces will bring the interface up?
1,427,075,345,000
I found a lot of ways to deal with the whitespace problem in Git, but all of them require some sort of action on the user side: configure Git to ignore ws changes, setup a pre-commit hook with warning, or just configure the editor to remove them automatically. But is there a way to simply ignore whitespace changes on ...
You can't really do this sanely. You can't modify the content of a commit; you can only create new commits. Even if this were possible, it would break git: the commits on the server would be unrelated to the history stored in local developer repositories, and nothing would ever work. You really need to perform this...
Git Server: ignore whitespace changes in new commits
1,427,075,345,000
Both php-fpm and supervisord use a config format that looks like this: [category] settings = value some_other_setting = value Is there a name for this format?
It's called an ini file or initialisation file. The part in square brackets in called a section: ; comment [section] key=value
What do you call the supervisord and php-fpm et. al. config format?
1,427,075,345,000
I am configuring a Linux kernel before I compile the code. However, after I was thirty minutes into answering the many questions concerning various kernel settings, I accidentally pressed Ctrl+C. I do not want to start over, so is it possible to make the configuration tool resume where I left off?
You probably want to adjust the workflow a little bit, since configuring the Linux kernel from scratch is not for everyone (I'd almost say it's not for anybody). First, you are much better of with menu-based configurators like make nconfig, make menuconfig or the GUI based ones, as it usually allows you to save the co...
Resuming the Linux Kernel Configuration
1,427,075,345,000
I just recently got my hands on a linux (Fedora) VPS and I would like to ask if there are special configurations that I have to be wary of. Do I still configure it like I would configure a normal virtual machine? Are there more things to take care of, or be cautious about because that machine is 24/7 available online,...
In addition to Tim's suggestion, configure your user account to use ssh keys for authentication, then configure SSH to only accept key based auth (no passwords). Also make sure that root logins are disabled. Here's a summary of the options that do this: ChallengeResponseAuthentication no HostbasedAuthentication no Pas...
Linux VPS Configuration
1,427,075,345,000
I have a home file server on which I have recently reinstalled the OS. I replaced Ubuntu Server 10.04.2 32-bit with 10.04.3 64-bit due to hardware upgrades. I've copied my previous Samba configuration over, recreated the share user, and made sure the permissions for the shared directories, on another disk, were still ...
Could be a corrupt passdb.tdb file. If you remove it and restart Samba can you add users?
Cannot connect to Samba shares after reinstall
1,427,075,345,000
Once I tried to make a virtual host, and the problem was that if I make another file in /etc/apache2/sites-available/ that says ... DocumentRoot /var/www/newsite ServerName newsite ... Then save it, restart Apache, and appending /etc/hosts like this: 127.0.0.1 newsite I get the page that corresponds the DocumentR...
did you enable the site using the a2ensite command? The /etc/apache2/sites-available directory lists those that you have setup but it needs to be in /etc/apache2/sites-enabled to be picked up when you next reload the apache2 configuration.
Problem making a virtual host with Apache
1,427,075,345,000
I upgraded from Fedora 38 to Fedora 40 more or less smoothly. Yet, when new kernels are installed, the grub configuration is not updated. The command grep vmlinuz /boot/grub2/grub.cfg shows linux /boot/vmlinuz-6.8.8-300.fc40.x86_64 root=UUID=0e08d465-d601-478f-be17-a2663626588c ro linux /boot/vmlinuz-6.8.8-100.fc38....
With the /boot/loader/entries in existence and up to date, there should be no mention of individual kernels in /boot/grub2/grub.cfg: instead, the configuration should be invoking the GRUB command blscfg which will cause GRUB to read /boot/loader/entries and use the information within. In other words, grep blscfg /boot...
Why are new kernel versions not appearing in Fedora 40 Grub?
1,427,075,345,000
I uninstall samba this way: My os is debian11. sudo rm -f /etc/samba/smb.conf sudo apt purge samba sudo apt install samba Now check the default samba's configuration file. sudo ls /etc/samba/smb.conf ls: cannot access '/etc/samba/smb.conf': No such file or directory
The package which “owns” smb.conf is samba-common; you need to purge that, and re-install samba (since it will be removed when removing samba-common): sudo apt purge samba-common sudo apt install samba
Why can't get the default configuration file after reinstalling samba?
1,427,075,345,000
After overriding some configurations of /usr/share/containers/containers.conf in /etc/containers/containers.conf - e. g. log_size_max = 10485760, what is the official method to apply this new configuration with the least impact on the system? There is enough documentation on how to configure things, but not on how to ...
Podman runs no daemon (unlike docker/Moby); so, there is no need to reload any daemon. The configuration that is present when podman is executed apply. In other words, as soon as you change something, it applies to all podman runs thereafter, immediately. It cannot apply to currently running pods - podman reads its co...
How can I apply a new `podman` config with the least impact on the system?
1,427,075,345,000
Upon running sudo apt upgrade, I was notified that the package maintainer for Samba has provided a new config file, the difference I noticed was the new commented out wins support and obviously didn't include my specified settings. I reverted back to the old one because my settings were necessary, but I can add them t...
Every version of the Samba package will contain the configuration file, because the package needs to be useful for initial installations too, not just for upgrades. But dpkg, the low-level package management tool for apt, is smart enough to record the hashes of any packaged configuration files. It knows what the hash ...
Should I accept the package maintaner's new config file? (Samba)
1,427,075,345,000
Usually Vim tutorials on remapping keys will only show how to remap and assume you already know how to call a certain key within Vim, such as the well-known <esc> or <F2>. But what if I need first to know how my key is called (and even if it is available for remapping)? In my specific case, I'm trying to remap KEY_SCR...
In vim, see :help key-notation (I don't see KEY_SCROLLLOCK in there though)
How to get a key's name in Vim?
1,427,075,345,000
I'm on Lubuntu 20.04, with no PulseAudio installed. I'm having some trouble editing my ALSA setting, as any change I make interferes with my microphone. In particular, if I use the following basic configuration file: pcm.!default { type hw card 2 } ctl.!default { type hw card 2 } Then I am unable to ...
The default definition of the default device can be found in /usr/share/alsa/pcm/default.conf. If it does not redirect to a driver-specific default, it is defined like this: pcm.!default { type plug slave.pcm { type hw card 2 } } The plug plugin implements automatic sample rate/format conv...
What exactly is the default pcm ALSA device?
1,427,075,345,000
I tried plugin vim-indentguides and did not work well so I decided to remove it using Plug. After uninstall is nvim writing ^I instead of tabs. How can I fix it ? Here is my init.vim and demonstration of the problem: " PLUGINS call plug#begin() ^IPlug 'vim-airline/vim-airline' ^IPlug 'vim-airline/vim-airline-themes' ^...
From your configuration file: set list!^I^I^I^I^I" visualize tabs If you don't want to visualize tabs, don't set the list option. To turn off the visualization of tabs in the current session, use :set nolist interactively.
neovim: writes ^I instead of tab
1,592,501,948,000
OS: Linux Mint 18.3 I'm currently trying to install the latest stable release of cryptsetup. It's installed, but as usual the Synaptic version is very old (1.6.6 compared to 2.3.2). Running ./configure as per the "INSTALL" document, I found some problems which were solved with this answer. ./configure then failed agai...
You need to install the libjson-c-dev package: apt-get install libjson-c-dev That will provide the development headers and libraries that are needed to build cryptsetup. If you continue to receive error messages like that, then it means that you need to install the package that's specified.
How do I install a package to a "standard prefix"?
1,592,501,948,000
Examples: .bashrc .config/fish/config.fish I would like to know which is more common and what pros and cons they each have. I imagine a dotfile would be easier to change, since it is right in the home directory, but it seems .config would be easier to carry around, since it is one directory with everything in it. D...
Dotfiles are the older form, and I believe avoiding them completely will be difficult unless you use a distribution that insists on patching every software included to use the .config directory tree instead of plain dotfiles. Many old applications will have a long history of using a particular dotfile; some may have t...
What is the difference between dotfile and dot config? [duplicate]
1,592,501,948,000
I want to "update" old users with new /etc/skel content on Debian and Ubuntu installations. Scripting this is possible... find /home -maxdepth 1 -mindepth 1 -type d | while read homedir; do user="$(stat -c%U $homedir)" su -c 'tar -cf- -C /etc/skel . | tar -vxf- -C $HOME' $user done ...but I'm wondering if any...
You could update the /etc/skel files in users' directories with a script like this. #!/bin/sh # getent passwd | while IFS=: read -r username x uid gid gecos home shell do if [ ! -d "$home" ] || [ "$username" == 'root' ] ## || [ "$uid" -lt 1000 ] then continue fi tar ...
How can I `usermod` old users with new `/etc/skel` files?
1,592,501,948,000
Simple question. I'm trying to find the config file of pm2's logrotate module to edit it manually. Unfortunately this information is not provided in the Github repo's README. So where is this file? Backstory: I accidentally added a config with the incorrect key using pm2 set pm2-logrotate:wrong-key. I don't want it to...
Found it. ~/.pm2/module_conf.json I believe this file stores configuration for all modules.
Where on disk is the config file of pm2-logrotate module?
1,592,501,948,000
I am looking for a command line tool that checks tcp_wrapper configuration file syntax to make sure daemon names are set right and things like that, check for spelling or syntax errors etc.
According to ftp://ftp.porcupine.org/pub/security/hints-and-tips.html: If tcpd access rules do not work as expected, run tcpdchk -v and see if its output matches your expectation. If that does not clear things up, please use the tcpdmatch command, report what it says, and also report what result you expected to get. ...
Is there a tool to check /etc/hosts.{allow,deny} syntax?
1,592,501,948,000
I would like to know if there is a tool that allows me to check if I made any syntax errors in wpa_supplicant.conf(5). I am looking for a utility for wpa_supplicant(8) that would server the same purpose as the --check flag of visudo(8) from the sudo(8) suite. The only solution I've come up with so far is running wpa...
I understand your wish but know of no such thing. It would be a nice feature. But I think you are close already now. There is however another utility named wpa_cli which might be helpful if you are willing to consider a slightly different approach. Or maybe you know it and have already discarded the idea. It is availa...
How to check if wpa_supplicant.conf has any syntax errors?
1,592,501,948,000
Are there any configs for OpenSSH server to disallow weak (e.g. <2048 bits) RSA keys? I'm aware of PubkeyAccetedAlgorithms which can disallow specific key types, incl. rsa-sha2, as a whole.
The RequiredRSASize option was added in OpenSSH 9.1, released on October 4th, 2022: ssh(1), sshd(8): add a RequiredRSASize directive to set a minimum RSA key length. Keys below this length will be ignored for user authentication and for host authentication in sshd(8). ssh(1) will terminate a connection if the server...
OpenSSH: how to disallow weak (<2048 bits) RSA keys
1,592,501,948,000
I use for some testing Raspberry Pis (Stretch) working as WiFi access points. Because i want to work with one global config file on many RPis i split hostapd.conf in 2 parts: hostapd.conf.global - that describes almost all parameters of my wifi access point. hostpad.conf.local - where SSID for particular RPi is saved...
The | operator connects the STDOUT from one command to the STDIN of the next command. This will only work with downstream commands that take STDIN as an input. hostapd doesn't appear to have a parameter for this (many commands allow you to provide - as a filename to indicate that you want it to read from STDIN). Thus,...
Is it possible to pipe config file to hostapd?
1,592,501,948,000
I have a bash script that I've written that takes variables from a config file. I pass them from the command line like this: ./my_script.sh ./config1.conf As I've continued to make more configs that need to be run, I now have to run a lot of commands to get through all the configs. I'm wondering if there is a way to ...
You have to decide whether you want this handling within (like rsyslog) or outside the script. If you want ./my_script.sh ./*.conf to work then you have to adapt the script so that it accepts several parameters. Something like for config_file; do . "$config_file" done Or you hard-code or somehow pass a directory...
How to run multiple config files through a script?
1,592,501,948,000
Trying to make a cheap CNC machine to work, I have to connect through a parallel port. Unfortunately, I do not manage to make the parallel port to work. It seem the PCI parallel port card is detected, but I do not achieve to transmit/connect anything to it. How to make the parallel port working? How to make the parall...
The issue is with the privileges of the parallel port: by default, it is accessible only by users of the group lp. The root user is obviously allowed to it, but normal users are not. Adding the user to the lp group make the parallel port accessible without sudo: adduser <user-name> lp After that, the parallel port is...
How to make the parallel port to work?
1,592,501,948,000
I installed fail2ban from EPEL using yum install, and then proceeded to screw up the configuration after forgetting to back up /etc/fail2ban. Now I want the original configuration back. First I tried yum reinstall fail2ban, but that was silly because yum install doesn't overwrite existing configuration files. Then I m...
On my system, fail2ban is actually spread across several packages: fail2ban fail2ban-firewalld fail2ban-systemd fail2ban-sendmail fail2ban-server systemd-python Evidently, the configuration files don't get generated unless some or all of the above are installed. yum autoremove got rid of them, and then yum install f...
Restore original fail2ban configuration on CentOS 7
1,592,501,948,000
I haven't had need to mess with X for a long time (I'd guess it was still when Xfree86 ruled). A few weeks ago, however, I was trying to get a laptop to use an external display and I managed to cripple the setup (annoying flashing screen). Since the laptop was already due an upgrade (and I had a backup of /home) I jus...
Just back up /etc. (And don't put configuration files elsewhere, obviously, e.g. never modify files under /usr.) Rather than rolling your own, install etckeeper, which automatically commits modification in your chosen version control system on package upgrades. When you make changes, commit them (git commit or hg comm...
What to backup before messing with X