Tag: howto

Hetzner Cloud – how to use Floating IP as the default

So Hetzner offers a “floating IP” feature which is basically an IP address you can assign to various servers.

But!

If you follow Hetzner’s official wiki [ https://wiki.hetzner.de/index.php/Cloud_floating_IP_persistent/en ], you will just end up with a “new IP”. The default will remain. Your server will be reachable from both, but this behavior can cause issues with various tools.

So, I just change out the default IP to the floating one. If I ever need to re-assign the floating IP, I’ll just open up the Console from the Hetzner website and change it back out.

Steps to use floating as default IP. Both incoming & outgoing.

1. Install resolvconf. For some reason we need to set our own DNS otherwise the server won’t be able to do DNS lookups. Worry not, this is a very easy and simple step.

# let’s install the package
sudo apt update && sudo apt install resolvconf

# let’s open the ‘head’ file
sudo nano -w /etc/resolvconf/resolv.conf.d/head

# add a DNS such as Cloudflare and Google
nameserver 1.1.1.1
nameserver 8.8.8.8
nameserver 8.8.4.4

2. Check the default gateway address. Without touching anything, you should check what gateway do you currently use. This can be done easily with the following command:

ip route | grep default

Note down the IP address you get. Example: “111.32.1.1”.

3. Back up the default, current network configuration.

sudo cp /etc/network/interfaces.d/50-cloud-init.cfg /root/50-cloud-init.cfg

This copy, as it is here, will copy the file into /root/. You can place it anywhere, name it anyhow. This is only an example of course.

4. Open the .cfg file for edit.

sudo nano -w /etc/network/interfaces.d/50-cloud-init.cfg

5. You need to edit the eth0 part. So it becomes:

auto eth0
iface eth0 inet static
address <your.floating.ip>
netmask 32
dns-nameservers <leave them here>
gateway <write here the noted gateway ip>


You can save the file and exit. (CTRL+O and then CTRL+X).

6. At this point you can restart networking, or do a reboot. I would recommend a reboot, just to be on the safe side.

7. Once your VM boots up, only the floating IP should be in use and you should be able to ping IPs and domain addresses both.

Good luck!

{ 1 Comment }

How to use Intel Extreme Tuning Utility in Task Scheduler

First of all, make sure you test your values and settings for a week at least. Try it under Prime95, try it with Blender, try it with Office work, try compiling, try idle state (yes, that too). You have to practically test every workload, because each behaves different and any can result in a BSOD.

Now, once you have your rock-solid values…

Why do I have to put it in Task Scheduler?

Intel’s tool has dementia. It will apply the values and keep them. For some time. Then it randomly reverts them. No, not only when there is a BSOD – which is a very cool and awesome failsafe mechanism. But just randomly.

Why use Intel Extreme Tuning Utility?

Well, you can undervolt the CPU for example. I use it for that. My CPU can do -0,45mV stable (which is not a whole lot, but it helps a lot.) You can see my values in the example script.

Okay, shut up, give me my script…

Save the following code into a .bat, and set Task Scheduler to apply it.
– MAKE SURE to check “Delay task for:” and set it to at least 1 minute. (this provides you a safe window. if you ever decide to go full retard, you have 1 minute to save your PC at each reboot. godspeed.)
– At log in
– Kernel-Power event 507 (this is from waking up from hibernate)
– Wherever/whenever else you would like to run this
– Make sure to check “Run with highest privileges”
(Yes, I used a now outdated Reddit post for the kernel power event and delay tip.)

REM INFO
REM find IDs by using
REM "C:\Program Files (x86)\Intel\Intel(R) Extreme Tuning Utility\Client\XTUCli.exe" -i tuning xml

REM Source: https://blog.brankovucinec.com/2017/07/04/check-if-service-is-running-and-start-it-when-it-is-not-running/
REM Check if XTU service is running and start if not
@ECHO OFF
SET SvcName=XTU3SERVICE

SC QUERYEX "%SvcName%" | FIND "STATE" | FIND /v "RUNNING" > NUL && (
ECHO %SvcName% is not running
ECHO START %SvcName%

NET START "%SvcName%" > NUL || (
ECHO "%SvcName%" wont start
REM EXIT /B 1
)
ECHO "%SvcName%" is started
REM EXIT /B 0
) || (
ECHO "%SvcName%" is running
REM EXIT /B 0
)

REM -45 mV undervolt for Core + Cache
cd "C:\Program Files (x86)\Intel\Intel(R) Extreme Tuning Utility\Client\"
XTUCli.exe -t -id 34 -v 45
XTUCli.exe -t -id 79 -v 45

{ 4 Comments }

Driver mirror: Atheros AR8171/8175

Been having BSODs recently, thanks to the Qualcomm Atheros driver that Windows 10 supplies by default.
To install the driver, simply unzip the package, right click the .inf file, and select Install. Windows will install the new driver within moments. You can check the version in Device Manager easily. If it’s 2.1.0.26, you are good.

Link: http://blog.agx.co/shares/2018-01/win10-2.1.0.26-whql.zip

Source: https://www.ath-drivers.eu/download-driver-nr-315-for-atheros-AR8171-and-Windows10.html

 

{ Add a Comment }

LiquidSky + Parsec (not anymore)

NOTE: LiquidSky has gone downhill. Service quality is absolutely trash, crap. There is no service.

Just use Shadow.tech; Paperspace + Parsec; Simplay.
Stay away from LiquidSky. It’s a scam.

 

First of all, why would you do this?

  • Parsec has no service globally yet.
  • Parsec has a lower latency. Much lower.
  • Parsec has no video discolor / artifacting whatsoever.

So in many ways, Parsec’s client is just superior to LiquidSky’s. And it’s completely free.

1. Login to your SkyComputer

Start and log in to your SkyComputer using the LiquidSky client.
If you haven’t managed to get the LiquidSky windows client running on your Mac in some form, first follow this easy guide to install it using Wine.

2. Create a Parsec.tv account

Go to parsec.tv and create a new account

3. Install Parsec Gaming Server

Now you need to install the Parsec Gaming Server on your SkyComputer.
Go to the Parsec downloads page in a browser on your SkyComputer
and download the Parsec Gaming Server.
Install it on your SkyComputer.

4. Turn off automatic timeout

Make sure automatic timeout in your SkyComputer is set to None, or else your SkyComputer will shut down during your mythic Karazhan run. You can start/shut down your LiquidSky from your Android client. You can also shut down your machine once you are done by simply using the Windows “shutdown” in your SkyComputer.

5. Change the following config file:

By default, your SkyComputer hides your cursor.
We want to turn this off by editing a simple line in the sky.cfg file.
Open the file sky.cfg in the directory C:\Windows\liquidsky.
Change the ShowCursor=0 value to ShowCursor=1.
Restart your SkyComputer to make this change active.

Original guide was posted here: https://parsec.carrd.co/
(This is more or less a backup for myself and the public.)

{ Add a Comment }