Category Archives: Linux

Install Mysql 8.0 ON Centos 6

wget https://dev.mysql.com/get/mysql80-community-release-el6-5.noarch.rpm

yum install mysql80-community-release-el6-5.noarch.rpm

yum-config-manager –disable mysql57-community

yum-config-manager –enable mysql80-community

sudo yum module disable mysql

sudo yum install mysql-community-server

systemctl start mysqld

systemctl status mysqld

sudo grep ‘temporary password’ /var/log/mysqld.log

mysql -uroot -p

ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘MyNewPass4!’;

Sursa: https://dev.mysql.com/doc/mysql-installation-excerpt/8.0/en/linux-installation-yum-repo.html

Ubuntu + 3G Modem

In cazul meu modemul este USB: K3565 .

SIM-ul de la Unite, am facut cum zice aici http://dmitrykhn.homedns.org/wp/2011/01/ubuntu-3g-modem-terminal/ (asta cred ca s-a inspirat de aici http://www.stanovlenie.org.ua/setting-internet-in-console-linux-in-aid-wvdial/) instalarea pacheteleor a fost mai simpla. Continue reading

Instalam FFMpeg si FFMPEG-PHP Extension pe Centos


yum install ffmpeg ffmpeg-devel

If you get package not found, then you will need to add few lines in the yum repository for dag packages installation. Create a file named dag.repo in /etc/yum.repos.d with the following contents on it

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

then

yum install ffmpeg ffmpeg-devel

 daca are probleme cu keia sau ceva de genu asta eu am rezolvata asa:

rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

astea(http://www.mysql-apache-php.com/ffmpeg-install.htm) zic asa:

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Install FFMPEG-PHP Extension

 

wget http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
tar -xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0/

phpize

daca nu e instalat: yum install php-devel

./configure

Daca zice ceva cu no acceptable C compiller PATH bla bla, ii dam asa: yum groupinstall "Development tools"

make

Daca da eroare de genu: "ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: Б─≤PIX_FMT_RGBA32Б─≥ undeclared (first use in this function)", facem asa:

Fix: With the latest version of ffmpeg-php (0.6.0), update ffmpeg_frame.c and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32

vi ffmpeg_frame.c

:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32

:w :q!

./configure

make

make install

yum install ffmpeg ffmpeg-devel