Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Text only

X11 - 2nd Session

X :2.0 vt2 2>&1 >/dev/null & xterm -display :2.0 -e startfluxbox
https://snipt.net/embed/8184066ee6774bb75bd61966a98138ae/
https://snipt.net/raw/8184066ee6774bb75bd61966a98138ae/
8184066ee6774bb75bd61966a98138ae
text
Text only
1
2016-12-04T04:22:31
True
False
False
/api/public/snipt/35740/
x11-2nd-session
<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>X :2.0 vt2 2&gt;&amp;1 &gt;/dev/null &amp; xterm -display :2.0 -e startfluxbox </span></pre></div> </td></tr></table>
display, x, x11

Bash

Arrange screen size and position

$> xvidtune
https://snipt.net/embed/3d505bf803cb6d0d4869d249fb8a1073/
https://snipt.net/raw/3d505bf803cb6d0d4869d249fb8a1073/
3d505bf803cb6d0d4869d249fb8a1073
bash
Bash
1
2016-12-05T02:55:38
True
False
False
/api/public/snipt/6373/
arrange-screen-size-and-position
<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>$&gt; xvidtune </span></pre></div> </td></tr></table>
linux, x11

Bash

Format of DISPLAY environment variable

1
2
3
4
<host>:<display>.<monitor>

# example (host is localhost)
:0.0
https://snipt.net/embed/05b0c936d67fece7abc43037b34d441d/
https://snipt.net/raw/05b0c936d67fece7abc43037b34d441d/
05b0c936d67fece7abc43037b34d441d
bash
Bash
4
2016-12-04T04:32:16
True
False
False
/api/public/snipt/6371/
format-of-display-environment-variable
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>&lt;host&gt;:&lt;display&gt;.&lt;monitor&gt; </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="c1"># example (host is localhost)</span> </span><span id="L-4"><a name="L-4"></a>:0.0 </span></pre></div> </td></tr></table>
linux, x11

Bash

Configure XFree86 server

1
2
3
4
5
6
7
$> su

# option1
$> vi /etc/X11/XF86Config-4

# option2
$> xf86config
https://snipt.net/embed/14bd175b1fee52c1b0c3253c760dc51d/
https://snipt.net/raw/14bd175b1fee52c1b0c3253c760dc51d/
14bd175b1fee52c1b0c3253c760dc51d
bash
Bash
7
2016-12-04T04:33:10
True
False
False
/api/public/snipt/6366/
configure-xfree86-server
<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>$&gt; su </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="c1"># option1</span> </span><span id="L-4"><a name="L-4"></a>$&gt; vi /etc/X11/XF86Config-4 </span><span id="L-5"><a name="L-5"></a> </span><span id="L-6"><a name="L-6"></a><span class="c1"># option2</span> </span><span id="L-7"><a name="L-7"></a>$&gt; xf86config </span></pre></div> </td></tr></table>
linux, x11
Copyrighted, illegal, or inappropriate content? Email [email protected].