14
votes
How can I make chrome (stop asking to be) the default browser?
found the solution:
When you get the question again, don’t press the button that makes
Chrome the default browser, but click on the far right of the bar on
the X to make the bar disappear. Big ...
8
votes
FreeBSD: How to set Bash as the default shell
Changing one's login shell is covered by The FreeBSD Handbook, in the section called Shells. It also points to a chapter called Installing Applications: Packages and Ports that will tell you what you ...
8
votes
Accepted
apt: What's the difference between "apt install php" and "apt install php-defaults"?
The difference is that
apt install php-defaults
doesn’t work, because php-defaults is a source package, not a binary package.
A source package contains the source code and packaging descriptors used ...
8
votes
Accepted
How can I check which application opens a file by extension?
Ask xdg-mime.
$ xdg-mime query default application/pdf
atril.desktop
8
votes
Accepted
Default TCP KeepAlive settings
TCP Keep-alive was defined at a time when even the concept of firewall, let alone stateful firewall or NAT, was probably not widespread. From RFC 1122 (October 1989):
4.2.3.6 TCP Keep-Alives
...
8
votes
Accepted
7
votes
Accepted
Is there a way to set up default values for grep options such as `--exclude-dir`?
What about an alias or a shell function in the appropriate start-up file?
alias mygrep='grep -r --exclude-dir=.git --exclude-dir=another_path'
grepwithoutgitrot () {
grep -r --exclude-dir=.git --...
6
votes
How can I make chrome (stop asking to be) the default browser?
Here is a quick solution as worth as the one above I guess but different:
Run in a terminal :
echo '# Disable set default browser
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --no-default-browser-check"' \
...
5
votes
Accepted
Auto set write permission for a group
Default permissions for new files and folder are determined by umask. If you configure the default umask for your users to 002, group permission will be set to rw for new files and folders. ...
5
votes
Accepted
How to permanently set default color of feh's background to black?
It seems that you cannot put your desired default options in a config file.
If you know about $PATH you can resort to a hack.
Create this script:
#!/bin/sh
feh --bg-color black "$@"
Call it feh and ...
5
votes
FreeBSD: How to set Bash as the default shell
There is also the pw utility.
shell> pw usermod <user> -s /usr/local/bin/bash
5
votes
Accepted
Set of CLI tools that are installed by default on most distributions
Anything that can reasonably called Unix or Unix-like has POSIX utilities. You can generally assume that the utilities are present, that they support the listed options, and that they behave as ...
5
votes
Accepted
Browser's Mechanism of font choosing on Linux Systems
After a long time of studying the behavior of fontconfig and browsers, I came to know these points :
Fontconfig is comparatively small, but complex piece of software. It has an algorithm that matches ...
4
votes
Accepted
Bash: Error in assigning default value to a variable
From bash's manpage:
Positional Parameters
A positional parameter is a parameter denoted by one or more digits,
other than the single digit 0. Positional parameters are assigned from
...
4
votes
How can I make chrome (stop asking to be) the default browser?
I was facing this issue on my work Macbook, turns out IT had set a managed policy called DefaultBrowserSettingEnabled to True.
It will override any command line arguments you try passing to it or any ...
4
votes
How to permanently set default color of feh's background to black?
I would like to add this as a comment to the only answer but I do not have enough reputation.
A look into the man page of feh reveals that the alias should look like this:
alias feh="feh --image-bg ...
4
votes
Accepted
How to set Awesome as the default WM in Ubuntu 20.04
You have to select it from the display manager aka lock screen, if you use gnome click on the top right corner and then click log out, after you log out select your user but before you enter your ...
3
votes
Accepted
Why does xdg-open use Mendeley as default for PDFs?
The question remains: where did xdg-open get the idea that Mendeley should
be the default PDF viewer from?
This is an eminently reasonable question.
Here's a somewhat long answer in three parts.
...
3
votes
Mime Type Wildcard in Default Application List
Not sure it will help you but the following mime type list has helped me. I am still not sure that I am 100% right on this but so far this is working for me.
I was trying to develop a 'open with' ...
3
votes
Accepted
Does the search tracking and Amazon information sharing attributed to Ubuntu part of Debian?
This was a feature provided by Unity’s shopping lens; it was removed in Ubuntu 17.10, and was never available in Debian.
3
votes
How can I find the default (font) resource XTerm is using?
Your can find the default font by running
$ fc-match mono
Here is the explanation (from the Arch-Wiki)
xterm's default font is the bitmap font named by the X Logical Font
Description alias fixed, ...
3
votes
how to access samba share from Windows which is running on different port
use NAT
this can be done by applying some rule on your router/gateway
[windows]--139-->[dst-nat 139 to x.x.x.x:1139 router ]-->1139-->[samba-server listen on :1139]
3
votes
How to set the default browser in KDE?
If you right-click the link and click "save as" then select it wherever you downloaded it, click "open with" and select firefox. there should be a checkbox saying "Remember ...
3
votes
Accepted
What exactly is the default pcm ALSA device?
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 ...
3
votes
Accepted
Is it possible to specify hosts for an Ansible role based on a map value?
There are more options:
Put the logic into the expression of hosts:
shell> cat pb.yml
- hosts: "{{ (map_value == 'single')|ternary('STG', 'LIVE') }}"
tasks:
- debug:
var: ...
3
votes
Accepted
Fedora "Files" app gives wrong "Detailed Type" description
You could check whether Foxit modified anything of your user's configuration.
First step would probably be using grep (or any faster alternative, e.g. rg/ripgrep) as in grep -l -r FoxitReader ~/....
2
votes
How do I change the location where screenshots are saved in Linux Mint 17 Cinnamon?
Using the terminal
Setting the auto-save-directory
gsettings set org.gnome.gnome-screenshot auto-save-directory '/home/yourpath'
Getting it
gsettings get org.gnome.gnome-screenshot auto-save-...
2
votes
How can I make chrome (stop asking to be) the default browser?
I was unable to disable it, but after some research I was at least able to discover why I couldn't disable it. This is a work computer with a managed chrome policy. In the Chrome URL, I could view ...
2
votes
Accepted
Setting default network interface?
You just need to set the default gateway to the correct interface.
It should be configured in your GUI (Network Manager for example) or if you feel a bit geeky, you can configure it in your /etc/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
defaults × 121debian × 15
linux × 11
configuration × 9
ubuntu × 7
linux-mint × 7
browser × 7
mime-types × 7
permissions × 6
nautilus × 6
user-default × 6
bash × 5
python × 5
kde × 5
chrome × 5
arch-linux × 4
xfce × 4
gnome3 × 4
editors × 4
shell × 3
networking × 3
audio × 3
environment-variables × 3
acl × 3
settings × 3