Changes

From SME Server
Jump to navigationJump to search
5,577 bytes added ,  00:00, 27 December 2019
Line 1: Line 1: −
HEllo,
+
Hello,
    
i am Unnilenium Aka Jean-Philippe Pialasse
 
i am Unnilenium Aka Jean-Philippe Pialasse
Line 5: Line 5:  
you can find my own smeserver wiki ( in French)  http://smeserver.pialasse.com
 
you can find my own smeserver wiki ( in French)  http://smeserver.pialasse.com
    +
==input model==
 +
<inputbox>
 +
type=create
 +
preload=Contrib/Template
 +
buttonlabel=Create
 +
inline=true
 +
break=no
 +
</inputbox>
   −
I contribute to the contribs wiki as part of the Doc Team
+
{| class="wikitable"
 +
|-
 +
|create a new page for a regular package :
 +
|<inputbox>
 +
type=create
 +
preload=Contrib/Template
 +
buttonlabel=Create
 +
inline=true
 +
break=no
 +
</inputbox>
 +
|-
 +
|create a new page for a smeserver-* package :
 +
|smeserver-<inputbox>
 +
type=create
 +
preload=Contrib/Template-smeserver-
 +
buttonlabel=Create
 +
inline=true
 +
break=no
 +
</inputbox>
 +
|}
   −
I also contribute to translation on pootle.
+
==table==
 
  −
Finally i have some contributions like denyhosts and usbdiskmanager, plus i like to port good old contribs that are no longer maintained.
      
{| class="mw-collapsible mw-collapsed wikitable"
 
{| class="mw-collapsible mw-collapsed wikitable"
Line 20: Line 45:  
|}
 
|}
    +
<div class="toccolours mw-collapsible mw-collapsed" style="width:800px"> This text is not collapsible; but the next is collapsible and hidden by default: <div class="mw-collapsible-content">{{Lorem}}</div> </div>
 +
==Available Contribs for sme9 (with a page)==
   −
<div class="toccolours mw-collapsible mw-collapsed" style="width:800px"> This text is not collapsible; but the next is collapsible and hidden by default: <div class="mw-collapsible-content">{{Lorem}}</div> </div>
+
{{#ask:  [[Version::~*9]] [[Category:Contrib]]
 +
|format=ul|link=all|headers=show|columns=3|limit=150 }}
 +
 
 +
 
 +
==Available Contribs for sme9 in smetest ==
 +
 
 +
{{#ask:  [[Version::Devel9]] [[Category:Contrib]]
 +
|format=ul|link=all|headers=show|columns=3|limit=150 }}
 +
 
 +
 
 +
==Available Contribs for sme9 in smedev ==
 +
 
 +
{{#ask:  [[Version::Alpha9]]  [[Category:Contrib]]
 +
|format=ul|link=all|headers=show|columns=3|limit=150 }}
 +
 
 +
==Not Available Contribs for sme9 (with a page)==
 +
 
 +
{{#ask:  [[Version::!~*9]]
 +
|format=ul|link=all|headers=show|columns=3|limit=150 }}
 +
 
 +
==tests==
 +
 
 +
Version: Contrib8 pas Contrib9
 +
{{#ask: [[Version::Contrib8]] [[Version::!~*9]]
 +
|?Version|?Category|format=datatables|link=all|headers=show}}
 +
 
 +
Version:  Contrib9
 +
{{#ask:  [[Version::Contrib9]]
 +
|?Version|?Category|format=datatables|link=all|headers=show}}
 +
 
 +
Category: Contrib 8
 +
{{#ask:  [[Category:Contrib]]  [[Version::~*8]]
 +
|?Version|?Category|format=datatables|link=all|headers=show}}
 +
 
 +
Category: Contrib 9
 +
{{#ask: [[Category:Contrib]] [[Version::~*9]]
 +
|?Version|?Category|format=datatables|link=all|headers=show}}
 +
 
 +
Category:Contrib  AND Category:Administration:VPN
 +
{{#ask: [[Category:Contrib]] [[Category:Administration:VPN]]
 +
|?Version|?Category|format=datatables|link=all|headers=show}}
 +
 
 +
Category: Contrib
 +
{{#ask: [[Category:Contrib]]
 +
|?Version|?Category|format=datatables|link=all|headers=show}}
 +
 
 +
{{#bugzilla:columns=id,product,version,status,summary |sort=id |order=desc|disablecache=1 |component=smeserver-mailsorting|noresultsmessage="No open bugs found."}}
 +
 
 +
 
 +
= SME9 from a Centos 6 box=
 +
inspired from https://wiki.contribs.org/index.php?title=SME_on_CentOS_6&oldid=18561
 +
 
 +
also check here : http://smeserver.pialasse.com/index.php/Cloudatcost
 +
 
 +
sed -i -e 's/rhgb quiet/selinux=0/g' /boot/grub/grub.conf
 +
sed -i -e 's/SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
 +
yum remove selinux-policy-targeted
 +
setenforce 0
 +
# add yum repo
 +
yum install wget -y
 +
mkdir /tmp/repo.bak
 +
mv /etc/yum.repos.d/*.repo /tmp/repo.bak/
 +
wget -O /etc/yum.repos.d/sme9.repo http://bugs.contribs.org/attachment.cgi?id=3652
 +
# import necessary keys
 +
rpm --import http://sme-mirror.firewall-services.com/releases/8/smeos/x86_64/RPM-GPG-KEY-SMEServer
 +
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
 +
rpm --import https://fedoraproject.org/static/217521F6.txt
 +
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
 +
rpm --import http://www.salstar.sk/pub/yum/keys/RPM-GPG-KEY-Fedora-Pre-Extras
 +
#clean yum cache
 +
yum --enablerepo=* clean all
 +
 
 +
yum --disablerepo=* --enablerepo=smeupdates9,smeos9 --disablerepo=updates,base,smeupdates-testing9  install e-smith\* smeserver\*  at bc bind-libs bind-utils cronie cronie-anacron crontabs cyrus-sasl-md5 dhcp ed eject elfutils elfutils-libs fetchmail ftp gettext glib hesiod iptraf iptstate isdn4k-utils libselinux-python libsysfs libxml2-python lm_sensors lockdev lsof lvm2 man minicom mkbootdisk mlocate mod_ssl mtools mt-st mutt net-snmp net-snmp-utils openldap-servers patch pcmciautils postgresql-libs pyxf86config rpm-build rp-pppoe setserial strace sudo sysfsutils syslinux tcpdump telnet time tmpwatch traceroute unzip usbutils usermode vim-common vim-enhanced wget wodim xz zip zlib php-pear-Net-URL perl-Compress-Raw-Bzip2 perl-IO-Compress-Bzip2 rsync tnef freeradius-ldap
 +
yum install gettext  --enablerepo=base,updates -y
 +
yum update initscripts --disablerepo=* --enablerepo=smeos9,smeupdates9
 +
yum upgrade --disablerepo=smeupdates-testing9  --enablerepo=base,updates --exclude=initscripts
 +
yum remove postfix -y
 +
 
 +
#to avoid being locked out in case
 +
unlink  /etc/e-smith/events/post-install/S10init-passwords
 +
/sbin/e-smith/signal-event post-install
 +
/sbin/e-smith/db accounts setprop admin PasswordSet yes
 +
/sbin/e-smith/config set PasswordSet yes
 +
rm /service/*/supervise/control -f
 +
# configure your server correctly
 +
/sbin/e-smith/console
 +
touch /forcequotacheck
 +
 
 +
set your admin password
 +
passwd admin
 +
 
 +
/sbin/e-smith/db configuration setprop  sshd status enabled PermitRootLogin yes access public
 +
/sbin/e-smith/signal-event  remoteaccess-update
 +
config setprop httpd-admin ValidFrom  YOURIP/255.255.255.255
 +
/sbin/e-smith/signal-event post-upgrade
 +
 
 +
last time
 +
find /var/service/ -type f -iname control -exec rm {} \;
 +
 
 +
and reboot
 +
 
 +
/sbin/e-smith/signal-event reboot
   −
{{#ask: [[Category: Contrib]]
+
==== create a raid lvm aside ====
|?Version|?Languages|?Has license|?Category|format=datatables|link=all|headers=show}}
+
I had a couple of drive in an external eSATA dock. So first I removed one, put the new storage drive and create a degraded RAID1+ LVM
 +
mdadm --create /dev/md4 --level=raid1 --raid-devices=1 /dev/sde --force
 +
pvcreate /dev/md4
 +
vgcreate nasdrive /dev/md4
 +
lvcreate -L 1.1T -n video nasdrive 
 +
lvcreate -L 500G -n music nasdrive 
 +
lvcreate -L 2T -n backup nasdrive
 +
lvreduce -L 400G /dev/nasdrive/music
 +
lvresize -l +100%FREE /dev/nasdrive/video
 +
mkfs.ext4 /dev/nasdrive/backup -L backuppc
 +
mkfs.ext4 /dev/nasdrive/music -L music 
 +
mkfs.ext4 /dev/nasdrive/video -L video
 +
then copy files from needed drives
   −
{{#ask: [[Category: Contribs]]
+
then umount the drives  :
|?Category|format=datatables|link=all|headers=show}}
+
umount /dev/nasdrive/*
 +
unmount /dev/oldrives
 +
vgchange -a n nasdrive
 +
mdadm --stop /dev/md4
 +
change disk in the dock
 +
mdadm --assemble --scan
 +
vgchange -a y nasdrive
 +
mdadm --grow /dev/md4 --add /dev/sdc --raid-devices=2
 +
mdadm --add  /dev/md4 --add /dev/sdc
    +
then final step fill fstab to have it mounted on boot.
   −
{{#ask: [[Category: Howto]]
+
sources
|?Category|format=datatables|link=all|headers=show}}
+
* https://linoxide.com/how-tos/how-extend-resize-lvm-partition-linux/#3_Resizing_filesystem
 +
* https://linoxide.com/linux-how-to/lvm-configuration-linux/
 +
* [[Raid]]
 +
* https://forums.centos.org/viewtopic.php?t=65165
 +
*http://ryandoyle.net/posts/expanding-a-lvm-partition-to-fill-remaining-drive-space/
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,228

edits

Navigation menu