<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="http://hak.casjay.pro/rss.xml" rel="self" type="application/atom+xml" /><link href="http://hak.casjay.pro/" rel="alternate" type="text/html" /><updated>2025-06-13T13:27:31-04:00</updated><id>http://hak.casjay.pro/rss.xml</id><title type="html">CasjayHak</title><subtitle>CasjaysDev Hack Site</subtitle><author><name>casjaysdev</name></author><entry><title type="html">ArchLinux-on-ChromeBook</title><link href="http://hak.casjay.pro/blog/2021/07/11/ArchLinux-on-ChromeBook/" rel="alternate" type="text/html" title="ArchLinux-on-ChromeBook" /><published>2021-07-11T22:10:00-04:00</published><updated>2021-07-11T22:10:00-04:00</updated><id>http://hak.casjay.pro/blog/2021/07/11/ArchLinux-on-ChromeBook</id><content type="html" xml:base="http://hak.casjay.pro/blog/2021/07/11/ArchLinux-on-ChromeBook/"><![CDATA[<h2 id="archlinux-on-chromebook">ArchLinux on ChromeBook</h2>

<h3 id="setup-vmc">Setup vmc</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>vmc destroy termina
vmc start termina<span class="p">;</span> vmc start termina
</code></pre></div></div>

<h3 id="download-the-container">Download the container</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>vmc container termina penguin https://us.images.linuxcontainers.org archlinux/current
</code></pre></div></div>

<h3 id="start-the-container">Start the container</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>lxc start penguin
</code></pre></div></div>

<h3 id="enter-into-container">Enter into container</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>lxc <span class="nb">exec </span>penguin <span class="nt">--</span> bash
</code></pre></div></div>

<h3 id="enable-networking">Enable networking</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>dhcpcd eth0
systemctl disable systemd-networkd
systemctl disable systemd-resolved
<span class="nb">unlink</span> /etc/resolv.conf
<span class="nb">touch</span> /etc/resolv.conf
systemctl <span class="nb">enable </span>dhclient@eth0
systemctl start dhclient@eth0
</code></pre></div></div>

<h3 id="udpate-packages">Udpate packages</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>pacman <span class="nt">-Syyu</span> <span class="nt">--noconfirm</span>
</code></pre></div></div>

<h3 id="install-packages">Install packages</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>pacman <span class="nt">-S</span> <span class="nt">--needed</span> base-devel git <span class="nb">sudo</span>
</code></pre></div></div>

<h3 id="uncomment-the-following-line-wheel-allall-all">Uncomment the following line: %wheel ALL=(ALL) ALL</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>nano /etc/sudoers
</code></pre></div></div>

<h3 id="setup-user">Setup user</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">NEW_USER</span><span class="o">=</span><span class="s2">"GMAIL_USER"</span>
<span class="nv">OLD_USER</span><span class="o">=</span><span class="s2">"</span><span class="si">$(</span><span class="nb">grep </span>1000:1000 /etc/passwd|cut <span class="nt">-d</span><span class="s1">':'</span> <span class="nt">-f1</span><span class="si">)</span><span class="s2">"</span>
pkill <span class="nt">-9</span> <span class="nt">-u</span> <span class="s2">"</span><span class="nv">$OLD_USER</span><span class="s2">
groupmod -n </span><span class="nv">$NEW_USER</span><span class="s2"> </span><span class="nv">$OLD_USER</span><span class="s2">
usermod -d /home/</span><span class="nv">$NEW_USER</span><span class="s2"> -l </span><span class="nv">$NEW_USER</span><span class="s2"> -m -c </span><span class="nv">$NEW_USER</span><span class="s2"> </span><span class="nv">$OLD_USER</span><span class="s2">
passwd </span><span class="nv">$NEW_USER</span><span class="s2">
usermod -aG wheel </span><span class="nv">$NEW_USER</span><span class="s2">
</span></code></pre></div></div>

<h3 id="exit">Exit</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">exit</span>
</code></pre></div></div>

<h3 id="re-enter-container">Re-enter container</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>lxc console pengiun
</code></pre></div></div>

<h3 id="install-additional-packages">Install additional packages</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>pacman <span class="nt">-S</span> <span class="nt">--needed</span> base-devel git
git clone https://aur.archlinux.org/yay.git ~/.cache/yay<span class="p">;</span> <span class="nb">cd</span> .cache/yay/<span class="p">;</span> makepkg <span class="nt">-si</span>
yay <span class="nt">-S</span> cros-container-guest-tools-git
</code></pre></div></div>

<h3 id="enable-services">Enable services</h3>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>systemctl <span class="nt">--user</span> <span class="nb">enable </span>sommelier@0.service sommelier-x@0.service sommelier@1.service sommelier-x@1.service
</code></pre></div></div>

<h3 id="reboot-your-chromebook">Reboot your chromebook</h3>]]></content><author><name>casjaysdev</name></author><category term="blog" /><category term="howto" /><category term="chromeos" /><summary type="html"><![CDATA[ArchLinux on ChromeBook]]></summary></entry><entry><title type="html">updated theming engine</title><link href="http://hak.casjay.pro/blog/2020/07/31/Updated-Theming-Engine/" rel="alternate" type="text/html" title="updated theming engine" /><published>2020-07-31T20:30:00-04:00</published><updated>2020-07-31T20:30:00-04:00</updated><id>http://hak.casjay.pro/blog/2020/07/31/Updated-Theming-Engine</id><content type="html" xml:base="http://hak.casjay.pro/blog/2020/07/31/Updated-Theming-Engine/"><![CDATA[<p>Congratulations! ✔<br />
You have updated your theme!<br />
🚀☕🎁✨😃</p>]]></content><author><name>casjaysdev</name></author><category term="blog" /><category term="dev" /><summary type="html"><![CDATA[Congratulations! ✔ You have updated your theme! 🚀☕🎁✨😃]]></summary></entry><entry><title type="html">new deploy</title><link href="http://hak.casjay.pro/blog/2020/07/31/new-deploy/" rel="alternate" type="text/html" title="new deploy" /><published>2020-07-31T20:00:00-04:00</published><updated>2020-07-31T20:00:00-04:00</updated><id>http://hak.casjay.pro/blog/2020/07/31/new-deploy</id><content type="html" xml:base="http://hak.casjay.pro/blog/2020/07/31/new-deploy/"><![CDATA[<p>Congratulations! ✔<br />
New site has been deployed!<br />
🚀☕🎁✨😃</p>]]></content><author><name>casjaysdev</name></author><category term="blog" /><category term="dev" /><summary type="html"><![CDATA[Congratulations! ✔ New site has been deployed! 🚀☕🎁✨😃]]></summary></entry></feed>