Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Text only

Add simple user to sudoers in Debian

echo 'my_user ALL=(ALL:ALL) ALL' >> /etc/sudoers
https://snipt.net/embed/f83ecfd16dc620045692997d4420c372/
https://snipt.net/raw/f83ecfd16dc620045692997d4420c372/
f83ecfd16dc620045692997d4420c372
text
Text only
3
2016-12-11T03:58:33
True
False
False
/api/public/snipt/107957/
give-administrator-privileges-to-simple-user-in-debian
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>echo &#39;my_user ALL=(ALL:ALL) ALL&#39; &gt;&gt; /etc/sudoers </span></pre></div> </td></tr></table>
Debian, Linux, administrator, root, sudo, sudoers

Text only

Change uuid of a vitualbox.vdi hdd in Debian 7

1
2
3
4
5
6
7
Change uuid of an existing vdi hdd:

VBoxManage internalcommands sethduuid /ruta/al/virtualdisk.vdi

If you want to clone preserving the uuid:

VBoxManage clonevdi origen.vdi copia.vdi
https://snipt.net/embed/67cee08b7bcc71058ae1cc8fc7fe95cd/
https://snipt.net/raw/67cee08b7bcc71058ae1cc8fc7fe95cd/
67cee08b7bcc71058ae1cc8fc7fe95cd
text
Text only
7
2016-12-11T06:00:27
True
False
False
/api/public/snipt/87889/
change-uuid-of-a-vitualboxvdi-hdd
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Change uuid of an existing vdi hdd: </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>VBoxManage internalcommands sethduuid /ruta/al/virtualdisk.vdi </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>If you want to clone preserving the uuid: </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a>VBoxManage clonevdi origen.vdi copia.vdi </span></pre></div> </td></tr></table>
Debian, Linux, VirtualBox, uuid, vdi

Text only

Convert from vmdk to vdi in Debian/Ubuntu

1
2
3
sudo aptitude install qemu
qemu-img convert /path/to/original.vmdk converted.bin
VBoxManage convertdd converted.bin converted.vdi
https://snipt.net/embed/8bb6932af36f5bcb1e1270a2e7237025/
https://snipt.net/raw/8bb6932af36f5bcb1e1270a2e7237025/
8bb6932af36f5bcb1e1270a2e7237025
text
Text only
6
2016-12-11T02:20:01
True
False
False
/api/public/snipt/87651/
convert-from-vmdk-to-vdi-in-debianubuntu
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>sudo aptitude install qemu </span><span id="L-2"><a name="L-2"></a>qemu-img convert /path/to/original.vmdk converted.bin </span><span id="L-3"><a name="L-3"></a>VBoxManage convertdd converted.bin converted.vdi </span></pre></div> </td></tr></table>
Debian, Linux, Ubuntu, VirtualBox, qemu, vdi, vmdk
Copyrighted, illegal, or inappropriate content? Email [email protected].