PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/imagick.so’ – liblcms2.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
Not able to install imagick on CentOS, fedora or RHEL
liblcms2.so.2: cannot open shared object file
Install following packages in RHEL, fedora or CentOS
yum install lcms2
Find out which version of Centos/Red Hat/Fedora you are running
bojan@veprina:~$ lsb_release -a
LSB Version: :base-4.0-ia32:base-4.0-noarch:core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.4 (Final)
Release: 6.4
Codename: Final
ssh login without password
veoma korisna stvar ako imate puno unix strojeva i cesto se logujete…radite nesto…tj ssh-ujete 🙂
cilj je da se namjesti ssh pristup masini bez kucanja sifre.
[ ]——>[ server1 ]
[ client ]——>[ server2 ]
[ ]——>[ neki_komp ]
konfiguracija sa klijentske strane:
ssh-keygen -t rsa
ssh-copy-id root@server1_ip
ssh-copy-id root@server2_ip
ssh-copy-id root@neki_komp_ip
i kada se pokusa ssh root@server1_ip, ne trazi nam vise sifru….yeaah 😀
yum repository sa cd-a
nema neta a potrebni su vam neki programi, servisi, jedini izvor paketa je CD/DVD…
root@R3:~#mount /dev/cdrom /mnt
[cdrom]
name=repo sa diska
baseurl=file:///mnt/
enabled=1
gpgcheck=1
gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release
root@R3:~# yum search httpd
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
================================================= N/S Matched: httpd =================================================
httpd.i686 : Apache HTTP Server
httpd-devel.i686 : Development interfaces for the Apache HTTP server
httpd-manual.noarch : Documentation for the Apache HTTP server
httpd-tools.i686 : Tools for use with the Apache HTTP Server
mod_dav_svn.i686 : Apache httpd module for Subversion server
mod_dnssd.i686 : An Apache HTTPD module which adds Zeroconf support
Name and summary matches only, use “search all” for everything.
/etc/inittab missing?
inittab sluzi da kaze sistemu u koji runlevel da se buta.
mozda je greskom obrisan ili …
kako ga povratiti:
boot sa nekim linux diskom u rescue mod, probe ce da utvrde da li postoji neka linux instalacija i mountovace os u /mnt/sysimage
povrat inittab-a se vrsi reinstalacijom initscripts rpm-a lokalno sa diska ili sa neta. ako ide sa neta onda je potrebno podesiti mrezu za vreme boot-a rescue moda.
chroot /mnt/sysimage – promjenili smo root na nas sistem koji zelimo povratiti
yum search initscripts – apt-get search initscripts
yum install initscripts – apt-get install initscripts
reboot
drugi nacin – instalacija rpm-a sa diska:
najpre je potrebno mountovati disk u lokalni folder naseg rescue sistema.
mount /dev/cdrom /mnt/sysimage/mnt
chroot /mnt/sysimage
root@R3:~# ls /mnt/
EULA RELEASE-NOTES-bn-IN.html RELEASE-NOTES-ko-KR.html RELEASE-NOTES-zh-CN.html
GPL RELEASE-NOTES-de-DE.html RELEASE-NOTES-ml-IN.html RELEASE-NOTES-zh-TW.html
HighAvailability RELEASE-NOTES-en-US.html RELEASE-NOTES-mr-IN.html repodata
images RELEASE-NOTES-es-ES.html RELEASE-NOTES-or-IN.html ResilientStorage
isolinux RELEASE-NOTES-fr-FR.html RELEASE-NOTES-pa-IN.html RPM-GPG-KEY-redhat-beta
LoadBalancer RELEASE-NOTES-gu-IN.html RELEASE-NOTES-pt-BR.html RPM-GPG-KEY-redhat-release
media.repo RELEASE-NOTES-hi-IN.html RELEASE-NOTES-ru-RU.html Server
Packages RELEASE-NOTES-it-IT.html RELEASE-NOTES-si-LK.html TRANS.TBL
README RELEASE-NOTES-ja-JP.html RELEASE-NOTES-ta-IN.html
RELEASE-NOTES-as-IN.html RELEASE-NOTES-kn-IN.html RELEASE-NOTES-te-IN.html
rpm -ivh —replacepkgs /mnt/Centos/initscripts-8.45.14.x86_64.rpm
inittab je povracen.
reboot
DHCP server
instalacija:
yum -y install dhcp
editovanje konfiguracionog fajla
nano /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.191.0 netmask 255.255.255.128 {
range 192.168.191.70 192.168.191.75;
# — default gateway
option routers 192.168.191.1;
option subnet-mask 255.255.255.128;
option nis-domain “domen”;
option domain-name “domen”;
option domain-name-servers 192.168.1.8;
# option time-offset -18000; # Eastern Standard Time
option ntp-servers ntp.server.domen;
# option netbios-name-servers 192.168.1.1;
# — Selects point-to-point node (default is hybrid). Don’t change this unless
# — you understand Netbios very well
# option netbios-node-type 2;
# range dynamic-bootp 192.168.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host jebiga {
#next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}
Centos – apache boot
po defaultu apache nije startovan niti se pokrece sa sistemom.
chkconfig –level 35 httpd on
opcije 3 i 5 omogucavaju da se apache butuje sa sitemom tj sa runlevelom.
chkconfig –list httpd
httpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
–list prikazuje sta je ukljuceno…
ovaj princip se moze primjeniti i na bilo koji drugi servis kao sto je named, ssh, ftp…