From 0b114a3609a0a66fc83e655cb59e625573ff05d0 Mon Sep 17 00:00:00 2001 From: TC_Linux <88120195+TcPirate1@users.noreply.github.com> Date: Fri, 14 Nov 2025 09:37:42 +1300 Subject: [PATCH 1/3] Add sudo to locale-gen and localectl set-locale and set-keymap --- pages/linux/locale-gen.md | 4 ++-- pages/linux/localectl.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/linux/locale-gen.md b/pages/linux/locale-gen.md index 5bdf9d6a41b48c..b74c3a41792874 100644 --- a/pages/linux/locale-gen.md +++ b/pages/linux/locale-gen.md @@ -5,8 +5,8 @@ - Generate locales: -`locale-gen` +`sudo locale-gen` - Do not delete undefined locales: -`locale-gen --keep-existing` +`sudo locale-gen --keep-existing` diff --git a/pages/linux/localectl.md b/pages/linux/localectl.md index 9684fdffafe6e8..a7cf2144718385 100644 --- a/pages/linux/localectl.md +++ b/pages/linux/localectl.md @@ -13,7 +13,7 @@ - Set a system locale variable: -`localectl set-locale {{LANG}}={{en_US.UTF-8}}` +`sudo localectl set-locale {{LANG}}={{en_US.UTF-8}}` - List available keymaps: @@ -21,4 +21,4 @@ - Set the system keyboard mapping for the console and X11: -`localectl set-keymap {{us}}` +`sudo localectl set-keymap {{us}}` From 0c238e579c93b033dd1ed1a4c467ca8b8be6f03d Mon Sep 17 00:00:00 2001 From: Terence Chen <88120195+TcPirate1@users.noreply.github.com> Date: Fri, 14 Nov 2025 22:08:12 +1300 Subject: [PATCH 2/3] Update pages/linux/localectl.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/localectl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/localectl.md b/pages/linux/localectl.md index a7cf2144718385..ee948924a85b91 100644 --- a/pages/linux/localectl.md +++ b/pages/linux/localectl.md @@ -21,4 +21,4 @@ - Set the system keyboard mapping for the console and X11: -`sudo localectl set-keymap {{us}}` +`localectl set-keymap {{us}}` From 1ee6ac183f2206424de0ce8d41f68593578e1726 Mon Sep 17 00:00:00 2001 From: Terence Chen <88120195+TcPirate1@users.noreply.github.com> Date: Fri, 14 Nov 2025 22:08:19 +1300 Subject: [PATCH 3/3] Update pages/linux/localectl.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/localectl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/localectl.md b/pages/linux/localectl.md index ee948924a85b91..9684fdffafe6e8 100644 --- a/pages/linux/localectl.md +++ b/pages/linux/localectl.md @@ -13,7 +13,7 @@ - Set a system locale variable: -`sudo localectl set-locale {{LANG}}={{en_US.UTF-8}}` +`localectl set-locale {{LANG}}={{en_US.UTF-8}}` - List available keymaps: