samedi 22 juin 2013

Nux intall


apt-get install -y aptitude
aptitude install -y screen htop gpm sysv-rc-conf openssh-server mc rsync ntpdate gdebi less bash-completion bash-builtins bzip2
aptitude install -y unzip unrar unrar-free p7zip p7zip-full p7zip-rar  nfs-common traceroute acl nmap ethtool dnsutils wodim eject
aptitude install -y libdate-manip-perl libfile-find-rule-perl

adddptkey.sh D834D91FA49CCDDB ; adddptkey.sh 6AF0E1940624A220; adddptkey.sh D834D91FA49CCDDB; adddptkey.sh 6AF0E1940624A220

aptitude install gdm gnome-shell synaptic deborphan ubuntu-tweak
  
# aptitude search geany |grep ^i|grep -v lib| sed « s/i A /i /g »|awk ‘{print $2″ « }’ | tr -d ‘\n’

#xfce
aptitude install -y xserver-xorg xfonts-base xfce4 gedit gnome-terminal  gnome-terminal-data nautilus gdebi gdebi-core gparted file-roller  gnome-core

# debian gnome
aptitude install x-window-system-core gnome-core gdm gedit  gnome-terminal gnome-terminal-data nautilus gdebi gdebi-core gparted  file-roller

# debian sans gnome / gdm
update-rc.d gdm3 remove

# Debian pulseaudio
aptitude install pulseaudio libao4 paprefs libpulse-mainloop-glib0  pulseaudio-module-jack pavucontrol pulseaudio-module-hal  pulseaudio-module-x11 gstreamer0.10-pulseaudio pulseaudio-utils  libasound2-plugins paman pulseaudio-module-gconf libgconfmm-2.6-1c2  libpulse-browse0 pavumeter libglademm-2.4-1c2a pulseaudio-esound-compat  libpulse0 libpulse-dev pulseaudio-module-bluetooth  pulseaudio-module-zeroconf

# installer de quoi compiler
aptitude install -y linux-headers-`uname -r` gcc build-essential

#vlc
vlc vlc-nox libavcodec-extra-52

#broadcomm
modprobe -r b44 b43 b43legacy ssb brcmsmac

# supprimer les firmware des cartes wifi inutiles ==> aptitude search firmware | grep ^i
aptitude install linux-headers-$(uname -r|sed ‘s,[^-]*-[^-]*-,,’) broadcom-sta-dkms
modprobe wl ; iwconfig

# la carte doit être visible dans le networkmanager !
#Supprimer beep http://forums.linuxmint.com/viewtopic.php?f=49&t=75825
#

#————————————————————————–
echo ‘APT::Get::Purge « true »;’ >/etc/apt/apt.conf
cat /etc/apt/apt.conf

#—————————————————————————
# /etc/inputrc http://tiswww.case.edu/php/chet/readline/readline.html
# DJR le 10/01/08 naviguer dans l’historique des commandes
« \e[A": history-search-backward
"\e[B": history-search-forward
# CTRL + fleche gauche et droite
"\eOC": forward-word
"\eOD": backward-word
"\e\eOC": forward-word
"\e\eOD": backward-word
set completion-ignore-case On
set show-all-if-ambiguous On
set bell-style none

#---------------------------------------------------------------------------
# bashrc
# DJR ADD
# Comment in the above and uncomment this below for a color prompt
PS1='\[\033[1;33m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h\[\033[1;37m\]:\[\033[1;31m\]\w \[\033[1;36m\]\n\$ \[\033[0m\]‘
# If this is an xterm set the title to user@host:dir
case « $TERM » in
xterm*|rxvt*)
PROMPT_COMMAND=’echo -ne « \033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007″ ‘
;;
*)
;;
esac
# You may uncomment the following lines if you want `ls’ to be colorized:
export LS_OPTIONS=’–color=auto’
eval « `dircolors` »
# some more ls aliases
alias md=’mkdir –p’
alias lsa=’ls -lahF –color=auto’
alias psa=’ps -aux –sort -rss’
alias l=’ls -CFh –color=auto’
# enable programmable completion features (you don’t need to enable
# this, if it’s already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
PATH=$PATH:/opt/sadar/bin
export PATH
http_proxy=`sed -e ‘s/Acquire::http::Proxy \ »http:\/\///g’ /etc/apt/apt.conf|sed ‘s/\ »;//g’`
if [ "$http_proxy" != "" ]; then
export http_proxy;
else
unset http_proxy;
fi
shopt -s cdspell
shopt -s histappend
#DJR bip
setterm -blength 0
#Bash History
#export HISTCONTROL=ignoreboth
export HISTCONTROL=ignoreboth
export HISTSIZE=5000
export HISTFILESIZE=200000
shopt -s histappend
export PROMPT_COMMAND= »history -a; history -n; history -r; $PROMPT_COMMAND »
# supporte des terminaux redimensionnables (xterm et screen -r)
shopt -s checkwinsize
# Pour permettre de taper des caractères accentués dans le shell :
bind ‘set convert-meta off’

#—————————————————————————
# profile
# DJR ADD
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
# set PATH so it includes user’s private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:/opt/sadar/bin: »${PATH} »
fi
#export LANGUAGE= »fr »
#export LANG= »fr_FR.utf8″
export LANGUAGE= »en_US:en »
export LANG= »en_US.UTF-8″

#—————————————————————————
# Console en mode 1024×768
#
aptitude -y install v86d
sh -c « echo uvesafb >> /etc/initramfs-tools/modules »
modprobe uvesafb
cat /sys/bus/platform/drivers/uvesafb/uvesafb.0/vbe_modes
sh -c « echo options uvesafb mode_option=1024×768-32 scroll=ywrap > /etc/modprobe.d/uvesafb.conf »
update-initramfs -k all -u

#—————————————————————————
#squeeze wheezy
echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf
GRUB_CMDLINE_LINUX= »ipv6.disable=1″
#ubuntu
GRUB_CMDLINE_LINUX= »disable_ipv6=1″
#—————————————————————————
#

adduser xxc

Aucun commentaire:

Enregistrer un commentaire