Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 May 2013, 15:27
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Startup script not recognised
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
jockjunior

Joined: 29 Jan 2008
Posts: 143
Location: Lancashire,U.K.

PostPosted: Wed 11 Apr 2012, 05:18    Post subject:  Startup script not recognised
Subject description: scriptt added to folder
 

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
Back to top
View user's profile Send private message Visit poster's website 
MinHundHettePerro


Joined: 05 Feb 2009
Posts: 831
Location: SE

PostPosted: Wed 11 Apr 2012, 06:18    Post subject:  

Code:
chmod +x blocktracker

?/MHHP

_________________
Celeron 2.8 GHz, 1 GiB RAM, i82845 graphics, many partitions, Pupmode 12 (13)
Mostly running Slacko & 214X
Nämen, vaf.... ln -s /dev/null MHHP
Back to top
View user's profile Send private message 
jockjunior

Joined: 29 Jan 2008
Posts: 143
Location: Lancashire,U.K.

PostPosted: Wed 11 Apr 2012, 15:27    Post subject:  

Thanks Mate,
sorry that didnt work . How can I check that the folder
Startup is actually being accessed?
Back to top
View user's profile Send private message Visit poster's website 
MinHundHettePerro


Joined: 05 Feb 2009
Posts: 831
Location: SE

PostPosted: Wed 11 Apr 2012, 17:24    Post subject:  

Just a suggestion,
you could, for debugging purposes, insert the code in red below into /usr/sbin/delayedrun, starting at line 130
Quote:
#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
restart, and check the resulting /tmp/Startup_debug_log for clues (or post it here).

Cheers Smile/ MHHP

_________________
Celeron 2.8 GHz, 1 GiB RAM, i82845 graphics, many partitions, Pupmode 12 (13)
Mostly running Slacko & 214X
Nämen, vaf.... ln -s /dev/null MHHP
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 3687
Location: Charleston S.C. USA

PostPosted: Wed 11 Apr 2012, 23:57    Post subject:  

What does blocktracker script do?
_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
Back to top
View user's profile Send private message 
jockjunior

Joined: 29 Jan 2008
Posts: 143
Location: Lancashire,U.K.

PostPosted: Thu 12 Apr 2012, 05:02    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
bigpup


Joined: 11 Oct 2009
Posts: 3687
Location: Charleston S.C. USA

PostPosted: Thu 12 Apr 2012, 11:48    Post subject:  

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?

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Thu 12 Apr 2012, 14:13    Post subject:  

looks like screensaver off...?

http://ubuntuforums.org/archive/index.php/t-1090393.html

but could be start script off....

Aitch Smile
Back to top
View user's profile Send private message 
jockjunior

Joined: 29 Jan 2008
Posts: 143
Location: Lancashire,U.K.

PostPosted: Thu 12 Apr 2012, 14:43    Post subject:  

#! /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
Back to top
View user's profile Send private message Visit poster's website 
jockjunior

Joined: 29 Jan 2008
Posts: 143
Location: Lancashire,U.K.

PostPosted: Thu 12 Apr 2012, 17:44    Post subject:
Subject description: solved
 

used a backup savefile and problem gone. Must have been corrupted some way.

thanks for your input guys
Back to top
View user's profile Send private message Visit poster's website 
MinHundHettePerro


Joined: 05 Feb 2009
Posts: 831
Location: SE

PostPosted: Thu 12 Apr 2012, 18:43    Post subject:  

Hello Smile!

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 while I was writing ..

Cheers Smile/ MHHP

_________________
Celeron 2.8 GHz, 1 GiB RAM, i82845 graphics, many partitions, Pupmode 12 (13)
Mostly running Slacko & 214X
Nämen, vaf.... ln -s /dev/null MHHP
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 3687
Location: Charleston S.C. USA

PostPosted: Fri 13 Apr 2012, 03:45    Post subject:
Subject description: solved
 

jockjunior wrote:
used a backup savefile and problem gone. Must have been corrupted some way.

thanks for your input guys

Well, start fresh always does seem to work. Shocked
Maybe that is why tech-repair always say they need to reinstall operating system to fix problem. Surprised

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0664s ][ Queries: 12 (0.0043s) ][ GZIP on ]