Changes

From SME Server
Jump to navigationJump to search
5,150 bytes added ,  22:33, 15 June 2016
Line 15: Line 15:     
smeserver-dar2 pour le panel  
 
smeserver-dar2 pour le panel  
 +
====cvs make a new source====
 +
 +
cd smecontribs/rpms/smeserver-rkhunter
 +
rm -rf contribs8
 +
cvs update -dPA
 +
-> test si branch a construire existe -> arret
 +
cp -R contribs8/ contribs9
 +
rm -rf contribs9/CVS/
 +
cvs add contribs9
 +
cd contribs9
 +
make prep
 +
mv smeserver-rkhunter-1.2.0 smeserver-rkhunter-1.4.0
 +
rm -rf *.patch
 +
tar cvzf smeserver-rkhunter-1.4.0.tar.gz smeserver-rkhunter-1.4.0
 +
#or tar -Jcvf  smeserver-rkhunter-1.4.0.tar.xz smeserver-rkhunter-1.4.0
 +
date +%s > import.log
 +
make new-sources FILES="smeserver-rkhunter-1.4.0.tar.gz"
 +
cvs add .cvsignore *.spec Makefile import.log sources
 +
 +
-> remove Patch and %patch
 +
 +
cvs commit -m '* Thu Aug 13 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.4.0-1.sme
 +
- First Import to contribs9'
 +
 +
====plague-client====
 +
http://buildsys.koozali.org/build/10/smeserver-core/x86_64/plague/0.4.5.8-2.el7.sme/noarch/plague-common-0.4.5.8-2.el7.sme.noarch.rpm
 +
http://buildsys.koozali.org/build/10/smeserver-core/x86_64/plague/0.4.5.8-2.el7.sme/noarch/plague-client-0.4.5.8-2.el7.sme.noarch.rpm
 +
 +
====SOGO3====
 +
db yum_repositories set sogo3 repository \
 +
    BaseURL http://inverse.ca/rhel-v3/6/\$basearch \
 +
    EnableGroups yes \
 +
    GPGCheck no \
 +
    Name "Inverse SOGo Repository" \
 +
    IncludePkgs gnustep-base,libmemcached,libwbxml,sogo*,sope49* \
 +
    Visible yes \
 +
    status disabled
 +
====Testspeed====
 +
http://speedof.me/
 +
 +
====Find upstream rpms patched by contribs.org====
 +
For the need of the distribution we ought to patch some upstream rpms, this is the list
 +
rpm -qa --qf "%{name} %{BuildHost}\n" | grep -P 'build64\-1|builder.koozali.org' | awk '{print $1}' | grep -vP '^smeserver|e\-smith' | sort
 +
 +
====Mock configuration & scl build ====
 +
http://people.centos.org/hughesjr/scl_examples/
 +
http://grokbase.com/t/centos/centos/142tg0hrmw/how-to-build-scl-python-setuptools-from-src-rpm
 +
 +
====remove the degraded raid====
 +
mdadm --grow /dev/md0 --force --raid-devices=1
 +
 +
====Using Simple "Wildcards" and "Repetitions"====
 +
Calling these "wildcards" may actually conflict with the theoretical grammar and syntax of Perl, but in fact is the most intuitive way to think of it, and will not lead to any coding mistakes.
 +
 +
.  Match any character
 +
\w  Match "word" character (alphanumeric plus "_")
 +
\W  Match non-word character
 +
\s  Match whitespace character
 +
\S  Match non-whitespace character
 +
\d  Match digit character
 +
\D  Match non-digit character
 +
\t  Match tab
 +
\n  Match newline
 +
\r  Match return
 +
\f  Match formfeed
 +
\a  Match alarm (bell, beep, etc)
 +
\e  Match escape
 +
\021  Match octal char ( in this case 21 octal)
 +
\xf0  Match hex char ( in this case f0 hexidecimal)
 +
 +
You can follow any character, wildcard, or series of characters and/or wildcard with a repetiton. Here's where you start getting some power:
 +
 +
*      Match 0 or more times
 +
+      Match 1 or more times
 +
?      Match 1 or 0 times
 +
{n}    Match exactly n times
 +
{n,}  Match at least n times
 +
{n,m}  Match at least n but not more than m times
 +
 +
Now for some examples:
 +
 +
$string =~ m/\s*rem/i;  #true if the first printable text is rem or REM
 +
 +
$string =~ m/^\S{1,8}\.\S{0,3}/;  # check for DOS 8.3 filename
 +
                                  #  (note a few illegals can sneak thru)
 +
 +
====search about db in template====
 +
grep -srni '${[A-Za-z0-9]\|$[A-Za-z0-9]\|_prop' /etc/e-smith/templates*| grep '}\|_prop' |less
 +
or
 +
grep -srni '${[A-Za-z0-9]\|$[A-Za-z0-9]\|_prop' /etc/e-smith/templates*| grep '} |\|}|\|_prop' |less
 +
 +
====70-persistent-net.rules====
 +
[root@sme9 ~]# locate 70-persistent
 +
/etc/udev/rules.d/70-persistent-net.rules
 +
[root@sme9 ~]# cat /etc/udev/rules.d/70-persistent-net.rules
 +
# This file was automatically generated by the /lib/udev/write_net_rules
 +
# program, run by the persistent-net-generator.rules rules file.
 +
#
 +
# You can modify it, as long as you keep each rule on a single
 +
# line, and change only the value of the NAME= key.
 +
 +
# PCI device 0x8086:0x100e (e1000)
 +
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:94:a1:2c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
 +
 +
====upgrade horde5 for sme9====
 +
http://forums.contribs.org/index.php?topic=50969.0
 +
 +
====iso2utf8====
 +
 +
iconv -f iso-8859-1 -t utf-8 fichier_src > fichier_dst
    
====smartd_supervision====
 
====smartd_supervision====
Line 107: Line 217:  
remi forums
 
remi forums
 
http://forums.famillecollet.com/viewtopic.php?pid=6841#p6841
 
http://forums.famillecollet.com/viewtopic.php?pid=6841#p6841
  [root@sme9 ~]# yum --enablerepo=remi-php55,remi,epel update php\* --exclude=php-horde-Horde\*
+
  [root@sme9 ~]# yum --enablerepo=remi-php55,remi,epel update php\* --exclude=php-horde-horde\*
 
+
http://forums.contribs.org/index.php/topic,50582.msg256351.html#msg256351
 +
https://access.redhat.com/site/documentation/en-US/Red_Hat_Software_Collections/ ???
 
====Log====
 
====Log====
 
=====Quick Parse of Log=====
 
=====Quick Parse of Log=====
Line 215: Line 326:     
==== ROOT PWD ====
 
==== ROOT PWD ====
PWD=$(cat /etc/ldap.secret)###donne le mot de passe mysql root en argument
+
PWD=$(cat /etc/ldap.secret)###donne le mot de passe mysql root en argument
 +
or
 +
perl -Mesmith::util -e 'print esmith::util::LdapPassword();'
 +
or
 +
password = {esmith::util::LdapPassword();}
 +
 
 
==== CGMINER ====
 
==== CGMINER ====
 
  yum --enablerepo smecontribs install cgminer
 
  yum --enablerepo smecontribs install cgminer
Line 291: Line 407:  
from atomic
 
from atomic
 
see http://forums.contribs.org/index.php/topic,50081.0.html
 
see http://forums.contribs.org/index.php/topic,50081.0.html
 +
 +
==== Page de téléchargement en français ====
 +
 +
Mais de rien, ça fait toujours plaisir de pouvoir aider les autres...
 +
 +
[[User:TheKinrar|TheKinrar]] ([[User talk:TheKinrar|talk]]) 12:07, 4 May 2014 (MDT)
 +
 +
J'irai jeter un petit coup d'oeuil à la doc à l'occasion... Là je m'étais mis à traduire la page  [[SME_Server:Volunteering]].
 +
 +
[[User:TheKinrar|TheKinrar]] ([[User talk:TheKinrar|talk]]) 12:32, 4 May 2014 (MDT)
 +
 +
Je n'y étais pas inscrit, mais je fais ça tout de suite. Et j'avais déjà regardé du côté de Pootle, le français est déjà bien avancé il me semble.
 +
 +
[[User:TheKinrar|TheKinrar]] ([[User talk:TheKinrar|talk]]) 15:48, 4 May 2014 (MDT)

Navigation menu