u/pepiks

I added MACs to FOG by GUI. When I start some PC start with menu and go to local drive if not selected anything, but some again and again boot to menu with delay 3 sec. I see 3... 2... 1... and showing menu again, 3..., 2..., 1... and it endless loop. It looks like need change some settings related to FOG menu, but I have not idea how and where. I look on the settings, but I have no idea how resolve this issue. Could you suggest solution for this?

reddit.com
u/pepiks — 7 days ago

JetBrains don't allow configure public and local Git server. I want personal source code save on my machines. Do you have any experience with something what can be easy added to JetBrains IDE (WebStorm, GoLand, PyCharm)?

Currently I see only Gitea on the table. I am looking for something which can handle shortcuts to make basics using without touching command in inbuilt terminal.

reddit.com
u/pepiks — 9 days ago
▲ 50 r/golang

Honestly I see a lot of service like well established in Poland Allegro service which use Go for one the most intensive part. Currently in comparision to Python apps (Flask mainly) I see only improvments and I am very happy. My apps can not exhaust very limited devices. I still have impression than I can add plenty and it will be works fine, but when I read Packt newsletter I see this part:

>One of the most underappreciated technical arguments for Rust in production systems is not about speed in the raw throughput sense. It is about predictability. Languages that rely on garbage collection, including Go, Java, and Node.js, introduce periodic pauses when the collector runs. Those pauses can last hundreds of milliseconds. An HTTP request that arrives during a GC cycle experiences higher latency than one that does not. The user on the receiving end did not do anything differently. They were just unlucky.

>Ciulla is candid about what this means in practice. “By not having a garbage collector on the back end side, you basically have flat latency. You don’t rely on luck, or on the user not being the unlucky one. It’s a problem that is removed.” For most web applications running at moderate scale, this distinction is invisible. For services with strict latency requirements, high concurrency, or SLAs that depend on consistent tail latency rather than average response time, it is one of the more significant architectural arguments available.

About dealing with Garbage collector manually I find out short article:

https://dev.to/jones_charles_ad50858dbc0/taming-gos-garbage-collector-for-blazing-fast-low-latency-apps-24an

So at the end I want dig this and my questions are:

  1. When flat latency in context Go app programming matters? On the most resource about net/http and webdevelopment in Go I don't see it as problem. It is even mentioned oppose - Go makes improvment by defualt for the most cases.

  2. When Garbage Collector need be adjusted manually to improve performance and what are real indicator when even touch it? Normally when I read about Go it is part skipped by default as "don't bother, use Go and move forward".

  3. When periodic pause in running apps have to be consider in design as real problem to handle? To speed up things Allegro use Go to cut delay from their service so it seems as not big deal in the most cases.

What do you think?

u/pepiks — 14 days ago
▲ 2 r/golang

I'm learning Go by coding net/http solution for my home users. They can access port, but I am looking for clever way to handle subdomain. So on Mikrotik I setup custom name menu.lan. When you open it you have dedicated Go app to show available options. When you select option on menu you go to dedicated app. My problem is how create more memorable names like news.menu.lan, streams.menu.lan, taxes.menu.lan etc.

My first shot is use Caddy for reverse proxy and handling names. The best will be make something which use specific folder for apps and detect folder name as subdomain automatically, but I have no idea how make this magic happened. Currently I server all apps as http to avoid anoying on all devices warning about dangerous site. I have no solution how avoid it without adding manually on all possible devices certificates.

List of apps is growing and I simply want less hustle with config and more time with coding not configuration access (if it is possible, underneath server OS is Debian).

What solution could you suggest? How make this configuring with less effort? As infrastructure is self hosted at my home I have no limits and full rights.

reddit.com
u/pepiks — 14 days ago

I have two machines - one based on Debian which has Samba AD (SRV2) and TFTP configured on it. As I am not sure about all devices depended on this configuration I want avoid stoping this and run TFTP on another machine with FOG based on rule if something working don't break it.

Current configuration use config file pxelinux.cfg /defualt:

MENU TITLE Main menu

LABEL local

MENU LABEL run from local drive

localboot 0

timeout 30

TOTALTIMEOUT 9000

LABEL acronix_x64

MENU LABEL Acronis x64

KERNEL menu.c32

APPEND pxelinux.cfg/acronis

I want modify this config by adding:

LABEL Run FOG

MENU LABEL Start FOG

KERNEL ipxe.lkrn

APPEND dhcp && chain tftp://IP-OF-FOG-MACHINE/fog/ipxe.php

My first goal is add to existing network boot menu possibility running FOG manually for testing and to avoid block all computers used by teachers and students in school.

Second goal is if it is working switch order in config and make FOG bootable to do imaging, restoring and normal booting computers, but I have no idea how translate localboot 0 to FOG config (boot from local drive to be sure that always computer if I not run something in FOG will run Windows OS from target machine in classroom). Inside web menu I found this:

https://preview.redd.it/32isimmqrswg1.png?width=3298&format=png&auto=webp&s=9b0cc78f9861bf477274bd31301a7486296b2166

which looks as interesting me place to setup this. Inside FOG itself I see suggestion using IPXE scripting, but I am not sure how finish my setup in correct way. So my questions are:

  1. My move with adding to config mentioned part to run FOG is correct?
  2. For correct use in classroom I have to manually add all MAC adress of target machines?

https://preview.redd.it/7r6jchgjsswg1.png?width=1824&format=png&auto=webp&s=4c3ae457c5b7301cd2fd0dd512cdf18293f8f59b

  1. FOG support running from Web Menu PCs based on WoL (wake on lan)?

Edit

I tried locate boot files and I only find this:

/var/www/fog/service/ipxe

/var/www/fog/lib/fog/ipxe.class.php

/var/www/fog/lib/fog/ipxemanager.class.php

/var/lib/mysql/fog/ipxeTable.ibd

/var/lib/mysql/fog/ipxeTable.frm

/root/fogproject/src/ipxe

/root/fogproject/src/ipxe/src/ipxescript10sec

/root/fogproject/src/ipxe/src/ipxescript

/root/fogproject/src/ipxe/src-efi/ipxescript10sec

/root/fogproject/src/ipxe/src-efi/ipxescript

/root/fogproject/packages/tftp/ipxe.lkrn

/root/fogproject/packages/tftp/ipxe.iso

/root/fogproject/packages/tftp/10secdelay/ipxe.lkrn

/root/fogproject/packages/tftp/10secdelay/ipxe.iso

/root/fogproject/packages/tftp/10secdelay/i386-efi/ipxe.efi

/root/fogproject/packages/tftp/10secdelay/ipxe.usb

/root/fogproject/packages/tftp/10secdelay/ipxe.krn

/root/fogproject/packages/tftp/10secdelay/arm64-efi/ipxe.efi

/root/fogproject/packages/tftp/10secdelay/ipxe.efi

/root/fogproject/packages/tftp/10secdelay/ipxe.kkpxe

/root/fogproject/packages/tftp/10secdelay/ipxe.kpxe

/root/fogproject/packages/tftp/10secdelay/ipxe.pxe

/root/fogproject/packages/tftp/i386-efi/ipxe.efi

/root/fogproject/packages/tftp/ipxe.usb

/root/fogproject/packages/tftp/ipxe.krn

/root/fogproject/packages/tftp/arm64-efi/ipxe.efi

/root/fogproject/packages/tftp/ipxe.efi

/root/fogproject/packages/tftp/ipxe.kkpxe

/root/fogproject/packages/tftp/ipxe.kpxe

/root/fogproject/packages/tftp/ipxe.pxe

/root/fogproject/packages/web/service/ipxe

/root/fogproject/packages/web/lib/fog/ipxe.class.php

/root/fogproject/packages/web/lib/fog/ipxemanager.class.php

/root/fogproject/utils/FOGiPXE/buildipxe_forpublish.sh

/root/fogproject/utils/FOGiPXE/buildipxe.sh

Still, I can't figure out how correctly boot. I see I have problem with my menu item settings as it is not booting as expected. It can boot, but after very long time (to local drive, not FOG).

reddit.com
u/pepiks — 22 days ago

I am looking for some pointers how move on. I have installed on PC FOG server. I can access it from school classroom networks (all are in the same LAN) by webgui, I have configured saving location. I have TFPT configured on another machine (SRV) which is Samba Active Directory controller. From SRV I can run by LAN CloneZilla, but I have no idea how move forward with configuration of FOG to use it to create and restore backup of classroom PC.

On the SRV I have menu.c32, vesamenu.c32, chain.cfg, and linux vmlinuz - images to run from SRV. From common sense I should add special img to add posibility run FOG from LAN using boot from LAN? I can not find it in official docs:

https://docs.fogproject.org/en/latest/kb/faqs/fog-user-guide/#quick-start-basic-tasks

I stack on "Booting into FOG and Capturing your first Image". Could you suggest me how move in correct direction? Thank you for your help and I apologise if my question for you are silly.

Edit

To make more clear. Original on server SRV I have in pxelinux.cfg/MENU something like that:

#LABEL CloneZilla

#MENU LABEL Run Clonzilla

#KERNEL vmlinuz

#APPEND initrd=intrid.img boot=live config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="", ocs_live_batch="no" ocs_lang=""

vga=788 nosplash noprommpt fetch=tftp://160.45.12.1/filesystem.squashfs

How add access to FOG from this place? Is it possible?

reddit.com
u/pepiks — 28 days ago