Tutoriale Linux

17Ian/120

FreeBSD 9.0 – Versiune Noua

Incepand cu 12 Ianuarie 2012 a fost lansata o noua versiune a sistemului de operare FreeBSD, in speta FreeBSD v9.0 Informatii despre aceasta versiune pot fi obtinute de pe pagina oficiala: Release Notes Release Errata Release Information Link-uri de download pentru aceasta versiune gasiti la adresa: Get FreeBSD

12Dec/110

UNIX si initiatorii sai

   UNIX este un sistem de operare initiat de un grup de programatori printre care Ken Thompson, Dennis Ritchie, Brian Kernighan, Douglas McIlroy si Joe Ossanna, in prezent existand multe derivatii ale acestui sistem dezvoltate atat de firme comerciale cat si de indivizi si organizatii non-profit. Trademark-ul UNIX apartine organizatiei The Open Group care indeplineste rolul [...]

9Dec/110

Hackeri romani arestati

Four residents of Romania have been charged for their alleged participation in a multimillion-dollar scheme to remotely access point-of-sale systems at more than 150 Subway restaurants and other U.S. merchants and steal payment card data, the U.S. Department of Justice said. The four-count indictment, unsealed Wednesday, charges the four Romanians with conspiracy to commit computer [...]

2Dec/110

Bug pentru Android ce permite monitorizarea neautorizata a apelurilor

   S-a descoperit un bug al telefoanelor ce utilizeaza sistemul de operare Android.    Acest bug permite atacatorilor sa inregistreze in mod neautorizat apelurile telefonice, sa faca localizarea geografica si sa acceseze alte date din telefon. Telefoanele vandute de HTC, Samsung, Motorola si Google contin un cod care expun anumite resurse ale aparatelor unor aplicatii gen troian. [...]

26Noi/110

Limitare banda Apache

   Pentru cei care vor sa limiteze banda de internet folosita de serverul web apache pentru clienti, ca masura de precautie pentru download-ul de diverse fisiere ori pentru evitarea epuizarii vitezei de upstream se poate folosi modului mod_bw.    Acest modul poate limita viteza dupa extensie de fisier, per virtualhost, per client si/sau per total.    Pentru a [...]

25Noi/110

Instalare PHP din surse

Obtineti codul sursa ce va fi compilat si instalat, in acest tutorial folosim versiunea 5.3.8: http://ro.php.net/distributions/php-5.3.8.tar.bz2 root@bsdpc[~/work] # wget http://ro.php.net/distributions/php-5.3.8.tar.bz2 root@bsdpc[~/work] # tar jxvf php-5.3.8.tar.bz2 root@bsdpc[~/work] # cd php-5.3.8/ root@bsdpc[~/work/php-5.3.8] # ./configure –with-mysql=/usr/local/mysql/ \ 2> –with-apxs2=/usr/local/apache2/bin/apxs \ 2> –with-openssl –with-bz2 –enable-ftp \ 2> –enable-mbstring –enable-bcmath –enable-calendar \ 2> –enable-mbregex –enable-magic-quotes \ 2> –with-pear –enable-sockets root@bsdpc[~/work/php-5.3.8] [...]

24Noi/110

Instalare Apache Web Server din surse

Obtineti codul sursa care va fi compilat si instalat, in acest tutorial folosim versiunea 2.2.21: http://mirrors.hostingromania.ro/apache.org//httpd/httpd-2.2.21.tar.bz2 root@bsdpc[~/work] # wget http://mirrors.hostingromania.ro/apache.org//httpd/httpd-2.2.21.tar.bz2 root@bsdpc[~/work] # tar jxvf httpd-2.2.21.tar.bz2 root@bsdpc[~/work] # cd httpd-2.2.21 root@bsdpc[~/work/httpd-2.2.21] # ./configure –enable-so \ 2> –enable-suexec –enable-dav \ 2> –with-suexec-caller=nobody \ 2> –enable-ssl –enable-rewrite \ 2> –enable-cache –enable-mem-cache \ 2> –enable-disk-cache –with-mpm=prefork root@bsdpc[~/work/httpd-2.2.21] # make [...]

23Noi/110

Instalare MySQL din surse

Obtineti codul sursa care va fi compilat si instalat, in acest tutorial folosim versiunea 5.5.18 http://mysql.easynet.be/Downloads/MySQL-5.5/mysql-5.5.18.tar.gz root@bsdpc[~/work] # wget http://mysql.easynet.be/Downloads/MySQL-5.5/mysql-5.5.18.tar.gz root@bsdpc[~/work] # cd mysql-5.5.18/ root@bsdpc[~/work/mysql-5.5.18] # cmake . root@bsdpc[~/work/mysql-5.5.18] # make root@bsdpc[~/work/mysql-5.5.18] # make install root@bsdpc[~/work/mysql-5.5.18] # cp support-files/mysql.server /etc/rc.d/mysql root@bsdpc[~/work/mysql-5.5.18] # cp support-files/my-medium.cnf /etc/my.cnf root@bsdpc[~/work/mysql-5.5.18] # chmod 711 /etc/rc.d/mysql root@bsdpc[~/work/mysql-5.5.18] # pw user add [...]

20Noi/110

NAT pentru IP dinamic

1. Script pentru SNAT la ip dinamic folosind iptables #!/bin/sh WANIF=”ppp0″ LANIF=”eth0″ INTERNALNET=”192.168.0.0/24″ IFCONFIG=/sbin/ifconfig IPTABLES=/usr/sbin/iptables GREP=/bin/grep AWK=/bin/awk # Determinam adresa IP externa automat: WANIP=”`$IFCONFIG $WANIF | $GREP ‘inet addr’ | $AWK ‘{print $2}’ | sed -e ‘s/.*://’`” # Se face SNAT la toate IP-urile din reteaua locala prin IP-ul extern $IPTABLES -t nat -A POSTROUTING [...]

19Noi/110

Script backup baze de date MySQL

Un mic script bash pentru backup la bazele de date MySQL: #!/bin/sh # Backup Baze de date MySQL b_dir=”/usr/BACKUP/” log_dir=”/var/log/backup/” MySQL_db_dir=”/usr/local/mysql/var/” MySQK_bk_user=”userul de backup” MySQL_bk_pw=”Parola pentru userul de backup” mkdir $b_dir`date +”%d%b%y”` mkdir $b_dir`date +”%d%b%y”`/mysql/ # MySQL for i in `ls $MySQL_db_dir | sed -e ‘s/\///’` ; do if [ -d $MySQL_db_dir$i ] ; then [...]

Highslide for Wordpress Plugin