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
  •  


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



Samsung 128GB (4x 32GB) M86B4G70DM0-CMA3 PC3-14900L 4Rx4 DDR3 ECC Reg Server Mem picture

Samsung 128GB (4x 32GB) M86B4G70DM0-CMA3 PC3-14900L 4Rx4 DDR3 ECC Reg Server Mem

$39.99



Samsung 16GB 2Rx4 PC4-2400 RDIMM DDR4-19200 ECC REG Registered Server Memory RAM picture

Samsung 16GB 2Rx4 PC4-2400 RDIMM DDR4-19200 ECC REG Registered Server Memory RAM

$20.99



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture

HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM

$9.64



8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A picture

8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A

$12.00



Kingston KCP424SD8/16 16GB DDR4 2400Mhz Memory RAM picture

Kingston KCP424SD8/16 16GB DDR4 2400Mhz Memory RAM

$15.00



A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96



A-Tech 128GB 2x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 128GB 2x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$143.98