commit c9b7172d6a18e456bdca67ca864d3492fd8e7f35 Author: Yorick Barbanneau Date: Fri Apr 27 16:13:59 2018 +0200 First commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..0192acb --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +Debian Install script +--------------------- + +Script d'intallation automatique pour Debian stable. Passe à la version unstable, installe XFCE et personnalise les configurations + + * Mise en place de la liste des utilisateurs dans lightDM + * Modifications des icones pour iceweasel et icedove (à faire) diff --git a/conf/init.sh b/conf/init.sh new file mode 100644 index 0000000..d512092 --- /dev/null +++ b/conf/init.sh @@ -0,0 +1,8 @@ +GRUB_DEFAULT_CONF_FILE="/etc/default/grub" +INITRAMFS_CONF_FILE="/etc/initramfs-tools/modules" + +#Fusion inventory variables +FI_SERVER="" +FI_PROXY_USER="" +FI_PROXY_PASS="" +FI_CONF_FILE="/etc/fusioninventory/agent.cfg" diff --git a/files/apt/10.sid.list b/files/apt/10.sid.list new file mode 100644 index 0000000..c0bba96 --- /dev/null +++ b/files/apt/10.sid.list @@ -0,0 +1 @@ +deb http://ftp.debian.org/debian sid main diff --git a/files/apt/20-stable b/files/apt/20-stable new file mode 100644 index 0000000..23c7344 --- /dev/null +++ b/files/apt/20-stable @@ -0,0 +1,3 @@ +Package: * +Pin:release n=sid +Pin-Priority:-10 diff --git a/files/apt/20auto-upgrades b/files/apt/20auto-upgrades new file mode 100644 index 0000000..8d6d7c8 --- /dev/null +++ b/files/apt/20auto-upgrades @@ -0,0 +1,2 @@ +APT::Periodic::Update-Package-Lists "1"; +APT::Periodic::Unattended-Upgrade "1"; diff --git a/files/apt/50unattended-upgrades b/files/apt/50unattended-upgrades new file mode 100644 index 0000000..a49b2de --- /dev/null +++ b/files/apt/50unattended-upgrades @@ -0,0 +1,10 @@ +// ACAQB unattended upgrades configuration file +Unattended-Upgrade::Origin-Pattern { + "o=Debian,n=stretch"; + "o=Debian,n=stretch-updates"; + "o=Debian,n=stretch,l=Debian-Security"; + "o=Debian,n=sid"; +}; +Unattended-Upgrade::Remove-Unused-Dependencies "true"; +Unattended-Upgrade::MinimalSteps "true"; +Acquire::http::Dl-Limit "50"; diff --git a/files/apt/80-fusioninventory b/files/apt/80-fusioninventory new file mode 100644 index 0000000..733b9b8 --- /dev/null +++ b/files/apt/80-fusioninventory @@ -0,0 +1,3 @@ +Package: fusioninventory-agent +Pin: release n=sid +Pin-Priority: 991 diff --git a/files/apt/80-papirus-icon-theme b/files/apt/80-papirus-icon-theme new file mode 100644 index 0000000..f1f69ee --- /dev/null +++ b/files/apt/80-papirus-icon-theme @@ -0,0 +1,3 @@ +Package: papirus-icon-theme +Pin: release n=sid +Pin-Priority: 991 diff --git a/files/backgrounds/acaqb_blue.jpg b/files/backgrounds/acaqb_blue.jpg new file mode 100644 index 0000000..fdb626b Binary files /dev/null and b/files/backgrounds/acaqb_blue.jpg differ diff --git a/files/backgrounds/acaqb_blue_c.jpg b/files/backgrounds/acaqb_blue_c.jpg new file mode 100644 index 0000000..c1c447d Binary files /dev/null and b/files/backgrounds/acaqb_blue_c.jpg differ diff --git a/files/backgrounds/acaqb_green.jpg b/files/backgrounds/acaqb_green.jpg new file mode 100644 index 0000000..9db3fce Binary files /dev/null and b/files/backgrounds/acaqb_green.jpg differ diff --git a/files/backgrounds/acaqb_green_c.jpg b/files/backgrounds/acaqb_green_c.jpg new file mode 100644 index 0000000..6bccb19 Binary files /dev/null and b/files/backgrounds/acaqb_green_c.jpg differ diff --git a/files/backgrounds/acaqb_red.jpg b/files/backgrounds/acaqb_red.jpg new file mode 100644 index 0000000..7c69f58 Binary files /dev/null and b/files/backgrounds/acaqb_red.jpg differ diff --git a/files/backgrounds/acaqb_red_c.jpg b/files/backgrounds/acaqb_red_c.jpg new file mode 100644 index 0000000..5cdcb06 Binary files /dev/null and b/files/backgrounds/acaqb_red_c.jpg differ diff --git a/files/backgrounds/dynamic.xml b/files/backgrounds/dynamic.xml new file mode 100644 index 0000000..d67771e --- /dev/null +++ b/files/backgrounds/dynamic.xml @@ -0,0 +1,68 @@ + + + 00 + 00 + 01 + + + 600.0 + /usr/share/backgrounds/acaqb/dynamic/green_1.png + + + + 5.0 + /usr/share/backgrounds/acaqb/dynamic/green_1.png + /usr/share/backgrounds/acaqb/dynamic/red_1.png + + + 600.0 + /usr/share/backgrounds/acaqb/dynamic/red_1.png + + + + 5.0 + /usr/share/backgrounds/acaqb/dynamic/red_1.png + /usr/share/backgrounds/acaqb/dynamic/blue_1.png + + + 600.0 + /usr/share/backgrounds/acaqb/dynamic/blue_1.png + + + + 5.0 + /usr/share/backgrounds/acaqb/dynamic/blue_1.png + /usr/share/backgrounds/acaqb/dynamic/green_2.png + + + 600.0 + /usr/share/backgrounds/acaqb/dynamic/green_2.png + + + + 5.0 + /usr/share/backgrounds/acaqb/dynamic/green_2.png + /usr/share/backgrounds/acaqb/dynamic/blue_2.png + + + 600.0 + /usr/share/backgrounds/acaqb/dynamic/blue_2.png + + + + 5.0 + /usr/share/backgrounds/acaqb/dynamic/blue_2.png + /usr/share/backgrounds/acaqb/dynamic/red_2.png + + + 600.0 + /usr/share/backgrounds/acaqb/dynamic/red_2.png + + + + 5.0 + /usr/share/backgrounds/acaqb/dynamic/red_2.png + /usr/share/backgrounds/acaqb/dynamic/green_1.png + + + diff --git a/files/backgrounds/dynamic/blue_1.png b/files/backgrounds/dynamic/blue_1.png new file mode 100644 index 0000000..d60a03b Binary files /dev/null and b/files/backgrounds/dynamic/blue_1.png differ diff --git a/files/backgrounds/dynamic/blue_2.png b/files/backgrounds/dynamic/blue_2.png new file mode 100644 index 0000000..645899e Binary files /dev/null and b/files/backgrounds/dynamic/blue_2.png differ diff --git a/files/backgrounds/dynamic/green_1.png b/files/backgrounds/dynamic/green_1.png new file mode 100644 index 0000000..8a9f836 Binary files /dev/null and b/files/backgrounds/dynamic/green_1.png differ diff --git a/files/backgrounds/dynamic/green_2.png b/files/backgrounds/dynamic/green_2.png new file mode 100644 index 0000000..98fdc1a Binary files /dev/null and b/files/backgrounds/dynamic/green_2.png differ diff --git a/files/backgrounds/dynamic/red_1.png b/files/backgrounds/dynamic/red_1.png new file mode 100644 index 0000000..46e6fbd Binary files /dev/null and b/files/backgrounds/dynamic/red_1.png differ diff --git a/files/backgrounds/dynamic/red_2.png b/files/backgrounds/dynamic/red_2.png new file mode 100644 index 0000000..bceba09 Binary files /dev/null and b/files/backgrounds/dynamic/red_2.png differ diff --git a/files/lightdm-gtk-greeter.conf b/files/lightdm-gtk-greeter.conf new file mode 100644 index 0000000..27f9933 --- /dev/null +++ b/files/lightdm-gtk-greeter.conf @@ -0,0 +1,5 @@ +#ACAQB gtk-greeter configuration file +[greeter] +background=/usr/share/backgrounds/acaqb/acaqb_blue_c.jpg +theme-name=Arc-Dark +icon-theme-name=Papirus diff --git a/files/lightdm.conf b/files/lightdm.conf new file mode 100644 index 0000000..9d9982c --- /dev/null +++ b/files/lightdm.conf @@ -0,0 +1,4 @@ +[LightDM] +[Seat:*] +greeter-hide-users=false +greeter-show-manual-login=false diff --git a/files/packages.list b/files/packages.list new file mode 100644 index 0000000..e3c43c9 --- /dev/null +++ b/files/packages.list @@ -0,0 +1,58 @@ +# Package list to Install +#System +pulseaudio +unzip +unattended-upgrades + +# Desktop +xorg +lightdm +xfce4 +xfce4-goodies +xfce4-whiskermenu-plugin +gigolo +gvfs +gvfs-backends +network-manager-gnome +xfce4-power-manager +xfce4-notifyd +xfce4-mount-plugin +xfce4-systemload-plugin +thunar-archive-plugin +gnome-system-tools +gnome-disk-utility +plank + +#Printing +cups +system-config-printer + +#Look and Feel +desktop-base +murrine-themes +arc-theme +papirus-icon-theme +gtk2-engines-pixbuf +plymouth +plymouth-themes + +#Applications +xfce4-screenshooter +ristretto +pavucontrol +xfce4-taskmanager +xfce4-terminal +mousepad +libreoffice +libreoffice-gtk3 +libreoffice-l10n-fr +firefox-esr +firefox-esr-l10n-fr +evince +thunderbird +thunderbird-l10n-fr +vlc +vlc-l10n + +#FI Agent +fusioninventory-agent diff --git a/files/skel/.config/autostart/Plank.desktop b/files/skel/.config/autostart/Plank.desktop new file mode 100644 index 0000000..897e1c8 --- /dev/null +++ b/files/skel/.config/autostart/Plank.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=0.9.4 +Type=Application +Name=Plank +Comment=Dock de Bureau +Exec=/usr/bin/plank +OnlyShowIn=XFCE; +StartupNotify=false +Terminal=false +Hidden=false + diff --git a/files/skel/.config/plank/dock1/launchers/exo-file-manager.dockitem b/files/skel/.config/plank/dock1/launchers/exo-file-manager.dockitem new file mode 100644 index 0000000..9463946 --- /dev/null +++ b/files/skel/.config/plank/dock1/launchers/exo-file-manager.dockitem @@ -0,0 +1,6 @@ +#This file auto-generated by Plank. +#2018-03-22T13:50:36+0000 + +[PlankDockItemPreferences] +#The uri for this item. +Launcher=file:///usr/share/applications/exo-file-manager.desktop diff --git a/files/skel/.config/plank/dock1/launchers/firefox-esr.dockitem b/files/skel/.config/plank/dock1/launchers/firefox-esr.dockitem new file mode 100644 index 0000000..851a492 --- /dev/null +++ b/files/skel/.config/plank/dock1/launchers/firefox-esr.dockitem @@ -0,0 +1,2 @@ +[PlankDockItemPreferences] +Launcher=file:///usr/share/applications/firefox-esr.desktop diff --git a/files/skel/.config/plank/dock1/launchers/libreoffice-startcenter.dockitem b/files/skel/.config/plank/dock1/launchers/libreoffice-startcenter.dockitem new file mode 100644 index 0000000..4d30037 --- /dev/null +++ b/files/skel/.config/plank/dock1/launchers/libreoffice-startcenter.dockitem @@ -0,0 +1,6 @@ +#This file auto-generated by Plank. +#2018-03-22T13:50:35+0000 + +[PlankDockItemPreferences] +#The uri for this item. +Launcher=file:///usr/share/applications/libreoffice-startcenter.desktop diff --git a/files/skel/.config/plank/dock1/launchers/thunderbird.dockitem b/files/skel/.config/plank/dock1/launchers/thunderbird.dockitem new file mode 100644 index 0000000..c3088fd --- /dev/null +++ b/files/skel/.config/plank/dock1/launchers/thunderbird.dockitem @@ -0,0 +1,2 @@ +[PlankDockItemPreferences] +Launcher=file:///usr/share/applications/thunderbird.desktop diff --git a/files/skel/.config/plank/dock1/launchers/vlc.dockitem b/files/skel/.config/plank/dock1/launchers/vlc.dockitem new file mode 100644 index 0000000..c20771a --- /dev/null +++ b/files/skel/.config/plank/dock1/launchers/vlc.dockitem @@ -0,0 +1,2 @@ +[PlankDockItemPreferences] +Launcher=file:///usr/share/applications/vlc.desktop diff --git a/files/skel/.config/plank/dock1/launchers/xfce-settings-manager.dockitem b/files/skel/.config/plank/dock1/launchers/xfce-settings-manager.dockitem new file mode 100644 index 0000000..78b1cfb --- /dev/null +++ b/files/skel/.config/plank/dock1/launchers/xfce-settings-manager.dockitem @@ -0,0 +1,6 @@ +#This file auto-generated by Plank. +#2018-03-22T13:50:36+0000 + +[PlankDockItemPreferences] +#The uri for this item. +Launcher=file:///usr/share/applications/xfce-settings-manager.desktop diff --git a/files/skel/.config/plank/dock1/settings b/files/skel/.config/plank/dock1/settings new file mode 100644 index 0000000..0fdfd56 --- /dev/null +++ b/files/skel/.config/plank/dock1/settings @@ -0,0 +1,42 @@ +#This file auto-generated by Plank. +#2015-12-02T16:04:36+0000 + +[PlankDockPreferences] +#Whether to show only windows of the current workspace. +CurrentWorkspaceOnly=false +#The size of dock icons (in pixels). +IconSize=46 +#If 0, the dock won't hide. If 1, the dock intelligently hides. If 2, the dock auto-hides. If 3, the dock dodges active maximized windows. If 4, the dock dodges every window. +HideMode=3 +#Time (in ms) to wait before unhiding the dock. +UnhideDelay=0 +#Time (in ms) to wait before hiding the dock. +HideDelay=0 +#The plug-name of the monitor for the dock to show on (e.g. DVI-I-1, HDMI1, LVDS1). Leave this empty to keep on the primary monitor. +Monitor= +#List of *.dockitem files on this dock. DO NOT MODIFY +DockItems=xfce-settings-manager.dockitem;;exo-file-manager.dockitem;;iceweasel.dockitem;;libreoffice-startcenter.dockitem +#The position for the dock on the monitor. If 0, left. If 1, right. If 2, top. If 3, bottom. +Position=3 +#The dock's position offset from center (in percent). +Offset=0 +#The name of the dock's theme to use. +Theme=Matte +#The alignment for the dock on the monitor's edge. If 0, panel-mode. If 1, left-aligned. If 2, right-aligned. If 3, centered. +Alignment=3 +#The alignment of the items in this dock if panel-mode is used. If 1, left-aligned. If 2, right-aligned. If 3, centered. +ItemsAlignment=3 +#Whether to prevent drag'n'drop actions and lock items on the dock. +LockItems=false +#Whether to use pressure-based revealing of the dock if the support is available. +PressureReveal=true +#Whether to show only pinned applications. Useful for running more then one dock. +PinnedOnly=false +#Whether to automatically pin an application if it seems useful to do. +AutoPinning=true +#Whether to show the item for the dock itself. +ShowDockItem=true +#Whether the dock will zoom when hovered. +ZoomEnabled=true +#The dock's icon-zoom (in percent). +ZoomPercent=150 diff --git a/files/skel/.config/xfce4/desktop/icons.screen0-1264x1008.rc b/files/skel/.config/xfce4/desktop/icons.screen0-1264x1008.rc new file mode 100644 index 0000000..cde992e --- /dev/null +++ b/files/skel/.config/xfce4/desktop/icons.screen0-1264x1008.rc @@ -0,0 +1,63 @@ +[xfdesktop-version-4.10.3+-rcfile_format] +4.10.3+=true + +[/home/animateurs/Bureau/fiche bénécoles .odt.saved] +row=1 +col=1 + +[/home/animateurs/Bureau/projet-péda-manue.odt] +row=5 +col=0 + +[/home/animateurs/Bureau/coloriage] +row=4 +col=1 + +[/home/animateurs/Bureau/TAP Marion] +row=3 +col=0 + +[/home/animateurs/Bureau/fiche couture.odt] +row=6 +col=0 + +[/home/animateurs/Bureau/fiche présence couture.odt] +row=7 +col=0 + +[/home/animateurs/Bureau/coloriages 3-5 ans] +row=0 +col=1 + +[/home/animateurs/Bureau/skel] +row=3 +col=1 + +[/home/animateurs/Bureau/ALEXIA] +row=4 +col=0 + +[/home/animateurs/Bureau/Projet Eventito.odt] +row=5 +col=1 + +[/home/animateurs/Bureau/LEA] +row=2 +col=1 + +[/home/animateurs/Bureau/fiche couture 2.odt] +row=8 +col=0 + +[Corbeille] +row=0 +col=0 + +[/] +row=1 +col=0 + +[/home/animateurs] +row=2 +col=0 + diff --git a/files/skel/.config/xfce4/desktop/icons.screen0-1264x928.rc b/files/skel/.config/xfce4/desktop/icons.screen0-1264x928.rc new file mode 100644 index 0000000..883ea5c --- /dev/null +++ b/files/skel/.config/xfce4/desktop/icons.screen0-1264x928.rc @@ -0,0 +1,63 @@ +[xfdesktop-version-4.10.3+-rcfile_format] +4.10.3+=true + +[/home/animateurs/Bureau/fiche bénécoles .odt.saved] +row=1 +col=1 + +[/home/animateurs/Bureau/projet-péda-manue.odt] +row=5 +col=0 + +[/home/animateurs/Bureau/coloriage] +row=4 +col=1 + +[/home/animateurs/Bureau/TAP Marion] +row=3 +col=0 + +[/home/animateurs/Bureau/fiche couture.odt] +row=6 +col=0 + +[/home/animateurs/Bureau/fiche présence couture.odt] +row=7 +col=0 + +[/home/animateurs/Bureau/coloriages 3-5 ans] +row=0 +col=1 + +[/home/animateurs/Bureau/skel] +row=3 +col=1 + +[/home/animateurs/Bureau/ALEXIA] +row=4 +col=0 + +[/home/animateurs/Bureau/Projet Eventito.odt] +row=5 +col=1 + +[/home/animateurs/Bureau/LEA] +row=2 +col=1 + +[/home/animateurs/Bureau/fiche couture 2.odt] +row=6 +col=1 + +[Corbeille] +row=0 +col=0 + +[/] +row=1 +col=0 + +[/home/animateurs] +row=2 +col=0 + diff --git a/files/skel/.config/xfce4/desktop/icons.screen0-1264x977.rc b/files/skel/.config/xfce4/desktop/icons.screen0-1264x977.rc new file mode 100644 index 0000000..883ea5c --- /dev/null +++ b/files/skel/.config/xfce4/desktop/icons.screen0-1264x977.rc @@ -0,0 +1,63 @@ +[xfdesktop-version-4.10.3+-rcfile_format] +4.10.3+=true + +[/home/animateurs/Bureau/fiche bénécoles .odt.saved] +row=1 +col=1 + +[/home/animateurs/Bureau/projet-péda-manue.odt] +row=5 +col=0 + +[/home/animateurs/Bureau/coloriage] +row=4 +col=1 + +[/home/animateurs/Bureau/TAP Marion] +row=3 +col=0 + +[/home/animateurs/Bureau/fiche couture.odt] +row=6 +col=0 + +[/home/animateurs/Bureau/fiche présence couture.odt] +row=7 +col=0 + +[/home/animateurs/Bureau/coloriages 3-5 ans] +row=0 +col=1 + +[/home/animateurs/Bureau/skel] +row=3 +col=1 + +[/home/animateurs/Bureau/ALEXIA] +row=4 +col=0 + +[/home/animateurs/Bureau/Projet Eventito.odt] +row=5 +col=1 + +[/home/animateurs/Bureau/LEA] +row=2 +col=1 + +[/home/animateurs/Bureau/fiche couture 2.odt] +row=6 +col=1 + +[Corbeille] +row=0 +col=0 + +[/] +row=1 +col=0 + +[/home/animateurs] +row=2 +col=0 + diff --git a/files/skel/.config/xfce4/panel/battery-9.rc b/files/skel/.config/xfce4/panel/battery-9.rc new file mode 100644 index 0000000..da6198f --- /dev/null +++ b/files/skel/.config/xfce4/panel/battery-9.rc @@ -0,0 +1,20 @@ +display_label=false +display_icon=true +display_power=false +display_percentage=true +display_bar=false +display_time=false +tooltip_display_percentage=false +tooltip_display_time=false +low_percentage=10 +critical_percentage=5 +action_on_low=1 +action_on_critical=1 +hide_when_full=1033 +colorA=rgb(136,136,255) +colorH=rgb(0,255,0) +colorL=rgb(255,255,0) +colorC=rgb(255,0,0) +command_on_low= +command_on_critical= + diff --git a/files/skel/.config/xfce4/panel/whiskermenu-7.rc b/files/skel/.config/xfce4/panel/whiskermenu-7.rc new file mode 100644 index 0000000..08dcac0 --- /dev/null +++ b/files/skel/.config/xfce4/panel/whiskermenu-7.rc @@ -0,0 +1,60 @@ +favorites=exo-terminal-emulator.desktop,exo-file-manager.desktop,exo-mail-reader.desktop,exo-web-browser.desktop +recent=exo-terminal-emulator.desktop +button-title=Applications +button-icon=xfce4-whiskermenu +button-single-row=false +show-button-title=false +show-button-icon=true +launcher-show-name=true +launcher-show-description=true +item-icon-size=2 +hover-switch-category=false +category-icon-size=1 +load-hierarchy=false +recent-items-max=10 +favorites-in-recent=true +display-recent-default=false +position-search-alternate=false +position-commands-alternate=false +position-categories-alternate=false +menu-width=400 +menu-height=500 +menu-opacity=100 +command-settings=xfce4-settings-manager +show-command-settings=true +command-lockscreen=xflock4 +show-command-lockscreen=true +command-switchuser=gdmflexiserver +show-command-switchuser=true +command-logout=xfce4-session-logout +show-command-logout=true +command-menueditor=menulibre +show-command-menueditor=true +command-profile=mugshot +show-command-profile=true +search-actions=4 + +[action0] +name=Pages de manuel +pattern=# +command=exo-open --launch TerminalEmulator man %s +regex=false + +[action1] +name=Wikipédia +pattern=!w +command=exo-open --launch WebBrowser https://en.wikipedia.org/wiki/%u +regex=false + +[action2] +name=Exécuter dans un terminal +pattern=! +command=exo-open --launch TerminalEmulator %s +regex=false + +[action3] +name=Ouvrir l’emplacement +pattern=^(file|http|https):\\/\\/(.*)$ +command=exo-open \\0 +regex=true + diff --git a/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml new file mode 100644 index 0000000..1435d50 --- /dev/null +++ b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml new file mode 100644 index 0000000..cd2b797 --- /dev/null +++ b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml new file mode 100644 index 0000000..9ea124f --- /dev/null +++ b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml @@ -0,0 +1,155 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml new file mode 100644 index 0000000..dc211d3 --- /dev/null +++ b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml new file mode 100644 index 0000000..7f4631b --- /dev/null +++ b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml new file mode 100644 index 0000000..5510649 --- /dev/null +++ b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-settings-manager.xml b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-settings-manager.xml new file mode 100644 index 0000000..2e112e3 --- /dev/null +++ b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-settings-manager.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml new file mode 100644 index 0000000..9f47bbb --- /dev/null +++ b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml new file mode 100644 index 0000000..13bb1f2 --- /dev/null +++ b/files/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/files/sources.list b/files/sources.list new file mode 100644 index 0000000..a80ad2d --- /dev/null +++ b/files/sources.list @@ -0,0 +1,3 @@ +deb http://ftp.fr.debian.org/debian unstable main contrib non-free +#deb http://ftp.fr.debian.org/debian unstable-updates main +#deb http://ftp.fr.debian.org/ unstable/updates main diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..024755f --- /dev/null +++ b/install.sh @@ -0,0 +1,168 @@ +#!/bin/bash +# +# Install script for Debian unstable from deian stable +# +# adapt source.list for unstable +#mv /etc/apt/sources.list /etc/apt/sources.list.old +#cp files/sources.list /etc/apt/sources.list +source lib/messages.sh +source lib/download.sh + +#init default variables +source conf/init.sh + +#Variables override +for i in $(ls conf/*.conf) +do + source $i +done +message "$FI_PROXY_PASS\n" +exit 0 +erase_display_char () { + let "i=0" + while [ $i -lt $1 ]; do + message "\b \b" + let "i=$i + 1" + done +} + +install () { + nchar=0 + message "\nInstall $1 : " + LC_ALL=C apt-get install --no-install-recommends -y $1 2>/dev/null | while read x; do + display="" + pkg_name="" + case $x in + Get*) + pkg_name=$(echo $x | awk '{ printf $5 }') + display="downloading" + ;; + Unpack*) + pkg_name=$(echo $x | awk '{ printf $2 }') + display="Unpacking" + ;; + *already*newest*) + pkg_name=$(echo $x | awk '{ printf $1 }') + display="Already Installed" + ;; + esac + if [ ! -z "$display" ] + then + display="$display $pkg_name" + erase_display_char $nchar + message "$display" "info" + nchar=${#display} + fi + done + message " done" "ok" + +} + +process_package_file (){ + for p in `cat $1 | grep '^[^#].*'` + do + install $p + done +} + +create_fusioninv_conf () { + # Process Config file + message "\nProcess Fusion inventory configuration file : " + #remove comments + sed -i '/^#/ d' ${FI_CONF_FILE} + sed -i '/^$/ d' ${FI_CONF_FILE} + + # put server + sed -i "1iserver = ${FI_SERVER}" ${FI_CONF_FILE} + + # put username and password for proxy (htaccess) + sed -Ei "s/^(user\ =).*/\1 ${FI_PROXY_USER}/g" ${FI_CONF_FILE} + sed -Ei "s/^(password\ =).*/\1 ${FI_PROXY_PASS}/g" ${FI_CONF_FILE} + #sed -Ei "s/^(tag\ =).*/\1 ${centre}/g" ${FI_CONF_FILE} + message "done" "ok" +} + +configure_drm(){ + if [ -z "$(grep -o drm $INITRAMFS_CONF_FILE)" ] + then + cat "drm" >> $INITRAMFS_CONF_FILE + else + message "DRM already done " "warn" + fi + if [ -z "$(grep -o $1 $INITRAMFS_CONF_FILE)" ] + then + cat "$1 modeset=1" >> $INITRAMFS_CONF_FILE + else + message "$1 already done " "warn" + fi +} + +configure_grub (){ + sed -E "s/^GRUB_CMDLINE_LINUX_DEFAULT=\"(.*)\"/GRUB_CMDLINE_LINUX_DEFAULT=\"\1 spash\"/g" ${GRUB_DEFAULT_CONF_FILE} >/dev/null + update-grub2 2>/dev/null +} + +configure_plymouth (){ + local module=$(lsmod | grep -o "i915\|radeon" | head -1) + if [ ! "$module" == "" ] + then + message "\nConfigure drm modules for $module : " + configure_drm $module + message "done" "ok" + message "\nConfigure grub command line : " + local splash_enable=$(sed -rn 's/GRUB_CMDLINE_LINUX_DEFAULT=\"(.*)\"/\1/p' ${GRUB_DEFAULT_CONF_FILE} | grep -o "splash" ) + [[ -z $spash_enable ]] && configure_grub || message "Grub spash kernel option exist " "warn" + message "done" "ok" + message "\nSelect plymouth theme : " + plymouth-set-default-theme -R spinner &>/dev/null + message "done" "ok" + message "\n" + else + message "\nNo suitable kernel module found for plymouth\n" "warn" + fi +} + +message "\nAdd Debian Sid Repository :" +cp ./files/apt/10.sid.list /etc/apt/sources.list.d/ +cp ./files/apt/20-stable /etc/apt/preferences.d/ +cp ./files/apt/80-fusioninventory /etc/apt/preferences.d/ +cp ./files/apt/80-papirus-icon-theme /etc/apt/preferences.d/ +message "done\n" "ok" + + +#apt-get update &>/dev/null +#process_package_file files/packages.list + +message "Activate unattended upgrades : " +cp ./files/apt/20auto-upgrades /etc/apt/apt.conf.d/ +cp ./files/apt/50unattended-upgrades /etc/apt/apt.conf.d/ +message "done" "ok" + +message "\ninstall custom background images : " +mkdir -p /usr/share/backgrounds/acaqb/ +cp -R ./files/backgrounds/* /usr/share/backgrounds/acaqb/ +message "done\n" "ok" + +configure_plymouth + +# Login manager config +message "\nConfiguring lightdm : " +cp files/lightdm.conf /etc/lightdm/ &> /dev/null +cp files/lightdm-gtk-greeter.conf /etc/lightdm/ +message "OK" "ok" + +message "\nCreate users default parameters : " +cp -R files/skel/ /etc/ &> /dev/null +message "OK" "ok" + +#remove interface file until NM use network +rm -rf /etc/network/interfaces + +#add elementary theme +#mkdir -p /tmp/themes/ +#cd /tmp/themes/ + +#download master.zip https://github.com/shimmerproject/elementary-xfce/archive/ +#unzip master.zip > /dev/null +#mv elementary-xfce-master/* /usr/share/icons/ +#rm -rf * diff --git a/lib/download.sh b/lib/download.sh new file mode 100644 index 0000000..1cc3e4e --- /dev/null +++ b/lib/download.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +download (){ +#Download function +# $1 : filename +# $2 : url +message "\nDownloading $1 : " +http_response=$(wget --spider --server-response $2/$1 2>&1 | grep HTTP/ | tail -1 | awk ' { printf $2 }') +if [[ $http_response -eq 200 ]] +then + wget -c --progress=dot $2/$1 2>&1 | grep --line-buffered "[0-9]\{1,3\}%" -o | awk '{printf ("\b\b\b\b%4s", $1)}' + if [ $? -eq 0 ] + then + message " \b\b\b\b\b done\n " "ok" + else + message " \b\b\b\b\b error.\n" "ok" + exit 1 + fi +else + message "\b\b\b\b\b Error 404\n" "err" + exit 1 +fi +} + diff --git a/lib/messages.sh b/lib/messages.sh new file mode 100644 index 0000000..ccd549e --- /dev/null +++ b/lib/messages.sh @@ -0,0 +1,38 @@ +#/bin/bash +# +# message () +# ---------- +# +# External library to display colored messages +# +message () { + local red=$'\e[1;31m' + local grn=$'\e[1;32m' + local yel=$'\e[1;33m' + local blu=$'\e[1;34m' + local mag=$'\e[1;35m' + local cyn=$'\e[1;36m' + local end=$'\e[0m' + case $2 in + "err") + printf "%s${1}%s" "${red}" "${end}" + exit 1 + ;; + "warn") + printf "%s${1}%s" "${yel}" "${end}" + ;; + "ok") + printf "%s${1}%s" "${grn}" "${end}" + ;; + "bold") + printf "\e[1m${1}%s" "${end}" + ;; + "info") + printf "%s${1}%s" "${mag}" "${end}" + ;; + + *) + printf "${1}" + esac +} +