Archive for Дневник

Първи стъпки в RHEL

# subscription-manager register --username user@mail.com --password pass --auto-attach
# subscription-manager repos --enable rhel-7-server-optional-rpms --enable rhel-7-server-extras-rpms --enable=rhel-7-server-rh-common-rpms
# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install epel-release-latest-7.noarch.rpm
Advertisements

Leave a comment »

Building and installing hhvm on CentOS

Please Don’t remove the information about this compiling from source. If you like RPMS or PRE-BUILD please see below (end of this page) and please don’t change this page to pre-built information!

Use the following shell script to compile HHVM on CentOS 7.x

# Need to be ran under root priv or you can sudo it
# Update your CentOS first
yum update -y

# Then you need to get EPEL repositories

rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm

# Install some dependencies 

yum install cpp gcc-c++ cmake git psmisc {binutils,boost,jemalloc,numactl}-devel \
{ImageMagick,sqlite,tbb,bzip2,openldap,readline,elfutils-libelf,gmp,lz4,pcre}-devel \
lib{xslt,event,yaml,vpx,png,zip,icu,mcrypt,memcached,cap,dwarf}-devel \
{unixODBC,expat,mariadb}-devel lib{edit,curl,xml2,xslt}-devel \
glog-devel oniguruma-devel ocaml gperf enca libjpeg-turbo-devel openssl-devel \
mariadb mariadb-server {fastlz,double-conversion,re2}-devel make -y

# Optional dependencies (these extensions are not built by default)

yum install {fribidi,libc-client,glib2}-devel -y

# Get our hhvm
cd /tmp
git clone https://github.com/facebook/hhvm -b master  hhvm  --recursive
cd hhvm

We have to run. ./configure

# Okay let's go
cmake .
# Multithreads compiling
make -j$(($(nproc)+1))
# Compiled?
./hphp/hhvm/hhvm --version
# Install it
make install
# Final
hhvm --version

Or you can use Prebuilt Packages on Centos 7

Leave a comment »

Linux Permissions

Права на папки с цел сигурност
==============================

chmod 751 /home/
chmod 700 /root/
chmod 700 /backups/ -R
chmod 700 /usr/scripts/ -R
chmod 700 /home/ircd /home/paco

Leave a comment »

Един Хедър на блог пост

Един хедър на блог пост погледнат по два различни начина

sss1

 

 

 

sss2

Leave a comment »

When CentOS/RHEL users touch Debian

root@microshells:~# alias yum=apt-get
root@microshells:~# yum install varnish
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libjemalloc1 libvarnishapi1
Suggested packages:
varnish-doc
The following NEW packages will be installed:
libjemalloc1 libvarnishapi1 varnish
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 657 kB of archives.
After this operation, 1,701 kB of additional disk space will be used.
Do you want to continue? [Y/n]

Leave a comment »

astro

Leave a comment »

rhel subscription

[root@shredder ~]# subscription-manager register –username billy@unixfreakz.com –password XXXxXXXX–auto-attach

Leave a comment »

%d bloggers like this: