post_install_sid: Change function name to install package (aptins ->
ains) to look like zsh alias. https://git.101010.fr/101010/zsh_config/raw/master/zshrc
This commit is contained in:
parent
081fba38d3
commit
b53b8dc3fe
@ -338,10 +338,10 @@ def_debug()
|
||||
|
||||
## Fonction d'installation
|
||||
# Récupère la liste des paquets à installer et le type de ces paquets.
|
||||
# Prototype: aptins "DESCRIPTION_PAQUET" paquet1 paquet2 ... paquetX
|
||||
# Prototype: ains "DESCRIPTION_PAQUET" paquet1 paquet2 ... paquetX
|
||||
# Les options sont définies en fonctions du niveau de debug
|
||||
# Utilisation de la fonction check_output pour vérifier que tout s'est bien passé
|
||||
aptins()
|
||||
ains()
|
||||
{
|
||||
## On récupère la description
|
||||
DESCR_PAQUET="${1}"
|
||||
@ -480,7 +480,7 @@ preconfig locales
|
||||
preconfig keyboard
|
||||
|
||||
##### Installation
|
||||
aptins "Prérequis" debconf-utils lsof
|
||||
ains "Prérequis" debconf-utils lsof
|
||||
|
||||
# Pour la description de debconf-utils, voir la partie "Outils d'administration"
|
||||
|
||||
@ -490,13 +490,13 @@ aptins "Prérequis" debconf-utils lsof
|
||||
preconfig x11-common
|
||||
|
||||
##### Installation
|
||||
aptins "X11 Server" mesa-utils xorg
|
||||
ains "X11 Server" mesa-utils xorg
|
||||
###########################################################
|
||||
|
||||
###########################################################
|
||||
#### Graphic Environment
|
||||
##### Installation
|
||||
aptins "Graphic Environment" alsa-utils gtk2-engines-cleanice herbstluftwm i3lock lxappearance nitrogen redshift rofi roxterm scrot suckless-tools terminator wmctrl xbacklight xclip
|
||||
ains "Graphic Environment" alsa-utils gtk2-engines-cleanice herbstluftwm i3lock lxappearance nitrogen redshift rofi roxterm scrot suckless-tools terminator wmctrl xbacklight xclip
|
||||
|
||||
##### Remove
|
||||
arem "Purge: Graphic Environment" xscreensaver xscreensaver-data
|
||||
@ -505,7 +505,7 @@ arem "Purge: Graphic Environment" xscreensaver xscreensaver-data
|
||||
###########################################################
|
||||
#### Gnome tools
|
||||
##### Installation
|
||||
aptins "Gnome tools" evince etherape gedit gnome-calculator gparted nemo nemo-fileroller planner
|
||||
ains "Gnome tools" evince etherape gedit gnome-calculator gparted nemo nemo-fileroller planner
|
||||
|
||||
##### Remove
|
||||
arem "Purge: Gnome tools" eog
|
||||
@ -514,7 +514,7 @@ arem "Purge: Gnome tools" eog
|
||||
###########################################################
|
||||
#### Dev tools
|
||||
##### Installation
|
||||
aptins "Dev tools" build-essential binutils cpp debconf-utils gcc g++ make
|
||||
ains "Dev tools" build-essential binutils cpp debconf-utils gcc g++ make
|
||||
###########################################################
|
||||
|
||||
###########################################################
|
||||
@ -523,7 +523,7 @@ aptins "Dev tools" build-essential binutils cpp debconf-utils gcc g++ make
|
||||
preconfig hddtemp
|
||||
|
||||
##### Installation
|
||||
aptins "Admin tools for cli" acpitool alien apticron apt-file apt-listbugs apt-rdepends apt-show-source apt-show-versions dctrl-tools debian-goodies dnsutils ethtool git git-svn gpm hddtemp htop ifscheme iperf mlocate mercurial module-assistant ncdu netdiscover netselect-apt nmap ntp parted pastebinit rsyslog sudo sysv-rc-conf tcpdump tree whois
|
||||
ains "Admin tools for cli" acpitool alien apticron apt-file apt-listbugs apt-rdepends apt-show-source apt-show-versions dctrl-tools debian-goodies dnsutils ethtool git git-svn gpm hddtemp htop ifscheme iperf mlocate mercurial module-assistant ncdu netdiscover netselect-apt nmap ntp parted pastebinit rsyslog sudo sysv-rc-conf tcpdump tree whois
|
||||
|
||||
##### Post-configuration
|
||||
###### apt-file: Synchronize the package contents from their sources.
|
||||
@ -567,7 +567,7 @@ fi
|
||||
preconfig backuppc
|
||||
|
||||
##### Installation
|
||||
aptins "System tools for cli" backuppc bsdmainutils colordiff cpio genisoimage keychain knockd lzip moreutils multitail myrepos ntfs-3g openssh-client openssh-server openvpn screen tmux udisks2 unrar unzip urlview vim-nox vim-doc vim-scripts vlock wakeonlan zsh zip
|
||||
ains "System tools for cli" backuppc bsdmainutils colordiff cpio genisoimage keychain knockd lzip moreutils multitail myrepos ntfs-3g openssh-client openssh-server openvpn screen tmux udisks2 unrar unzip urlview vim-nox vim-doc vim-scripts vlock wakeonlan zsh zip
|
||||
|
||||
##### Remove
|
||||
arem "Purge: System tools for cli" bluetooth bluez vim-tiny
|
||||
@ -594,7 +594,7 @@ sed -i "s;/bin/bash;/bin/zsh;" /etc/adduser.conf
|
||||
###########################################################
|
||||
#### Internet tools for cli
|
||||
##### Installation
|
||||
aptins "Internet tools for cli" axel finch lynx postfix weechat-curses
|
||||
ains "Internet tools for cli" axel finch lynx postfix weechat-curses
|
||||
|
||||
##### Post-configuration
|
||||
###### Postfix
|
||||
@ -608,7 +608,7 @@ fi
|
||||
###########################################################
|
||||
#### Internet tools for X11
|
||||
##### Installation
|
||||
aptins "Internet tools for X11" browser-plugin-freshplayer-pepperflash dwb filezilla icedove icedove-l10n-fr iceowl-extension iceweasel iceweasel-l10n-fr luakit midori mumble pepperflashplugin-nonfree pidgin pidgin-otr pidgin-microblog rdesktop transmission xvnc4viewer
|
||||
ains "Internet tools for X11" browser-plugin-freshplayer-pepperflash dwb filezilla icedove icedove-l10n-fr iceowl-extension iceweasel iceweasel-l10n-fr luakit midori mumble pepperflashplugin-nonfree pidgin pidgin-otr pidgin-microblog rdesktop transmission xvnc4viewer
|
||||
|
||||
##### Remove
|
||||
arem "Purge: Internet tools for X11" flashplugin-nonfree flashplugin-nonfree-extrasound
|
||||
@ -622,7 +622,7 @@ update-pepperflashplugin-nonfree --install
|
||||
#### Nvidia driver
|
||||
if [ "$(lspci | grep -i nvidia)" ]; then
|
||||
##### Installation
|
||||
aptins "Nvidia driver" linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms nvidia-xconfig
|
||||
ains "Nvidia driver" linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms nvidia-xconfig
|
||||
|
||||
##### Post-configuration
|
||||
## Backup previous xorg.conf file if exists
|
||||
@ -640,7 +640,7 @@ fi
|
||||
## Liste: broadcom-sta-dkms
|
||||
if [ "$(lspci | grep -i BCM43)" ]; then
|
||||
##### Installation
|
||||
aptins "Wireless driver for BCM43 " linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
|
||||
ains "Wireless driver for BCM43 " linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
|
||||
|
||||
###### Post-configuration
|
||||
# Unload useless modules
|
||||
@ -659,7 +659,7 @@ fi
|
||||
preconfig cups
|
||||
|
||||
##### Installation
|
||||
aptins "Office tools for cli" cups devtodo graphviz imagemagick imagemagick-doc odt2txt pdftk texinfo texlive texlive-latex-extra vim-latexsuite
|
||||
ains "Office tools for cli" cups devtodo graphviz imagemagick imagemagick-doc odt2txt pdftk texinfo texlive texlive-latex-extra vim-latexsuite
|
||||
|
||||
##### Remove
|
||||
arem "Purge: Office tools for cli" avahi-autopid avahi-daemon cups-browsed libnss-mdns
|
||||
@ -673,31 +673,31 @@ adduser "${new_username}" lpadmin > /dev/null 2> "${fichier_erreur}"
|
||||
###########################################################
|
||||
#### Office tools for X11
|
||||
##### Installation
|
||||
aptins "Outils bureautique graphique" freeplane gprename key-mon libreoffice libreoffice-l10n-fr libreoffice-help-fr libreoffice-pdfimport fonts-linuxlibertine ttf-ancient-fonts verbiste verbiste-gnome
|
||||
ains "Outils bureautique graphique" freeplane gprename key-mon libreoffice libreoffice-l10n-fr libreoffice-help-fr libreoffice-pdfimport fonts-linuxlibertine ttf-ancient-fonts verbiste verbiste-gnome
|
||||
###########################################################
|
||||
|
||||
###########################################################
|
||||
#### Multimedia tools for cli
|
||||
##### Installation
|
||||
aptins "Multimedia tools for cli" avinfo eyed3 ffmpeg mkvtoolnix moc w32codecs
|
||||
ains "Multimedia tools for cli" avinfo eyed3 ffmpeg mkvtoolnix moc w32codecs
|
||||
###########################################################
|
||||
|
||||
###########################################################
|
||||
#### Multimedia tools for X11
|
||||
##### Installation
|
||||
aptins "Multimedia tools for X11" audacity easytag gimp inkscape mirage mkvtoolnix-gui smplayer rhythmbox vlc
|
||||
ains "Multimedia tools for X11" audacity easytag gimp inkscape mirage mkvtoolnix-gui smplayer rhythmbox vlc
|
||||
###########################################################
|
||||
|
||||
###########################################################
|
||||
#### Games
|
||||
##### Installation
|
||||
aptins "Games" teeworlds teeworlds-server
|
||||
ains "Games" teeworlds teeworlds-server
|
||||
###########################################################
|
||||
|
||||
###########################################################
|
||||
#### Network share
|
||||
##### Installation
|
||||
aptins "Network share" nfs-common
|
||||
ains "Network share" nfs-common
|
||||
|
||||
##### Remove
|
||||
arem "Purge: Network share" nfs-kernel-server samba
|
||||
@ -720,20 +720,20 @@ fi
|
||||
#### Wireless tools for cli
|
||||
if [ "$(lspci | grep -i wireless)" ]; then
|
||||
##### Installation
|
||||
aptins "Wireless tools for cli" ifscheme wireless-tools wpasupplicant
|
||||
ains "Wireless tools for cli" ifscheme wireless-tools wpasupplicant
|
||||
fi
|
||||
###########################################################
|
||||
|
||||
###########################################################
|
||||
#### Miscellaneous useless packages
|
||||
##### Installation
|
||||
aptins "Miscellaneous useless packages" asr-manpages cmatrix cowsay cowsay-off fortunes fortunes-bofh-excuses fortunes-debian-hints fortunes-fr fortunes-off funny-manpages linuxlogo sl
|
||||
ains "Miscellaneous useless packages" asr-manpages cmatrix cowsay cowsay-off fortunes fortunes-bofh-excuses fortunes-debian-hints fortunes-fr fortunes-off funny-manpages linuxlogo sl
|
||||
###########################################################
|
||||
|
||||
###########################################################
|
||||
#### Manpages / Documentation
|
||||
##### Installation
|
||||
aptins "Manpages" aptitude-doc-fr info manpages-fr manpages-fr-dev manpages-fr-extra
|
||||
ains "Manpages" aptitude-doc-fr info manpages-fr manpages-fr-dev manpages-fr-extra
|
||||
###########################################################
|
||||
|
||||
# Restauration des sorties standard
|
||||
|
Loading…
x
Reference in New Issue
Block a user