<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3106&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Is ~/.profile ignored when running live remastered images?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3106</link>
		<description><![CDATA[The most recent posts in Is ~/.profile ignored when running live remastered images?.]]></description>
		<lastBuildDate>Thu, 17 Oct 2019 08:12:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Is ~/.profile ignored when running live remastered images?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18248#p18248</link>
			<description><![CDATA[<p>Thank you very much, guys. In the end I chose another way of doing things - I placed all my stuff in /opt (mainly scripts and artwork) and symlink it from there to /usr/local/bin or wherever necessary. This may seem odd but it has this big advantage that pretty much everything I did to &quot;alter&quot; the system can be found in one place (/opt).</p><p>A while ago I thought it was a good way to go to create deb packages (with fpm it&#039;s fast and easy) but that would mean to re-create and re-install those packages every time I make a minor change so I gave up on that <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Best wishes,<br />Omnio</p>]]></description>
			<author><![CDATA[dummy@example.com (omnio)]]></author>
			<pubDate>Thu, 17 Oct 2019 08:12:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18248#p18248</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is ~/.profile ignored when running live remastered images?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18229#p18229</link>
			<description><![CDATA[<div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>I&#039;ve misread that</p></div></blockquote></div><p>^ This.</p><p>~/.profile is only ignored if <strong>~/.bash_profile</strong> (or ~/.bash_login) is present.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 14 Oct 2019 19:54:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18229#p18229</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is ~/.profile ignored when running live remastered images?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18228#p18228</link>
			<description><![CDATA[<p>From the man page for bash:</p><div class="codebox"><pre><code>When  bash  is  invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands
from the file /etc/profile, if that file exists.  After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and  ~/.profile,  in  that
order,  and  reads  and  executes  commands  from the first one that exists and is readable.</code></pre></div><p>So if there is a .bashrc on the system .profile will be ignored (unless I&#039;ve misread that).</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Mon, 14 Oct 2019 16:09:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18228#p18228</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is ~/.profile ignored when running live remastered images?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18227#p18227</link>
			<description><![CDATA[<p>Copy those lines to ~/.bashrc and they&#039;ll work. I don&#039;t know why. I should, and I&#039;m sure I&#039;ve read an explanation, but I don&#039;t remember it. It&#039;s been like that for as long as I can remember (maybe as far back as lenny or etch.)</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sun, 13 Oct 2019 23:56:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18227#p18227</guid>
		</item>
		<item>
			<title><![CDATA[Is ~/.profile ignored when running live remastered images?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18226#p18226</link>
			<description><![CDATA[<p>Hello again,</p><p>I&#039;m not sure where to post this but since the question I have is somehow related to remastering with refractasnapshot I&#039;ll use this section.</p><p>In short, my question is whether ignoring ~/.profile is the intended behavior while running a live image of devuan (made with refractasnapshot).</p><p>In long, this is what I did:<br />1. Installed devuan ascii (using the livedvd and refractainstaller).<br />2. Created ~/bin and placed there a couple of scripts I needed so I can execute them by just typing their name. I&#039;m able to do that since ~/bin is in my $PATH, as ~/.profile says:</p><div class="codebox"><pre><code># set PATH so it includes user&#039;s private bin if it exists
if [ -d &quot;$HOME/bin&quot; ] ; then
    PATH=&quot;$HOME/bin:$PATH&quot;
fi</code></pre></div><p>3. Logged out, logged back in. Everything works fine so far:</p><div class="codebox"><pre><code>omnio@devuan:~$ echo $PATH
/home/omnio/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games</code></pre></div><p>4. Ran refractasnapshot.<br />5. Booted in Virtualbox the resulted image. Everything looks fine here (my scripts are in ~/bin and ~/.profile has the lines about adding ~/bin to $PATH) but for some reason it didn&#039;t happen:</p><div class="codebox"><pre><code>omnio@devuan:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games</code></pre></div><p>Any idea about this?</p><p>Thanks,<br />Omnio</p>]]></description>
			<author><![CDATA[dummy@example.com (omnio)]]></author>
			<pubDate>Sun, 13 Oct 2019 14:10:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18226#p18226</guid>
		</item>
	</channel>
</rss>
