Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: Evangelos on April 29, 2011, 02:24:03 PM

Title: Simple questions for newbies.
Post by: Evangelos on April 29, 2011, 02:24:03 PM
Hi all,

I check most of the TCL wiki to find answers (most of them are about UI operations)
My Questions (I need only answers for command line(ONLY) use, because I run my TCL pc via SSH)

1) How can I install an application i.e. something.tcz? OK
2) How can I list all the provided extensions/apps in command line? OK
3) How can I remove an extension/application ? OK
4) The default terminal is not bash, I installed bash, how can make bash the default terminal?
5) shutdown: exitcheck.sh shutdown and reboot: exitcheck.sh reboot commands
do they support backup before shutdown/reboot?
6) Which is the command for the backup? OK

I think that all the above questions are very useful for newbies who want to manage TCL remotely via SSH.
Thanks in advance,
Evangelos
Title: Re: Simple questions for newbies.
Post by: bmarkus on April 29, 2011, 02:29:38 PM

4) The default terminal is not bash, I installed bash, how can make bash the default terminal?


bash is not a terminal, it is a command shell.
Title: Re: Simple questions for newbies.
Post by: curaga on April 29, 2011, 02:32:42 PM
See the package manager cheat sheet on the wiki for 1/2.
Title: Re: Simple questions for newbies.
Post by: floppy on May 01, 2011, 10:20:22 AM
5) shutdown: exitcheck.sh shutdown and reboot: exitcheck.sh reboot commands
do they support backup before shutdown/reboot?
6) Which is the command for the backup?
5) put 6) into it?
6) I use following command for backup in a terminal "filetool.sh -b". They the mydata.gz is automatically created at the right place (will overwrite the old one without asking)
Title: Re: Simple questions for newbies.
Post by: Evangelos on May 01, 2011, 03:12:46 PM
Ok thanks for the 6).

If I correctly understand you said that I combine 5) and 6) commands?
Title: Re: Simple questions for newbies.
Post by: stleric on May 02, 2011, 01:21:06 AM

4) The default terminal is not bash, I installed bash, how can make bash the default terminal?


bash is not a terminal, it is a command shell.

Be that as it may.   You want to edit the "/etc/passwd" file and replace the shell command entry.  Looks like they use "/bin/sh" out of the box, you'd replace that with "/usr/local/bin/bash" or whatever the full path is.  Here's the passwd entry for user "tc":  "tc:x:1001:50:Linux User,,,:/home/tc:/bin/sh".  The stuff after the last colon is the default shell for the user "tc".

Then you'll have to make "/etc/passwd" persistent so it survives rebooting (I'm not 100% on how to do this, I'm actually trying to figure this part out myself for some other files).

eric
Title: Re: Simple questions for newbies.
Post by: Guy on May 02, 2011, 04:45:01 AM
Quote
Then you'll have to make "/etc/passwd" persistent so it survives rebooting (I'm not 100% on how to do this, I'm actually trying to figure this part out myself for some other files).

This explains how to make /etc/shadow persistent. The same method should work.

http://wiki.tinycorelinux.net/wiki:passwd