<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.nuxified.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Nuxified GNU/Linux Help Forums - Tip collection - Comments</title>
 <link>http://www.nuxified.org/topic/tip_collection</link>
 <description>Comments for &quot;Tip collection&quot;</description>
 <language>en</language>
<item>
 <title>Security tip with /tmp</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-12604</link>
 <description> &lt;p&gt;This tip about security deals with the /tmp directory. /tmp is used for certain file execution (such as installing third party .run or .bin installation files), any temporary file storage, such as office documents and any downloaded files that were selected to open in a program as apposed to saving to disk. Unfortunately, by default, /tmp allows for all execution, meaning, if a script was to be placed in /tmp, another program or script could access that script to execute arbitrary code, in turn, opening up your system to a local attack. This tip is for how to jail off /tmp from allowing the execution of code and how to allow it in instances when needed.&lt;/p&gt;
&lt;p&gt;The first thing that the user must do is to create a separate partition for the /tmp directory. I usually will use the same ideology that the swap partition gets for /tmp, in that I will allocate twice the amount of space as to the total amount of physical RAM I have installed. For systems with a limited amount of hard disk space, a smaller amount may be used, but do not make it too small that would, in turn, not have enough space for any tasks you might be doing.&lt;/p&gt;
&lt;p&gt;After making the partition for /tmp, you will need to edit the /etc/fstab file to make it resemble the following...&lt;/p&gt;
&lt;p&gt;/dev/sda5     /tmp     auto rw,noexec 0 0&lt;/p&gt;
&lt;p&gt;Mileage may vary with the usage of the proper devices. Now, this will disallow any code/script/program from executing from the /tmp directory. However, as I mentioned before, some programs do require /tmp to be mounted executable. In those instances, a simple mount command would fix this issue...&lt;/p&gt;
&lt;p&gt;mount -o remount,exec /tmp&lt;/p&gt;
&lt;p&gt;And upon completion of the program...&lt;/p&gt;
&lt;p&gt;mount -o remount,noexec /tmp&lt;/p&gt;
&lt;p&gt;That will bring back the /tmp directory to a noexec status.&lt;/p&gt;
 </description>
 <pubDate>Mon, 07 Jul 2008 06:12:24 +0200</pubDate>
 <dc:creator>sakuramboo</dc:creator>
 <guid isPermaLink="false">comment 12604 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Cool, maybe it&#039;s best to</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-2791</link>
 <description> &lt;p&gt;Cool, maybe it&#039;s best to make a special blog entry in a tips category that links to this thread so that these tips aren&#039;t lost, and then move on from there.&lt;/p&gt;
&lt;p&gt;Then this thread can be locked and it&#039;s original and last post edited with the link to the new tips section.&lt;/p&gt;
 </description>
 <pubDate>Thu, 18 May 2006 21:00:12 +0200</pubDate>
 <dc:creator>libervisco</dc:creator>
 <guid isPermaLink="false">comment 2791 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Good idea</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-2789</link>
 <description> &lt;p&gt;I like it &lt;img src=&quot;/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;&lt;/p&gt;
 </description>
 <pubDate>Thu, 18 May 2006 20:49:52 +0200</pubDate>
 <dc:creator>a thing</dc:creator>
 <guid isPermaLink="false">comment 2789 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Tips to blog</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-2788</link>
 <description> &lt;p&gt;I think it would be a good idea to post tips in a blog instead in a forum, from now on. The only requirement to make it organized would be to type &quot;tips&quot; tag in a categories section of your blog submission and then it would automatically be listed on a page with all other tips that would be linked from the main horizontal menu.&lt;/p&gt;
&lt;p&gt;In a blogs view I think they&#039;d look better than in a long forum thread and every tip would be possible to comment and discuss on specifically, possibly leading to some new related tips.&lt;/p&gt;
&lt;p&gt;What do you think? Shall we continue tips there? If yes, just please remember to type &quot;tips&quot; in a category section of your blog submission.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
 </description>
 <pubDate>Thu, 18 May 2006 20:46:52 +0200</pubDate>
 <dc:creator>libervisco</dc:creator>
 <guid isPermaLink="false">comment 2788 at http://www.nuxified.org</guid>
</item>
<item>
 <title>fish kioslave</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-2787</link>
 <description> &lt;p&gt;The fish kioslave is like sshfs, but easier. First you have to have &lt;a href=&quot;http://athingis.boldlygoingnowhere.org/tutorials/ssh.php&quot; class=&quot;bb-url&quot;&gt;ssh set up&lt;/a&gt;. Now you can use fish from any KDE application. Just enter fish://USER@HOST/file/name/on/the/host/ (note: You can&#039;t use ~ instead of a home directory here) as the filepath and enter your &lt;a class=&quot;glossary-term&quot; href=&quot;/glossary#term459&quot;&gt;&lt;acronym title=&quot;SSH: Secure SHell (for encrypted interactive sessions through networks)&quot;&gt;SSH&lt;/acronym&gt;&lt;/a&gt; password in the dialog. I use this to manipulate my website from Quanta on my PC, using fish://www@marvin/var/www/.&lt;/p&gt;
 </description>
 <pubDate>Thu, 18 May 2006 20:46:20 +0200</pubDate>
 <dc:creator>a thing</dc:creator>
 <guid isPermaLink="false">comment 2787 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Executing commands after their predecessor failed</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-827</link>
 <description> &lt;p&gt;To execute a command only if the previous command doesn&#039;t succeed use &lt;span style=&quot;font-weight:bold&quot;&gt;||&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;bb-code&quot;&gt;emerge --sync || echo &amp;quot;Error in syncing&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;If the emerge --sync doesn&#039;t work the echo command will be invoked.&lt;/p&gt;
 </description>
 <pubDate>Wed, 05 Apr 2006 21:42:49 +0200</pubDate>
 <dc:creator>dylunio</dc:creator>
 <guid isPermaLink="false">comment 827 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Executing multiple commands that depend on their predecessor</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-826</link>
 <description> &lt;p&gt;To execute multiple commands which need their preceeding command executed successfully seperate them with &amp;amp;&amp;amp;&lt;br /&gt;
Example:&lt;br /&gt;
&lt;code class=&quot;bb-code&quot;&gt;./configure &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&lt;/code&gt;&lt;br /&gt;
make will only be started when configure had no error and make install will only be run if there was no error during compilation.&lt;/p&gt;
 </description>
 <pubDate>Sat, 01 Apr 2006 03:26:55 +0200</pubDate>
 <dc:creator>reptiler</dc:creator>
 <guid isPermaLink="false">comment 826 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Multiple commands on the same line</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-825</link>
 <description> &lt;p&gt;Put multiple commands on the same line by separating them with a semicolon ( ; ).&lt;/p&gt;
 </description>
 <pubDate>Fri, 31 Mar 2006 23:45:04 +0200</pubDate>
 <dc:creator>a thing</dc:creator>
 <guid isPermaLink="false">comment 825 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Multivolume tar archives</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-824</link>
 <description> &lt;p&gt;Tar has builtin support for multivolume archives. To create them:&lt;br /&gt;
tar -cML (size of drive you&#039;re using in KB) -f /place/device/is/mounted/(name of archive).tar (files to be archived)&lt;/p&gt;
&lt;p&gt;When tar prompts you to prepare for the next device, umount the device you&#039;re saving the archive to (and wait until it finishes, don&#039;t Ctrl+C it!) and take it out. Take the device to some other computer (perferably not a windows-running one, windows mounts things sync) and copy the part of the archive on the device to the computer&#039;s hard drive. Go back to the computer you&#039;re backing up, mount the device, go to tar and hit enter. Repeat until tar finishes.&lt;/p&gt;
&lt;p&gt;To extract this multivolume archive:&lt;br /&gt;
tar -xMf (part 1 of archive) -f (part 2 of archive) and on for the rest of the parts&lt;/p&gt;
 </description>
 <pubDate>Fri, 31 Mar 2006 22:13:03 +0200</pubDate>
 <dc:creator>a thing</dc:creator>
 <guid isPermaLink="false">comment 824 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Customize your Bash prompt</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-823</link>
 <description> &lt;p&gt;Customize your &lt;a class=&quot;glossary-term&quot; href=&quot;/glossary#term460&quot;&gt;&lt;acronym title=&quot;BASH: Bourne Again SHell (common CLI and scripting language on GNU/Linux)&quot;&gt;Bash&lt;/acronym&gt;&lt;/a&gt; prompt:&lt;br /&gt;
&lt;a href=&quot;http://www.gnu.org/software/bash/manual/bashref#SEC83&quot;&gt;http://www.gnu.org/software/bash/manual/bashref#SEC83&lt;/a&gt;&lt;/p&gt;
 </description>
 <pubDate>Fri, 31 Mar 2006 22:12:38 +0200</pubDate>
 <dc:creator>a thing</dc:creator>
 <guid isPermaLink="false">comment 823 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Great Bash reference</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-822</link>
 <description> &lt;p&gt;Great reference for &lt;a class=&quot;glossary-term&quot; href=&quot;/glossary#term460&quot;&gt;&lt;acronym title=&quot;BASH: Bourne Again SHell (common CLI and scripting language on GNU/Linux)&quot;&gt;Bash&lt;/acronym&gt;&lt;/a&gt; scripting and other Bash things:&lt;br /&gt;
&lt;a href=&quot;http://www.gnu.org/software/bash/manual/bashref.html&quot;&gt;http://www.gnu.org/software/bash/manual/bashref.html&lt;/a&gt;&lt;/p&gt;
 </description>
 <pubDate>Fri, 31 Mar 2006 22:12:15 +0200</pubDate>
 <dc:creator>a thing</dc:creator>
 <guid isPermaLink="false">comment 822 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Finding size of a directory</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-821</link>
 <description> &lt;p&gt;Space a directory uses:&lt;br /&gt;
du -s&lt;/p&gt;
 </description>
 <pubDate>Fri, 31 Mar 2006 22:11:53 +0200</pubDate>
 <dc:creator>a thing</dc:creator>
 <guid isPermaLink="false">comment 821 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Coloring ls&#039;ed files</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-820</link>
 <description> &lt;p&gt;For coloring files depending on their type, put this in /etc/profile:&lt;br /&gt;
alias ls=&amp;quot;ls --color=always&amp;quot;&lt;/p&gt;
 </description>
 <pubDate>Fri, 31 Mar 2006 22:11:24 +0200</pubDate>
 <dc:creator>a thing</dc:creator>
 <guid isPermaLink="false">comment 820 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Human readable filesizes</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-819</link>
 <description> &lt;p&gt;For human readable filesizes put this in /etc/profile:&lt;br /&gt;
alias ls=&amp;quot;ls -h&amp;quot;&lt;br /&gt;
alias du=&amp;quot;du -h&amp;quot;&lt;br /&gt;
alias df=&amp;quot;df -h&amp;quot;&lt;/p&gt;
 </description>
 <pubDate>Fri, 31 Mar 2006 22:10:56 +0200</pubDate>
 <dc:creator>a thing</dc:creator>
 <guid isPermaLink="false">comment 819 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Starting out with Vim</title>
 <link>http://www.nuxified.org/topic/tip_collection#comment-818</link>
 <description> &lt;p&gt;&lt;span style=&quot;font-weight:bold&quot;&gt;&lt;span style=&quot;text-decoration:underline&quot;&gt;Starting out with Vim&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to use the Vim editor, don&#039;t just barge in and try to use it, firlstly go through the Vim tutor: &lt;code class=&quot;bb-code&quot;&gt;vimtutor&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;dylunio&lt;/p&gt;
 </description>
 <pubDate>Sun, 26 Mar 2006 22:41:43 +0200</pubDate>
 <dc:creator>dylunio</dc:creator>
 <guid isPermaLink="false">comment 818 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Tip collection</title>
 <link>http://www.nuxified.org/topic/tip_collection</link>
 <description>&lt;div class=&quot;vote-up-down-widget&quot;&gt;&lt;span class=&quot;up-inact&quot; title=&quot;You must login to vote.&quot;&gt;&lt;/span&gt;&lt;span class=&quot;down-inact&quot; title=&quot;You must login to vote.&quot;&gt;&lt;/span&gt;&lt;/div&gt; &lt;p&gt;Put your &lt;a class=&quot;glossary-term&quot; href=&quot;/glossary#term404&quot;&gt;&lt;acronym title=&quot;GNU: GNU&amp;#039;s Not Unix&quot;&gt;GNU&lt;/acronym&gt;&lt;/a&gt;/Linux tips here &lt;img src=&quot;/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;&lt;br /&gt;
&lt;span style=&quot;font-size:23px&quot;&gt;Be sure to put a descriptive title when making your post, and only put one tip per post so the box on the frontpage works well.&lt;/span&gt;&lt;/p&gt;
 </description>
 <comments>http://www.nuxified.org/topic/tip_collection#comment</comments>
 <category domain="http://www.nuxified.org/taxonomy/term/20">Application programs</category>
 <pubDate>Tue, 31 Jan 2006 06:17:15 +0100</pubDate>
 <dc:creator>a thing</dc:creator>
 <guid isPermaLink="false">75 at http://www.nuxified.org</guid>
</item>
</channel>
</rss>
