Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
1
answers
12570
views
How to type and display different languages in Parrot Security OS?
I've tried downloading the SCIM input method program. Normally I should be able to press CTRL + Space to switch languages, however, this hot-key is not working. How to enable Korean language typing and also to be able to display it in the terminal?
I've tried downloading the SCIM input method program. Normally I should be able to press CTRL+Space to switch languages, however, this hot-key is not working. How to enable Korean language typing and also to be able to display it in the terminal?
user342427
(11 rep)
Mar 18, 2019, 10:37 PM
• Last activity: Jul 28, 2025, 05:07 AM
2
votes
2
answers
324
views
How do I configure US layout with German special characters (on Fedora/GNOME/wayland)?
On a Fedora system running GNOME under Wayland, I want to accomplish the following: - regular US ANSI layout - international keys / unicode keys on Right Alt + key (I really only need the German ones and maybe the Euro symbol) - no dead keys This is one of the layouts available on KDE and it's perfe...
On a Fedora system running GNOME under Wayland, I want to accomplish the following:
- regular US ANSI layout
- international keys / unicode keys on Right Alt+key (I really only need the German ones and maybe the Euro symbol)
- no dead keys
This is one of the layouts available on KDE and it's perfect for anyone with a US keyboard who needs european characters and wants to do coding. But there is no such layout on GNOME.
Does anyone know how I can configure it?
Hendrik Hübner
(21 rep)
Dec 5, 2024, 07:31 PM
• Last activity: Jun 25, 2025, 06:25 AM
0
votes
1
answers
2347
views
How to change the language in busybox
I turned off the computer, but when I opened it again, it gave me an error: [![error][1]][1] I find the solution of it,(i need to write ```fsck /dev/sda8```) however my keyboard is in russian, so i can not type anything in english. I started search about the problem and found it https://ubuntuforums...
I turned off the computer, but when I opened it again, it gave me an error:
I find the solution of it,(i need to write

/dev/sda8
) however my keyboard is in russian, so i can not type anything in english.
I started search about the problem and found it https://ubuntuforums.org/archive/index.php/t-1002358.html . This guy had a similar problem, so i tried it
the grub menu highlight ubuntu (NOT the recovery mode)
press e for edit
highlight the kernel line and press e for edit
added set LANG=en_us
press enter, then b to boot.
but it also did not change the language in busybox
How can i change the language in busybox?
Samadzade Muhammed
(1 rep)
Feb 27, 2021, 12:02 PM
• Last activity: May 21, 2025, 03:13 AM
0
votes
2
answers
59
views
How to get Danish letters on US (physical) keyboard on Fedora Linux?
I am a Dane residing in the USA. On Windows, I select "US International Keyboard", and I can produce ```æ, ø, å``` with ```Alt-Gr+z, Alt-Gr+l, Alt-Gr+w```. How can I do the same on Fedora Linux? Is there a keyboard layout file that matches the Windows one? And how do I select it - In...
I am a Dane residing in the USA.
On Windows, I select "US International Keyboard", and I can produce
æ, ø, å
with -Gr+z, Alt-Gr+l, Alt-Gr+w
.
How can I do the same on Fedora Linux?
Is there a keyboard layout file that matches the Windows one?
And how do I select it
- In the GUI?
- In a GNOME and/or XFCE configuration file?
Lars Poulsen
(357 rep)
Apr 5, 2025, 05:29 PM
• Last activity: Apr 5, 2025, 09:35 PM
2
votes
1
answers
364
views
Wine Converted App (Fox Weiqi) Not Showing Chinese (or CJK) Characters
I'm able to run the [Fox Weiqi client](https://www.foxwq.com/soft/foreign.html) (the foreign version) perfectly with Wine. [![No CJK characters][1]][1] And I can type and see CJK characters just fine on apps (I use FCITX). Is Wine not able to access these characters by default? It's also happening o...
I'm able to run the [Fox Weiqi client](https://www.foxwq.com/soft/foreign.html) (the foreign version) perfectly with Wine.
And I can type and see CJK characters just fine on apps (I use FCITX).
Is Wine not able to access these characters by default?
It's also happening on my Mac (Sequoia).
I've just tried [this other answer](https://unix.stackexchange.com/a/591021/364698) , but it got me some errors at the end of the install:
And now I'm not even sure how to revert this properly.
When I try to run the installer with Wine from the terminal, this is what I get, before finishing the install and going into the weird layout:

$ ./winetricks corefonts gdiplus riched20 riched30 wenquanyi
...
10/10 12:20:17 [ERROR] CUID#7 - Download aborted. URI=https://web.archive.org/web/20160710055851if_/http://download.microsoft.com/download/WindowsInstaller/Install/2.0/NT45/EN-US/InstMsiW.exe
Exception: [AbstractCommand.cc:340] errorCode=2 Timeout.
10/10 12:20:17 [NOTICE] Download GID#e8dd5e0f2cd2c309 not complete: /home/phili/.cache/winetricks/msls31/InstMsiW.exe
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
e8dd5e|ERR | 0B/s|/home/phili/.cache/winetricks/msls31/InstMsiW.exe
Status Legend:
(ERR):error occurred.
aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.
Executing cd /home/phili/.cache/winetricks/msls31
Downloading https://web.archive.org/web/2000/https://web.archive.org/web/20160710055851if_/http://download.microsoft.com/download/WindowsInstaller/Install/2.0/NT45/EN-US/InstMsiW.exe to /home/phili/.cache/winetricks/msls31
10/10 12:20:18 [NOTICE] Downloading 1 item(s)
[#fd45bf 0B/0B CN:1 DL:0B]
10/10 12:21:03 [ERROR] CUID#7 - Download aborted. URI=https://web.archive.org/web/2000/https://web.archive.org/web/20160710055851if_/http://download.microsoft.com/download/WindowsInstaller/Install/2.0/NT45/EN-US/InstMsiW.exe
Exception: [AbstractCommand.cc:340] errorCode=2 Timeout.
10/10 12:21:03 [NOTICE] Download GID#fd45bfa35a4b4a14 not complete: /home/phili/.cache/winetricks/msls31/InstMsiW.exe
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
fd45bf|ERR | 0B/s|/home/phili/.cache/winetricks/msls31/InstMsiW.exe
Status Legend:
(ERR):error occurred.
aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.
------------------------------------------------------
warning: Downloading https://web.archive.org/web/2000/https://web.archive.org/web/20160710055851if_/http://download.microsoft.com/download/WindowsInstaller/Install/2.0/NT45/EN-US/InstMsiW.exe failed
------------------------------------------------------
The later edit warns me about 32- vs 64-bit stuff:
./winetricks regedit ─╯
Executing cd .
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20240105-next - sha256sum: 65d5aaffa155adcb1883aa71fb7e14a90a899dcac11e66e6ff368de40f3f0a79 with wine-9.19 and WINEARCH=win64
ERROR: ld.so: object '/usr/${LIB}/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/${LIB}/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/${LIB}/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
And, after reinstalling things, the program's layout got super messed up:


╭─ ~/Other Software/Fox Weiqi ────────────────────────────────────────────── ✔ 16:33:08 ─╮
╰─ wine64 fox_install.exe ─╯
ERROR: ld.so: object '/usr/${LIB}/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open
shared object file): ignored.
0120:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0120:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
0120:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
ERROR: ld.so: object '/usr/${LIB}/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
╭─ ~/Other Software/Fox Weiqi ─────────────────────────────────────── ✔ 7s 16:33:46 ─╮
╰─ 0130:fixme:nls:RtlGetThreadPreferredUILanguages 00000034, 0259F6B8, 0259F728 0259F6C0 ─╯
0130:fixme:nls:get_dummy_preferred_ui_language (0x34 0x409 0259F6B8 0259F728 0259F6C0) returning a dummy value (current locale)
0130:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0130:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
0130:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
0130:fixme:shcore:SetCurrentProcessExplicitAppUserModelID L"Client.AppID.NoVersion": stub
0130:fixme:msvcrt:_set_abort_behavior _WRITE_CALL_REPORTFAULT unhandled
0130:fixme:nls:RtlGetThreadPreferredUILanguages 00000034, 0259F9E4, 0259FA54 0259F9EC
0130:fixme:nls:get_dummy_preferred_ui_language (0x34 0x409 0259F9E4 0259FA54 0259F9EC) returning a dummy value (current locale)
0130:fixme:shell:InitNetworkAddressControl stub
0130:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0130:fixme:win:RegisterTouchWindow hwnd 000200E4, flags 0 stub!
0174:fixme:ver:GetCurrentPackageId (1B0FFF10 00000000): stub
0130:fixme:win:RegisterTouchWindow hwnd 00010144, flags 0 stub!
0194:fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
0194:fixme:toolhelp:Heap32ListFirst : stub
0130:fixme:uxtheme:BufferedPaintInit Stub ()
01bc:fixme:ver:GetCurrentPackageId (29D7FF10 00000000): stub
0130:fixme:uxtheme:BufferedPaintUnInit Stub ()
0130:fixme:msvcrt:__clean_type_info_names_internal (78BEA300) stub
0130:fixme:msvcrt:__clean_type_info_names_internal (78886BE4) stub
0130:fixme:msvcrt:__clean_type_info_names_internal (7A510E54) stub
psygo
(233 rep)
Oct 9, 2024, 10:06 PM
• Last activity: Oct 19, 2024, 02:48 PM
2
votes
1
answers
923
views
Stop apt-get from trying to download translations from specific repositories
I have a custom Debian repository deployed with no translation packages which I created using `reprepro` utility. Everytime `apt-get update` is run I see requests to *i18n* packages which I don't have and hence *404* is returned back to clients. This hasn't been a problem so far, but it seems like a...
I have a custom Debian repository deployed with no translation packages which I created using
reprepro
utility. Everytime apt-get update
is run I see requests to *i18n* packages which I don't have and hence *404* is returned back to clients. This hasn't been a problem so far, but it seems like a misconfiguration issue that should be addressed.
I managed to stop apt-get
from downloading all translations by putting these lines (thanks to a tip similar to [this](https://askubuntu.com/questions/184665/how-apt-get-determines-when-to-download-translation-file) one)
Acquire::Languages {
"none";
}
to /etc/apt/apt.conf.d/99languages
I want to this to work only for my repo.
I've stumbled upon similar problems with setting up repository-specific proxies. These problems have been solved with adding a repository URI before "none" but this doesn't seem to do the job for Languages options.
I'll be very thankful to anyone who might recommend a proper solution.
I'm using a Debian Jessie-based distribution.
staroselskii
(211 rep)
Mar 14, 2017, 01:06 PM
• Last activity: Mar 29, 2024, 07:53 PM
3
votes
1
answers
142
views
apt randomly switches languages ever since I installed Arabic on my Pop!_OS running KDE Plasma
I recently installed Arabic on my system and since then apt sometimes does things in Arabic and sometimes in English user@pop-os:~$ sudo apt update && sudo apt upgrade Hit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease Hit:2 http://packages.microsoft.com/repos/code stable InRelease Hit:3...
I recently installed Arabic on my system and since then apt sometimes does things in Arabic and sometimes in English
user@pop-os:~$ sudo apt update && sudo apt upgrade
Hit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:2 http://packages.microsoft.com/repos/code stable InRelease
Hit:3 http://apt.pop-os.org/proprietary jammy InRelease
Hit:4 http://apt.pop-os.org/release jammy InRelease
Hit:5 http://apt.pop-os.org/ubuntu jammy InRelease
Hit:6 http://apt.pop-os.org/ubuntu jammy-security InRelease
Hit:7 http://apt.pop-os.org/ubuntu jammy-updates InRelease
Hit:8 http://apt.pop-os.org/ubuntu jammy-backports InRelease
قراءة قوائم الحزم... تمّ%
Building dependency tree... تمّ%
Reading state information... تمّ
All packages are up to date.
قراءة قوائم الحزم... تمّ0%
Building dependency tree... تمّ%
Reading state information... تمّ
حساب الترقية... تمّ%
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
vlc-plugin-qt libvlc5 libimage-magick-perl vlc-data libvlccore9 vlc
imagemagick libavcodec-extra vlc-bin vlc-l10n libavdevice58 libopenexr25
libmagick++-6.q16-8 libpostproc55 libmagickcore-6.q16-6-extra
vlc-plugin-samba libimage-magick-q16-perl libmagickwand-6.q16-6
libavcodec-extra58 vlc-plugin-notify libavutil56 imagemagick-6.q16
libswscale5 libeditorconfig0 libmagickcore-6.q16-6 vlc-plugin-access-extra
vlc-plugin-skins2 libgsl27 vlc-plugin-video-splitter libswresample3
imagemagick-6-common vlc-plugin-video-output libavformat58 libgslcblas0
libvlc-bin vlc-plugin-base vlc-plugin-visualization libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
0 سيتم ترقيتها، 0 مثبتة حديثاً، 0 لإزالتها و 0 لم يتم ترقيتها.
Sometimes it will even put the Arabic for Hit randomly in between the the English ones (but I couldn't get it to replicate for this post).
I saw some solutions saying that I need to change something with the locale. This is what I get from Locale:
user@pop-os:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en_US:en_US:ar
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Finally, this is my system info from neofetch:
user@pop-os:~$ neofetch
///////////// user@pop-os
///////////////////// ---------------
///////*767//////////////// OS: Pop!_OS 22.04 LTS x86_64
//////7676767676*////////////// Host: Latitude 5520
/////76767//7676767////////////// Kernel: 6.6.6-76060606-generic
/////767676///*76767/////////////// Uptime: 13 hours, 22 mins
///////767676///76767.///7676*/////// Packages: 2983 (dpkg), 52 (flatpak), 8 (snap)
/////////767676//76767///767676//////// Shell: bash 5.1.16
//////////76767676767////76767///////// Resolution: 1920x1080
///////////76767676//////7676////////// DE: Plasma 5.24.7
////////////,7676,///////767/////////// WM: kwin
/////////////*7676///////76//////////// Theme: [Plasma], Breeze [GTK2/3]
///////////////7676//////////////////// Icons: [Plasma], breeze-dark [GTK2/3]
///////////////7676///767//////////// Terminal: konsole
//////////////////////'//////////// CPU: 11th Gen Intel i5-1135G7 (8) @ 4.200GHz
//////.7676767676767676767,////// GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics]
/////767676767676767676767///// Memory: 6696MiB / 23779MiB
///////////////////////////
/////////////////////
/////////////
How can I change it back to be English only?
Omar Eldahan
(133 rep)
Jan 14, 2024, 08:14 AM
• Last activity: Jan 15, 2024, 12:29 AM
2
votes
1
answers
197
views
Matching Japanese regex (simple ranges) in bash doesn't work as intended
I am pretty sure my regexes are fine but they don't work with bash. I crafted them myself using https://unicode.org/charts/. As you will see, they work properly with awk. Here are the ranges to spare you the need to check them yourself, especially if you don't know Japanese: - hiragana [ぁ-ゟ] - ぁあぃいぅ...
I am pretty sure my regexes are fine but they don't work with bash. I crafted them myself using https://unicode.org/charts/ . As you will see, they work properly with awk.
Here are the ranges to spare you the need to check them yourself, especially if you don't know Japanese:
- hiragana [ぁ-ゟ]
- ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをんゔゕゖ>゙>゚__ゝゞゟ
- katakana [゠-ヿㇰ-ㇿ!-○]
- ゠ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶヷヸヹヺ・ーヽヾヿ
- ㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ
- !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~⦅⦆。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ¢£¬ ̄¦¥₩│←↑→↓■○
I also have a regex to find kanjis
[一-龥]
but this one works as intended in bash.
The >>> wrong!
are comments I added to pinpoint where the problems are.
[[ "する" =~ [ぁ-ゟ] ]] && echo 'is hiragana' || echo 'is not hiragana'
is hiragana
echo 'する' | awk '/[ぁ-ゟ]/ {print "is hiragana"}'
is hiragana
[[ "スル" =~ [ぁ-ゟ] ]] && echo 'is hiragana' || echo 'is not hiragana'
is hiragana >>> wrong!
echo 'スル' | awk '/[ぁ-ゟ]/ {print "is hiragana"}'
[[ "僕" =~ [ぁ-ゟ] ]] && echo 'is hiragana' || echo 'is not hiragana'
is not hiragana
echo '僕' | awk '/[ぁ-ゟ]/ {print "is hiragana"}'
[[ "する" =~ [゠-ヿㇰ-ㇿ!-○] ]] && echo 'is katakana' || echo 'is not katakana'
is katakana >>> wrong!
echo 'する' | awk '/[゠-ヿㇰ-ㇿ!-○]/ {print "is katakana"}'
[[ "スル" =~ [゠-ヿㇰ-ㇿ!-○] ]] && echo 'is katakana' || echo 'is not katakana'
is katakana
echo 'スル' | awk '/[゠-ヿㇰ-ㇿ!-○]/ {print "is katakana"}'
is katakana
[[ "僕" =~ [゠-ヿㇰ-ㇿ!-○] ]] && echo 'is katakana' || echo 'is not katakana'
is not katakana
echo '僕' | awk '/[゠-ヿㇰ-ㇿ!-○]/ {print "is katakana"}'
It's like bash consider hiragana and katakana to be equivalent, like it converts them beforehand or something?
Some_user
(63 rep)
Apr 15, 2023, 02:25 PM
• Last activity: Dec 31, 2023, 12:34 PM
0
votes
1
answers
247
views
error: Bad entry 'en_AG ', etc, when generating locales on Linux Mint
I am unsure what is happening with those "bad locales", I am updating my laptop regularly once daily. This came up today: ```none Setting up locales (2.35-0ubuntu3.4) ... Generating locales (this might take a while)... cs_CZ.UTF-8... done error: Bad entry 'en_AG ' en_AG.UTF-8... done en_AG.UTF-8......
I am unsure what is happening with those "bad locales", I am updating my laptop regularly once daily. This came up today:
***
Any help is appreciated!
***
Today I tried
Setting up locales (2.35-0ubuntu3.4) ...
Generating locales (this might take a while)...
cs_CZ.UTF-8... done
error: Bad entry 'en_AG '
en_AG.UTF-8... done
en_AG.UTF-8... done
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... done
en_IE.UTF-8... done
error: Bad entry 'en_IL '
en_IL.UTF-8... done
en_IL.UTF-8... done
error: Bad entry 'en_IN '
en_IN.UTF-8... done
en_IN.UTF-8... done
error: Bad entry 'en_NG '
en_NG.UTF-8... done
en_NG.UTF-8... done
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_US.UTF-8... done
en_ZA.UTF-8... done
error: Bad entry 'en_ZM '
en_ZM.UTF-8... done
en_ZM.UTF-8... done
en_ZW.UTF-8... done
sk_SK.UTF-8... done
Generation complete.
***
I found a file where there are these entries listed:
$ cat /var/lib/locales/supported.d/en
en_HK.UTF-8 UTF-8
en_DK.UTF-8 UTF-8
en_IN UTF-8
en_IL UTF-8
en_ZM UTF-8
en_ZW.UTF-8 UTF-8
en_NZ.UTF-8 UTF-8
en_PH.UTF-8 UTF-8
en_NG UTF-8
en_US.UTF-8 UTF-8
en_GB.UTF-8 UTF-8
en_AU.UTF-8 UTF-8
en_SG.UTF-8 UTF-8
en_BW.UTF-8 UTF-8
en_AG UTF-8
en_ZA.UTF-8 UTF-8
en_CA.UTF-8 UTF-8
en_IE.UTF-8 UTF-8
***
Adding the UTF-8
keyword where missing and running sudo locale-gen
does not help, it shows this where the keyword is manually added:
> ...Try localedef --help' or
localedef --usage' for more information.
***
PS: I am on Linux Mint 21.2 (Victoria) Cinnamon and I can edit installed languages here:

sudo dpkg-reconfigure locales
without a luck.
Vlastimil Burián
(30505 rep)
Oct 3, 2023, 09:07 PM
• Last activity: Dec 13, 2023, 09:13 PM
1
votes
1
answers
1427
views
How to remove unneeded languages from video files using ffmpeg?
I have a number of video files (500+) with lots of audio and subtitle streams for languages that I don't need and would thus like to remove to conserve storage space. I tinkered around with `ffmpeg`, but removing streams by processing one file after another turned out to *very* time consuming. Had n...
I have a number of video files (500+) with lots of audio and subtitle streams for languages that I don't need and would thus like to remove to conserve storage space.
I tinkered around with
ffmpeg
, but removing streams by processing one file after another turned out to *very* time consuming. Had no luck with scripting either as the video files contain different streams in different orders, which makes removal via index difficult and error prone.
**There must be a solution that is both faster and also works for files containing different streams, right?** Any help would be much appreciated.
KTorrentNG
(13 rep)
Nov 1, 2023, 03:15 PM
• Last activity: Nov 20, 2023, 08:36 AM
0
votes
1
answers
361
views
How to completely remove locale from Manjaro Linux?
I recently had the (in hindsight stupid) ideas to enable a second locale on my computer in addition to en_CA. This second locale was zh_CN. To make sure it worked (and to "check it out"), I turned it on. It worked successfully so I turned it back to English. On the next boot, I noticed that some app...
I recently had the (in hindsight stupid) ideas to enable a second locale on my computer in addition to en_CA. This second locale was zh_CN. To make sure it worked (and to "check it out"), I turned it on. It worked successfully so I turned it back to English. On the next boot, I noticed that some apps (not all) were still in Chinese. In response to this, I removed zh_CN completely from the active locales list in the KDE Settings Manager. This did **not** fix the issue.
In addition, all coreutils commands were in Chinese, which made doing many things *very difficult*.
I did lots of research and tried many things:
The output of my locale command is
export LC_ALL=C
: This fixed the issue on the command line BUT UTF-8 wouldn't work
Setting every locale to en_CA.UTF-8 : Did not work
Regenerating only English locales: Did not work
export LANGUAGE=en_CA.UTF-8
: Did work for the CLI but some things still were in Chinese
localepurge
everything but English : Did work for most things, but it still isn't completely removed.
Despite all of my efforts, I still run into the occasional blocks of Chinese, namely in the Manjaro Package Manager:



LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_CA.UTF-8
LC_TIME=en_CA.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_CA.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_CA.UTF-8
LC_NAME=en_CA.UTF-8
LC_ADDRESS=en_CA.UTF-8
LC_TELEPHONE=en_CA.UTF-8
LC_MEASUREMENT=en_CA.UTF-8
LC_IDENTIFICATION=en_CA.UTF-8
It all looks correct. Can someone help me completely rid my system of this locale?
Thanks in advance. (Also apologies in advance if I am doing something stupid or missing something obvious)
**My OS is Manjaro Linux KDE Edition 23.0.3 (Plasma 5.27.8)**
Enderbyte09
(103 rep)
Oct 15, 2023, 12:14 AM
• Last activity: Oct 15, 2023, 09:25 AM
0
votes
0
answers
52
views
Ubuntu - PostegreSQL displays errors in foreign language even after changing all locales to en_US and reinstalling it
I inherited a Ubuntu desktop from another employee and installed PostgreSQL with the help of [the official guide][1]. ``` abc@lenovo:~$ sudo apt install postgresql-15 ``` I had not known that I had to setup an account first so when I tried to create a database I got an error. I now know how to creat...
I inherited a Ubuntu desktop from another employee and installed PostgreSQL with the help of the official guide .
abc@lenovo:~$ sudo apt install postgresql-15
I had not known that I had to setup an account first so when I tried to create a database I got an error. I now know how to create a user and that is not the question.
abc@lenovo:~$ createdb
createdb: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: 치명적오류: "abc" 롤(role) 없음
Notice how a small portion of the error is in a foreign language. To ensure everything is in English going forward, I edited all locales listed in /etc/default/locale
to be .UTF-8
.
abc@lenovo:~$ sudo vim /etc/default/locale
abc@lenovo:~$ cat /etc/default/locale
LANG=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LANGUAGE=en
Then I rebooted my system. However the message that
generates still contained foreign language. Assuming that it simply did not apply the locale changes, I uninstalled then reinstalled the package.
abc@lenovo:~$ sudo apt remove postgresql-15
abc@lenovo:~$ sudo apt install postgresql-15
Then I checked
's own settings.
abc@lenovo:~$ grep lc_ /etc/postgresql/15/main/postgresql.conf
lc_messages = 'en_US.UTF-8' # locale for system error message
lc_monetary = 'en_US.UTF-8' # locale for monetary formatting
lc_numeric = 'en_US.UTF-8' # locale for number formatting
lc_time = 'en_US.UTF-8' # locale for time formatting
It correctly inherited the new default locale settings from the system. However the error message had not changed a bit.
abc@lenovo:~$ createdb
createdb: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: 치명적오류: "abc" 롤(role) 없음
Did I miss a locale setting? Do I need to manually wipe some cache stored deep inside? Why is the error message nevertheless mixed?
qc033
(1 rep)
Jul 29, 2023, 05:50 PM
• Last activity: Jul 29, 2023, 05:50 PM
0
votes
1
answers
639
views
Why is debug flag in GCC abbreviated "g"?
In GCC the debug flag is "-g". I have not been able to find why "g" was chosen for this. Does anyone know?
In GCC the debug flag is "-g". I have not been able to find why "g" was chosen for this. Does anyone know?
BipedalJoe
(107 rep)
Jul 19, 2023, 06:15 AM
• Last activity: Jul 19, 2023, 07:21 AM
3
votes
1
answers
41735
views
How to change language using command line on CentOS 7?
I use the following command line to set my system in English (installed in French) : localectl set-locale LANG=en_US.utf8 However, when I boot into graphical mode, the desktop menu, directories names etc. are still in French. The only way I can set everything in english is to use the graphical gnome...
I use the following command line to set my system in English (installed in French) :
localectl set-locale LANG=en_US.utf8
However, when I boot into graphical mode, the desktop menu, directories names etc. are still in French.
The only way I can set everything in english is to use the graphical gnome menu "Applications > System tools > Settings > Region and Language".
Is there a way to change system language using command line as if I used the graphical menu?
EDIT :
In fact, my problem was coming from the fact that I was modifying through SSH with user root the system language but then loging through graphical console (workstation VM) under a standard user who has its language already defined. localectl works well but to define default language for a specific user, I must define $LANG in my .bashrc
timothepoznanski
(1515 rep)
Nov 18, 2017, 04:40 PM
• Last activity: May 8, 2023, 08:37 AM
0
votes
1
answers
4418
views
How to change system language in Kali Linux?
I have └─$ locale -a 1 ⨯ C C.UTF-8 en_US.utf8 POSIX But the system language in console is still Russian and all console programs have output in Russian. Could you tell me how to switch to English completely? My environment is: └─$ cat /etc/os-release PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali G...
I have
└─$ locale -a 1 ⨯
C
C.UTF-8
en_US.utf8
POSIX
But the system language in console is still Russian and all console programs have output in Russian. Could you tell me how to switch to English completely?
My environment is:
└─$ cat /etc/os-release
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2021.2"
VERSION_ID="2021.2"
VERSION_CODENAME="kali-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/ "
SUPPORT_URL="https://forums.kali.org/ "
BUG_REPORT_URL="https://bugs.kali.org/ "
└─$ uname -r
5.10.0-kali9-amd64
Ekaterina Ivanova iceja.net
(260 rep)
Aug 4, 2021, 07:03 AM
• Last activity: Mar 7, 2023, 09:05 AM
0
votes
1
answers
575
views
How to make a Linux system only use english as a locale and language, but use another one on a GUI/Desktop Environment?
Let's say that I install a Linux in my native language (english), and that the user I'm doing the install for only knows spanish (which all I know of is: Que?). English being obviously far easier for me (and most people) to use if I need to do some sysadmin when it's needed, so does the user's life...
Let's say that I install a Linux in my native language (english), and that the user I'm doing the install for only knows spanish (which all I know of is: Que?). English being obviously far easier for me (and most people) to use if I need to do some sysadmin when it's needed, so does the user's life when the GUI/Deskop Environment and GUI softwares are in spanish.
The OS is Debian, which is installed from a netinstall in english so I can have the whole system in english, then install a GUI/Desktop Environment and keyboard that'll be in spanish.
Now, I do know that most softwares and Desktop Environments do match their languages on the system's language, which is quite not good for what I intend to do.
There's also an issue I have faced, which is when the system is installed in english, but that the keyboard is set to spanish from the Desktop Environment. That is, the keyboard is still in english despite having set XFCE's system tray flag (the plugin that allows one to change the keyboard) to spanish before shutting down, which still remains in spanish (the flag) after the reboot, and that spanish is obviously set as the preferred top language in XFCE's settings.
So there must be a way so that the system stays in english (CLIs, terminals, etc), but the GUI/Desktop Environment (XFCE) and softwares remain spanish. How can I do that?
X.LINK
(1362 rep)
Mar 5, 2023, 06:16 PM
• Last activity: Mar 6, 2023, 12:19 AM
0
votes
1
answers
354
views
How do I change the language of the man pages on Debian, while keeping the default language as english
I've tried changing the man pages on debian from English to Italian but all I have tried hasn't worked yet. First of all, I installed the manpages in Italian with `apt install manpages-it`. I then edited the `/etc/locale.gen` file and uncommented it_IT.utf8, then ran `locale-gen` to update it. After...
I've tried changing the man pages on debian from English to Italian but all I have tried hasn't worked yet.
First of all, I installed the manpages in Italian with
apt install manpages-it
.
I then edited the /etc/locale.gen
file and uncommented it_IT.utf8, then ran locale-gen
to update it. After that I tried with:
man -Lit printf
man --locale=it printf
LANG=it_IT.utf8
but none give me the manual pages in Italian.
The only manual page in Italian I can get is man man
, but the other manuals are just in English.
Chris
(1 rep)
Jan 25, 2023, 03:22 PM
• Last activity: Jan 25, 2023, 03:43 PM
2
votes
2
answers
1267
views
Arabic fonts in Linux Mint 19.2 Tina are not displayed properly
I've been using mint for about a year now, and found no problems so far, but recently i discovered that the Asian fonts are broken: It started of with a few languages such as Urdu then Arabic: [![ِArabic][1]][1] [![enter image description here][2]][2] [![enter image description here][3]][3] [




Young Fellow
(41 rep)
Nov 6, 2019, 10:57 AM
• Last activity: Jan 25, 2023, 03:15 PM
29
votes
2
answers
20393
views
Popup: Language support is incomplete – what packages does it want to install?
I'm using Kubuntu 17.10. Always after login, the notification below pops up. When I click it, it asks for my password and wants to install or remove packages – but without telling me **what packages**. I already searched the internet but couldn't find a way to identify what packages are needed. The...
I'm using Kubuntu 17.10. Always after login, the notification below pops up. When I click it, it asks for my password and wants to install or remove packages – but without telling me **what packages**. I already searched the internet but couldn't find a way to identify what packages are needed. The standard
apt upgrade
is not affecting this popup. What program is causing this popup, and how can I see which packages it wants to install?
Thanks!

Grimm
(394 rep)
Jan 31, 2018, 08:03 PM
• Last activity: Jan 16, 2023, 10:40 AM
1
votes
0
answers
4464
views
How to fix 'warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)' on arch
I am on arch for Wsl and was having trouble opening exe applications(such as firefox) from wsl2 terminal. By running `locale -a` I found that I didn't have `en_US.UTF-8` or any other locale and only had C. I tried to generate locale by uncommenting from `etc/locale.gen` and doing `locale-gen` but go...
I am on arch for Wsl and was having trouble opening exe applications(such as firefox) from wsl2 terminal. By running
locale -a
I found that I didn't have en_US.UTF-8
or any other locale and only had C. I tried to generate locale by uncommenting from etc/locale.gen
and doing locale-gen
but got the error warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
. I tried installing the language package with yum -y install glibc-locale-source glibc-langpack-en
but since I didn't have yum in my system I had to install it first. However while I was installing yum I came across the same error warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
. I am not sure how to fix this issue.
(I am not sure whether I can ask wsl related questions on this community so if this query is not permitted please let me know)
Init
(11 rep)
Dec 21, 2022, 02:14 AM
Showing page 1 of 20 total questions