Results 1 to 2 of 2

Thread: start scripts automatically

  1. #1
    Junior Member
    Join Date
    Dec 2003
    Posts
    1

    start scripts automatically

    I'm using knoppix 3.3 from CD as a firwall for a small network. It works great for this. I'd like to be able to automatically mount the USB flash drive (that contains the firewall script) and run the firewall script at boot w/o any user intervention. I can't figure out how to do this and as of now, I'm manually doing these two tasks. Like I said, the firewall works *great* ... I'd just like to be able to run it automatically. Any ideas? I do not want to do a hdd install.

    Thanks!!!

  2. #2
    Senior Member registered user
    Join Date
    Sep 2003
    Posts
    106
    I auto run a setup script for my modem this way:
    I put a shortcut in my autostart folder to run a script that activates my modem at startup. Then when I want to get on the internet, I click on a desktop KPPP icon that connects and launches Mozilla. Here's the script:

    #!/bin/bash
    # Save this file as modem.sh in /home/knoppix
    # Set up a persistent home with Knoppix so files will stay put
    # Make a shortcut called Modem on the desktop or in your autostart folder.
    # In the shortcut under Execute put: sudo -s /modem.sh
    # Check Run in terminal and it will do that as root
    # Run this Modem shortcut to dial-up if your modem has not been activated.
    # These lines, will be run as root, and activate the Lucent winmodem:
    cd /home/knoppix/tmp
    mknod /dev/ttyLT0 c 62 64
    chmod a+rw /dev/ttyLT0
    ln -sf /dev/ttyLT0 /dev/modem
    insmod -f lt_modem.o
    insmod -f lt_serial.o
    # This line changes the user to knoppix, starts KPPP, and connects to MyISP.
    # Uncomment the line if you want to use it:
    # su knoppix -c 'kppp -c MyISP'
    # --------------------------
    # Make a desktop shortcut called KPPP. In the shortcut
    # Under Execute put: kppp -c MyISP
    # Where "MyISP" is the name of your dial-up account
    # Run this KPPP shortcut to dial-up if your modem has already been activated.
    # Set KPPP to redial on disconnect if pppd always dies on the first try.
    # In KPPP, under your account, execute, on connect, put: mozilla
    # If you want Mozilla to launch automatically on connect.


    I use a custom autostart folder so that Konqueror doesn't launch every time I start Knoppix:
    Right click on the desktop, click configure desktop, then paths, to make the change. I use: /home/knoppix/autostart. Then move showindex.desktop out and put the modem shortcut in.

Similar Threads

  1. Running commands & shell scripts automatically at boot
    By sunburnt in forum Tips and Tricks
    Replies: 5
    Last Post: 05-28-2005, 05:39 PM
  2. Crontab won't start automatically in the startup
    By ghetto_blaster in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 05-16-2005, 09:09 AM
  3. x-server does not start automatically
    By Mr.45er in forum General Support
    Replies: 2
    Last Post: 10-06-2004, 01:21 AM
  4. How to make apache 1.3 automatically start at boot?
    By Zero_1984 in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 09-28-2004, 04:57 AM
  5. start sshd automatically
    By paradox87 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 06-16-2004, 11:38 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
  •  


Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays

$259.99



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell PowerEdge R730XD Server 2x E5-2695 V4 = 36 Cores H730p 32GB RAM 4x trays picture

Dell PowerEdge R730XD Server 2x E5-2695 V4 = 36 Cores H730p 32GB RAM 4x trays

$649.99



Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD picture

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD

$99.99



Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5

Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w

$174.95



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99



Dell PowerEdge R620 Dual Intel Xeon E5-2640 v2 @2.00GHz 192GB RAM No HDD H710P picture

Dell PowerEdge R620 Dual Intel Xeon E5-2640 v2 @2.00GHz 192GB RAM No HDD H710P

$250.00



Dell Poweredge T420 SFF 2x E5-2430 v2 2.5Ghz / 64gb / H710 / 8x Trays / 2x 495w picture

Dell Poweredge T420 SFF 2x E5-2430 v2 2.5Ghz / 64gb / H710 / 8x Trays / 2x 495w

$394.99



Dell R640 Diskless Servers 2x Gold 18-Cores 6254 3.10GHz CPU, 32gb RAM, No Raid picture

Dell R640 Diskless Servers 2x Gold 18-Cores 6254 3.10GHz CPU, 32gb RAM, No Raid

$699.00



New Dell PowerEdge R740 R740XD Left Riser 3A PCI Board DTTHJ picture

New Dell PowerEdge R740 R740XD Left Riser 3A PCI Board DTTHJ

$39.99