LinuxForum.Fans
Тема

Bash в Slitaz 2.0

Автор: elf1423 8 сообщений 5729 просмотров
#189373

Как в Slitaz 2.0, который уже установлен на HDD, заменить ash на bash?

#189376

Установить, если не установлен bash и изменить настройки пользователя USER
[console]usermod -s /bin/bash USER[/console]

#189380

Из под рута:

text
chsh USER /bin/bash
#189381

ещё проверьте путь bash.

ЗЫ: интересный дистр... надо покопать

#189483

>

Lupo Alberto написал:
Установить, если не установлен bash и изменить настройки пользователя USER
[console]usermod -s /bin/bash USER[/console]

В Slitaz 2.0 нет команды:

# usermod -s /bin/bash USER

#189488
elf1423 написал:
В Slitaz 2.0 нет команды:

Вы учли, что вместо USER следует подставить имя существующего пользователя?

#189494

elf1423, можно и «по-простому», запустив имеющийся текстовый редактор, заменить соответствующее поле в файле /etc/passwd.
Например, у меня так:
[console]lupo@gentoo-laptop ~ % grep '^root' /etc/passwd
root:x:0:0:root:/root:/bin/zsh[/console]
То есть у пользователя root оболочка /bin/zsh

Но убедитесь, что путь к оболочке bash указан верно!

То есть должно быть примерно так:
[console]lupo@gentoo-laptop ~ % which bash
/bin/bash[/console]
P.S. Найдено в Handbook дистрибутива:


Custom SHell

SliTaz uses the ash shell linked to sh provided by busybox. Ash is light, fast and standards compliant. To change the default shell for a user you can edit the /etc/passwd file using the corresponding line. After you login, /etc/profile is read first and then the user file ~/profile. You can edit these files with a text editor to configure the language, any aliases, etc.
Example: ~/.profile
text
# ~/.profile: executed by Bourne-compatible login shells.
#

# Aliases. alias ls='ls -F' alias df='df -h'

# Env variables. export EDITOR=nano

Bash Shell

On SliTaz you have the ash and sh shell with a link to Ash, this shell is provided by Busybox. If you wish to use the Bash (Bourne Again SHell), first as root install bash, copy the .profile found in your home directory and rename it .bashrc, then edit the /etc/passwd file with your favorite text editor and change your shell to :/bin/bash

text
# tazpkg get-install bash
 # cp /home/hacker/.profile home/hacker/.bashrc
 Note root user: cp /home/hacker/.profile ~/.bashrc
 # nano /etc/passwd   ~ :/bin/bash

The next time you login bash will be your default shell, you can confirm this by typing env on the command line.

#189501

Lupo Alberto, Вы пробовали устанавливать Slitaz в VirtualBox?

Если - да, то как Вы установили гостевые приложения в Slitaz? Вы использовали какие-нибудь другие команды кроме этих:

# mount /media/cdrom && sh /media/cdrom/VBoxLinuxAdditions.run.

Войдите или зарегистрируйтесь, чтобы ответить.