Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [defaults]

The tag has no usage guidance.

0
votes
0answers
18 views

Default Printer Options in CUPS

I would like to set the default paper tray for my HP Photosmart C309g-m, I am following this and when I use Airprint off my iPhone it always defaults to the photo paper tray rather than the main paper ...
1
vote
0answers
29 views

Cannot change default text editor using update-alternatives

I want to use vim over nano as default text editor. I tried to do it with sudo update-alternatives --config editor From menu I chose vim. However, when I open any file, Linux launches nano just as ...
1
vote
1answer
283 views

apt: What's the difference between “apt install php” and “apt install php-defaults”?

What's the difference between apt install php and apt install php-defaults? In a first glimpse I would theorize that php should include everything default for a (latest) php program. I ask this as a ...
0
votes
3answers
86 views

FreeBSD: How to set Bash as the default shell

I've used bash shell in all my Linuxes and in Mac OS X. I understand that tcsh is the default shell in FreeBSD. If I were to install bash, how would I make it my default shell?
0
votes
1answer
115 views

Bash: Error in assigning default value to a variable

Inside my bash script: This works: CWD="${1:-${PWD}}" But, if I replace it with: CWD="${1:=${PWD}}" I get the following error line #: $1: cannot assign in this way Why I can't assign to ${1}?
2
votes
1answer
58 views

Opera browser set itself as default without asking!

I just downloaded opera-stable_56.0.3051.99_amd64.deb from https://www.opera.com/de/download and ran sudo dpkg -i opera-stable_56.0.3051.99_amd64.deb It complained about some missing dependencies ...
2
votes
0answers
205 views

How to make xdg-open follow mailcap settings in Debian

tl;dr: In Debian xdg-open (through xdg-mime) does not follow the mailcap specifications used by run-mailcap which I prefer to use. Is there some systematic way to make xdg-open follow the mailcap ...
1
vote
0answers
43 views

What features did Ubuntu have on by default that made it like Windows?

In the last line of this explain xkcd it says, "This may be a reference to Ubuntu being developed with non-advanced users in mind, with many fail-safes and additional features being turned on by ...
0
votes
0answers
795 views

How to set default gateway after boot

I have setup raspberrypi zero w running raspbian as wifi router. I have PPPoE broadband connection. After setting up pppoeconf , hostapd & dnsmasq. I get this routing table :: route -n Kernel IP ...
1
vote
1answer
238 views

Set the environment variable in bashrc for preferred PDF viewer

I am currently remoted into my linux workstation's command line environment (bash shell) using SSH with X11 forwarding enabled. I am using the mendeley citation manager's desktop application to ...
1
vote
2answers
2k views

How to permanently set default color of feh's background to black?

Whenever I open an image in feh, the background is set to the standard, dark gray and gray checkboard pattern like this: As you can see, it's the checkboard background. How do I permanently change ...
2
votes
0answers
427 views

Change default applications in Lubuntu

In Lubuntu I can change the default applications using Default applications for LXSession. It saves the default applications in the configuraion file /home/USER/.config/lxsession/Lubuntu/desktop.conf. ...
0
votes
2answers
2k views

Setting default network interface?

I have a Debian workstation with two interfaces: the ethernet jack attached to the motherboard (eth0), and a USB to ethernet adapter (eth6). eth0 connects to the internet, while eth6 connects to some ...
1
vote
1answer
73 views

Does the search tracking and Amazon information sharing attributed to Ubuntu part of Debian?

I understand from Richard Stallman in this video, made probably in 2012/2013, that Ubuntu isn't 100% free by the GNU organization definition of Free Software, as according to Stallman there, it "spies"...
0
votes
1answer
30 views

How to get the default version of an application in unix

Let’s say I have two versions of Firefox installed. What is the way to get the default version of firefox printed? I am running the script in python. Is there way to get the output into python?
6
votes
1answer
504 views

How can I check which application opens a file by extension? [duplicate]

I am on a debian 9 system with unknown desktop environment (ssh access). How can I find out which program is used by default to view a file with a given extension (e.g. pdf)? Edit: Since extension is ...
1
vote
1answer
709 views

Grub set default startup to a Ubuntu 16.04 installed at /dev/mapper

I have two Ubuntu systems installed, one 14.04 and one 16.04. From the Grub menu I can see that: *Ubuntu Memory test (memtest86+) Ubuntu 14.04.4 LTS (on /dev/sda1) Ubuntu 16.04.2 LTS (on /dev/mapper/...
3
votes
0answers
169 views

Why does xdg-open use Mendeley as default for PDFs?

Similar to this question, I have some applications (Calibre, texdoc) open PDFs with Mendeley. Opening PDFs from Thunar, Thunderbird, Firefox etc. opens evince, the expected default. It seems that ...
1
vote
0answers
62 views

Mime Type Wildcard in Default Application List

I want to have a default application for (almost) all text/* mimetypes. To affect nautilus I'm editing the .local/share/defaults.list. Sadly, using something like text/x-*=vim.desktop, the entry is ...
0
votes
1answer
154 views

Auto set write permission for a group

I want to create a directory where multiple users will be able to contribute to the same files and I want each file that any user creates to have write permission by default for everyone in the group. ...
-2
votes
1answer
178 views

Change of python default version gets automatically reset after exiting terminal

So I am trying to change my python default version to 3.5.2 or any 3 in general. I am running Gnu/Linux Mint 18 Cinnamon. My OS came preinstalled with 3.5.2(I'm sure most do these days) So if I try ...
6
votes
1answer
4k views

Ranger - open_with without suspending

When I open a file into ranger with a GUI application not listed in the rifle.conf file (i.e. using the open_with command), the ranger terminal window gets "suspended" until I close the GUI app. For ...
8
votes
1answer
19k views

What is the default value of LD_LIBRARY_PATH? [duplicate]

In my case, it seems as if LD_LIBRARY_PATH is set to the empty string. But all standard system tools still work fine, so I guess the dynamic linker checks for that case and uses some default for ...
4
votes
1answer
2k views

Setting default application for filetypes via CLI?

I have 150 Debian Jessie machines that open ODS files in Gnumeric when double-clicked despite LibreOffice Calc being installed. I know it is possible to change this by right-clicking the ODS file and ...
0
votes
1answer
91 views

Does Grub2 have a way of uniquely labelling the menu entries that can be used to set the default for booting?

Does grub2 have a means of selecting a menu entry by a unique label instead of the current numbering system which results in commands like grub-reboot '1>3', GRUB_DEFAULT="1", GRUB_DEFAULT="1>3"?...
1
vote
1answer
741 views

What does the “al” in “alarm”, the default Arch Linux ARM processor username+password stand for?

ARM machines often have a default password. On Arch Linux, this is: User: alarm Password: alarm I am assuming that the "arm" part of "alarm" refers the architecture, but what does the "al" stand ...
0
votes
1answer
146 views

Make pattern match directories

I'm using gnu make and stow to manage some configurations (dotfiles). I have multiple directories in my repo: dotfiles/ ├── Makefile ├── package1/ └── package2/ Currently, my Makefile looks like: ...
1
vote
0answers
154 views

Geany: How to overwrite default shortcut key settings?

By default, Alt-s is assigned to Search menu. In "Edit Macros', I've assigned Alt-s to a customized macro. But when press the Alt-s, still the Search menu is pop up. How to overwrite the default ...
2
votes
3answers
7k views

Command for the default in-terminal text editor

I often see instructions that include vim or nano, meaning to open the file in that step in your text editor of choice. Is there an agnostic command I can use in place of the specific program that ...
0
votes
1answer
1k views

Change default image viewer

# ... def show(): """ Show image """ t = Twitter(auth=authen()) try: target = g['stuff'].split()[0] if target != 'image': return id = int(g['...
2
votes
1answer
3k views

Setting rwx default permissions for the group, but just rw default permissions for files

I have a collection of directories that should have permissions rw-rw-r-- for all contained regular files, and rwxrwxr-x for all contained directories. I can set the default permissions for all ...
5
votes
1answer
5k views

how to access samba share from Windows which is running on different port

I have samba server already running on standard ports(445 and 139). This samba server is integrated in Alfresco application. I need to setup new samba server but now I have problem with ports. Ok, so ...
1
vote
2answers
1k views

Linux mint does not remember default browser

When I launch Chrome on Linux Mint, it asks for being the default browser. I confirm and it is remembered between browser relaunches. But when I shut my laptop down and then turn on again, default ...
2
votes
1answer
287 views

How to determine default algorithm mcrypt uses

mcrypt selects a default from one of its possible encryption algorithms if one isn't explicitly named. mcrypt --list shows all available algorithms, but doesn't mark which one is default. Neither ...
0
votes
1answer
92 views

What do are group permission missing on new directories?

Normally when I make a directory with mkdir the permissions I expect are 751 or 755. However for some reason when new files are created, even in a users home directory, they are set to 700. What ...
1
vote
2answers
8k views

Skeleton directory - how to add my own directories

I want to add a few directories to the skeleton directory. When I add new user I want to add my own directories to the new home directories.
1
vote
1answer
3k views

How do I change the location where screenshots are saved in Linux Mint 17 Cinnamon?

Pressing PrnScr "Print Screen" on the keyboard results in a screenshot being silently saved under /home/%user%/Pictures/ How can I change this location?
3
votes
2answers
1k views

What sets the $SHELL environment variable?

Where is the environment variable $SHELL first set on a UNIX system? How can I find and print all of this type of default settings of my terminal?
1
vote
1answer
786 views

Which configuration files override /etc/default/locale?

For some strange reason, I find my I have several LC_ locale variables set to a value I don't recognize having chosen (en_ZA.UTF-8). So, I want to set it differently - permanently, from the command-...
1
vote
0answers
727 views

Is there a way to set the default TTL for multicast packets?

This Question Provided some valuable insight on how to set the default TTL for IP packets on a system. I would like to do the same thing, but for multicast packets. I do not know if this is possible....
6
votes
2answers
1k views

Purpose of find command's default size unit 512 bytes

The find command allows you to search by size, which you can specify using units spelled out in the man page: File uses n units of space. The following suffixes can be used: `b' for 512-byte ...
3
votes
1answer
1k views

Change default web browser to lynx from terminal

I'm on Linux Mint Olivia. I just installed Lynx. How do I set Lynx as my browser, so when I open links from the terminal, they open in that terminal with Lynx?
1
vote
2answers
3k views

dd count default

What is the count default in dd command if not specified ? dd if=/dev/mem bs=1k skip=768 instead of full form like dd if=/dev/mem bs=1k skip=768 count=50 I did not find an answer with Google.
1
vote
1answer
71 views

Where do I edit the keyboard “system settings” these days?

The last time I manually edited keyboard settings was sometime last decade. There days it looks like things have have changed. Now, when I use the Keyboard layouts dialog in XFCE or LXDE, I can either ...
0
votes
1answer
116 views

Default Folder Order in Gnome

How do I set the default folder order in Gnome? I'm talking about setting 'type order' as default so the folders will always be listed at the top, and other files after them. Here is the image: You ...
0
votes
1answer
2k views

Why doesn't Google Chrome show up in the “Default Applications” list in Gnome 3?

I'd like to configure Google Chrome as my default web browser on Arch Linux. I've already done the following: Made sure I have a ~/.local/share/applications/google-chrome.desktop which has an Exec ...
3
votes
1answer
922 views

Get “recent files” in global file manager (Dolphin?)

I just switched to OpenSUSE (KDE) from my Fedora 20 KDE setup,and I find myself greatly missing a feature that was a default in Fedora: a "Recently Used" option in the file manager when saving and ...
5
votes
1answer
2k views

in i3wm how can I set the default layout for all works spaces

By default when you start i3wm all work spaces start as vertical/horizontal split splith/splitv layout. Is there a way to set the a different default like stacking or tabbed as the default for all ...
0
votes
0answers
139 views

Change default OS loading

Installed Ubuntu 12.04 Feb 2014 - upgraded to 14.04LTS. I believe there is still remnants of older OS's still there somewhere, (they appear on the Grub multi-boot menu at start up). An earlier ...
5
votes
2answers
5k views

how to check default cache mode for disk in kvm

KVM/qemu support various types of cache - none, writethrough, writeback. How to check which one is default and is used on system when no cache= is specified? For RHEL6 i found that it's writethrough ...