WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Simple questions for newbies.  (Read 2601 times)

Offline Evangelos

  • Newbie
  • *
  • Posts: 19
Simple questions for newbies.
« on: April 29, 2011, 11:24:03 AM »
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
« Last Edit: May 01, 2011, 12:39:33 PM by Evangelos »
Evangelos Brachos

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Simple questions for newbies.
« Reply #1 on: April 29, 2011, 11:29:38 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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10974
Re: Simple questions for newbies.
« Reply #2 on: April 29, 2011, 11:32:42 AM »
See the package manager cheat sheet on the wiki for 1/2.
The only barriers that can stop you are the ones you create yourself.

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: Simple questions for newbies.
« Reply #3 on: May 01, 2011, 07: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)
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline Evangelos

  • Newbie
  • *
  • Posts: 19
Re: Simple questions for newbies.
« Reply #4 on: May 01, 2011, 12:12:46 PM »
Ok thanks for the 6).

If I correctly understand you said that I combine 5) and 6) commands?
Evangelos Brachos

Offline stleric

  • Newbie
  • *
  • Posts: 21
Re: Simple questions for newbies.
« Reply #5 on: May 01, 2011, 10:21:06 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.

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

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Simple questions for newbies.
« Reply #6 on: May 02, 2011, 01: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
Many people see what is. Some people see what can be, and make a difference.