From owner-freebsd-questions@freebsd.org Tue Dec 20 03:04:51 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 451F0C89845 for ; Tue, 20 Dec 2016 03:04:51 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2C347A85 for ; Tue, 20 Dec 2016 03:04:51 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: by mailman.ysv.freebsd.org (Postfix) id 2B809C89844; Tue, 20 Dec 2016 03:04:51 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B215C89843 for ; Tue, 20 Dec 2016 03:04:51 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay10.qsc.de (mailrelay10.qsc.de [212.99.163.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A666CA83 for ; Tue, 20 Dec 2016 03:04:50 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay10.qsc.de; Tue, 20 Dec 2016 04:04:04 +0100 Received: from r56.edvax.de (port-92-195-28-64.dynamic.qsc.de [92.195.28.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 672D23CBF9; Tue, 20 Dec 2016 04:03:49 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id uBK33mPm004221; Tue, 20 Dec 2016 04:03:48 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 20 Dec 2016 04:03:48 +0100 From: Polytropon To: swjatoslaw gerus Cc: questions@freebsd.org Subject: Re: Comparsion of Solaris , FreeBSD ,Ubuntu Default profile ,bash profile ,bashrc,xinitrc,bash-logout .Xauthority Message-Id: <20161220040348.c8e60a69.freebsd@edvax.de> In-Reply-To: <1482200118.1106059.824327441.01A23424@webmail.messagingengine.com> References: <1482200118.1106059.824327441.01A23424@webmail.messagingengine.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay10.qsc.de with 371766834BD X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2235 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 03:04:51 -0000 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...) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...