Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
5
votes
1
answers
10738
views
How to change regional settings in Linux, including decimal point
I was on Linux Mint, now I'm trying Ubuntu 18 main distro. At top of Gnome day of week/time is displayed. That's where I started, wanting to change it to English having set regional to Russian via GUI, as by the way I noticed time zone changes if I changed regional to US. I've read and tried this: [...
I was on Linux Mint, now I'm trying Ubuntu 18 main distro. At top of Gnome day of week/time is displayed. That's where I started, wanting to change it to English having set regional to Russian via GUI, as by the way I noticed time zone changes if I changed regional to US.
I've read and tried this: How to get current or set wanted regional format in the terminal?
Strangely, after
sudo update-locale LC_TIME=en_CA.UTF-8
and even restart of PC, /etc/default/locale
has CA, but locale
in bash gives RU. And day of week on top of screen is in Russian still. Why different in file and by command? How to change language on top of screen, is it some short date variable, where to find it?
As extension to above, is it possible and how to change decimal point and thousand separator each individually to what I like?
Alex Martian
(1287 rep)
Jul 5, 2018, 07:45 AM
• Last activity: Jul 8, 2025, 01:03 PM
0
votes
1
answers
70
views
Understanding `bash` options -Ee
In a larger script I have ```bash trap -p echo "settings: [$-], command: [$*]" "$@" echo "return code $?" ``` and I get the output ``` trap -- '_shunit_cleanup EXIT' EXIT trap -- '_shunit_cleanup INT' SIGINT trap -- '_shunit_cleanup TERM' SIGTERM settings: [ehuBET], command: [false VAR2 VAR1] return...
In a larger script I have
trap -p
echo "settings: [$-], command: [$*]"
"$@"
echo "return code $?"
and I get the output
trap -- '_shunit_cleanup EXIT' EXIT
trap -- '_shunit_cleanup INT' SIGINT
trap -- '_shunit_cleanup TERM' SIGTERM
settings: [ehuBET], command: [false VAR2 VAR1]
return code 1
We see that the command false
is run and we see that it exits with code 1
. But we also have set -e
from which I would expect that we should never see the line return code 1
, because as soon as false
exists with 1
the whole script should stop. Afaict the traps are not relevant.
I tried to reproduce the situation with a minimal example, but in all smaller tests, the immediate exit due to -e
does happen.
Which setting or options should I look at to explain the above?
**More background and findings:**
The problematic code is called as part of a shunit2
test from within a testing function. If I call that same testing function directly, without invoking it through shunit2
, the problem is gone.
But to confirm: my confusion lies mostly in the facts which can be seen from the output above alone: set -e
seems to be on, false
is called but instead of exiting right away, the next line of code (echo
) is executed anyway.
Harald
(1030 rep)
Apr 27, 2025, 07:22 AM
• Last activity: Jun 12, 2025, 02:44 PM
0
votes
1
answers
2330
views
No Settings -> Window Manager in XFCE4
I am under Ubuntu 20.04, using XFCE4. When I click *Menu (Upper left cross)* -> *Settings* in the *Applications Menu* (added to the panel via this) [![enter image description here][1]][1] I expected to have *Window Manager* available (PS: I needed that to setup keyboard shortcuts for [window tiling]...
I am under Ubuntu 20.04, using XFCE4.
When I click *Menu (Upper left cross)* -> *Settings* in the *Applications Menu* (added to the panel via this)
I expected to have *Window Manager* available (PS: I needed that to setup keyboard shortcuts for window tiling , which were not set by default).
But I don't have that menu entry, this is what I have.
I can go to the *Window Manager* via CLI with

But I don't have that menu entry, this is what I have.

xfwm4-settings
(source , and related old post ).
By typing xfce4-
+Tab (for tab completion), and likewise for xfwm4-
, I realized there are quite a few other settings that do not show under *Menu (Upper left cross)* -> *Settings*.
Of all tab completion alternatives (shown below), I checked executing some of them at the CLI, and then if they show in the menus. None of them were present (and perhaps none of the others as well!).
These are marked with an asterisk.
xfce4-about
xfce4-accessibility-settings
*xfce4-appearance-settings
xfce4-appfinder
xfce4-color-settings
xfce4-display-settings
xfce4-find-cursor
*xfce4-keyboard-settings
xfce4-mime-settings
*xfce4-mouse-settings
xfce4-notifyd-config
xfce4-panel
xfce4-popup-applicationsmenu
xfce4-popup-directorymenu
xfce4-popup-windowmenu
xfce4-session
xfce4-session-logout
xfce4-settings-editor
xfce4-settings-manager
xfce4-session-settings
xfwm4
*xfwm4-settings
*xfwm4-tweaks-settings
*xfwm4-workspace-settings
The CLI settings available above seem a completely disjoint set compared to the menu entries.
So:
1. Why are these menu entries not present? (I guess they should be automatically included)
2. How can I have them shown?
sancho.s ReinstateMonicaCellio
(2998 rep)
Sep 28, 2021, 06:24 AM
• Last activity: Apr 25, 2025, 08:05 AM
1
votes
2
answers
1927
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 browser is not set anymore. Also, after I press _Set Default_ in Chrome I can see that 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 browser is not set anymore.
Also, after I press _Set Default_ in Chrome I can see that default browser in _Preferred Applications_ is still unset. But if I set it there it is also persisted until next system restart only.
Sam Sunson
(11 rep)
Aug 2, 2016, 09:41 AM
• Last activity: Apr 21, 2025, 05:01 PM
3
votes
0
answers
401
views
How to open keyboard shortcuts settings window from terminal?
I want to open the keyboard shortcuts settings (see first screenshot) with a terminal command, but the best I can find is `gnome-control-center keyboard`, which opens the keyboard settings (see second screenshot) [![Keyboard shortcuts settings window][1]][1] [![Keyboard settings window][2]][2] Using...
I want to open the keyboard shortcuts settings (see first screenshot) with a terminal command, but the best I can find is
gnome-control-center keyboard
, which opens the keyboard settings (see second screenshot)
![Keyboard shortcuts settings window ][1]
![Keyboard settings window ][2]
Using man gnome-control-center
, I found this for keyboard panel:
> You can open this panel on a specific tab by passing **typing** or **shortcuts** as extra argument.
But when I try gnome-control-center keyboard shortcuts
, it opens the same window (second screenshot)
I'm using GNOME 3.38.4, on Pop!_OS 21.04
anonymous
(31 rep)
Nov 15, 2021, 05:18 PM
• Last activity: Mar 31, 2025, 01:51 PM
1
votes
0
answers
19
views
Ubuntu VM running on HyperV Windows 10 machine remote login will not stay toggled on
I have an Ubuntu VM running in HyperV on a Windows 10 machine. I'm trying to configure Ubuntu to allow remote logins so I can use Remote Desktop from my Windows host to login, but the toggle that allows remote login in the Ubuntu settings won't stay on. I know I can use the built in HyperV viewer to...
I have an Ubuntu VM running in HyperV on a Windows 10 machine. I'm trying to configure Ubuntu to allow remote logins so I can use Remote Desktop from my Windows host to login, but the toggle that allows remote login in the Ubuntu settings won't stay on. I know I can use the built in HyperV viewer to run the VM and get into it from Windows, but I'm specifically trying to log in using Remote Desktop.
Here's the setup:
Host Machine:
- Windows 10 Enterprise version 22H2
- OS Build 19045.5131
- Windows Feature Experience Pack 1000.19060.1000.0
- HyperV manager version 10.0.19041.1
VM:
- Ubuntu 24.04.1 LTS x86_64
- Kernel 6.8.0-49-generic
- Desktop Environment: Gnome 46.0
- Shell: Bach 5.2.21
- Window manager: Mutter
- Window manager theme: Adwaita
- Theme: Yaru [GTK2/3]
- Icons: Yaru [GTK2/3]
- Terminal: gnome-terminal
- xrdp version 0.9.24
Here's a gif showing what it's doing:
I've looked and have not been able to find anything in the documentation that gives any additional steps needed to enable remote login nor have I found any posts anywhere that talks about this issue. I don't even know what other information to post to help troubleshoot this.

Gharbad The Weak
(193 rep)
Dec 3, 2024, 11:56 PM
• Last activity: Jan 6, 2025, 05:47 AM
0
votes
1
answers
42
views
How to rebuild "~/.local/share" after switching distributions
I recently switched from Ubuntu LTS to Debian 12 bookworm. I'm having issues with default application settings so would like to create a 'fresh' `~/.local/share` (or perhaps even better `~/.local`) folder that matches the apps in bookworm, but if I look in `/etc/skel/`, there's no `.local/` folder....
I recently switched from Ubuntu LTS to Debian 12 bookworm. I'm having issues with default application settings so would like to create a 'fresh'
~/.local/share
(or perhaps even better ~/.local
) folder that matches the apps in bookworm, but if I look in /etc/skel/
, there's no .local/
folder.
I can someone help me understand how the .local folder is generated and/or updated?
mikemtnbikes
(241 rep)
Oct 30, 2024, 12:15 PM
• Last activity: Oct 30, 2024, 12:55 PM
0
votes
0
answers
81
views
Rocky 9 split screen settings
Rocky 9 has this nice feature that allows windows to snap into split screen layouts, although by default it's dividing the screen into 3 parts. Also the borders are a bit thick. Is there a setting panel to customize these settings?
Rocky 9 has this nice feature that allows windows to snap into split screen layouts, although by default it's dividing the screen into 3 parts.
Also the borders are a bit thick.
Is there a setting panel to customize these settings?
ytrox
(1 rep)
Sep 26, 2024, 07:40 PM
0
votes
0
answers
314
views
Can Remmina turn on the 'grab all keyboard events' setting at session start?
I have Remmina working nicely with various remote machines (RDP, VNC). One feature I use a lot is the "Grab all keyboard events" toggle: [![Screenshot of Remmina Grab all keyboard events toggle button][1]][1] This setting allows the host to pass the ⊞ Win key directly into the remote machine, rather...
I have Remmina working nicely with various remote machines (RDP, VNC). One feature I use a lot is the "Grab all keyboard events" toggle:
This setting allows the host to pass the ⊞ Win key directly into the remote machine, rather than the host capturing it.
Is there a way to start a session with the "grab" setting ON to begin with? I have to toggle it ON each time I start a session, and really have no reason to ever turn it off.

mrtumnus
(101 rep)
Aug 30, 2024, 01:25 PM
2
votes
2
answers
2442
views
How can I persist the modified V4L2 (Guvcview) profile of a webcam?
I have a USB web camera that gives suboptimal results when I plug it in (Linux seems to apply its own V4L2 settings to it that it thinks are best, they are not). Mainly, it operates at a low FPS. But if I open Guvcview, select "Settings" -> "Hardware defaults" in the menu, and add some minor modific...
I have a USB web camera that gives suboptimal results when I plug it in (Linux seems to apply its own V4L2 settings to it that it thinks are best, they are not). Mainly, it operates at a low FPS. But if I open Guvcview, select "Settings" -> "Hardware defaults" in the menu, and add some minor modifications, I can get a higher FPS and overall better quality.
If I close Guvcview and open it again, the settings are reset in Guvcview, but the changes I made stay active in other apps like video chat software. However, if I unplug the webcam, the changes are lost everywhere, and after plugging in again I have a worse quality again.
What I do for now is I saved the changes in Guvcview as a .gpfl file (menu -> "Settings" -> "Save profile"), and whenever I reconnect the webcam, I open Guvcview and load the profile with "Load profile".
How can I make these settings persist so that I never have to do this again, and have them applied to only this specific video device and not others?
ostrich
(21 rep)
Apr 25, 2023, 01:34 AM
• Last activity: Jan 3, 2024, 04:33 PM
14
votes
3
answers
44477
views
How can I easily change my time-zone in Arch/Xfce?
Since I move around, I need to be to change time-zones frequently. I'm on Arch/Xfce. How can I do that? I've tried right click on the watch on the top panel -> properties -> time settings -> time zone. It didn't work. When I type a time-zone, it's not auto-completing and not showing suggestions. Whe...
Since I move around, I need to be to change time-zones frequently. I'm on Arch/Xfce. How can I do that? I've tried right click on the watch on the top panel -> properties -> time settings -> time zone. It didn't work. When I type a time-zone, it's not auto-completing and not showing suggestions. When I enter it, nonetheless and press Ok, the time doesn't change according to a new time-zone.
What's the proper way to do that?
Johshi
(473 rep)
Jul 19, 2016, 07:01 AM
• Last activity: Nov 30, 2023, 07:03 AM
0
votes
1
answers
137
views
Avoid the fluxbox slit taskbar side panel auto hide
This is my question: how to configure the Fluxbox slit side panel (taskbar which contains dockable apps) for avoiding to auto-hide?
This is my question: how to configure the Fluxbox slit side panel (taskbar which contains dockable apps) for avoiding to auto-hide?
Symb932
(365 rep)
Nov 22, 2023, 04:00 AM
• Last activity: Nov 24, 2023, 05:07 AM
1
votes
1
answers
741
views
ubuntu, several switches for keyboard layout
### I have: I am new to Ubuntu (or Wayland?) and have an issue with two different ways to switch keyboard layout. - Ubuntu 22.04.3 LTS - Gnome 42.9 - Windowing system Wayland And I currently have two different switches for layouts. Here is what I found so far: ### `Settings` application The `Setting...
### I have:
I am new to Ubuntu (or Wayland?) and have an issue with two different ways to switch keyboard layout.
- Ubuntu 22.04.3 LTS
- Gnome 42.9
- Windowing system Wayland
And I currently have two different switches for layouts. Here is what I found so far:
###
Settings
application
The Settings
application provides just one way to switch layouts, I find this in Settings
by going Keyboard -> Keyboard Shortcuts -> Typing. There I have Super+Space
for the switch. This works, but...
1. I'd like to define LeftAlt+LeftShift as a toggle switch, but the settings window does not accept this.
2. Is it possible to increase size of layout indicator? I have a very big screen and tiny language code in the corner of the screen is not very easy readable. Is there a way (setting somewhere or applet/plugin/extension) to increase font size for the language indicator and/or use country flags to show which language layout is in use?
### gsettings
Open terminal, issue command:
gsettings set org.gnome.desktop.input-sources xkb-options "['grp:lalt_lshift_toggle']"
This done exactly what I want, but using this hotkey does not change language indicator on the screen, and I have to type a letter or two to understand which layout is active one.
1. Is there a way to synchronize the on-screen indicator with that switch?
2. Is this a different input method from the one controlled by Settings
application? (ibus vs xkb?)
3. The switch of layout does not happen always. Sometimes I need to hit LeftAlt+LeftShift twice (hit it, type letter, backspace, hit it again) to switch the layouts. Completely not sure where to search for a reason for this problem.
### So currently ...
I have two switches: Super+Space and LeftAlt+LeftShift... And constantly mix them. I can, of course, remove one, but I have several other computers (under Mint/Cinnamon and Windows) which use LeftAlt+LeftShift, so I would really prefer to stick with this one (finger memory is powerful thing).
So I am not sure which direction I should take at this moment and which method to trust/improve more, the Settings
or gsettings
? Or install some third application like xkbd-switch
or something else? Or go all the way and replace Ubuntu with Mint?
White Owl
(5267 rep)
Oct 26, 2023, 06:02 PM
• Last activity: Nov 12, 2023, 12:30 AM
4
votes
2
answers
6350
views
Make Apple Keyboard Settings persistent in ../hid_apple/parameters/
i'm running Ubuntu 16.04 LTS and want to use an apple keyboard (wired). No i'm facing some problems whith making my custom settings permanent. I'm using the 'English internationl, AltGr dead keys' layout. The keyboard has some keys swapped and i set the settings manually in the `/sys/module/hid_appl...
i'm running Ubuntu 16.04 LTS and want to use an apple keyboard (wired). No i'm facing some problems whith making my custom settings permanent. I'm using the 'English internationl, AltGr dead keys' layout.
The keyboard has some keys swapped and i set the settings manually in the
/sys/module/hid_apple/parameters/
folder. I set fnmode
to 2
, iso_layout
to 0
and swap_opt_cmd
to 1
. After this everything works like intended. But after rebooting the settings are back to the default. I have to reset everything manually after each reboot.
For now i wrote a little shell script which would do it but that's not the best way i think.
How can i make these settings persistent?
Ian
(63 rep)
Nov 28, 2017, 01:24 PM
• Last activity: Oct 17, 2023, 06:11 AM
3
votes
1
answers
1118
views
Open new instances of Nemo File Manager in tabs instead of windows
I'm using Linux Mint 20 and whenever I decompress a zip file it opens the content to a new Nemo window. In Kubuntu when extracting files it opens the content to new Dolphin tabs instead of new Dolphin windows. How can I replicate this behavior in Nemo? I tried to search for an option in Nemo setting...
I'm using Linux Mint 20 and whenever I decompress a zip file it opens the content to a new Nemo window. In Kubuntu when extracting files it opens the content to new Dolphin tabs instead of new Dolphin windows. How can I replicate this behavior in Nemo? I tried to search for an option in Nemo settings but there's none about how to handle this.
user290331
Sep 4, 2020, 04:38 PM
• Last activity: Aug 22, 2023, 02:20 PM
0
votes
0
answers
185
views
Additional DE without affecting applications and settings
The goal: Safely install KDE Plasma (and possibly Cinnamon) alongside Gnome on POP_OS 22.04. Quick bit of background. With the release of Debian 12 I came to learn (from Explaining Computers dotcom yt channel) about the [tasksel][1] tool. This has intrigued me as I have developed the desire, if some...
The goal: Safely install KDE Plasma (and possibly Cinnamon) alongside Gnome on POP_OS 22.04.
Quick bit of background. With the release of Debian 12 I came to learn (from Explaining Computers dotcom yt channel) about the tasksel tool. This has intrigued me as I have developed the desire, if somehow possible, to have other DEs installed on my system ...to be able to switch between them until I settle on one. Then, just this morning I did a little digging and discovered that System76 already has a dedicated help page for adding Desktop Environments to an existing installation using apt commands. Problem solved right?
Well. This is what I'm not sure. Because I don't just want more DEs on the system. What I hope to accomplish, whether by using tasksel or apt (or something else?) is to install one or two additional environments while keeping all of the existing applications and settings, so they are only installed and configured *once* on the system (as currently) but with freedom to switch desktop environments to see how each one feels with the same workflow.
What I definitely don't want is to do one of these methods and find that they've buggered existing applications, erased their settings or that the entire workflow has to be painstakingly re-created in each new desktop environment. So I guess the actual question is two parts,
Q1. Is it ever possible to install a new desktop environment to an existing Debian-based distro while maintaining pretty much all of the current software and application settings?
Q2. If yes, can this be done with tasksel and/or apt methods and, if so, which is better to use for desired outcome? Why?
Bonus question: Approximately how much disk space is, or where Gnome is already present, would be consumed by a fully functional, fully installed KDE Plasma (xx GB) and Cinnamon (xx GB)?
-------------------------
Prior to posting the most similar Q&A I was able to find was this and this .
frogsbottom
(37 rep)
Jun 24, 2023, 11:39 PM
114
votes
7
answers
29844
views
Set and Shopt - Why Two?
`set` and `shopt` are both shell builtins that control various options. I often forget which options are set by which command, and which option sets/unsets (`set -o/+o`, `shopt -s/-u`). Why are there two different commands that seemingly do the same thing (and have different arguments to do so)? Is...
set
and shopt
are both shell builtins that control various options. I often forget which options are set by which command, and which option sets/unsets (set -o/+o
, shopt -s/-u
). Why are there two different commands that seemingly do the same thing (and have different arguments to do so)? Is there any easy way/mnemonic to remember which options go with which command?
Kevin
(41635 rep)
Feb 22, 2012, 04:17 PM
• Last activity: Jun 2, 2023, 07:40 AM
265
votes
10
answers
333609
views
Getting 256 colors to work in tmux
I have 256 colors working just fine in `konsole,`. I thought I'd give `tmux` a try because, unlike screen, it seems to support `vi` mode. However I find that the colors of my prompt show up and this is most likely because I have a 256 color mode prompt. What do I need to do to get `tmux` to recogniz...
I have 256 colors working just fine in
konsole,
. I thought I'd give tmux
a try because, unlike screen, it seems to support vi
mode. However I find that the colors of my prompt show up and this is most likely because I have a 256 color mode prompt. What do I need to do to get tmux
to recognize all 256 colors?
xenoterracide
(61203 rep)
Aug 23, 2010, 08:30 AM
• Last activity: May 20, 2023, 06:42 AM
18
votes
5
answers
6827
views
Suppresss "~/Mail does not exist" in mutt
I use Mutt (1.5.21 on a headless Debian 7.2 Wheezy VPS) only occasionally, to see and delete messages from cron and the likes. However, it keeps pestering me with this non-existent ~/Mail folder. ![Mutt pestering][1] No need to say that it works perfectly with the folder not being created; I'm kind...
I use Mutt (1.5.21 on a headless Debian 7.2 Wheezy VPS) only occasionally, to see and delete messages from cron and the likes.
However, it keeps pestering me with this non-existent ~/Mail folder.
No need to say that it works perfectly with the folder not being created; I'm kind of miss the whole point of asking this every time.
Can I disable the message? (Or if that fails, change the path to something invisible?)

Alois Mahdal
(4598 rep)
Jan 6, 2014, 06:08 PM
• Last activity: May 4, 2023, 05:32 PM
0
votes
0
answers
474
views
Can I access Eero router settings through Linux
so we have a Linksys router and a eero router connected to our internet. My stepdad won’t give me the password to the eero and keeps blocking my phone and computer from accessing the router just to be an ass. I’m trying to find a way that I can access our router settings through the command line. Or...
so we have a Linksys router and a eero router connected to our internet. My stepdad won’t give me the password to the eero and keeps blocking my phone and computer from accessing the router just to be an ass. I’m trying to find a way that I can access our router settings through the command line. Or if there’s a way to change the way my phone and internet show up on router so he can’t keep messing with me ? I have tried a VPN but that didn’t help. I would appreciate any help . Thanks
22apk87
(1 rep)
Mar 29, 2023, 01:27 PM
Showing page 1 of 20 total questions