malfs mekanizma guncelleme

This commit is contained in:
milis_calisan 2016-03-13 16:23:05 +00:00
parent c50e4865b8
commit 32a849a79e
5 changed files with 42 additions and 27 deletions

24
bin/tamir_bashrc Executable file
View File

@ -0,0 +1,24 @@
cat > /etc/bashrc << "EOF"
alias ls='ls --color=auto'
NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"
WHITE="\[\e[1;37m\]"
case $TERM in
xterm|rxvt*)
TITLEBAR='\[\033]0;\u@\h \007\]'
;;
*)
TITLEBAR=''
;;
esac
if [[ $EUID == 0 ]] ; then
PS1="$TITLEBAR$RED\u [ $NORMAL\w$RED ]# $NORMAL"
else
PS1="$TITLEBAR$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL"
fi
EOF

1
bin/tamir_disip Executable file
View File

@ -0,0 +1 @@
ip route add default via 192.168.1.1

View File

@ -199,35 +199,12 @@ alias ls='ls --color=auto'
# in the X environment. [Review the LFS archive thread titled
# PS1 Environment Variable for a great case study behind this script
# addendum.]
export LC_ALL="tr_TR.UTF-8"
NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"
WHITE="\[\e[1;37m\]"
INFOMACHINE="`date +%H:%M` `uname -m` `uname -r` `whoami`@`uname -n`"
prompt_command() {
# Sauvegarde de la pos courante
tput sc
# Calcul de la largeur
let backwash=$(tput cols)-$(echo $INFOMACHINE | wc -m)-2
# Pos des curseurs à la position Y=0, X=longueur calculée
tput cup 0 ${backwash}
# Spécifie la couleur et la casse de la police
tput setaf 4; tput bold
# Affiche le chemin entre crochets
echo -n "["
# Specifie la couleur du chemin
tput setaf 6
# Affiche le chemin complet
echo -n "$INFOMACHINE"
tput setaf 4; tput bold
# Affiche le crochet fermé
echo -n "]"
# Remet le curseur à sa place
tput rc
}
PROMPT_COMMAND=prompt_command
case $TERM in
xterm|rxvt*)
@ -338,7 +315,7 @@ cat > ${LFS}/etc/sysconfig/$FILE << "EOF"
#SYSKLOGD_PARMS="-m 0"
# Console parameters
UNICODE=1
#UNICODE=1
KEYMAP="trq"
#KEYMAP_CORRECTIONS="euro2"
#FONT="lat0-16 -m 8859-9"

View File

@ -1 +1 @@
fc-cache -v usr/share/fonts/dejavu
fc-cache -v /usr/share/fonts/dejavu

View File

@ -1 +1,14 @@
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
touch /root/.gtkrc-2.0
cat > /root/.gtkrc-2.0 << "EOF"
style "xfdesktop-icon-view" {
XfdesktopIconView::label-alpha = 10
base[NORMAL] = "#000000"
base[SELECTED] = "#71B9FF"
base[ACTIVE] = "#71FFAD"
fg[NORMAL] = "#ffffff"
fg[SELECTED] = "#71B9FF"
fg[ACTIVE] = "#71FFAD" }
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
EOF