<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tutorials &#8211; Tekbyte</title>
	<atom:link href="https://www.tekbyte.net/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tekbyte.net</link>
	<description>Learn a lot, one byte at a time.</description>
	<lastBuildDate>Fri, 26 Jul 2024 02:25:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.tekbyte.net/wp-content/uploads/2020/08/cropped-favicon-1-1-150x150.png</url>
	<title>tutorials &#8211; Tekbyte</title>
	<link>https://www.tekbyte.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Improving the mouse experience on macOS with LinearMouse</title>
		<link>https://www.tekbyte.net/improving-the-mouse-experience-on-macos-with-linearmouse/</link>
					<comments>https://www.tekbyte.net/improving-the-mouse-experience-on-macos-with-linearmouse/#respond</comments>
		
		<dc:creator><![CDATA[Berk D.]]></dc:creator>
		<pubDate>Sat, 25 Mar 2023 13:31:13 +0000</pubDate>
				<category><![CDATA[all]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[tutorials]]></category>
		<guid isPermaLink="false">https://www.tekbyte.net/?p=707</guid>

					<description><![CDATA[As a Mac user, you may know that mouse behaviour is a little wonky, especially when it comes to mouse...]]></description>
										<content:encoded><![CDATA[
<p>As a Mac user, you may know that mouse behaviour is a little wonky, especially when it comes to mouse acceleration and using the back and forward buttons on your mouse.</p>



<p>If you have a Logitech mouse, you&#8217;re pretty much set as you can use the Logi Options+ software to configure your mouse and utlise the buttons on your mouse &#8212; a must-have in my opinion!</p>



<p>However, regardless of your mouse, there is one issue and that is mouse acceleration.</p>



<h2 class="wp-block-heading">Disabling Mouse Acceleration</h2>



<p>While mouse acceleration is great in theory, for my work and use case, it makes it a pain to navigate as I then need to re-learn how it behaves everywhere I use my mouse.</p>



<p>I occasionally play some games on my Mac and having mouse acceleration simply ruins the experience. Not only that, acceleration affects the ability to form muscle memory which is a major annoyance when it comes for work and play. Mouse acceleration may be useful on large displays, I simply increase my DPI and turn off mouse acceleration which makes me move more consistently.</p>



<p>The solution is to use an application called &#8220;LinearMouse&#8221;!</p>



<p>After much research, I found this gem of a program that allows you to not only disable mouse acceleration but also scroll acceleration and enable universal &#8220;back + forward&#8221; buttons to work across all apps!</p>



<p>This is huge!</p>



<p>This makes your 3rd party mouse (i.e. non-Magic Mouse) feel like a first-class citizen on your Mac. This program is indispensable for me now.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="wp-block-button aligncenter"><a class="wp-block-button__link wp-element-button" href="https://linearmouse.app/" target="_blank" rel="noreferrer noopener">LinearMouse &#8211; Project Homepage</a></div>
</div>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>Another cool feature about this program is that each mouse you use on your Mac means that each mouse has it&#8217;s own profile. This means that you can fine-tune your settings for each mouse and make it your own (e.g. different settings for your work mouse vs gaming mouse).</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="985" height="716" src="https://www.tekbyte.net/wp-content/uploads/2023/03/Screenshot-2023-03-25-at-11.45.11-pm.png" alt="" class="wp-image-708" srcset="https://www.tekbyte.net/wp-content/uploads/2023/03/Screenshot-2023-03-25-at-11.45.11-pm.png 985w, https://www.tekbyte.net/wp-content/uploads/2023/03/Screenshot-2023-03-25-at-11.45.11-pm-300x218.png 300w, https://www.tekbyte.net/wp-content/uploads/2023/03/Screenshot-2023-03-25-at-11.45.11-pm-768x558.png 768w" sizes="(max-width: 985px) 100vw, 985px" /><figcaption class="wp-element-caption">Finally disabled pointer acceleration!</figcaption></figure>



<p>The ability to also use the back/forward buttons in any app is also a benefit of using this application. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="997" height="747" src="https://www.tekbyte.net/wp-content/uploads/2023/03/Screenshot-2023-03-25-at-11.45.15-pm.png" alt="" class="wp-image-709" srcset="https://www.tekbyte.net/wp-content/uploads/2023/03/Screenshot-2023-03-25-at-11.45.15-pm.png 997w, https://www.tekbyte.net/wp-content/uploads/2023/03/Screenshot-2023-03-25-at-11.45.15-pm-300x225.png 300w, https://www.tekbyte.net/wp-content/uploads/2023/03/Screenshot-2023-03-25-at-11.45.15-pm-768x575.png 768w" sizes="(max-width: 997px) 100vw, 997px" /><figcaption class="wp-element-caption">This feature alone makes it worth using this application.</figcaption></figure>



<p>You can install it from their project page (see button above) or install it using Homebrew on your Mac.</p>



<pre class="wp-block-code"><code>brew install --cask linearmouse</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>Honestly, I am not sure why macOS doesn&#8217;t have the ability to disable mouse acceleration from the settings area or let alone, the ability to have native back/forward buttons for your mouse. </p>



<p>In any case, LinearMouse is a must-have app for my needs!</p>



<p>Hope you find this application useful!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.tekbyte.net/improving-the-mouse-experience-on-macos-with-linearmouse/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Optimising Logitech MX Master 3 Scroll Wheel For iPadOS</title>
		<link>https://www.tekbyte.net/optimising-logitech-mx-master-3-scroll-wheel-for-ipados/</link>
					<comments>https://www.tekbyte.net/optimising-logitech-mx-master-3-scroll-wheel-for-ipados/#respond</comments>
		
		<dc:creator><![CDATA[Berk D.]]></dc:creator>
		<pubDate>Thu, 16 Mar 2023 13:52:35 +0000</pubDate>
				<category><![CDATA[all]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[tutorials]]></category>
		<guid isPermaLink="false">https://www.tekbyte.net/?p=700</guid>

					<description><![CDATA[Just wanted to share something I found interesting when using my Logitech MX Master 3 on my iPad Air 4....]]></description>
										<content:encoded><![CDATA[
<p>Just wanted to share something I found interesting when using my Logitech MX Master 3 on my iPad Air 4.</p>



<p>One thing that bugged me when using the mouse on the iPad was that each scroll step was like five scroll-steps. This meant that it was almost impossible to accurately scroll up and down and the scrolling was very jumpy. </p>



<p>Turns out, this is easily resolved by disabling a setting in the &#8220;Logi Options+&#8221; for the Logitech MX Master 3 and that is &#8220;Smooth Scroll&#8221;. The Logi Options+ software actually stores this information onto the MX Master (i.e. offline) so the changes you make to the sensitivity, scroll-speed, etc, all saves to the mouse. </p>



<p>It is best to turn off the smooth-scrolling feature as it also works better on the Mac but more importantly, the scrolling feels normal on the iPad.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="619" src="https://www.tekbyte.net/wp-content/uploads/2023/03/0588AE23-A0B4-4BD5-A495-43C7208C77B7_1_105_c-1024x619.jpeg" alt="" class="wp-image-701" srcset="https://www.tekbyte.net/wp-content/uploads/2023/03/0588AE23-A0B4-4BD5-A495-43C7208C77B7_1_105_c-1024x619.jpeg 1024w, https://www.tekbyte.net/wp-content/uploads/2023/03/0588AE23-A0B4-4BD5-A495-43C7208C77B7_1_105_c-300x181.jpeg 300w, https://www.tekbyte.net/wp-content/uploads/2023/03/0588AE23-A0B4-4BD5-A495-43C7208C77B7_1_105_c-768x465.jpeg 768w, https://www.tekbyte.net/wp-content/uploads/2023/03/0588AE23-A0B4-4BD5-A495-43C7208C77B7_1_105_c.jpeg 1139w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">This is what Logi Options+ looks like. By disabling the &#8220;Smooth Scrolling&#8221; feature, this makes the mouse&#8217;s scroll wheel behave normally on iPadOS.</figcaption></figure>



<p>Of course, to disable this feature, you need to make the changes on a Mac or Windows PC running Logitech Options or the new &#8220;Logi Options+&#8221; software.</p>



<p>Hope this helps!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.tekbyte.net/optimising-logitech-mx-master-3-scroll-wheel-for-ipados/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>System Administration Tips: Exim &#038; Mail Queues</title>
		<link>https://www.tekbyte.net/system-administration-tips-exim-mail-queues/</link>
					<comments>https://www.tekbyte.net/system-administration-tips-exim-mail-queues/#respond</comments>
		
		<dc:creator><![CDATA[Berk D.]]></dc:creator>
		<pubDate>Fri, 15 Jul 2022 20:41:43 +0000</pubDate>
				<category><![CDATA[all]]></category>
		<category><![CDATA[cpanel and wordpress]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[clearing mail queue]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[cpanel exim queues]]></category>
		<category><![CDATA[email queue]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[mail queue]]></category>
		<category><![CDATA[whm]]></category>
		<guid isPermaLink="false">https://www.tekbyte.net/?p=576</guid>

					<description><![CDATA[In this short article, I will be sharing some useful commands I have come to use over the years with...]]></description>
										<content:encoded><![CDATA[
<p>In this short article, I will be sharing some useful commands I have come to use over the years with cPanel/WHM servers. These commands are especially useful if you are planning to monitor email queues and ensure that no one is compromised and/or isn&#8217;t spamming. </p>



<h1 class="wp-block-heading">Viewing the number of emails</h1>



<p>To view the number of emails in the queue, run this command:</p>



<pre class="wp-block-code"><code>exim -bpc</code></pre>



<p>To view all the emails (this is useful for the next few sections), run these commands:</p>



<pre class="wp-block-code"><code>exim -bp
exim -bp | exiqsumm</code></pre>



<h1 class="wp-block-heading">Checking emails (e.g. login failures, for spamming content, etc.)</h1>



<p>The best way to find out if an account is secure and to also identify if the password has been changed is to refer to these commands:</p>



<pre class="wp-block-code"><code>grep test@mydomain.tld /var/log/maillog | grep fail</code></pre>



<p>This will filter through the “/var/log/maillog” to see if there are any failures. This is also useful for checking to see if the customer is using the correct credentials.</p>



<h1 class="wp-block-heading">Removing emails from the queues</h1>



<p>If you have identified the source of the spamming account/domain, you can then use the following commands to clear out the emails.</p>



<pre class="wp-block-code"><code>exiqgrep -i -f EMAIL_ACCOUNT | xargs exim -Mrm
exiqgrep -i -r EMAIL_ACCOUNT | xargs exim -Mrm</code></pre>



<p>The <code>-f</code> flag indicates the “from” address and the <code>-r</code> flag indicates the “recipient” address.</p>



<h1 class="wp-block-heading">Pushing/releasing frozen/queued up emails</h1>



<p>First clear out the spam (i.e. identify the spam, if any, and suspend/inform + remove emails from the queue).</p>



<p>Once done, the best way to get this going is to SSH into the server and create a screen so you can run the EXIM email release command in the background. Here is what it will look like:</p>



<pre class="wp-block-code"><code>ssh my.server.tld -4
screen -S exim
exim -qf -v</code></pre>



<p>Then you can exit the screen (CTRL+A,D) and let it do its magic.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>These commands have helped me in my cPanel/WHM system administration tasks and I hope it helps you too. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.tekbyte.net/system-administration-tips-exim-mail-queues/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Getting the SteelSeries Rival 3 Wireless to work on iPad!</title>
		<link>https://www.tekbyte.net/getting-the-steelseries-rival-3-wireless-to-work-on-ipad/</link>
					<comments>https://www.tekbyte.net/getting-the-steelseries-rival-3-wireless-to-work-on-ipad/#comments</comments>
		
		<dc:creator><![CDATA[Berk D.]]></dc:creator>
		<pubDate>Thu, 14 Jul 2022 10:35:13 +0000</pubDate>
				<category><![CDATA[all]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[rival 3]]></category>
		<category><![CDATA[rival 3 wireless]]></category>
		<category><![CDATA[rival 3 wireless ipad]]></category>
		<category><![CDATA[rival 3 wireless ipad not working]]></category>
		<guid isPermaLink="false">https://www.tekbyte.net/?p=571</guid>

					<description><![CDATA[So I recently got myself a SteelSeries Rival 3 as I wanted something that could pair to two devices (my...]]></description>
										<content:encoded><![CDATA[
<p>So I recently got myself a SteelSeries Rival 3 as I wanted something that could pair to two devices (my Mac and iPad), have a great sensor, good shape and most importantly, good battery life.</p>



<h2 class="wp-block-heading"><strong>The Story</strong></h2>



<p>After much research, the Rival 3 Wireless was the choice for me and using a Rival 3 at work, having a wireless mouse at home and on the go is very convenient.</p>



<p>When I got my Rival 3 Wireless, it was a pleasant experience on macOS however, the Bluetooth functionality didn&#8217;t work on the iPad unfortunately. I spent hours trying to find a solution to this issue but it appears that this is a common issue with folks who have the Rival 3, apparently it is related to the mouse not adhering to certain requirements.</p>



<p>It would pair successfully however, the cursor would not show up.</p>



<p>It was quite sad however, there was hope!</p>



<p>iPadOS 16 Public Beta is currently out and I&#8217;ve heard that mice actually work and behave better now. One person on reddit asked to see if anyone has tried it on iPadOS 16 and after one month, there was no reply &#8212; until now!</p>



<p>I&#8217;ve never installed a beta but thought I&#8217;d give it a go on my iPad Air 4 and boom! It works! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<p>My Rival 3 Wireless mouse now works flawlessly in iPadOS 16!</p>



<p>Of course, I hope this stays like this forever as I don&#8217;t want a future update to break this compatibility however, I have also reached out to SteelSeries directly and have passed this information to them.&nbsp;</p>



<h2 class="wp-block-heading"><strong>TLDR</strong></h2>



<p>If you are having issues with the Rival 3 working on your iPad, install iPadOS 16 and it should then work!</p>



<p>Hope this helps!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.tekbyte.net/getting-the-steelseries-rival-3-wireless-to-work-on-ipad/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>How to enable HSTS (HTTP/2) on any site (Quick Tip)</title>
		<link>https://www.tekbyte.net/how-to-enable-hsts-http-2-on-any-site/</link>
					<comments>https://www.tekbyte.net/how-to-enable-hsts-http-2-on-any-site/#respond</comments>
		
		<dc:creator><![CDATA[Berk D.]]></dc:creator>
		<pubDate>Sat, 18 Jun 2022 04:14:42 +0000</pubDate>
				<category><![CDATA[all]]></category>
		<category><![CDATA[cpanel and wordpress]]></category>
		<category><![CDATA[tutorials]]></category>
		<guid isPermaLink="false">https://www.tekbyte.net/?p=392</guid>

					<description><![CDATA[Keeping this one short, if you are running a website on an Apache, Nginx or LiteSpeed webserver, you want to...]]></description>
										<content:encoded><![CDATA[
<p>Keeping this one short, if you are running a website on an Apache, Nginx or LiteSpeed webserver, you want to paste the following line of code to the top of your <code>.htaccess</code> file. </p>



<pre class="wp-block-code"><code>Header set Strict-Transport-Security "max-age=31536000" env=HTTPS</code></pre>



<p>Once you have done that, clear your browser cache and by using a HTTP/2 tester, you should see that your website is now enforcing HTTP/2.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.tekbyte.net/how-to-enable-hsts-http-2-on-any-site/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to fix high CPU usage with GNS3 (Cisco Routers)</title>
		<link>https://www.tekbyte.net/how-to-fix-high-cpu-usage-with-gns3-cisco-routers/</link>
					<comments>https://www.tekbyte.net/how-to-fix-high-cpu-usage-with-gns3-cisco-routers/#comments</comments>
		
		<dc:creator><![CDATA[Berk D.]]></dc:creator>
		<pubDate>Mon, 09 May 2022 01:01:40 +0000</pubDate>
				<category><![CDATA[all]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[fix gns3 cpu load]]></category>
		<category><![CDATA[gns3]]></category>
		<category><![CDATA[gns3 cpu 100%]]></category>
		<category><![CDATA[gns3 high cpu load]]></category>
		<category><![CDATA[high gns3 cpu load]]></category>
		<guid isPermaLink="false">https://www.tekbyte.net/?p=560</guid>

					<description><![CDATA[Hey folks, just a quick tip that may help you with GNS3 CPU issues. I&#8217;ve recently been doing a networking...]]></description>
										<content:encoded><![CDATA[
<p>Hey folks, just a quick tip that may help you with GNS3 CPU issues.</p>



<p>I&#8217;ve recently been doing a networking subject for uni and started to use GNS3 to simulate Cisco 7200 routers. We&#8217;ve been using different topologies (OSPF, BGP) with basic static routing however, upon simulating the network, I came across a huge problem and that was CPU load.</p>



<p>Now, I have a fairly powerful computer and there is no reason for C7200 series routers to use 100% of my CPU with just a 5-10 routers when they are idling. I did some digging and found that to fix it, you have to do the following:</p>



<ul class="wp-block-list"><li>Open a console session with one of the routers</li><li>Once running, right-click on the router and then click on &#8220;Auto Idle-PC&#8221;</li></ul>



<p>Here is a screenshot of what it looks like:</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="453" height="749" src="https://www.tekbyte.net/wp-content/uploads/2022/05/Screen-Shot-2022-05-09-at-10.45.53-am-1.png" alt="" class="wp-image-561" srcset="https://www.tekbyte.net/wp-content/uploads/2022/05/Screen-Shot-2022-05-09-at-10.45.53-am-1.png 453w, https://www.tekbyte.net/wp-content/uploads/2022/05/Screen-Shot-2022-05-09-at-10.45.53-am-1-181x300.png 181w" sizes="auto, (max-width: 453px) 100vw, 453px" /><figcaption>The options available in the right-click context menu</figcaption></figure></div>



<p>This brought my CPU usage from 100% down to 20% with 9 routers running at the same time. I&#8217;m quite happy with the results!</p>



<p>Hope this helps. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.tekbyte.net/how-to-fix-high-cpu-usage-with-gns3-cisco-routers/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Getting the Logitech G920 working on macOS 12</title>
		<link>https://www.tekbyte.net/getting-the-logitech-g920-working-on-macos-12/</link>
					<comments>https://www.tekbyte.net/getting-the-logitech-g920-working-on-macos-12/#comments</comments>
		
		<dc:creator><![CDATA[Berk D.]]></dc:creator>
		<pubDate>Fri, 29 Apr 2022 05:06:36 +0000</pubDate>
				<category><![CDATA[all]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[apple m1 wheel]]></category>
		<category><![CDATA[ets2]]></category>
		<category><![CDATA[ets2 g920]]></category>
		<category><![CDATA[ets2 wheel]]></category>
		<category><![CDATA[ets2 wheel mac]]></category>
		<category><![CDATA[g920 apple m1]]></category>
		<category><![CDATA[g920 ets2 mac]]></category>
		<category><![CDATA[g920 ets2 mac wheel]]></category>
		<category><![CDATA[wheel g920 mac]]></category>
		<category><![CDATA[wheel mac m1 ets2]]></category>
		<guid isPermaLink="false">https://www.tekbyte.net/?p=550</guid>

					<description><![CDATA[Note (July 2024): This guide may not work on newer versions of macOS anymore as it is untested on anything...]]></description>
										<content:encoded><![CDATA[
<blockquote>
<p><strong>Note (July 2024):</strong> This guide may not work on newer versions of macOS anymore as it is untested on anything above macOS 13. Having tried everything (Logitech G Hub, Parallels, VMware Fusion, CrossOver), I couldn&#8217;t get it to work properly and if it does work outside of DIRT 4/Rally and F1 2017, the FFB won&#8217;t work.</p>
<p>In short, save yourself the time and headache and use the wheel on a Windows or Linux machine. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
</blockquote>
<p>&nbsp;</p>
<p>So I recently acquired a Logitech G920 which I wanted to use with Euro Truck Simulator 2 (ETS2) and also some other racing titles however, as some of you may know, gaming on macOS and Linux is quite limited. That being said, it doesn&#8217;t mean you can&#8217;t have a bit of fun on your productivity machine!</p>



<p>It took quite a bit of investigation to get this working as I found that macOS 12 didn&#8217;t support the wheel out of the box with ETS2 or even with Parallels VM (using Windows 11 as a VM). That being said, I did some further testing and managed to get the wheel to work natively &#8212; here&#8217;s how!</p>



<h1 class="wp-block-heading">Kudos to Feral Interactive</h1>



<p>Firstly, you need to get a game that has been ported by Feral Interactive from Steam &#8212; here are a few examples:</p>



<ul class="wp-block-list">
<li>F1 2017</li>
<li>Dirt Rally</li>
<li>Dirt 4</li>
</ul>



<p>Now you&#8217;re probably thinking, how do you get trucking on a Mac with racing games! As funny as this may sound, the solution is to first load either of those games as they come with an initialisation screen that automatically detects the wheel &#8212; you will notice the wheel will go lock-to-lock, that is when I had my &#8220;aha&#8221; moment!</p>



<p>Most of the aforementioned games set the wheel to 300-350 degrees of steering lock so for ETS2, I recommend changing this to the full 900 degrees for a solid trucking experience!</p>



<p>You do not even have to launch the F1/Dirt game, just the setup screen is enough to preload the driver and you can then fire up ETS2 and enjoy!</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="987" height="713" class="wp-image-551" src="https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-26-at-1.34.56-pm-1.png" alt="" srcset="https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-26-at-1.34.56-pm-1.png 987w, https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-26-at-1.34.56-pm-1-300x217.png 300w, https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-26-at-1.34.56-pm-1-768x555.png 768w" sizes="auto, (max-width: 987px) 100vw, 987px" />
<figcaption>F1 2017 launcher allows you to set the wheel operating range. I personally use Dirt 4 as I like to go for a drive at Finland before I go trucking <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f61b.png" alt="😛" class="wp-smiley" style="height: 1em; max-height: 1em;" /></figcaption>
</figure>



<h1 class="wp-block-heading">The settings I use</h1>



<p>Here are some of the settings I use in the &#8220;Controller&#8221; section with my G920. For any button bindings, this is all personal preference as I assume everyone will have a layout they prefer.</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="608" data-id="556" class="wp-image-556" src="https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.36.49-pm-1-1024x608.png" alt="" srcset="https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.36.49-pm-1-1024x608.png 1024w, https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.36.49-pm-1-300x178.png 300w, https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.36.49-pm-1-768x456.png 768w, https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.36.49-pm-1-1080x641.png 1080w, https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.36.49-pm-1.png 1110w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="573" data-id="555" class="wp-image-555" src="https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.37.11-pm-1-1024x573.png" alt="" srcset="https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.37.11-pm-1-1024x573.png 1024w, https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.37.11-pm-1-300x168.png 300w, https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.37.11-pm-1-768x430.png 768w, https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.37.11-pm-1.png 1068w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="634" data-id="557" class="wp-image-557" src="https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.37.03-pm-1-1024x634.png" alt="" srcset="https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.37.03-pm-1-1024x634.png 1024w, https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.37.03-pm-1-300x186.png 300w, https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.37.03-pm-1-768x475.png 768w, https://www.tekbyte.net/wp-content/uploads/2022/04/Screen-Shot-2022-04-29-at-3.37.03-pm-1.png 1042w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>

<figcaption class="blocks-gallery-caption">These are the settings I use for ETS2 &#8212; I have yet to try them in ATS but I believe it will work.</figcaption>
</figure>



<h1 class="wp-block-heading">FFB doesn&#8217;t work</h1>



<p>Unfortunately, I could not get FFB (Force Feedback) to work with ETS2 however, it&#8217;s not a major issue for me as all I wanted to do was use my wheel and H-shifter for driving around. Keyboard and mouse is fun and it is how I have been doing it for years however, having a wheel is a much nicer experience &#8212; especially rowing through those gears with the Logitech H Shifter! That being said, FFB <em>does </em>work with F1 2017 and Dirt Rally perfectly!</p>



<h1 class="wp-block-heading">Conclusion</h1>



<p>I&#8217;m very happy with the outcome as I don&#8217;t need a console anymore and I can go trucking in my favourite simulator on my comfy Apple M1 Mac. I would love to have Feral Interactive collaborate with ETS2 to get the G920/G29/G923 working seamlessly on Mac with FFB &#8212; one can only hope. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.tekbyte.net/getting-the-logitech-g920-working-on-macos-12/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
		<item>
		<title>How to migrate a WordPress site manually</title>
		<link>https://www.tekbyte.net/how-to-migrate-a-wordpress-site-manually/</link>
					<comments>https://www.tekbyte.net/how-to-migrate-a-wordpress-site-manually/#respond</comments>
		
		<dc:creator><![CDATA[Berk D.]]></dc:creator>
		<pubDate>Thu, 02 Dec 2021 15:47:50 +0000</pubDate>
				<category><![CDATA[all]]></category>
		<category><![CDATA[cpanel and wordpress]]></category>
		<category><![CDATA[tutorials]]></category>
		<guid isPermaLink="false">https://www.tekbyte.net/?p=518</guid>

					<description><![CDATA[When it comes to moving sites from one host to another, it often can be tedious and doesn&#8217;t work out...]]></description>
										<content:encoded><![CDATA[
<p>When it comes to moving sites from one host to another, it often can be tedious and doesn&#8217;t work out to plan. This guide will guide you with screenshots on how you can move a fully functional WordPress site from one host to another. </p>



<div class="wp-block-image"><figure class="aligncenter is-resized"><img loading="lazy" decoding="async" src="https://images.unsplash.com/photo-1616469832301-ffaeadc68cf3?ixlib=rb-1.2.1&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=1000&amp;q=80" alt="white and blue printer paper" width="456" height="304"/><figcaption>If only it was as easy as clicking the download button. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></figcaption></figure></div>



<p>Since we are moving WordPress, we can assume that both the old and new host have PHP, MariaDB and likely phpMyAdmin as well. If they have cPanel, Virtualmin or other graphical user interfaces, that will make the migration easier with importing files and the database.</p>



<p>The next thing to consider is the type of website you will be migrating. This guide is applicable for any WordPress site however, some sites may be problematic after moving which we will also discuss in this article.</p>



<p>Let&#8217;s get started.</p>



<h2 class="wp-block-heading">1   Exporting the data</h2>



<p>A WordPress installation consists of the core WordPress files and a database. All of them work hand in hand so we will need to export both the site files and the databases.</p>



<p>The files can typically be accessed from your old hosting provider&#8217;s file manager. If they have cPanel, it will be there however it may also be named something else. If there is no file manager or you would prefer to do this differently, the next best thing to do would be to download files using FTP. For this guide, we will assume that you have FTP access to the old hosting provider.</p>



<h3 class="wp-block-heading">1.1   Getting the FTP credentials and connecting to the server</h3>



<p>If you are unsure on how you can get these credentials, you can contact your host&#8217;s support and request for the following:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p><em>&#8220;Hi there, can you provide me with the FTP hostname, FTP username and FTP password for my hosting service &#8220;yourhostingservice.xyz&#8221;. Thank you!&#8221;</em></p><cite>An example of what you may submit as a support request ticket.</cite></blockquote>



<p>After you have done this, open up a FTP client. A popular one many folks use is called &#8220;FileZilla&#8221;. For this example, I&#8217;ll be using CyberDuck</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="665" height="618" src="https://www.tekbyte.net/wp-content/uploads/2021/12/Screen-Shot-2021-12-02-at-4.40.13-pm-1.png" alt="" class="wp-image-519" srcset="https://www.tekbyte.net/wp-content/uploads/2021/12/Screen-Shot-2021-12-02-at-4.40.13-pm-1.png 665w, https://www.tekbyte.net/wp-content/uploads/2021/12/Screen-Shot-2021-12-02-at-4.40.13-pm-1-300x279.png 300w" sizes="auto, (max-width: 665px) 100vw, 665px" /><figcaption><strong>Figure 1.</strong> An example on how you may connect to the FTP server. If you get any SSL warnings, simply acknowledge them. </figcaption></figure></div>



<p>After you have connected to the server successfully, you want to find the &#8220;public_html&#8221; folder. If your host does not have this folder, it may be called &#8220;public&#8221; or &#8220;www&#8221;. What you want to do is either compress all the files you see or, simply download them to your computer. </p>



<p>You can treat this as a backup but also the files we will be moving to the new server. </p>



<h3 class="wp-block-heading">1.2   Exporting the database</h3>



<p>For this one, if you have access to phpMyAdmin, what you can do is export the database directly from there. Before you do this, you want to make sure that you know what the database name is. This isn&#8217;t necessary if you only have one site however, if you have multiple sites (or WordPress installations), you will need to make sure that you are exporting the right database. </p>



<p>The way you can find this is by viewing/editing the &#8220;wp-config.php&#8221; file and find the &#8220;DB_NAME&#8221;. That will tell you the current DB name. You want to note down the &#8220;DB_USER&#8221; and &#8220;DB_PASS&#8221; as well. </p>



<p>If you have phpMyAdmin access, you want to click on your database and then click on the &#8220;Export&#8221; tab to export your site. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="900" height="453" src="https://www.tekbyte.net/wp-content/uploads/2021/12/Screen-Shot-2021-12-03-at-2.13.52-am-1.png" alt="" class="wp-image-521" srcset="https://www.tekbyte.net/wp-content/uploads/2021/12/Screen-Shot-2021-12-03-at-2.13.52-am-1.png 900w, https://www.tekbyte.net/wp-content/uploads/2021/12/Screen-Shot-2021-12-03-at-2.13.52-am-1-300x151.png 300w, https://www.tekbyte.net/wp-content/uploads/2021/12/Screen-Shot-2021-12-03-at-2.13.52-am-1-768x387.png 768w" sizes="auto, (max-width: 900px) 100vw, 900px" /><figcaption><strong>Figure 2.</strong> Exporting the database from phpMyAdmin</figcaption></figure></div>



<p>If you do not have access to phpMyAdmin, you may want to ask your host to export the database for you. You can write your support ticket as follows:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p><em>&#8220;Hi there, can you please export the database and provide it to me as a downloadable link / attachment? The domain name is &#8220;YOURDOMAIN.XYZ&#8221; and my database name is &#8220;YOUR_DB_NAME&#8221;. Thank you!</em>&#8220;</p><cite>An example of what you may submit as a support request ticket.</cite></blockquote>



<h2 class="wp-block-heading">2   Importing the data</h2>



<p>To import the files to the new hosting service, first copy the files into the new &#8220;public_html&#8221; directory at your host. If you are doing this for an addon domain name (e.g. a subdomain), then put the files in the document root of that sub/addon domain. This can be done through a file manager like cPanel or, you can connect to the new host over FTP and do that way.</p>



<p>After doing this, the next step is to import the database. If you have access to phpMyAdmin, you can import the database using the &#8220;Import&#8221; button (see figure 2) or you can ask your hosting provider to import it for you.</p>



<h3 class="wp-block-heading">2.1   Importing the database</h3>



<p>When it comes to the database, there is an important note to make here. </p>



<p>If the database has been imported at the new host, take note of the database name as it may have been updated to something else. If so, note that down as you will need to make some adjustments to your &#8220;wp-config.php&#8221; file. </p>



<p>The next step is to create database users which can be done within your hosting service&#8217;s MySQL/MariaDB portal. You should be able to create a DB user and give it a password. If there is already one created, you can use that however, be sure to note down the username and password.</p>



<p>The final step is to ensure that the database user is connected to the database itself. This functionality will be in the hosting portal (e.g. cPanel or similar) however, if you do not have this functionality, you can request your hosting provider to do this for you. Simply ask this following in your support ticket:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p><em>&#8220;Hi there, can you please add attach my database user to my database with the correct privileges? The database is &#8220;YOUR_DB_NAME&#8221; and the user is &#8220;YOUR_DB_USER&#8221;. Thank you!</em>&#8220;</p><cite>An example of what you may submit as a support request ticket.<br></cite></blockquote>



<h3 class="wp-block-heading">2.3   Updating &#8220;wp-config.php&#8221;</h3>



<p>At the new host, what you want to do is edit the &#8220;wp-config.php&#8221; file and make sure that the database that was migrated over and the username are updated. They should match what was created at the new host.</p>



<p>To edit the &#8220;wp-config.php&#8221; file, it can be done through FTP or, you can do this directly from your hosting control panel (e.g. cPanel File Manager).</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="552" height="247" src="https://www.tekbyte.net/wp-content/uploads/2021/12/image-1.png" alt="" class="wp-image-522" srcset="https://www.tekbyte.net/wp-content/uploads/2021/12/image-1.png 552w, https://www.tekbyte.net/wp-content/uploads/2021/12/image-1-300x134.png 300w" sizes="auto, (max-width: 552px) 100vw, 552px" /><figcaption><strong>Figure 3.</strong> An example of what the &#8220;wp-config.php&#8221; file may look like. Be sure to update these details to match the ones at the new hosting provider. As for the password, it will be in plaintext.</figcaption></figure></div>



<p>Let&#8217;s move onto testing the site!</p>



<h2 class="wp-block-heading">3   Testing the site</h2>



<p>With WordPress sites, the best way to test the site without making it live just yet is to use a method known as the &#8220;hosts file&#8221;.</p>



<p>In simple terms, this allows you to skip the DNS altogether and point the domain name to a server&#8217;s IP address. </p>



<p>If you would like to know how you can hosts file your site, please refer to this handy guide created by HowToGeek: https://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/ </p>



<p>For example, if I wanted to host file my website, &#8220;tekbyte.net&#8221;, it will need to add something like this to my hosts file:</p>



<pre class="wp-block-code"><code>194.195.249.25 tekbyte.net www.tekbyte.net</code></pre>



<h2 class="wp-block-heading">4   Updating the DNS</h2>



<p>If you have tested your newly migrated site and it is all working nicely, the next step is to update your DNS. This will likely be done from the place you are managing the DNS from. In most cases, it will be your registrar but it may also be your host. The way you can find out is by doing a nameserver lookup.</p>



<p>To do this, use the following link and simply enter your domain name and click on &#8220;NS&#8221; from the dropdown. </p>



<ul class="wp-block-list"><li>WhatsmyDNS: https://whatsmydns.net</li></ul>



<p>All it involves is updating the root domain A record and ensuring that the &#8220;www&#8221; record is also setup correctly. In some cases, the &#8220;www&#8221; record is a CNAME but it can also be an A record. I have provided an example below. </p>



<pre class="wp-block-code"><code>Record Type: A
Host: tekbyte.net
Value: 194.195.249.25

Record Type: CNAME
Host: www.tekbyte.net
Value: tekbyte.net

NOTE: You want to replace the IP address with your hosting provider's one. </code></pre>



<p>That&#8217;s it! Once you have updated your DNS, simply allow a couple hours for the DNS records to propagate and you should be good to go!</p>



<h2 class="wp-block-heading">The Alternative</h2>



<p>These days, most developers will migrate their sites using plugins like &#8220;AIO WP Migration&#8221; or &#8220;Duplicator&#8221;. The reason being is that they save a lot of time and can make migrations effortless as they export all the primary website content files and the only thing the user needs to do is install the plugin on a fresh WordPress instance and restore the backup generated by the plugin.</p>



<p>This article is aimed at people who want to know what it takes to migrate a site manually and what you would say to a hosting provider&#8217;s technical support team if you&#8217;d require assistance. </p>



<h2 class="wp-block-heading">Common Issues</h2>



<p>After a migration, if you notice issues with your site not loading, there are a number of things to check. I will address the most common ones now:</p>



<h3 class="wp-block-heading">Error establishing a database connection</h3>



<p>This is a common one which pops up and it can mean any of the following:</p>



<ul class="wp-block-list"><li>The database credentials in the &#8220;wp-config.php&#8221; file are mismatched</li><li>DB user permissions are not set up</li><li>MySQL service is down (i.e. mysqld is down at the host)</li></ul>



<h3 class="wp-block-heading">White screen of death</h3>



<p>Check the .htaccess and also the &#8220;error_log&#8221; file. If you notice the issue is related to a plugin, go into the &#8220;wp-content/plugins&#8221; directory and disable the plugin that is causing the issues. All you have to do is rename the folder (e.g. &#8216;wordfence&#8217; &#8211;> &#8216;wordfence_disabled&#8217;).</p>



<p>Also, check your .htaccess file and remove any PHP AddHandlers as that will clash your new hosting provider&#8217;s PHP version</p>



<h3 class="wp-block-heading">Error 500</h3>



<p>Often related to the PHP version. You may want to ask your hosting provider to upgrade or downgrade the PHP version for your site. This is often the case with old sites which need to use older versions of PHP (e.g. 5.6 or older).</p>



<h3 class="wp-block-heading">Error 503</h3>



<p>This one is typically resource issues. That can be rectified by checking the current resource usage (you can ask your hosting provider for support). If you have a heavy eCommerce site, you may want to consider asking for a CPU, Memory or I/O increase. Sometimes the number of processes can also cause troubles.</p>



<h3 class="wp-block-heading">Error 403</h3>



<p>This one can be related to the following:</p>



<ul class="wp-block-list"><li>Firewall block (IP related)</li><li>Mod Security firewall block (often triggered by plugins)</li><li>.htaccess file </li><li>Plugins (e.g. WordFence).</li><li>File permissions</li></ul>



<p>With server status codes, hosting providers can often rectify this issue for you. </p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>To summarise, migrating a WordPress site requires doing the following:</p>



<ul class="wp-block-list"><li>Export the WordPress files and database</li><li>Import them to the new host</li><li>Ensure that the &#8220;wp-config.php&#8221; file has been updated to reflect any changes at the new host</li><li>Test your site</li><li>Update your DNS</li></ul>



<p>Hope you found this useful!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.tekbyte.net/how-to-migrate-a-wordpress-site-manually/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Customizing PowerShell with oh-my-posh</title>
		<link>https://www.tekbyte.net/customizing-powershell-with-oh-my-posh/</link>
					<comments>https://www.tekbyte.net/customizing-powershell-with-oh-my-posh/#respond</comments>
		
		<dc:creator><![CDATA[Berk D.]]></dc:creator>
		<pubDate>Sun, 03 Oct 2021 08:11:43 +0000</pubDate>
				<category><![CDATA[all]]></category>
		<category><![CDATA[tutorials]]></category>
		<guid isPermaLink="false">https://www.tekbyte.net/?p=359</guid>

					<description><![CDATA[If you&#8217;re a long time Linux user or perhaps you&#8217;re someone who likes to customise things and uses Windows, then...]]></description>
										<content:encoded><![CDATA[
<p>If you&#8217;re a long time Linux user or perhaps you&#8217;re someone who likes to customise things and uses Windows, then this is the article for you.</p>



<p>I&#8217;ve had to switch to Windows (yes, you heard that right), and it&#8217;s been so far alright. I&#8217;ve had a number of problems with Linux (mainly due to hardware deficiencies) but I still use it daily. For my personal computing, I&#8217;ve decided to switch to Windows for the need of a larger app library software but also stability.</p>



<p>Anyways, coming back to the article, I&#8217;ll be showing you how you can turn your PowerShell from this:</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.tekbyte.net/wp-content/uploads/2021/10/image-1-1024x589.png" alt="" class="wp-image-479"/></figure>



<p>To this!</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="588" src="https://www.tekbyte.net/wp-content/uploads/2021/10/image-1-1-1024x588.png" alt="" class="wp-image-480" srcset="https://www.tekbyte.net/wp-content/uploads/2021/10/image-1-1-1024x588.png 1024w, https://www.tekbyte.net/wp-content/uploads/2021/10/image-1-1-300x172.png 300w, https://www.tekbyte.net/wp-content/uploads/2021/10/image-1-1-768x441.png 768w, https://www.tekbyte.net/wp-content/uploads/2021/10/image-1-1-1080x620.png 1080w, https://www.tekbyte.net/wp-content/uploads/2021/10/image-1-1.png 1175w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now I love a good BASH shell as but since I also use Windows, I thought I&#8217;ll tweak out the PowerShell prompt as well.</p>



<h1 class="wp-block-heading">What you&#8217;ll need</h1>



<ul class="wp-block-list"><li>Windows Terminal </li><li>Cascadia Code PL (PL = Power Line)</li><li>Windows 10 or 11</li></ul>



<h1 class="wp-block-heading">The steps</h1>



<p>While I would recommend you read the documentation, you can simply run these commands and you should be good to go. </p>



<ol class="wp-block-list"><li>Open up PowerShell as normal user and run the following command (when prompted, type &#8220;Y&#8221; and press enter, you might be asked twice):</li></ol>



<pre class="wp-block-code"><code>Install-Module oh-my-posh -Scope CurrentUser</code></pre>



<p>2. Once that&#8217;s installed, we want to allow PowerShell the ability to run remotely signed modules:</p>



<pre class="wp-block-code"><code>Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser</code></pre>



<p>3. The next step is to create a PowerShell profile so we can save some POSH specific settings. When you open up a PowerShell prompt, it will also automatically load your theme and settings, just like a <code>.bashrc</code> file in Linux. To do this, you can type <code>$profile</code> to find the profile path. By default, it is located in the &#8220;Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1&#8221; directory. If you have Visual Studio Code installed or any text editor that is configured in your PATH for that matter, you can run <code>code $profile</code> to edit your profile. </p>



<p>4. Add your import call and &#8220;Set-PoshPrompt&#8221; call. For my profile, I have the following:</p>



<pre class="wp-block-code"><code>Import-Module oh-my-posh
Set-PoshPrompt -Theme pure</code></pre>



<p>That&#8217;s it! You are ready to rock PowerShell with a fancy prompt now. This is what mine looks like:</p>



<p></p>



<h1 class="wp-block-heading">What&#8217;s next?</h1>



<p>I would recommend installing <code>git</code> as it&#8217;s a handy thing to have, especially if you&#8217;re planning on using PowerShell for any sort of file navigation and manipulation.</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.tekbyte.net/customizing-powershell-with-oh-my-posh/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Installing MATLAB on Fedora 34</title>
		<link>https://www.tekbyte.net/installing-matlab-on-fedora-34/</link>
					<comments>https://www.tekbyte.net/installing-matlab-on-fedora-34/#respond</comments>
		
		<dc:creator><![CDATA[Berk D.]]></dc:creator>
		<pubDate>Sun, 04 Apr 2021 04:45:30 +0000</pubDate>
				<category><![CDATA[all]]></category>
		<category><![CDATA[tutorials]]></category>
		<guid isPermaLink="false">https://www.tekbyte.net/?p=367</guid>

					<description><![CDATA[If you&#8217;re like me and you need to use MATLAB and you run Fedora, you would have likely ran into...]]></description>
										<content:encoded><![CDATA[
<p>If you&#8217;re like me and you need to use MATLAB and you run Fedora, you would have likely ran into some issues with launching MATLAB. For instance, when you go to run file with <code>./install</code> , you will get this error:</p>



<pre class="wp-block-code"><code>terminate called after throwing an instance of 'std::runtime_error'
what():  Unable to launch the MATLABWindow application
Aborted</code></pre>



<p>It took me quite a long time to find a swift and easy solution for this one. Turns out, all you need to do is have the following packages installed on your system and then remove one file.</p>



<pre class="wp-block-code"><code># install these packages:

sudo dnf install libxcrypt-compat libnsl</code></pre>



<p>The next step is to navigate into the <code>bin/glnxa64</code> folder inside the MATLAB Linux installation folder. In there, you want to either remove or rename the &#8220;libcrypto.so.1.1&#8221; file. I&#8217;ve renamed it so I have a backup just in case.</p>



<pre class="wp-block-code"><code>mv libcrypto.so.1.1 libcrypto.so.1.1_old</code></pre>



<p>After that, you can run the installer as root. </p>



<pre class="wp-block-code"><code>sudo ./install</code></pre>



<p>Once you&#8217;ve picked what you want installed and everything is activated, you can run MATLAB by typing <code>matlab</code> into the terminal and that will launch it.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.tekbyte.net/wp-content/uploads/2021/04/matlab-cropped-1024x702.png" alt="" class="wp-image-369"/><figcaption>Ah yes, the MATLAB splash-screen!</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.tekbyte.net/wp-content/uploads/2021/04/matlab-demo-1024x646.png" alt="" class="wp-image-370"/><figcaption>Ready to rock and roll!</figcaption></figure>



<p>While I can create a shortcut with &#8220;menulibre&#8221; so that I can launch it by typing, MATLAB is not something I use all the time so I&#8217;m happy to launch it from the terminal. I had some issues with creating a launcher where MATLAB would just crash, it could be because of GNOME Wayland but I&#8217;m not quite sure.</p>



<p>Also, big thanks to tinkertailorsoldiersponge for making the original guide. The original guide can be found here. (<a rel="noreferrer noopener" href="https://tinkertailorsoldiersponge.com/blog/matlab-r2020a-on-fedora-32" data-type="URL" data-id="https://tinkertailorsoldiersponge.com/blog/matlab-r2020a-on-fedora-32" target="_blank">tinkertailorsoldiersponge&#8217;s guide</a>) &#8211; I&#8217;ve simply omitted the need for installing the XFCE4 desktop as I use GNOME and I don&#8217;t find it&#8217;s necessary to get MATLAB working.</p>



<p>If you run into any issues, feel free to share them below and we&#8217;ll see what we can do. This guide is just for folks like me who run Linux and are running into the std::runtime_error error. </p>



<p>Thanks for reading and happy MATLABing!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.tekbyte.net/installing-matlab-on-fedora-34/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
