[accessiblelinux] Re: customizations.py2.0 now available

  • From: "Anthony Sales" <tony.sales@xxxxxxxxxx>
  • To: <accessiblelinux@xxxxxxxxxxxxx>
  • Date: Fri, 10 Apr 2009 17:26:07 +0100

I will try it out over Easter, I was a bit bemused by the idea of a script
deleting itself, but you can delete an open file in linux usually, it will
then disappear when closed. I suppose ttis is the opposite of a virus, a file
that deletes itself instead of copying itself! You should patent the idea and
call it a 'suriv' file which you download, which when they are run delete
themselves and do not other harm to the system! lol

drbongo


-----Original Message-----
From: accessiblelinux-bounce@xxxxxxxxxxxxx on behalf of Storm Dragon
Sent: Fri 10/04/2009 17:03
To: accessiblelinux@xxxxxxxxxxxxx
Subject: [accessiblelinux] Re: customizations.py2.0 now available
 
Hi,
In theory you should be able to put it in the home/username folde, or
actually anywhere on the system you want.  You just have to specify the
location in /etc/init.d/rc.local.  Just make sure you have a backup or
test machine, I haven't ever tried anything like this before. but here's
an example of how everything should work.  If there is a default user
accout with the user name vinux.
place the file in /home/vinux
then, type
chmod 700 firstRun.sh
then, type:
sudo gedit /etc/init.d/rc.local
the last line of that file is the end of a case statement, it's the word
case written backward (esac)
at the end of that line press enter then type
./home/vinux/firstRun.sh
That should do it, if my code works that is.  I am not sure if a script
can delete itself, and I am not sure if my sed statement is correct.
Storm


On Fri, 2009-04-10 at 16:03 +0100, Anthony Sales wrote:

> Storm, sorry for the dumb question, but where do I put the script and do I
> need to add it to sessions to make it start when the system boots? drbongo
> 
> 
> -----Original Message-----
> From: accessiblelinux-bounce@xxxxxxxxxxxxx on behalf of Storm Dragon
> Sent: Fri 10/04/2009 14:03
> To: accessiblelinux@xxxxxxxxxxxxx
> Subject: [accessiblelinux] Re: customizations.py2.0 now available
>  
> Hi,
> This is the new code that I came up with.  The sed line I am not too
> sure about, but the rest, should (hopefully), work.
> firstRun.sh
> #!/bin/bash
> orca -t
> #this line may be wrong
> sed -e '/firstRun.sh/ ' /etc/init.d/rc.local
> rm firstRun.sh
> exit 0
> > > End Code
> Basically what it does is launch orca with the text based setup.  Then
> it removes the script name from rc.local so it won't run the next time
> the machine is booted.  Finally, it deletes the script.
> Storm
> 
> 
> On Sat, 2009-04-04 at 11:37 +0100, Anthony Sales wrote:
> 
> > > > #!/bin/bash
> > > > orca -t
> > > > rm firstRun.py
> > > > exit 0
> > > > End Code
> > > > Maybe the other problems could be solved in a similar way.  I am
> > not
> > > > sure that it will work at the boot prompt, but mayb e it will.
> > The best
> > > > place to add the script so it will auto launch is
> > > > probably /etc/initd/rc.local, but the problem with that is it will
> > > > automatically be ran with sudo, but if it is added in to sessions,
> > it
> > > > won't be ran until after the desktop is loaded.
> > > > Storm
> > > > 
> > > > Check out the Storm Dragon blog: 
> > > >                        http://www.stormdragon.us/
> > > > 
> > > > 
> > > > On Tue, 2009-03-31 at 18:53 +0100, Anthony Sales wrote:
> > > > 
> > > > > Hi StormDragon,
> > > > > 
> > > > > I will be upgrading to the latest version of your customisations
> > script
> > > in
> > > > > the next release of Vinux (1.5), but i wanted to ask if you can
> > solve
> > 
> 

Other related posts: