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
  •  


***NEW*** BCM RX67Q Gaming Motherboard | Intel Q67 2nd/3rd Gen. | LGA1155 | DDR3 picture

***NEW*** BCM RX67Q Gaming Motherboard | Intel Q67 2nd/3rd Gen. | LGA1155 | DDR3

$29.77



ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield picture

ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield

$42.00



Micro ATX Desktop Motherboard ASUS H110M-C LGA 1151 picture

Micro ATX Desktop Motherboard ASUS H110M-C LGA 1151

$31.95



MSI A320M-A PRO AM4 AMD A320 USB3.2 Gen1 Micro-ATX Motherboard picture

MSI A320M-A PRO AM4 AMD A320 USB3.2 Gen1 Micro-ATX Motherboard

$46.99



Gigabyte AMD B550 UD AC Gaming Motherboard - AMD B550 Chipset - AM4 Socket - AMD picture

Gigabyte AMD B550 UD AC Gaming Motherboard - AMD B550 Chipset - AM4 Socket - AMD

$89.99



Gigabyte GA-B75M-HD3 Intel LGA1155 DDR3 Desktop Motherboard MicroATX USB 3.0  picture

Gigabyte GA-B75M-HD3 Intel LGA1155 DDR3 Desktop Motherboard MicroATX USB 3.0

$26.99



ASUS Prime Q270M-C LGA1151 DP HDMI VGA SATA 6GB/s USB 3.0 MicroATX Motherboard picture

ASUS Prime Q270M-C LGA1151 DP HDMI VGA SATA 6GB/s USB 3.0 MicroATX Motherboard

$37.99



MSI B450M PRO-VDH MAX AM4 AMD B450 USB3.2 Micro-ATX Motherboard picture

MSI B450M PRO-VDH MAX AM4 AMD B450 USB3.2 Micro-ATX Motherboard

$67.99



BTC-S37 Mining Motherboard Kit /w SSD & Ram Preinstalled picture

BTC-S37 Mining Motherboard Kit /w SSD & Ram Preinstalled

$59.99



MSI ‎B550M PRO-VDH WIFI Socket AM4 AMD Motherboard picture

MSI ‎B550M PRO-VDH WIFI Socket AM4 AMD Motherboard

$80.00