Strona główna / Społeczność / Blog

Download current binary from site memtest.org. Now current version is 5.31b.

Extract file (in my case memtest86+-5.31b.bin).

Rename it and place somewhere in TFTP server:

as in previous posts my TFTP root is /data/tftpboot and I place all files in networkboot directory.

Add menu entry in pxelinux.cfg/default or as in my examples in pxelinux.cfg/4c4c4544-0042-4410-8053-b2c04f43334a (these magic numbers are my test PC UUID):

On fresh install ESXi 7.0 U2 you just need two commands:

First line configures address of remote syslog server - of course you have to change 192.168.1.28 to yours server IP.

Second one opens required ports on firewall.

My router configuration was:

I would like to change WPAD address (option 252) to wpad.lan so I've to remove (del_list) old entry and add (add_list) new one:

check, if everything is correct:

now, You can commit changes (write to /etc/config/dhcp file) and restart dnsmasq daemon:

On client you can check again using nmap command:

Last two attempts (one and two) to power off using just short press of power button didn't work or work only when when you are logged in.

Now I've just installed ACPI daemon:

This finally works for my home server.

My last resolution about power button works only when monitor is connected.

If you have headless server you can use systemd-logind service. By default (in CentOS 8) it do nothing. I've only found:

in /var/log/messages.

To change this behaviour you can modify

I've uncommented line

After thins restart service:

Now power key works on headless Linux server.

Booting to PXE (or iPXE) using dnsmasq is rather well documented also by Me ;-).

If You would like to use MikroTik it's not so easy (at least v6.43.2). I couldn't manage to boot iPXE using chainloading because of the infinite loop with the DHCP server.

Booting from PXE is also not so obvious. You cannot set option 66 (next-server/Server-Name) nor 67 (boot-file/Bootfile-Name) in "ip dhcp-server option". Instead set "Next Server" and "Boot File Name" in "ip dhcp-server network", so it should look like this:

I would like to upgrade kernel on diskless machine.

First upgrade system as regular one:

Copy new installed initramfs and vmlinuz files somewhere, I've copied them directly to TFTP server

as you can see my TFTP (and also PXE/iSCSI) server is 192.168.1.28.

Then you have to expose new files via TFTP server and modify PXE config files.

My TFTP server files are in /data/tftpboot, and I've decided to store boot files in /networkboot/CentOS7-2003 directory so:

You can edit /data/tftpboot/pxelinux.cfg/default. I've per-machine PXE config files that's why I added to /data/tftpboot/pxelinux.cfg/4c4c4544-0042-4410-8053-b2c04f43334a instead of default:

as you can see kernel and initrd are updated to point at new files.

When You test that system boots from this new config you can change set it as default.

To change power button behaviour in CentOS I've created file /etc/dconf/db/local.d/01-power:

and restart or update dconf:

Sources: Changing Behavior when Pressing the Power Button in Graphical Target Mode

Thin installation was tested on CentOS 7 nad CentOS 8

Prepare system

You will need java:

Create dedicated user

or shorter

Configure firewall

Create new service mincecraft-server file:

Then reload to read new service, enable it and reload to apply changes.

Prepare directories

Download JAR files

I'm preparing two versions: 1.12.2 and 1.15.2:

Now you have to chose one. In my example 1.12.2:

later you can remove this link and create it to another version, ie:

Configure RCON

Not necessary. Run all command as a "root" user.

Install packages
Download and compile

If you want to use RCON you have to adjust /opt/minecraft/server/server.properties file:

of course change strong-password to some strong password ;-)

Startup script

Create serivce file as root:

Run

You can check /opt/minecraft/server/logs/latest.log to see what is happening.

You should see something like this:

As you can see first start took more than 22s (not to bad - it's Core 2 Duo and iSCSI disk on 1GB network card - CentOS 8 version of Diskless computer using PXE and iSCSI)

Configure autostart

If you want to start Minecraf server automatically when system starts, just enable this service:

That's all.

When you want to use both of them to have to decide to which the clients will be connecting to. In my case packets goes to Dansguardian and then to Squid and finally to internet.

In standard configuration only Dansguardian knows clients IPs.

To provide user's IPs to Squid change Dansguardian configuration to forward them - change in dansguardian.conf (or dansguardianf1.conf, or whatever you have):

Be careful - if you don't use Squid (or some other secure proxy) you can publish you private IP addresses to whole world.

Then change Squid configuration (squid.conf) to allow to find the original source:

Of course restart both services.

It's pretty simple, but I forgot about this.

Ten kto umie pisze kod, ten kto nie umie pisze książki..., albo blog.

Pon Wt Śr Czw Pt So N
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30