Results 1 to 8 of 8

Thread: Starting VNC server automatically in a PXE booted client

  1. #1

    Starting VNC server automatically in a PXE booted client

    Hello, I am working a a small customization and I don't want to re master 100% to get it done.

    I am basically PXE booting KNOPPIX 6.2 via a Windows2008 terminal server. Works pretty good I have exported the NFS share and have TFTP server running and am up and booting perfectly. Its almost perfect except for 2 things.

    1. I need to start up VNCSERVER automatically for the helpdesk to be able to remote support the PC

    (The PCs are being turned dumb and they will network boot knoppix and RDP into a windows terminal server).

    2. I need to get an RDP client icon on the desktop with an easy or centralized way to update the RDP session and connection information.

    I don't want a full blown re-master done. For many reasons involving the work and Q&A but my co- workers might not be able to support it if I ever leave my job or get hit by a bus.

    My preferred way is to edit the inittab.secure file(located in miniroot) to execute what I need.
    Does anyone have any suggestions? I need to start VNC server and set the password for the helpdesk. As well as get the "Terminal Server Client" icon on the desktop with some way of easily updating connection info.
    I was thinking of just making a saved connection file in /mnt-system and have the user load it. That way in the future I can just go in to windows server and edit the file in a txt editor to change a minor parameter if necessary.

    But the stumper is VNCSERVER, getting it to start and run for the helpdesk (with their preferred password set).

    Any help is appreciated.

  2. #2
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Not sure if I understand your problem correctly.

    You want to customized but yet you don't want to remaster. Then you just create a small persistent image to override the default. That will accomplish it, isn't it ?

    To start VNCServer I think you can customise one of those X11 startup scripts, say in /etc/X11/Xsession.d.

    As for creating an icon, it is a matter of create a file in /home/knoppix/Desktop.

  3. #3
    I don't want to use the hard drive if at all possible. So I will explain the situation better. We have a few thousand old P4 workstations in the field. We want to get a few more years out of them and not go to Windows7. So we are deploying a small 8core 16 gig windows terminal server to each 8 person office. Simple enough, but what to do about end points and facilitate a smooth transition that can be easily rolled back. My solution is to PXE boot Knoppix off this Windows Terminal server. If we have to roll back its as simple as booting to the hard drive again.
    Its all good except for the end users are dumb and rocks and will have issues with launching their terminal session or the helpdesk asking them to click three clicks to launch VNC server.

    I want the boot to be a clean slate each time to avoid the end user mucking themselves up in some way. You never know what they might do, so its a lot easier if the helpdesk can say Reboot and its fixed. So I have all my files in my tftp root and nfs root (thats my image, NFS and TFT are read only) and I have it booting great, its just how do I accomplish these two tasks in a very simple function. Also most of my coworkers are not super linux savvy so I have to keep the process simple step by step so they can repeat it if necessary.

  4. #4
    Oh thanks for /etc/X11/Xsession.d. I think that is what i was looking for.

  5. #5
    I think I found my solution for VNC,

    I Create a file called ~/.config/autostart/xvnc.desktop.

    Text inside:

    [Desktop Entry]
    Name=XVNC Server
    Exec=/usr/local/bin/xvnc.sh
    Icon=
    Type=Application

    Now su to root and do the following.

    Create a file called /usr/local/bin/xvnc.sh and place within it the following text:

    #!/bin/bash
    xhost +
    x11vnc -display :0 -forever -passwd "foobar" &

    And run chmod +x /usr/local/bin/xvnc/sh.

    Exit from root.

    Does that seem good? I might change the path from USR/local/bin/ to just the knoppix home dir to make it simple. Although I would like to hide the password file as much as possible.

  6. #6
    So thats not working, even when I put the files in to minirt.gz that I need, they just don't show up. So I am a bit confused.
    Any help Anyone?
    Only documentation I can find is about re-mastering the ISO not the already established PXE environment running on another OS.

  7. #7
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by Shockwaveudk View Post
    So thats not working, even when I put the files in to minirt.gz that I need, they just don't show up. So I am a bit confused.
    Any help Anyone?
    Only documentation I can find is about re-mastering the ISO not the already established PXE environment running on another OS.
    If you are keeping the stuff in /home/knoppix, it is likely it is not propagated to the life system. You can try keeping it in some other directories, based on reading the code in minirt.gz ( ie 'init' ), these directories are propagated :-

    boot etc sbin var lib opt root usr bin

    But nothing is stopping to from modifying it.

  8. #8
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    I'm quite sure I don't understand the situation, but I'll try one question: Do you get the persistent image correctly mounted and functioning on your PXE booting? If so, you should be able to add whatever files and directories you need there. They should be saved etc. Whether you use, say, /home/bin or /urs/local/bin should not make any difference if things run correctly.
    If you don't, which your experience may indicate, you might try modifying minirt to copy necessary files from a directory there to the aufs-mounted ramdisk. Or, as kl522 hints, to some directory that gets propagated.
    It should not be necessary to remaster in such cases - but OTOH, with a remastering, you can include a tailored /home in the compressed image, so that local modifications can be kept minimal.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HP Z440 WORKSTATION XEON E5-1603V3 @ 2.80GHz, 16GB RAM 250 GB SSD Win 11 picture

HP Z440 WORKSTATION XEON E5-1603V3 @ 2.80GHz, 16GB RAM 250 GB SSD Win 11

$119.99



HP Z420 Workstation Xeon E5-2690 v2 3ghz 10-Cores 64gb  240gb SSD  1TB  Win10 picture

HP Z420 Workstation Xeon E5-2690 v2 3ghz 10-Cores 64gb 240gb SSD 1TB Win10

$109.99



Lenovo Thinkstation P510 E5-1620 V4 16GB RAM 512GB SSD DVD Quadro M2000 W10 Pro picture

Lenovo Thinkstation P510 E5-1620 V4 16GB RAM 512GB SSD DVD Quadro M2000 W10 Pro

$164.95



Dell Precision 5810 Workstation Xeon E5-1650 6C 3.5GHz 16GB 500GB Win10 K2200 picture

Dell Precision 5810 Workstation Xeon E5-1650 6C 3.5GHz 16GB 500GB Win10 K2200

$124.67



SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor picture

SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor

$5.29



Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1 picture

Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1

$39.99



Intel Xeon E5-2697 V4 2.30 GHz 18C 2011-3 2400MHz 45MB 145W SR2JV CPU Processor picture

Intel Xeon E5-2697 V4 2.30 GHz 18C 2011-3 2400MHz 45MB 145W SR2JV CPU Processor

$49.99



Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU picture

Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU

$39.99



HP Z820 Workstation 20-Core 2.50GHz E5-2670 v2 128GB No HDD No OS picture

HP Z820 Workstation 20-Core 2.50GHz E5-2670 v2 128GB No HDD No OS

$284.89



HP Z640 Desktop Server Xeon E5-2620 v3 32GB DDR4 RDIMM Quadro K2200 1TB SSD picture

HP Z640 Desktop Server Xeon E5-2620 v3 32GB DDR4 RDIMM Quadro K2200 1TB SSD

$199.99