<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=124&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / How to add a shell tool shortcut to Devuan Menu]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=124</link>
		<description><![CDATA[The most recent posts in How to add a shell tool shortcut to Devuan Menu.]]></description>
		<lastBuildDate>Sat, 28 Jan 2017 16:13:52 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[How to add a shell tool shortcut to Devuan Menu]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=528#p528</link>
			<description><![CDATA[<p>As everyone already experienced , as long as times passes by and we install tools in our linux machine , if we do not use if often then will probably be forgotten its name from our mind , and after a few weeks we need to run that tool but we forgot its name .<br />So , the best thing is to add a launcher shortcut for it on our Devuan menu , so next time we do not need to start looking in OS where it is and what is its name .</p><p>The example i will give will be for a simple tool on github called ssh-audit , but this process can be made for any other tools you may want to add to your menu .</p><p>Link of the tool : <a href="https://github.com/arthepsy/ssh-audit" rel="nofollow">https://github.com/arthepsy/ssh-audit</a></p><p>In my case i have cloned the tool to a specific directory i have in my system for that , but anyone can clone it to whatever place you want in your OS .<br />My example directory is in : /tools/ssh&#160; directory<br />First of all go to your target directory where you want the tool to be cloned and issue the command :</p><p><strong>git clone <a href="https://github.com/arthepsy/ssh-audit.git" rel="nofollow">https://github.com/arthepsy/ssh-audit.git</a></strong></p><p>like it is in the next image :<br /><a href="https://postimg.org/image/vyjzmcljn/" rel="nofollow"><span class="postimg"><img src="https://s29.postimg.org/vyjzmcljn/clone.png" alt="clone.png" /></span></a></p><p>Next step is to test if tool is working or not , this is important because some tools need dependencies to run , but in this case this tool already its dependencies installed in my OS .</p><p><a href="https://postimg.org/image/apuojgjxf/" rel="nofollow"><span class="postimg"><img src="https://s29.postimg.org/apuojgjxf/testtool.png" alt="testtool.png" /></span></a> </p><p>Ok , now that we see that the tool is does not have any issue on starting up , we need to test it on a real ip address to see if any error popup or not during the scan .</p><p><a href="https://postimg.org/image/5pg0bqitb/" rel="nofollow"><span class="postimg"><img src="https://s27.postimg.org/5pg0bqitb/testscan.png" alt="testscan.png" /></span></a></p><p>This ip i used was a random ip i found with port 22 opened .</p><p>Now that we can see the everything is working fine , we will add the tool to our Devuan XFCE4 menu .<br />To do that open the app in (Accessories/Main Menu)<br /><a href="https://postimg.org/image/rg46fmcmr/" rel="nofollow"><span class="postimg"><img src="https://s29.postimg.org/rg46fmcmr/menuedit.png" alt="menuedit.png" /></span></a></p><p>After main menu is opened , click on &quot;New Item&quot; and this new window will popup :</p><p><a href="https://postimg.org/image/kk5fb3u75/" rel="nofollow"><span class="postimg"><img src="https://s24.postimg.org/kk5fb3u75/launcheredit.png" alt="launcheredit.png" /></span></a></p><p>In the Name field put your tool name , in this case &quot;SSH-Audit&quot;<br />on the command field put this next code : </p><p><strong>sh -c &quot;cd /tools/ssh/ssh-audit &amp;&amp; ./ssh-audit.py -h;${SHELL:-bash}&quot;</strong></p><p>this code may change depending where you have your tool installed .<br />if you have for example your tool installed on this directory &quot;/root/ssh-audit&quot; , then the code must be :</p><p><strong>sh -c &quot;cd /root/ssh-audit &amp;&amp; ./ssh-audit.py -h;${SHELL:-bash}&quot;</strong></p><p>the CD command tells the shell that will open to navigate to that directory , and the &quot;&amp;&amp;&quot; = to execute also the command ahead .<br />Witch is &quot;./ssh-audit.py&quot; .</p><p>Select also the option &quot;Launch in Terminal&quot; , because this tool is a terminal tool and not a graphical tool .</p><p>To add an icon to that tool , then click on the default image on the left , and select the image that you want to add to that shorcut from your OS .<br />by default , icons in linux are located in &quot;/usr/share/icons&quot; directory , but if you found a cool image on the web , then save that image to your Hard disk , and select its location and filename , like i did with this next image :</p><p><a href="https://postimg.org/image/hbocywtlb/" rel="nofollow"><span class="postimg"><img src="https://s27.postimg.org/hbocywtlb/launcher_icon.png" alt="launcher_icon.png" /></span></a></p><p>On this last window you see a big image because i selected an image from the web and not an icon , but the main menu tool will resize it when you save you new menu shortcut .</p><p>Press the button &quot;OK&quot; to save your new shortcut .</p><p>Now , if you open your Devuan Menu Again , you will see your new tool shortcut there&#160; , like it is in my next image :<br /><a href="https://postimg.org/image/j0pwsc2nz/" rel="nofollow"><span class="postimg"><img src="https://s27.postimg.org/j0pwsc2nz/menuok.png" alt="menuok.png" /></span></a></p><p>After this point , anytime you want to use your tool , everything you need to do is launch it from your Main menu shortcut , like it is in my next image :</p><p><a href="https://postimg.org/image/jmi05bjdj/" rel="nofollow"><span class="postimg"><img src="https://s23.postimg.org/jmi05bjdj/runmenu.png" alt="runmenu.png" /></span></a></p>]]></description>
			<author><![CDATA[dummy@example.com (pedropt)]]></author>
			<pubDate>Sat, 28 Jan 2017 16:13:52 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=528#p528</guid>
		</item>
	</channel>
</rss>
