WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Basic questions about TinyCore Linux  (Read 6233 times)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Basic questions about TinyCore Linux
« Reply #30 on: March 14, 2014, 08:00:34 PM »
The BACKUP variable is affecting the default setting of exittc, it does not overrule choice of ticking/unticking the box.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Kevin

  • Newbie
  • *
  • Posts: 20
Re: Basic questions about TinyCore Linux
« Reply #31 on: March 15, 2014, 08:11:01 AM »
So what you're saying, then, is that automatic backup only works with the GUI, correct?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Basic questions about TinyCore Linux
« Reply #32 on: March 15, 2014, 08:22:17 AM »
Core is a toolkit.
You can write your own shutdown script or add a backup to /opt/shutdown.sh so exitcheck.sh will do a backup.
« Last Edit: March 15, 2014, 12:46:56 PM by gerald_clark »

Offline Kevin

  • Newbie
  • *
  • Posts: 20
Re: Basic questions about TinyCore Linux
« Reply #33 on: March 15, 2014, 12:21:06 PM »
OK everything is clear now, thanks.

I added "backup" to /opt/shutdown.sh
Then, I added the following lines to /etc/profile:

alias shutdown="/usr/bin/exitcheck.sh shutdown"
alias poweroff="/usr/bin/exitcheck.sh shutdown"
alias reboot="/usr/bin/exitcheck.sh reboot"

And then added etc/profile to /opt/.filetool.lst  8)
« Last Edit: March 15, 2014, 12:32:23 PM by Kevin »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Basic questions about TinyCore Linux
« Reply #34 on: March 15, 2014, 12:50:51 PM »
It would be better to add your aliases to a file in /etc/profile.d.
/etc/profile might change with an update and your backup copy would overwrite it.
This may produce hard to troubleshoot problems later.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Basic questions about TinyCore Linux
« Reply #35 on: March 15, 2014, 02:33:34 PM »
So what you're saying, then, is that automatic backup only works with the GUI, correct?

No.
I'm saying what is automatic is a preselection of what a GUI checkbox is defaulting to.

An enforced backup at shutdown could interfere both with data safety and with user choice.

I'd suggest you consider using the minimal GUI for a while first to get familiar with the basic system administration tools included, rather than trying to imagine things.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Kevin

  • Newbie
  • *
  • Posts: 20
Re: Basic questions about TinyCore Linux
« Reply #36 on: March 15, 2014, 06:28:48 PM »
So what you're saying, then, is that automatic backup only works with the GUI, correct?

No.
I'm saying what is automatic is a preselection of what a GUI checkbox is defaulting to.

An enforced backup at shutdown could interfere both with data safety and with user choice.

I'd suggest you consider using the minimal GUI for a while first to get familiar with the basic system administration tools included, rather than trying to imagine things.

Sorry I just don't have any real use for the GUI so I don't want to start using it now and risk becoming even more confused.
I want to learn this Linux distribution in text mode, and only afterwards, if I'll ever need it, learn the GUI.

It would be better to add your aliases to a file in /etc/profile.d.
/etc/profile might change with an update and your backup copy would overwrite it.
This may produce hard to troubleshoot problems later.

Thanks, I've actually considered this but decided to not change things as I'll be keeping this machine "as is" without ever updating (a sort of hardened system that won't really ever interact with the outside world).
« Last Edit: March 15, 2014, 06:35:04 PM by Kevin »