forked from altcloud/mkimage-profiles
Initial Homeros support
- added destination homeros-nano.iso yields minimal speaking image; - added "homeros" feature contain scripts appropriate for general Homeros functions but need further development.
This commit is contained in:
parent
eb2489fe89
commit
fbd3460684
6
conf.d/homeros.mk
Normal file
6
conf.d/homeros.mk
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
ifeq (distro,$(IMAGE_CLASS))
|
||||
|
||||
distro/homeros-nano: distro/.live-base use/live/textinstall use/homeros; @:
|
||||
|
||||
endif
|
5
features.in/homeros/README
Normal file
5
features.in/homeros/README
Normal file
@ -0,0 +1,5 @@
|
||||
Каталог содержит основную feature для создания адаптированного
|
||||
дистрибутива Homeros. Это промежуточный вариант, при помощи которого
|
||||
можно получить минимальный разговаривающий образ, но, возможно, помимо
|
||||
его дальнейшего естественного развития требуется ещё осмысление с
|
||||
точки зрения идей mkimage-profiles.
|
9
features.in/homeros/config.mk
Normal file
9
features.in/homeros/config.mk
Normal file
@ -0,0 +1,9 @@
|
||||
use/homeros:
|
||||
@$(call add_feature)
|
||||
# @$(call set,BRANDING,simply-linux)
|
||||
# @$(call add,THE_BRANDING,menu xfce-settings)
|
||||
@$(call add,THE_LISTS,homeros/voiceman)
|
||||
@$(call add,THE_LISTS,homeros/tts)
|
||||
@$(call add,THE_LISTS,homeros/yasr)
|
||||
@$(call add,THE_LISTS,homeros/tools)
|
||||
# @$(call set,META_VOL_SET,Homeros)
|
13
features.in/homeros/live/image-scripts.d/10-amixer
Executable file
13
features.in/homeros/live/image-scripts.d/10-amixer
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat <<EOF > /etc/rc.d/rc.local
|
||||
#!/bin/sh
|
||||
|
||||
amixer set Master 100%
|
||||
amixer set Master toggle
|
||||
amixer set PCM 100%
|
||||
amixer set PCM toggle
|
||||
|
||||
EOF
|
||||
|
||||
chmod 755 /etc/rc.d/rc.local
|
8
features.in/homeros/live/image-scripts.d/10-console-keyboard-ru
Executable file
8
features.in/homeros/live/image-scripts.d/10-console-keyboard-ru
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
echo 'KEYTABLE=ruwin_ct_sh-UTF-8' > /etc/sysconfig/keyboard
|
||||
cat <<EOF > /etc/sysconfig/i18n
|
||||
SYSFONT=UniCyr_8x16
|
||||
LANG=ru_RU.UTF-8
|
||||
SUPPORTED=ru_RU.UTF-8
|
||||
EOF
|
4
features.in/homeros/live/image-scripts.d/10-rhvoice
Executable file
4
features.in/homeros/live/image-scripts.d/10-rhvoice
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
/bin/ln -s /etc/tts.d/rhvoice-en.voiceman /etc/voiceman.d/rhvoice-en.output
|
||||
/bin/ln -s /etc/tts.d/rhvoice.voiceman /etc/voiceman.d/rhvoice.output
|
3
features.in/homeros/live/image-scripts.d/10-ssh
Executable file
3
features.in/homeros/live/image-scripts.d/10-ssh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
chkconfig sshd on
|
6
features.in/homeros/live/image-scripts.d/10-sudo
Executable file
6
features.in/homeros/live/image-scripts.d/10-sudo
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
mkdir -p /etc/sudo.d
|
||||
chmod 700 /etc/sudo.d
|
||||
control su public
|
||||
control sudo public
|
3
features.in/homeros/live/image-scripts.d/10-voiceman
Executable file
3
features.in/homeros/live/image-scripts.d/10-voiceman
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
chkconfig voiceman on
|
5
features.in/homeros/live/image-scripts.d/20-altlinux-user
Executable file
5
features.in/homeros/live/image-scripts.d/20-altlinux-user
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
useradd altlinux
|
||||
echo 'altlinux ALL=NOPASSWD:ALL' > /etc/sudo.d/altlinux
|
||||
chmod 400 /etc/sudo.d/altlinux
|
13
features.in/homeros/live/image-scripts.d/30-autologin
Executable file
13
features.in/homeros/live/image-scripts.d/30-autologin
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
subst s/'^\(1:2345:respawn.*\)$'/'#\1'/ /etc/inittab
|
||||
cat <<EOF >> /etc/inittab
|
||||
# yasr is always available on 1-st console;
|
||||
yasr:2345:respawn:/bin/openvt -w -f -c 1 -- su -l altlinux -c /usr/local/bin/yasr-with-linux-term
|
||||
EOF
|
||||
cat <<EOF > /usr/local/bin/yasr-with-linux-term
|
||||
#!/bin/sh
|
||||
TERM=linux /usr/bin/yasr
|
||||
exit \$?
|
||||
EOF
|
||||
chmod 755 /usr/local/bin/yasr-with-linux-term
|
6
pkg.in/lists/homeros/tools
Normal file
6
pkg.in/lists/homeros/tools
Normal file
@ -0,0 +1,6 @@
|
||||
su
|
||||
sudo
|
||||
net-tools
|
||||
openssh-server
|
||||
amixer
|
||||
alsa-utils
|
2
pkg.in/lists/homeros/tts
Normal file
2
pkg.in/lists/homeros/tts
Normal file
@ -0,0 +1,2 @@
|
||||
RHVoice
|
||||
espeak
|
3
pkg.in/lists/homeros/voiceman
Normal file
3
pkg.in/lists/homeros/voiceman
Normal file
@ -0,0 +1,3 @@
|
||||
voiceman-server
|
||||
voiceman
|
||||
voiceman-tools
|
1
pkg.in/lists/homeros/yasr
Normal file
1
pkg.in/lists/homeros/yasr
Normal file
@ -0,0 +1 @@
|
||||
yasr
|
Loading…
Reference in New Issue
Block a user