Startup script not recognised
-
- Posts: 150
- Joined: Tue 29 Jan 2008, 21:11
- Location: Lancashire,U.K.
- Contact:
Startup script not recognised
Hi
just addes a script to Startup but Puppy is not loading it. It's the same script I have used before on Puppy and it has worked before. If I run it manually it works .
If I cd to startup and type sh blocktracker it loads
Puppy 528.004
Any ideas?
ta
just addes a script to Startup but Puppy is not loading it. It's the same script I have used before on Puppy and it has worked before. If I run it manually it works .
If I cd to startup and type sh blocktracker it loads
Puppy 528.004
Any ideas?
ta
- MinHundHettePerro
- Posts: 852
- Joined: Thu 05 Feb 2009, 22:22
- Location: SE
Code: Select all
chmod +x blocktracker
[color=green]Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285[/color]
Slackos & 214X, ... and Q6xx
[color=darkred]Nämen, vaf....[/color] [color=green]ln -s /dev/null MHHP[/color]
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285[/color]
Slackos & 214X, ... and Q6xx
[color=darkred]Nämen, vaf....[/color] [color=green]ln -s /dev/null MHHP[/color]
-
- Posts: 150
- Joined: Tue 29 Jan 2008, 21:11
- Location: Lancashire,U.K.
- Contact:
- MinHundHettePerro
- Posts: 852
- Joined: Thu 05 Feb 2009, 22:22
- Location: SE
Just a suggestion,
you could, for debugging purposes, insert the code in red below into /usr/sbin/delayedrun, starting at line 130
Cheers
/ MHHP
you could, for debugging purposes, insert the code in red below into /usr/sbin/delayedrun, starting at line 130
restart, and check the resulting /tmp/Startup_debug_log for clues (or post it here).#v2.17 suggested by andrei...
if [ -d /root/Startup ];then
for a in /root/Startup/*
do
echo -e "\n">>/tmp/Startup_debug_log
ls -Al "$a" >>/tmp/Startup_debug_log
[ -x "$a" ] && echo -e "executable">>/tmp/Startup_debug_log && $a &
sleep 0.2
done
fi
Cheers
![Smile :)](./images/smilies/icon_smile.gif)
[color=green]Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285[/color]
Slackos & 214X, ... and Q6xx
[color=darkred]Nämen, vaf....[/color] [color=green]ln -s /dev/null MHHP[/color]
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285[/color]
Slackos & 214X, ... and Q6xx
[color=darkred]Nämen, vaf....[/color] [color=green]ln -s /dev/null MHHP[/color]
-
- Posts: 150
- Joined: Tue 29 Jan 2008, 21:11
- Location: Lancashire,U.K.
- Contact:
Hi Bigpup it loads a list of ip addresses into iptables to block tracking from data harvester sites. Sorry for delay in replying we've got the builders in.
startup debug-log
-rwxr-xr-x 1 root root 1191 2012-04-11 21:59 /root/Startup/blocktracker.sh
executable /root/Startup/blocktracker.sh
-rwxr-xr-x 1 root root 10368 2010-08-21 14:32 /root/Startup/freememapplet_tray
executable /root/Startup/freememapplet_tray
-rwxr-xr-x 1 root root 766 2011-05-15 03:51 /root/Startup/fullstart
executable /root/Startup/fullstart
-rwxr-xr-x 1 root root 207 2010-12-29 03:57 /root/Startup/gamespatch.sh
executable /root/Startup/gamespatch.sh
-rwxr-xr-x 1 root root 2290 2011-08-08 00:11 /root/Startup/install-flashplayer
executable /root/Startup/install-flashplayer
-rwxrwxrwx 1 root root 133 2010-10-01 00:41 /root/Startup/load-touchpad-settings
executable /root/Startup/load-touchpad-settings
-rwxr-xr-x 1 root root 13736 2010-12-01 09:00 /root/Startup/network_tray
executable /root/Startup/network_tray
-rwxr-xr-x 1 root root 21 2009-08-23 13:18 /root/Startup/nodpms
executable /root/Startup/nodpms
-rwxr-xr-x 1 root root 12008 2010-10-06 14:58 /root/Startup/powerapplet_tray
executable /root/Startup/powerapplet_tray
-rw-r--r-- 1 root root 674 2009-11-19 09:03 /root/Startup/README.txt
-rwxr-xr-x 1 root root 77 2010-12-25 21:06 /root/Startup/run_fixmenus
executable /root/Startup/run_fixmenus
-rwxr-xr-x 1 root root 127 2011-08-03 03:20 /root/Startup/set-numlock
executable /root/Startup/set-numlock
-rwxr-xr-x 1 root root 28 2012-04-09 23:04 /root/Startup/ss-off
executable /root/Startup/ss-off
-rw-r--r-- 1 root root 114 2011-04-01 03:07 /root/Startup/stay-connected.sh
-rw-r--r-- 1 root root 627 2011-12-09 16:49 /root/Startup/test_if_connected
-rwxr-xr-x 1 root root 239 2012-04-11 10:07 /root/Startup/timesync.sh
executable /root/Startup/timesync.sh
startup debug-log
-rwxr-xr-x 1 root root 1191 2012-04-11 21:59 /root/Startup/blocktracker.sh
executable /root/Startup/blocktracker.sh
-rwxr-xr-x 1 root root 10368 2010-08-21 14:32 /root/Startup/freememapplet_tray
executable /root/Startup/freememapplet_tray
-rwxr-xr-x 1 root root 766 2011-05-15 03:51 /root/Startup/fullstart
executable /root/Startup/fullstart
-rwxr-xr-x 1 root root 207 2010-12-29 03:57 /root/Startup/gamespatch.sh
executable /root/Startup/gamespatch.sh
-rwxr-xr-x 1 root root 2290 2011-08-08 00:11 /root/Startup/install-flashplayer
executable /root/Startup/install-flashplayer
-rwxrwxrwx 1 root root 133 2010-10-01 00:41 /root/Startup/load-touchpad-settings
executable /root/Startup/load-touchpad-settings
-rwxr-xr-x 1 root root 13736 2010-12-01 09:00 /root/Startup/network_tray
executable /root/Startup/network_tray
-rwxr-xr-x 1 root root 21 2009-08-23 13:18 /root/Startup/nodpms
executable /root/Startup/nodpms
-rwxr-xr-x 1 root root 12008 2010-10-06 14:58 /root/Startup/powerapplet_tray
executable /root/Startup/powerapplet_tray
-rw-r--r-- 1 root root 674 2009-11-19 09:03 /root/Startup/README.txt
-rwxr-xr-x 1 root root 77 2010-12-25 21:06 /root/Startup/run_fixmenus
executable /root/Startup/run_fixmenus
-rwxr-xr-x 1 root root 127 2011-08-03 03:20 /root/Startup/set-numlock
executable /root/Startup/set-numlock
-rwxr-xr-x 1 root root 28 2012-04-09 23:04 /root/Startup/ss-off
executable /root/Startup/ss-off
-rw-r--r-- 1 root root 114 2011-04-01 03:07 /root/Startup/stay-connected.sh
-rw-r--r-- 1 root root 627 2011-12-09 16:49 /root/Startup/test_if_connected
-rwxr-xr-x 1 root root 239 2012-04-11 10:07 /root/Startup/timesync.sh
executable /root/Startup/timesync.sh
Can you post the code of the Blocktracker script.
Do not need the list of Ip addresses, just the execute code.
What does ss-off script do?
Do not need the list of Ip addresses, just the execute code.
What does ss-off script do?
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected![Shocked :shock:](./images/smilies/icon_eek.gif)
YaPI(any iso installer)
When I was a kid I wanted to be older.... This is not what I expected
![Shocked :shock:](./images/smilies/icon_eek.gif)
YaPI(any iso installer)
looks like screensaver off...?
http://ubuntuforums.org/archive/index.p ... 90393.html
but could be start script off....
Aitch![Smile :)](./images/smilies/icon_smile.gif)
http://ubuntuforums.org/archive/index.p ... 90393.html
but could be start script off....
Aitch
![Smile :)](./images/smilies/icon_smile.gif)
-
- Posts: 150
- Joined: Tue 29 Jan 2008, 21:11
- Location: Lancashire,U.K.
- Contact:
#! /bin/sh -e
#
# update_iptables.sh
# ------------------
# Shell script to read a file of IP addresses (in CIDR notation),
# one per line and terminated with a last line of "eof" and to
# update iptables to REJECT (with reason icmp-admin-prohibited) any outbound traffic
# to these addresses. Will output a message to your syslog for each block.
#
# 1) You must have iptables installed (I think most distros will have it installed already).
# 2) You must run this script as root (I use crontab to run it once a day and on reboot)
# 3) Don't forget to make this script exexcutable!
# 4) You can make your blocklist file editable by a trusted non-root user if you wish.
#
# ***** EDIT LINE BELOW with location of your blocklist file *****
IPLIST="/ip.data"
# *****-----------ho-------------------------------------------*****
# Clear existing iptables
/sbin/iptables --flush
# Configure iptables with addresses we block from going out
while read line
do
/sbin/iptables -A OUTPUT -d $line -j LOG --log-prefix "BLOCKED TRACKING SITE: "
/sbin/iptables -A OUTPUT -d $line -j REJECT --reject-with icmp-admin-prohibited
done < $IPLIST
# Display new iptables
#/sbin/iptables --list
# Exit
exit
dont know about ss-off but I did switch off screensaver to watch a video so maybe it's as Aitch suggests.
What baffles me is it runs if I do it manually. I open the Startup folder in rox and click on blocktracker.sh and it runs ?????
EDIT
Aaaaarrrrgh!
just looked in the taskbar and it's not loading network tray or power applet either
#
# update_iptables.sh
# ------------------
# Shell script to read a file of IP addresses (in CIDR notation),
# one per line and terminated with a last line of "eof" and to
# update iptables to REJECT (with reason icmp-admin-prohibited) any outbound traffic
# to these addresses. Will output a message to your syslog for each block.
#
# 1) You must have iptables installed (I think most distros will have it installed already).
# 2) You must run this script as root (I use crontab to run it once a day and on reboot)
# 3) Don't forget to make this script exexcutable!
# 4) You can make your blocklist file editable by a trusted non-root user if you wish.
#
# ***** EDIT LINE BELOW with location of your blocklist file *****
IPLIST="/ip.data"
# *****-----------ho-------------------------------------------*****
# Clear existing iptables
/sbin/iptables --flush
# Configure iptables with addresses we block from going out
while read line
do
/sbin/iptables -A OUTPUT -d $line -j LOG --log-prefix "BLOCKED TRACKING SITE: "
/sbin/iptables -A OUTPUT -d $line -j REJECT --reject-with icmp-admin-prohibited
done < $IPLIST
# Display new iptables
#/sbin/iptables --list
# Exit
exit
dont know about ss-off but I did switch off screensaver to watch a video so maybe it's as Aitch suggests.
What baffles me is it runs if I do it manually. I open the Startup folder in rox and click on blocktracker.sh and it runs ?????
EDIT
Aaaaarrrrgh!
just looked in the taskbar and it's not loading network tray or power applet either
-
- Posts: 150
- Joined: Tue 29 Jan 2008, 21:11
- Location: Lancashire,U.K.
- Contact:
- MinHundHettePerro
- Posts: 852
- Joined: Thu 05 Feb 2009, 22:22
- Location: SE
Hello
!
At least my makeshift debugging script thingy shows that the scripts in /root/Startup are found and the ones that are executable at least are attempted to be run at startup (including your blocktracker.sh)
EDIT: saw that you got it working
while I was writing ..
Cheers
/ MHHP
![Smile :)](./images/smilies/icon_smile.gif)
At least my makeshift debugging script thingy shows that the scripts in /root/Startup are found and the ones that are executable at least are attempted to be run at startup (including your blocktracker.sh)
EDIT: saw that you got it working
![Smile :)](./images/smilies/icon_smile.gif)
Cheers
![Smile :)](./images/smilies/icon_smile.gif)
[color=green]Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285[/color]
Slackos & 214X, ... and Q6xx
[color=darkred]Nämen, vaf....[/color] [color=green]ln -s /dev/null MHHP[/color]
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285[/color]
Slackos & 214X, ... and Q6xx
[color=darkred]Nämen, vaf....[/color] [color=green]ln -s /dev/null MHHP[/color]
Well, start fresh always does seem to work.jockjunior wrote:used a backup savefile and problem gone. Must have been corrupted some way.
thanks for your input guys
![Shocked :shock:](./images/smilies/icon_eek.gif)
Maybe that is why tech-repair always say they need to reinstall operating system to fix problem.
![Surprised :o](./images/smilies/icon_surprised.gif)
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected![Shocked :shock:](./images/smilies/icon_eek.gif)
YaPI(any iso installer)
When I was a kid I wanted to be older.... This is not what I expected
![Shocked :shock:](./images/smilies/icon_eek.gif)
YaPI(any iso installer)