85 lines
1.8 KiB
Bash
85 lines
1.8 KiB
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
USER_NAME="bob"
|
|
|
|
|
|
mkdir -p /etc/skel
|
|
|
|
cat > /etc/skel/.xinitrc <<'EOF'
|
|
#!/bin/sh
|
|
fbsetbg -f /usr/share/wallpapers/retrodebian.jpg &
|
|
xrdb -merge ~/.Xresources &
|
|
exec startfluxbox
|
|
EOF
|
|
|
|
cat > /etc/skel/.profile <<'EOF'
|
|
#!/bin/sh
|
|
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
|
exec startx
|
|
fi
|
|
EOF
|
|
|
|
cat > /etc/skel/.bash_profile <<'EOF'
|
|
if [ -f "$HOME/.profile" ]; then
|
|
. "$HOME/.profile"
|
|
fi
|
|
EOF
|
|
|
|
cat > /etc/skel/.gtkrc-2.0 <<'EOF'
|
|
gtk-icon-theme-name="Tango"
|
|
gtk-font-name="Sans 10"
|
|
EOF
|
|
|
|
mkdir -p /etc/skel/.fluxbox
|
|
cat > /etc/skel/.fluxbox/init <<'EOF'
|
|
session.styleFile: /usr/share/fluxbox/styles/BlueNight
|
|
session.screen0.rootCommand: Esetroot /usr/share/wallpapers/retrodebian.jpg
|
|
EOF
|
|
|
|
|
|
cat > /etc/skel/.Xresources <<'EOF'
|
|
aterm*transparent: true
|
|
aterm*shading: 40
|
|
aterm*tinting: false
|
|
aterm*scrollBar: false
|
|
aterm*foreground: #c0c0c0
|
|
aterm*background: black
|
|
aterm*font: -*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*
|
|
xterm*faceName: Terminus
|
|
xterm*faceSize: 10
|
|
EOF
|
|
|
|
cat >> /etc/skel/bash.bashrc <<'EOF'
|
|
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
|
alias apt='apt-get'
|
|
if [ -x /usr/bin/dircolors ]; then
|
|
eval "$(dircolors -b)"
|
|
alias ls='ls --color=auto'
|
|
alias ll='ls --color=auto -l'
|
|
alias la='ls --color=auto -la'
|
|
fi
|
|
EOF
|
|
|
|
chmod 0644 \
|
|
/etc/skel/.xinitrc \
|
|
/etc/skel/.profile \
|
|
/etc/skel/.bash_profile \
|
|
/etc/skel/.gtkrc-2.0 \
|
|
/etc/skel/.Xresources \
|
|
/etc/skel/.fluxbox/init \
|
|
/etc/skel/bash.bashrc
|
|
|
|
# Locale
|
|
if [ -x /usr/sbin/locale-gen ]; then
|
|
grep -q '^en_US.UTF-8 UTF-8$' /etc/locale.gen 2>/dev/null || echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
|
|
locale-gen
|
|
fi
|
|
|
|
cat > /etc/default/locale <<'EOF'
|
|
LANG=en_US.UTF-8
|
|
LANGUAGE=en_US:en
|
|
EOF
|
|
|
|
update-rc.d ntp defaults || true
|