for i in lab2-pc{1..12} ;
do ssh -t $i.local \
"sudo apt-get install -y squid-deb-proxy-client ;\
sudo apt-get install -y puppet;
sudo cp /tmp/puppet /etc/default/puppet ; sudo /etc/init.d/puppet restart" ;
done
ثبّت أدوات augeas للعمل مع Puppet:
puppet manifest for augeas-tools
|
package {
'augeas-tools':
ensure => installed
}
|
puppet manifest for libaugeas-ruby
|
package {
'libaugeas-ruby':
ensure => installed
}
|
sudo apt-get install augeas-tools libaugeas-ruby
الحصول على لوحة مفاتيح بالعربية والإنجليزية
للحساب الحالي:
gsettings set org.gnome.libgnomekbd.keyboard layouts "['fr', 'us', 'ara']"
gsettings set org.gnome.libgnomekbd.keyboard options "['grp\tgrp:alt_shift_toggle']
"
لتطبيقه بشكل إفتراضي على كل النظام:
puppet manifest for gsettings-system-wide-ar-en-keyboard-layout
|
augeas {
'gsettings-system-wide-ar-en-keyboard-layout':
context => "/files/usr/share/glib-2.0/schemas/org.gnome.libgnomekbd.keyboard.gschema.xml/schemalist/schema/key[2]/default/",
changes => "set default = ['ara','us']
}
|
عدّل /usr/share/glib-2.0/schemas/org.gnome.libgnomekbd.keyboard.gschema.xml