Portaal Portaal Pingviini veeb foorumi pealeht
  Viki  |  IRC  |  Otsing  |  Küsimused ja vastused  |  Profiil  |  Privaatsõnumite vaatamiseks logi sisse  | Logi sisse või Registreeru
<empty>
Vaata järgmist teemat
Vaata eelmist teemat

Postita uus teemaVasta teemale
Autor Sõnum
hjuumen
Uus kasutaja
Uus kasutaja


Vanus: 46
Liitunud: 22.01.2010
Postitused: 9
Asukoht: Tapa

estonia.gif
postituspostitatud: 10.03.2014, 21:48  postituse pealkiri:  (teema puudub)  

Nii, vahepeal polnud aega tegeleda, nüüd siis panen siia selle, mis tuli nende viimaste imre soovitatud käskudega:
raimz@raimz-kubuntu:~$ export LANGUAGE=et_EE.UTF-8
raimz@raimz-kubuntu:~$ export LANG=et_EE.UTF-8
raimz@raimz-kubuntu:~$ export LC_ALL=et_EE.UTF-8
raimz@raimz-kubuntu:~$ sudo locale-gen et_EE.UTF-8
[sudo] password for raimz:
Generating locales...
et_EE.UTF-8... up-to-date
Generation complete.
raimz@raimz-kubuntu:~$ dpkg-reconfigure locales
/usr/sbin/dpkg-reconfigure peab käivitatama kui juurkasutaja
raimz@raimz-kubuntu:~$ sudo dpkg-reconfigure locales
Generating locales...
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... hash collision (1688509771) en_HK.utf8, de_CH.utf8
failed
en_IE.UTF-8... done
en_IN.UTF-8... done
en_NG.UTF-8... done
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_ZA.UTF-8... done
en_ZM.UTF-8... done
en_ZW.UTF-8... done
en_US.UTF-8... done
et_EE.UTF-8... up-to-date
Generation complete.
raimz@raimz-kubuntu:~$ locale
LANG=et_EE.UTF-8
LANGUAGE=et_EE.UTF-8
LC_CTYPE="et_EE.UTF-8"
LC_NUMERIC="et_EE.UTF-8"
LC_TIME="et_EE.UTF-8"
LC_COLLATE="et_EE.UTF-8"
LC_MONETARY="et_EE.UTF-8"
LC_MESSAGES="et_EE.UTF-8"
LC_PAPER="et_EE.UTF-8"
LC_NAME="et_EE.UTF-8"
LC_ADDRESS="et_EE.UTF-8"

Siia veel igaks juhuks see locale -a käsk:
raimz@raimz-kubuntu:~$ locale -a
C
C.UTF-8
de_CH.utf8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
en_US.utf8
et_EE.utf8
POSIX
raimz@raimz-kubuntu:~$

Ja nüüd kui konsool on korra kinni pandud ja uuestu avatud on locale ja locale -a tulemused sellised:
raimz@raimz-kubuntu:~$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=et_EE.ISO-8859-1
LANGUAGE=et:en
LC_CTYPE="et_EE.ISO-8859-1"
LC_NUMERIC="et_EE.ISO-8859-1"
LC_TIME="et_EE.ISO-8859-1"
LC_COLLATE="et_EE.ISO-8859-1"
LC_MONETARY="et_EE.ISO-8859-1"
LC_MESSAGES="et_EE.ISO-8859-1"
LC_PAPER="et_EE.ISO-8859-1"
LC_NAME="et_EE.ISO-8859-1"
LC_ADDRESS="et_EE.ISO-8859-1"
LC_TELEPHONE="et_EE.ISO-8859-1"
LC_MEASUREMENT="et_EE.ISO-8859-1"
LC_IDENTIFICATION="et_EE.ISO-8859-1"
LC_ALL=
raimz@raimz-kubuntu:~$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
C.UTF-8
POSIX
de_CH.utf8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
et_EE.utf8
raimz@raimz-kubuntu:~$

LC_TELEPHONE="et_EE.UTF-8"
LC_MEASUREMENT="et_EE.UTF-8"
LC_IDENTIFICATION="et_EE.UTF-8"
LC_ALL=et_EE.UTF-8
raimz@raimz-kubuntu:~$

Et siis see iso tuleb tagasi jälle?


mihkel
Vana Pingviin
Vana Pingviin



Liitunud: 16.04.2006
Postitused: 1284

Distributsioon: Fedora/Centos
estonia.gif
postituspostitatud: 11.03.2014, 08:51  postituse pealkiri:  (teema puudub)  

hjuumen kirjutas:

Ja nüüd kui konsool on korra kinni pandud ja uuestu avatud on


Siis eeldaks, et midagi kahtlast on kirjas .bashrc failis. Vaata see üle. Või siis juba /etc/bash.bashrc (mõnes linuxis ka /etc/bashrc) on midagi kummalist lokaadiga seotut kirjas.

LISA:
KDE kasutajad ehk oskavad öelda, kas ka KDE seadetes saab lokaadiga mässata?


hjuumen
Uus kasutaja
Uus kasutaja


Vanus: 46
Liitunud: 22.01.2010
Postitused: 9
Asukoht: Tapa

estonia.gif
postituspostitatud: 13.03.2014, 06:43  postituse pealkiri:  (teema puudub)  

/etc/bash.bashrc failis on selline asi kirjas, minu jaoks on seal kõik kahtlane, ehk siis ei saa midagi eriti aru Smile



# System-wide .bashrc file for interactive bash(1) shells.

# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to user@host:dir
#case "$TERM" in
#xterm*|rxvt*)
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
# ;;
#*)
# ;;
#esac

# enable bash completion in interactive shells
#if ! shopt -oq posix; then
# if [ -f /usr/share/bash-completion/bash_completion ]; then
# . /usr/share/bash-completion/bash_completion
# elif [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
# fi
#fi

# sudo hint
if [ ! -e "$HOME/.sudo_as_admin_successful" ] && [ ! -e "$HOME/.hushlogin" ] ; then
case " $(groups) " in *\ admin\ *)
if [ -x /usr/bin/sudo ]; then
cat <<-EOF
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

EOF
fi
esac
fi

# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then
function command_not_found_handle {
# check because c-n-f could've been removed in the meantime
if [ -x /usr/lib/command-not-found ]; then
/usr/lib/command-not-found -- "$1"
return $?
elif [ -x /usr/share/command-not-found/command-not-found ]; then
/usr/share/command-not-found/command-not-found -- "$1"
return $?
else
printf "%s: command not found\n" "$1" >&2
return 127
fi
}
fi


Näita (aja järgi):      
Postita uus teemaVasta teemale


Vaata järgmist teemat
Vaata eelmist teemat
Powered by phpBB2 Plus based on phpBB © 2001/7 phpBB Group