Difference between revisions of "Profile"
(Created page with "{{welcome}} This tip comes from ericbsd on Telegram 21.02. at 1:24 You have to go to .profile in your home folder. <code>/u/h/ericbsd cat .profile</code> <nowiki>#</nowiki...") |
|||
Line 1: | Line 1: | ||
{{welcome}} | {{welcome}} | ||
− | + | ==Introduction== | |
+ | |||
+ | It can sometimes happen, that you didn't choose the right language settings for your desktop environment during installation. So you might change it afterwards. | ||
+ | |||
+ | ==Tip from Ericbsd== | ||
+ | on Telegram 21.02. at 1:24 | ||
You have to go to .profile in your home folder. | You have to go to .profile in your home folder. | ||
− | <code>/u/h/ericbsd cat .profile</code> | + | <code>/u/h/ericbsd cat .profile</code><br/> |
− | <nowiki>#</nowiki> $FreeBSD$ | + | <nowiki>#</nowiki> $FreeBSD$<br/> |
− | <nowiki>#</nowiki> | + | <nowiki>#</nowiki><br/> |
− | <nowiki>#</nowiki> .profile - Bourne Shell startup script for login shells | + | <nowiki>#</nowiki> .profile - Bourne Shell startup script for login shells<br/> |
− | <nowiki>#</nowiki> | + | <nowiki>#</nowiki><br/> |
− | <nowiki>#</nowiki> see also sh(1), environ(7). | + | <nowiki>#</nowiki> see also sh(1), environ(7).<br/> |
− | <nowiki>#</nowiki> | + | <nowiki>#</nowiki><br/> |
− | <nowiki>#</nowiki> These are normally set through /etc/login.conf. You may override them here | + | <nowiki>#</nowiki> These are normally set through /etc/login.conf. You may override them here<br/> |
− | <nowiki>#</nowiki> if wanted. | + | <nowiki>#</nowiki> if wanted.<br/> |
− | <nowiki>#</nowiki> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH | + | <nowiki>#</nowiki> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH<br/> |
− | <nowiki>#</nowiki> BLOCKSIZE=K; export BLOCKSIZE | + | <nowiki>#</nowiki> BLOCKSIZE=K; export BLOCKSIZE<br/> |
− | <nowiki>#</nowiki> Setting TERM is normally done through /etc/ttys. Do only override | + | <nowiki>#</nowiki> Setting TERM is normally done through /etc/ttys. Do only override<br/> |
− | <nowiki>#</nowiki> if you're sure that you'll never log in via telnet or xterm or a | + | <nowiki>#</nowiki> if you're sure that you'll never log in via telnet or xterm or a<br/> |
− | <nowiki>#</nowiki> serial line. | + | <nowiki>#</nowiki> serial line.<br/> |
− | <nowiki># </nowiki>TERM=xterm; export TERM | + | <nowiki># </nowiki>TERM=xterm; export TERM<br/> |
− | <code>EDITOR=vi; export EDITOR</code> | + | <code>EDITOR=vi; export EDITOR</code><br/> |
− | <code>PAGER=less; export PAGER</code> | + | <code>PAGER=less; export PAGER</code><br/> |
− | <nowiki>#</nowiki> set ENV to a file invoked each time sh is started for interactive use. | + | <nowiki>#</nowiki> set ENV to a file invoked each time sh is started for interactive use.<br/> |
− | <code>ENV=$HOME/.shrc; export ENV</code> | + | <code>ENV=$HOME/.shrc; export ENV</code><br/> |
− | <nowiki>#</nowiki> Query terminal size; useful for serial lines. | + | <nowiki>#</nowiki> Query terminal size; useful for serial lines.<br/> |
− | <code>if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi</code> | + | <code>if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi</code><br/> |
− | <nowiki>#</nowiki> Display a random cookie on each login. | + | <nowiki>#</nowiki> Display a random cookie on each login.<br/> |
− | <code>if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi</code> | + | <code>if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi</code><br/> |
− | <code>CHARSET=UTF-8; export CHARSET</code> | + | <code>CHARSET=UTF-8; export CHARSET</code><br/> |
− | <code>'''LANG=en_US.UTF-8;''' export LANG</code> | + | <code>'''LANG=en_US.UTF-8;''' export LANG</code><br/> |
− | You will need to log out to have this the change to happen | + | You will need to log out to have this the change to happen. |
Latest revision as of 03:21, 21 February 2020
Welcome to Profile. |
Introduction[edit]
It can sometimes happen, that you didn't choose the right language settings for your desktop environment during installation. So you might change it afterwards.
Tip from Ericbsd[edit]
on Telegram 21.02. at 1:24
You have to go to .profile in your home folder.
/u/h/ericbsd cat .profile
# $FreeBSD$
#
# .profile - Bourne Shell startup script for login shells
#
# see also sh(1), environ(7).
#
# These are normally set through /etc/login.conf. You may override them here
# if wanted.
# PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH
# BLOCKSIZE=K; export BLOCKSIZE
# Setting TERM is normally done through /etc/ttys. Do only override
# if you're sure that you'll never log in via telnet or xterm or a
# serial line.
# TERM=xterm; export TERM
EDITOR=vi; export EDITOR
PAGER=less; export PAGER
# set ENV to a file invoked each time sh is started for interactive use.
ENV=$HOME/.shrc; export ENV
# Query terminal size; useful for serial lines.
if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi
# Display a random cookie on each login.
if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi
CHARSET=UTF-8; export CHARSET
LANG=en_US.UTF-8; export LANG
You will need to log out to have this the change to happen.