Jump to content











Photo

Bug Reports, Requests, HowTo's about Tiny PXE Server

pxe network boot

  • Please log in to reply
783 replies to this topic

#776 matso

matso
  • Members
  • 9 posts
  •  
    Sweden

Posted 08 February 2018 - 07:46 PM

Just like to add that TFTPBlocksize is not implemented on some PXE solutions (for example Vmwares virtual PXE) 

 

Another nice feature to have in the MAP section would be a flag to do only first part of string replacement.

 

IE

/boot/=/demo/  would change

 

/boot/test/something into /demo/test/something but would not change anything in /test/boot/something


Edited by matso, 08 February 2018 - 07:49 PM.


#777 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14303 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 09 February 2018 - 11:14 AM

Also full Regular Expression support would be nice .... :whistling:

 

https://xkcd.com/208/

 

;)

:D

 

:duff:

Wonko


  • ZEE likes this

#778 erwan.l

erwan.l

    Gold Member

  • Developer
  • 2291 posts
  • Location:Nantes - France
  •  
    France

Posted 11 February 2018 - 04:55 PM

Also full Regular Expression support would be nice .... :whistling:

 

https://xkcd.com/208/

 

;)

:D

 

:duff:

Wonko

 

I could but "simple" mortals struggle with regular expressions.

Which would mean I should implement some sort of extra logic to detect if the user is using regex or not.

 

For now, this is a very basic search and replace feature with 2 exceptions :

-if the old pattern (to the right of the "=" in [map] section) is contained in the new pattern (left of "=" in the [map] section, nothing will happen - see why in post.

-order (for now) in which the keys under [map] are read is random (which is not helping :) )

procedure TfrmDHCPServer.OnReadFile2 (Sender: TObject; var FileName: String) ;
var
i:byte;
keys:tstringlist;
begin
//here we can modify the requested filename on the fly
//before the request gets to the TFTPD
try
if (h_map<>nil) then //do we have entries in the map section
  begin
  keys:=h_map.Keys ;
  if keys.Count =0 then exit;
  for i:=0 to keys.Count -1 do  //lets loop thru map entries
    begin
    if pos(lowercase(keys [i]),lowercase(filename))>0 then //we have a match
      begin
      if pos(lowercase(h_map.GetString(keys [i])),lowercase(filename))=0 then //lets replace only if filename does not contain our new string
        begin
        filename:=StringReplace(filename,keys [i],h_map.GetString(keys [i]),[rfIgnoreCase]); //NOT rfReplaceAll
        end;//if pos(h_map.GetString(keys [i]),filename)=0 then
       break; //we stop it there as we had a match, whether we actually modified the filename or not
      end;//if pos(keys [i],filename)>0
    end;//for i:=0 to keys.Count -1 do
  end;//if (h_map<>nil) then
except
end;


#779 ktp

ktp

    Silver Member

  • Advanced user
  • 758 posts

Posted 11 February 2018 - 05:04 PM

@erwan.l
 
Latest TPS version:
pxesrv.exe 
1.0.0.22
11/02/2018 17:39 
8231A2C337A64F6B8D8597E7C2315682
 
looks fine for me:
- switching configuration file (right click): OK.
- optional configuration file on command line: OK.
 
Thank you for your time and effort. Keep up the good work!
 


#780 Alex Defo

Alex Defo
  • Members
  • 1 posts
  •  
    Poland

Posted 26 April 2018 - 12:28 PM

Hello, I'm very slowly booted by PXE image wim using Tiny PXE Server 1.0.0.22. Tell me how to set up? I will be glad to any help, thank you. p.s. Wim image WinPe8.1 224mb time load 1.50m lan 1gb.

#781 kodos

kodos
  • Members
  • 1 posts
  •  
    Greece

Posted 18 September 2018 - 10:34 AM

question about discover.exe (for x64 system)

 

i use ipxe , send discover.exe/startnet.cmd (it contains the commands from discover.cmd)

and then i get an error "the subsystem needed to support the image type is not present"

 

do i need to "load" something else ? 

 

edit i guess is this a x64 issue, so is there any way to get the ip and other infos from command ?


Edited by kodos, 18 September 2018 - 11:10 AM.


#782 ZEE

ZEE

    Member

  • Members
  • 99 posts
  •  
    Portugal

Posted 18 September 2018 - 11:31 AM

Also full Regular Expression support would be nice .... :whistling:

 

https://xkcd.com/208/

 

;)

:D

 

:duff:

Wonko

 

I'm for that too :rolleyes:



#783 ZEE

ZEE

    Member

  • Members
  • 99 posts
  •  
    Portugal

Posted 18 September 2018 - 01:08 PM

Really helpful also would be if the the window is resizable

(at least vertically)

and the "console window" textbox (where messages are displayed)

auto-resizes to fill the available space...

 

This can all be done only in the Delphi IDE designer

adjusting some main window and textbox properties...

 

1.png



#784 ZEE

ZEE

    Member

  • Members
  • 99 posts
  •  
    Portugal

Posted 4 weeks ago

Really helpful also would be if the the window is resizable

(at least vertically)

 

and the "console window" textbox (where messages are displayed)

auto-resizes to fill the available space...

 

This can all be done easy in the Delphi IDE designer

by adjusting some main window and textbox properties...

 

tinypxe1.png







Also tagged with one or more of these keywords: pxe, network boot

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users