Comparsion of Solaris , FreeBSD ,Ubuntu Default profile ,bash profile ,bashrc,xinitrc,bash-logout .Xauthority

Polytropon freebsd at
Tue Dec 20 03:04:51 UTC 2016

On Tue, 20 Dec 2016 03:15:18 +0100, swjatoslaw gerus wrote:
> re: Comparsion of  Solaris , FreeBSD ,Ubuntu 
> Default profile ,bash profile ,bashrc,xinitrc,bash-logout
> .Xauthority &
> Gentlemen 
>   Author of this e-mail have questions about user profile  &
> What  must be in user  directory ? And what must not be ?

Basically, bash configuration files are not provided with FreeBSD,
because bash is not part of the operating system. It can be installed
as an additional component.

FreeBSD's default dialog shell is the C shell (tcsh), with the
configuration files /etc/csh.cshrc, /etc/csh.login, /etc/csh.logout
(global files) and ~/.cshrc, ~/.login, ~/.logout (user-specific
files). The way they are interpreted (e. g., startup file for
login shell, interactive shell, or _any_ shell, such as scripting
shell invocations) is explained in "man csh".

For sh, FreeBSD's default scripting shell, ~/.shrc and ~/.profile
are provided according to "man sh".

If you install bash, you can also check "man bash" for the use of
the files ~/.bashrc, ~/.bash_profile, ~/.bash_login and their
system-wide equivalents in /etc (or /usr/local/etc).

There are other popular shells you can install, for example zsh
or ksh. Those are optional in the view of the operating system.

So whatever file is relevant depends on what shell you are using.

> Author is root but  will limit risk   -test all in user directory
> before change system
> Conditions of test -one user 
>   login -start  two xterm  -xterm -fg green -bg black &
>    keyboard change for user -    .Xmodmap   

Those entries look like they belong into an X startup file,
~/xinitrc (when you're using "startx") or ~/.xsession (when
you're using a display manager such as XDM).

>   PS change for user  PS1="*"

That's a strange prompt. :-)

In bash, prompt settings usually go to ~/.bashrc; this is a
typical setting:

	PS1="\u@\h:\w\$ "

In csh, you can use ~/.cshrc for this purpose:

	set promptchars = "%#"
	set prompt = "%n@%m:%~%# "

If you wish to use a different shell, check its manual for how
to configure the prompt in that shell.

>   wine + programm.exe   - set/export path for virtual drive
>   .wine/drive_c/program/PP/bin  

That is possible to setup in a login shell's configuration.

Note that is also possible to set $PATH independently from the
shell in use: ~/.login_conf can do this. See "man login.conf"
for details.

>  Sony vgn -31  notebook
> (64 bit 2*2.4 ghz ) to date  Ubuntu 16  but lot of problem   ...

Even though I've tried to answer with the focus on FreeBSD (which
this mailing list is intended for), you can probably translate my
advice to any Linux or UNIX operating system. Always check your
local documentation.

> Relevant comment would appreciated

Please try to be more specific in your question, it's not that
easy to understand, sorry. (I'm not a native english speaker,
so I might have missed what you wanted to ask...)

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list