-
Senior Member
registered user
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
-
Senior Member
registered user
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..
-
Senior Member
registered user
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.
-
Senior Member
registered user
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
-
By trondiz in forum Customising & Remastering
Replies: 3
Last Post: 07-26-2007, 08:44 PM
-
By WaKa in forum The Lounge
Replies: 2
Last Post: 06-14-2006, 12:57 AM
-
By monkeyking in forum MS Windows & New to Linux
Replies: 1
Last Post: 01-03-2005, 10:19 PM
-
By obsoleto in forum General Support
Replies: 1
Last Post: 06-02-2004, 05:43 AM
-
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
-
Forum Rules

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit
$99.99

Corsair Vengeance LPX 32GB (2x16GB) DDR4 3200MHz CL16 CMK32GX4M2E3200C16
$159.99

(LOT of 8) Samsung 32GB 2Rx4 PC4-2666V-RB2-12 DDR4 Cisco Server RAM Tested 100%
$1299.99

Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC
$29.99

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

16GB Total of SK hynix PC3L-12800S 2 sticks of 8GB each = 16GB Laptop Memory
$27.95

Samsung 8GB DDR4 SO-DIMM PC4-3200AA 260-Pin RAM M471A1G44BB0-CWE Module
$29.25

RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED
$445.00

Corsair Vengeance LPX 32GB (4x8GB) RAM DDR4 3000MHz CMK32GX4M4C3000C15
$139.99

8GB DDR3 SODIMM RAM Upgrade Kit (2x4GB) for MacBook, iMac, Mac Mini - 1067MHz/10
$50.99