<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Where should we store programs on the Onion? Can we make users?]]></title><description><![CDATA[<p dir="auto">Just got my onion in the mail and did a few simple GPIO python programs to test things out. I noticed that / (and /root) are mounted as r/o, and the only thing with enough space to actually use is /tmp, which doesn't seem to be persisted across reboots. I've been mounting usb devices to /tmp/sda1 instead of /mnt because /mnt is in a r/o partition as well.</p>
<p dir="auto">What was the intention here? I would love to actually make a user and not log in as root all the time, but the common ways of making users (adduser, useradd) don't seem to be available. Its great that there is a nodejs package now, but I can't install it because I don't have enough space in the partition that it installs to.</p>
]]></description><link>http://community.onion.io/topic/526/where-should-we-store-programs-on-the-onion-can-we-make-users</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 00:28:23 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/526.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 Feb 2016 20:38:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Where should we store programs on the Onion? Can we make users? on Tue, 09 Feb 2016 20:38:52 GMT]]></title><description><![CDATA[<p dir="auto">Just got my onion in the mail and did a few simple GPIO python programs to test things out. I noticed that / (and /root) are mounted as r/o, and the only thing with enough space to actually use is /tmp, which doesn't seem to be persisted across reboots. I've been mounting usb devices to /tmp/sda1 instead of /mnt because /mnt is in a r/o partition as well.</p>
<p dir="auto">What was the intention here? I would love to actually make a user and not log in as root all the time, but the common ways of making users (adduser, useradd) don't seem to be available. Its great that there is a nodejs package now, but I can't install it because I don't have enough space in the partition that it installs to.</p>
]]></description><link>http://community.onion.io/post/4013</link><guid isPermaLink="true">http://community.onion.io/post/4013</guid><dc:creator><![CDATA[Anthony Naddeo]]></dc:creator><pubDate>Tue, 09 Feb 2016 20:38:52 GMT</pubDate></item><item><title><![CDATA[Reply to Where should we store programs on the Onion? Can we make users? on Tue, 09 Feb 2016 22:48:25 GMT]]></title><description><![CDATA[<p dir="auto">I've been storing programs in /root. It's not read-only (at least not on mine).</p>
]]></description><link>http://community.onion.io/post/4014</link><guid isPermaLink="true">http://community.onion.io/post/4014</guid><dc:creator><![CDATA[Brian Piersel]]></dc:creator><pubDate>Tue, 09 Feb 2016 22:48:25 GMT</pubDate></item><item><title><![CDATA[Reply to Where should we store programs on the Onion? Can we make users? on Tue, 09 Feb 2016 23:22:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/1119">@Anthony-Naddeo</a> I agree with <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/1057">@Brian-Piersel</a>.  On my system <strong>/</strong> and <strong>/root</strong> are not read only:</p>
<p dir="auto">Doing:</p>
<ul>
<li>
<p dir="auto"><strong>cd /</strong><br />
<strong>ls -l</strong><br />
Clearly shows <strong>/root</strong> as <strong>drwxr-xr-x</strong> - i.e. full access as <strong>root</strong> - the only user that you can use on the Omega (see belwo)</p>
</li>
<li>
<p dir="auto"><strong>mount</strong><br />
Shows <strong>rootfs on / type rootfs (rw)</strong> - i.e. <strong>/</strong> is mounted for read and write</p>
</li>
</ul>
<p dir="auto">So, unless there is something wrong/odd with you Omega, you can just use <strong>/root</strong> for your own files<br />
However, before doing so, I would urge that you ensure that your Omega is upgraded to the latest firmware using the command <strong>oupgrade</strong> - earlier versions of the firmware would cause the contents of <strong>/root</strong> to be lost over an <strong>oupgrade</strong></p>
<p dir="auto">Regarding adding other users: The Omega runs a very much cut down version of Linux - OpenWrt - originally intended for embedded systems such as routers and the like.  As such, it does not have the capabilities for adding additional users.  Everything has to be run as <strong>root</strong></p>
<p dir="auto">Finally, regarding available space: if you are concerned about insufficient space on your Omega, you can increase space using a USB drive and following the instructions described here: <a href="https://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs" rel="nofollow">https://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs</a><br />
I have done this using a 32GB USB thumb drive and it works well.  This will add effective disk space up to the size of your USB drive.<br />
If you need more usable RAM space, you can even set up your Omega with a swap drive using information described in: <a href="https://community.onion.io/topic/9/how-to-install-gcc/47" rel="nofollow">https://community.onion.io/topic/9/how-to-install-gcc/47</a><br />
I am currently doing this to provide 1GBytes of swap space</p>
]]></description><link>http://community.onion.io/post/4015</link><guid isPermaLink="true">http://community.onion.io/post/4015</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Tue, 09 Feb 2016 23:22:31 GMT</pubDate></item><item><title><![CDATA[Reply to Where should we store programs on the Onion? Can we make users? on Wed, 10 Feb 2016 20:29:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/1119">@Anthony-Naddeo</a><br />
yep, the two posts above are correct, <code>/</code> and <code>/root</code> should definitely not be read-only. As <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/19">@Kit-Bishop</a> mentioned, try running <code>oupgrade</code> to get the latest firmware.</p>
<p dir="auto">If the problem still persists, try doing a factory reset by holding down the Reset button for 10 seconds and releasing.</p>
<p dir="auto">Let us know how it goes.</p>
]]></description><link>http://community.onion.io/post/4038</link><guid isPermaLink="true">http://community.onion.io/post/4038</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Wed, 10 Feb 2016 20:29:11 GMT</pubDate></item><item><title><![CDATA[Reply to Where should we store programs on the Onion? Can we make users? on Mon, 22 Feb 2016 06:19:52 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the help guys. I don't know what the issue was, or why they were read only, but running <code>oupgrade</code> (actually <code>oupgrade -f</code>) and rebooting fixed the issue. I was able to use that wiki that Kit linked to set up the USB storage as well.</p>
]]></description><link>http://community.onion.io/post/4168</link><guid isPermaLink="true">http://community.onion.io/post/4168</guid><dc:creator><![CDATA[Anthony Naddeo]]></dc:creator><pubDate>Mon, 22 Feb 2016 06:19:52 GMT</pubDate></item><item><title><![CDATA[Reply to Where should we store programs on the Onion? Can we make users? on Tue, 23 Feb 2016 15:03:25 GMT]]></title><description><![CDATA[<p dir="auto">I can confirm that adding a USB drive (16GB in my case) according to the instructions in</p>
<p dir="auto"><a href="https://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs" rel="nofollow">https://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs</a></p>
<p dir="auto">worked very well. I have written a few simple Python scripts and stored them in /root, and have also installed Ruby and tested a very simple "Hello, World" program. I'm generally very happy with the Onion, but would be even happier to have the Onion's schematic so I can design circuits to take full advantage of the GPIO interface!</p>
]]></description><link>http://community.onion.io/post/4185</link><guid isPermaLink="true">http://community.onion.io/post/4185</guid><dc:creator><![CDATA[Jeff Verive]]></dc:creator><pubDate>Tue, 23 Feb 2016 15:03:25 GMT</pubDate></item><item><title><![CDATA[Reply to Where should we store programs on the Onion? Can we make users? on Wed, 24 Feb 2016 00:49:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/949">@Jeff-Verive</a> We're working on open sourcing the schematics!</p>
<p dir="auto">Hopefully the GPIO pinouts and diagrams will help in your hardware design: <a href="https://wiki.onion.io/Hardware/Omega-Hardware#the-hardware_gpios" rel="nofollow">https://wiki.onion.io/Hardware/Omega-Hardware#the-hardware_gpios</a></p>
<p dir="auto">Let us know how it goes!</p>
]]></description><link>http://community.onion.io/post/4193</link><guid isPermaLink="true">http://community.onion.io/post/4193</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Wed, 24 Feb 2016 00:49:38 GMT</pubDate></item><item><title><![CDATA[Reply to Where should we store programs on the Onion? Can we make users? on Wed, 27 Sep 2017 01:11:00 GMT]]></title><description><![CDATA[<p dir="auto">FYI, on the latest firmware, I just did it manually.</p>
<blockquote>
<p dir="auto">mkdir /home</p>
</blockquote>
<p dir="auto">edit /etc/passwd and add the user with 'x' in the passwd portion, /home/{username} for the home directory. You can either use groupid 100 (users, already in /etc/group) or add a group specifically for the user. (e.g. add user with id starting at 1000, add a group matching the username with the same id - probably a good idea to add the user to users also in the /etc/group)</p>
<p dir="auto">Once the username is in /etc/passwd run:</p>
<blockquote>
<p dir="auto">passwd {username}<br />
to set the passwd</p>
</blockquote>
<blockquote>
<p dir="auto">mkdir /home/{username}</p>
</blockquote>
<p dir="auto">to create whatever you specified as the home directory, then</p>
<blockquote>
<p dir="auto">chown {username}.{groupname} /home/{username}</p>
</blockquote>
<p dir="auto">replacing the stuff in {} obviously with your values.<br />
At that point, log out, log back in with the user in question. e.g. ssh myuser@myonion.local or whatever your ip is</p>
]]></description><link>http://community.onion.io/post/14588</link><guid isPermaLink="true">http://community.onion.io/post/14588</guid><dc:creator><![CDATA[Scott W Wood]]></dc:creator><pubDate>Wed, 27 Sep 2017 01:11:00 GMT</pubDate></item></channel></rss>