WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Startup scripts  (Read 2164 times)

Offline garretraziel

  • Newbie
  • *
  • Posts: 1
Startup scripts
« on: October 12, 2010, 08:53:59 AM »
Hello,
I want to do something on startup (set password for tc and root, start ssh daemon...), but I don't know how to do startup scripts. I have red FAQ, but I don't understand it. Do I have to make shell script (but without extension sh), tar it and place it into /usr/local/tce.installed and tce will do it after booting, or what? And other questions, is there any way to download/install apps and shuting down with backuping only in terminal (without gui)? Thanks.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Startup scripts
« Reply #1 on: October 12, 2010, 11:26:40 AM »
I really suggest you read the wiki.

Use the passwd command to set passwords for root and tc.
Add the following 4 lines to /opt/.filetool.lst

etc/passwd
etc/shadow
etc/group
etc/gshadow

If you want to run something at boot, add lines to /opt/bootlocal.sh

Now do a backup:
filetool.sh backup