Salve, mi chiamo Matteo Mattei e sono Ingegnere Informatico. Mi occupo da anni di sviluppo software e sistemistica Linux e ho realizzato questo portale per promuovere i miei prodotti e i miei servizi, ma anche per scrivere e condividere le varie problematiche che di volta in volta mi trovo ad affrontare con le nuove frontiere della tecnologia e della comunicazione.
Hello, my name is Matteo Mattei and I am a Computer Science Engineer. Since a long time I deal with software developing and Linux system administration and I realized this portal to advertise my products and my services, but also to write and share all the issues I find every day in the new frontiers of technology and communication.
Today I've tested the new OpenSuse 10.3 with KDE both in CD and DVD version on an old Packard Bell Desk Pro. After a long waiting during installation, at automatic reboot it will be prompt a classical black screen with the message "Operative System not present". After a vanished search on the net looking for some informations, I thought that the installer was failed to install the bootloader and so I've just tried to do it manually. Here there are all the steps I follow:
grub> root (hd0,1)
grub> setup (hd0)
grub> quit
Where:
hd0,1 => sda2
hd0 => sda
Virtual server like Aruba's are configured with Centos without yum and without php-pear. Today I've done an assistance to a server of my customer that needed pear installation. It's quite simple to make all work but I don't understand why Aruba's staff have not decided to include yum in their own default configuration server...
Shall we start installing yum:
# mkdir /root/matteo && cd /root/matteo
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/gmp-4.1.4-10.el5.i386...
# rpm -Uvh gmp-4.1.4-10.el5.i386.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/readline-5.1-1.1.i386...
# rpm rpm -Uvh readline-5.1-1.1.i386.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-2.4.3-19.el5.i...
# rpm -Uvh python-2.4.3-19.el5.i386.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-2.6.26-2.1.2....
# rpm -Uvh libxml2-2.6.26-2.1.2.i386.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-python-2.6.26...
# rpm -Uvh libxml2-python-2.6.26-2.1.2.i386.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/expat-1.95.8-8.2.1.i3...
# rpm -Uvh expat-1.95.8-8.2.1.i386.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-elementtree-1....
# rpm -Uvh python-elementtree-1.2.6-5.i386.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/sqlite-3.3.6-2.i386.r...
# rpm -Uvh sqlite-3.3.6-2.i386.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-sqlite-1.1.7-1...
# rpm -Uvh python-sqlite-1.1.7-1.2.1.i386.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-0.125-3.el5....
# rpm -Uvh elfutils-0.125-3.el5.i386.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/rpm-python-4.4.2-47.e...
# rpm -Uvh rpm-python-4.4.2-47.el5.i386.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/m2crypto-0.16-6.el5.1...
# rpm -Uvh m2crypto-0.16-6.el5.1.i386.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-urlgrabber-3.1...
# rpm -Uvh python-urlgrabber-3.1.0-2.noarch.rpm
# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-3.0.5-1.el5.cento...
# rpm -Uvh yum-3.0.5-1.el5.centos.5.noarch.rpm
# yum -y update
Now it's time to install php-pear:
# yum install php-pear*
Ok, in every virtual-host of Plesk (/var/www/vhosts/example.com/conf/httpd.include), there is the directive open_basedir that must be configured in the right way adding the pear path:
php_admin_value open_basedir "/var/www/vhosts/example.com/httpdocs:/tmp:/usr/share/pear:/local/PEAR"
We must also configure pear in /etc/php.ini
include_path=".:/usr/share/pear:/local/PEAR/"
At the end you shall restart apache:
/etc/init.d/httpd restart
Today I'm happened to disable file and directory browsing on my web server that after my work showed all its content. Shortly, to prohibit that every users can view the content of a directory (if noindex.php/index.html is present) occur a little modifying to configuration file of apache or a new directive in .htaccess.
I'll show you how to do in both cases...
httpd.conf / virtual-host
Edit your virtualhost adding these rows:
<Directory "/home/httpd/html/mydomain/files">
Options -Indexes
</Directory>
.htaccess
Add in the .htaccess file this row:
Options -Indexes
In the first case is necessary to restart apache server.
Using kate as text editor, temporary files that have been saved present an annoying trailing tilde that personally I consider useless. I'm used to be careful when I use something like text editor (good vim school!). So I realized this mini script in bash to remove temporary files when I've just saved the final document.
#!/bin/bash
rm `find $1 | grep '~$'`
The file above I've called rmm (I don't say why) and I'm put it in /usr/bin/
After written and saved something, I only open a shell, go to source directory and run this command:
$ rmm .
Or run directly this command without moving to source directory:
$rmm /home/matteo/src
This script is trivial and can be obviously improved. If you want to contribute I will be happy to add your le improvement.
Often I see a beautiful streaming videos in a variety kind of formats and some persons that are trying to grab those videos without any concrete result. I want to share with you how to capture those streams and convert in a more "usable" AVI format.
Well... the only thing to do is open your unix shell and check if you have installed mplayer, then run this simple command
$ mplayer "mms://url" -dumpstream -dumpfile video_out.avi
Where mms://url is the URL of the stream
and video_out.avi is the output of the video recorded.
That's all.
Note:
This workaround is only possible to streams play-ables with mplayer. For sites like youtube or similar that encode video in flash format, you can't do what I've just write.
Disclaimer:
Some sites licenses can't allow you to grab any video. So, please read carefully sites licenses before record any streams.