Results 1 to 6 of 6

Thread: Saving/loading configuration to/from ftp or www

  1. #1
    Junior Member registered user
    Join Date
    May 2003
    Location
    Tallinn, Estonia
    Posts
    19

    Saving/loading configuration to/from ftp or www

    Hey again.

    This is a idea what a friend of mine asked me about. Would it be possible to save the Knoppix configuration to the internet, and when booting, load it again from there, you just specify a url or a ftp addr.

    I am sorry if this has been covered before, but, still, I didn't find much about it in a quick search.

    So, basically, when you boot, you type something like:
    "knoppix conf=ftp://userassword@mysite.org/knoppixconf/"
    you may add the other usual tags to the end aswell, such as "desktop=kde wheelmouse" and so on.

    Why?
    Because, I don't know about the rest of you. But we use Knoppix in our school, because all computers have keyloggers in Windows, what are installed by other mean students. So we use Knoppix to avoid our precious data get out. But, since mostly we use computer during our break times, what last for 15-20min, we don't have much time to configure it all. So, if we could save the data to a website, then it would be faster to load it all up again. Also, we have pretty good internet connections in our school. And today, many people have acess to a webserver of a ftp server

    Wouldn't it be cool if you could do the following. Boot, then change your keyboard layout, then change the way KDE looks and save some documents, then exit Knoppix and it will save the data to a ftp or web server. Then, when you reboot, you will just type the url of it, and knoppix will download the data and you will continue your work.

    This would most likely be a major addition to Knoppix.

    The reasons I can think it can't be possible are, that the config is loaded before internet connection is established, I am not so sure about it anyway.

    So yeah, what do you think of my idea?

  2. #2
    Member registered user
    Join Date
    Jan 2003
    Location
    NY
    Posts
    86
    Hi there,

    I like this idea. I suggested it myself a couple of days ago but I think it might take a while to have it officially incorporated into the official knoppix. In any case, in the meantime, you can accomplish some of the same functionality by using these scripts:

    #!/bin/bash
    # Save this script as file savehome in the knoppix directory
    # This script takes the contents of the knoppix home directory and
    # saves it to a file
    tar -cvvf /ramdisk/knxhome.tar /home/knoppix
    gzip /ramdisk/knxhome.tar
    scp /ramdisk/knxhome.tar.gz username@mysite.org:/home/username/knxhome.tar.gz
    # end of savehome script


    #!/bin/bash
    # Save this script as file restorehome in the knoppix directory
    # This script restores the knoppix home directory from a remote file
    scp username@mysite.org:/home/username/knxhome.tar.gz /ramdisk
    cd /
    tar xfvz /ramdisk/knxhome.tar.gz
    # end of restorehome script


    I used scp instead of ftp because it is secure but you should be able to use ftp if security is not a consideration. After you save these files in the knoppix directory, make a copy of the restorehome script on your website also. (scp ~knoppix/restorehome username@mysite.org:/home/username/restorehome).

    How to use these scripts:
    1) before ending your knoppix session run the ~knoppix/savehome script from a console

    That's it. Everything should now be saved, including all settings for the knoppix user. You can turn off the PC now.

    2) Next time you use knoppix, boot in text-mode (knoppix 2)
    3) at the # prompt, type "wget mysite.org/~username/restorehome" , you may need to adjust the path depending on how your website is set up.
    4) at the # prompt type "./restorehome"
    5) at the # prompt type "init 5"
    Voila, you are back in your Xwindows session where you left off.

  3. #3
    Junior Member registered user
    Join Date
    May 2003
    Location
    Tallinn, Estonia
    Posts
    19
    wonderful, it would be even better, for a temporary fix, if we could possibly tweak the official iso file so, that it would contain all these features, would it be possible?

  4. #4
    Senior Member registered user
    Join Date
    Apr 2003
    Location
    Iowa U.S.A.
    Posts
    226
    Hello kriko & true1ever
    This is a great I idea to keep your work safe.
    My plan is somewhat similar. I boot from a
    floppy, have knoppix in CD drive 1, and
    no hard drive. I have a second CDRW on usb.
    It will burn a read-write CD if it has been
    erased. (Packet mode to read and write
    as a mounted hard drive is not now possible.)

    KNOPPIX Configure will not let me burn
    to the CDRW or restore from it. If
    I burn /home/knoppix from the root shell
    and restore it will this be equal to
    using KNOPPIX Configure to make and
    then restore persistant home?

    In other words does persistent home
    restoration effect any files or links
    outside of /home/knoppix?

    Best Wishes
    paradocs

  5. #5
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    298
    There's also something like 'webfolders', though I haven't tried to get it working. It's some kind of HTTP transfer protoco, that uses SSL for security. Could this be of any use? (I've got acces to ~38MB of remote diskspace via my mail-provider)

  6. #6
    Junior Member registered user
    Join Date
    May 2003
    Location
    Tallinn, Estonia
    Posts
    19
    I am still talking about thing what is more important here. You define your keyboard type, your desktop, your KDE config specifically and then save and load it to/from a server.

    Also, I have now another idea, basically, if in the webconfig, there is saved the boot variable "desktop=kde", and when you boot, you just enter:
    knoppix ftp://meass@myserver.com/myknoppixfolder

    and then it loads the boot variables from there and boots using them, but when during the boot, I type this:
    knoppix desktop=icewm ftp://meass@myserver.com/myknoppixfolder

    then it will not count what the web config has to say about what desktop are you going to load, it is going to load IceWM as this is defined in the boot properties.

Similar Threads

  1. Saving configuration?
    By politelyerased in forum General Support
    Replies: 1
    Last Post: 04-15-2005, 11:56 PM
  2. Replies: 9
    Last Post: 11-27-2004, 01:49 AM
  3. Replies: 3
    Last Post: 11-16-2004, 02:16 AM
  4. Loading configuration files from the floppy
    By mechanical_messiah in forum General Support
    Replies: 2
    Last Post: 09-17-2003, 03:45 PM
  5. Replies: 4
    Last Post: 02-28-2003, 08:01 PM

Posting Permissions

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


Cisco 2901/K9-V06 Integrated Services Gigabit Voice Router picture

Cisco 2901/K9-V06 Integrated Services Gigabit Voice Router

$69.99



Cisco Catalyst 3650 48-Port Managed PoE+ Gigabit Switch WS-C3650-48FS-E picture

Cisco Catalyst 3650 48-Port Managed PoE+ Gigabit Switch WS-C3650-48FS-E

$55.99



Cisco WS-C3850-48P-L 48-Port Gigabit 3850 PoE Switch w/ 715W+ C3850-NM-4-1G Mod picture

Cisco WS-C3850-48P-L 48-Port Gigabit 3850 PoE Switch w/ 715W+ C3850-NM-4-1G Mod

$83.00



Cisco C9300-48UN-A 48-port Network Advantage Switch w /C9300-NM-8+PWR-C1-1100WAC picture

Cisco C9300-48UN-A 48-port Network Advantage Switch w /C9300-NM-8+PWR-C1-1100WAC

$1194.00



Cisco Catalyst WS-C2960-48TT-L V02 48 Port Fast Ethernet Switch picture

Cisco Catalyst WS-C2960-48TT-L V02 48 Port Fast Ethernet Switch

$34.00



Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850 picture

Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850

$38.99



Cisco WS-C4948-10GE-S 4948-10GE 48 Port Gigabit +10GB Switch w single AC 15.0 OS picture

Cisco WS-C4948-10GE-S 4948-10GE 48 Port Gigabit +10GB Switch w single AC 15.0 OS

$99.99



Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03  picture

Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03

$8.00



Cisco C9300-48 48 Port Switch Dual PSU W/C9300-NM-8X P/N: C9300-48U-A Tested picture

Cisco C9300-48 48 Port Switch Dual PSU W/C9300-NM-8X P/N: C9300-48U-A Tested

$799.99



Cisco MS410-16-HW 16 Ports Fully Managed Ethernet Switch NEW Unclaimed picture

Cisco MS410-16-HW 16 Ports Fully Managed Ethernet Switch NEW Unclaimed

$999.99