Results 1 to 4 of 4

Thread: Need to run sh script as root at startup (SOLVED)

  1. #1
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198

    Need to run sh script as root at startup (SOLVED)

    I am running knoppix 6.2 on ibm thinkpad x40 which has a trackpoint and I found some commands which enable the sensitivity of the trackpoint and I placed them in sh script file but I have to run it with sudo and I dont know how to autoexecut it at startup so I dont have to enter it manually every time I start knoppix. Here are the commands in my trackpoint.sh file:

    echo -n 1 > /sys/devices/platform/i8042/serio1/press_to_select
    echo -n 170 > /sys/devices/platform/i8042/serio1/speed
    echo -n 250 > /sys/devices/platform/i8042/serio1/sensitivity

    I just need to run trackpoint.sh as root at startup automatically. And I have one more question I am not able to change the window decoration bar on top of the windows. All that lxde appearance does is to change the scroll bars and menu colors. Thanks everyone for the help

  2. #2
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Have you tried either to append these commands to /etc/rc.local, or having that script call trackpoint.sh?
    Looks like typical init stuff to me. Outside startup, I think it's just to prepend "sudo" to the commands in a script you want to execute with root privileges, at least it seems so to me.

    As for decorations - LXDE is lightweight, but I think you have some choices. The first thing to check is to see what Compiz does - if you use that. Think the window headers all went away when I chose "no window decorations" in Compiz setup..

  3. #3
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    I just tryed to append the commandsin rc.local as you advised me, but it did not work. Even to call the script has to be with root privileges and I dont know how to do it. I am newbiein linux- trying to learn. As for compiz I run knoppix with no3d option because compiz crashes constantly on my laptop for some reason, and I like it without compiz anyway.

  4. #4
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198

    SOLVED

    Thank you so much for the great help I mistakenly appended the commands after the exit command in rc.loacal - I fixed it up and it worked now I have my trackpoint auto starting

    THANK YOU Capricorny

Similar Threads

  1. Autorun Citrix ICA on startup [SOLVED]
    By trondiz in forum Customising & Remastering
    Replies: 3
    Last Post: 07-26-2007, 08:44 PM
  2. Boot startup solved
    By WaKa in forum The Lounge
    Replies: 2
    Last Post: 06-14-2006, 12:57 AM
  3. how do I run a script on startup
    By monkeyking in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 01-03-2005, 10:19 PM
  4. Need help with startup script.
    By obsoleto in forum General Support
    Replies: 1
    Last Post: 06-02-2004, 05:43 AM
  5. Startup Script doesn't run
    By orcslayer in forum General Support
    Replies: 1
    Last Post: 01-03-2004, 02:04 AM

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 EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p picture

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p

$499.88



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 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 R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD

$378.93



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W

$409.99



Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700 picture

Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700

$289.99



Dell PowerEdge R640  8xSFF Server Barebone 2 x Heat Sink w / 2x 1100W PSU picture

Dell PowerEdge R640 8xSFF Server Barebone 2 x Heat Sink w / 2x 1100W PSU

$315.00



Dell PowerEdge R640 Server 2.10Ghz 32-Core 64GB RAM Startup picture

Dell PowerEdge R640 Server 2.10Ghz 32-Core 64GB RAM Startup

$763.95



Dell Poweredge C4130 2x LGA2011-3 1U 4x GPU Rackmount Server CTO (NO CPU/NO RAM) picture

Dell Poweredge C4130 2x LGA2011-3 1U 4x GPU Rackmount Server CTO (NO CPU/NO RAM)

$299.95



Dell PowerEdge R730 Server 2x Xeon E5-2630 V4 64GB DDR4 2TB HDD Rackmount picture

Dell PowerEdge R730 Server 2x Xeon E5-2630 V4 64GB DDR4 2TB HDD Rackmount

$489.99