Skip to content

{ Tag Archives } Linux

remove files older than 7 days

we can use a simple one line for this: #!/bin/sh VERZ=”/home/cobackup/wiki/” ALTER=”7″ cd $VERZ find . -mtime +$ALTER -exec rm {} \; and we can edit crontab  running this script every day 0 22 * * * /bin/sh /root/scripts/ > /dev/null 2>&1

Also tagged

How to change the Hostname of a Linux system

Change the hostname on a running system On any Linux system you can change its hostname with the command ‘hostname‘ (surprised?)… Here are some quick usages of the command line hostname: hostname without any parameter it will output the current hostname of the system. hostname –fqd it will output the fully qualified domain name (or […]

Also tagged

Installation phpmyadmin on SLES 11

1.)first you can download source code 2.) Untar the source code in your webserver’s document root 3.) create softlink to directory selim:/srv/www/htdocs # ls -l total 20 drwxr-xr-x 2 root root 4096 May 21 15:19 gif drwxr-xr-x 2 root root 4096 Jul 28 18:07 hosts -rw-r–r– 1 root root 130 Jun 1 11:27 index.html -rw-r–r– […]

Also tagged

APC ‘unsupported protocol’

I want to install php-extension APC over PECL. I get this error: is using a unsupported protocal – This should never happen. install failed I found on this solution: Some PEAR installations on PHP 5.2.9 and 5.2.10 seem to be corrupted. When trying to install something, you will get the error: is […]

Also tagged

implementing trash with samba

edit /etc/samba/smb.conf create new share [public] comment = public folder path = /home/diesdas/public read only = No create mask = 0777 directory mask = 0777 vfs object = recycle (SAMBA ADDON FOR TRASH) recycle:repository = /home/.Papierkorb recycle:keeptree = yes recycle:exclude = *.tmp *.temp *.swp *.o *.obj ~s* Backup* AUTOBACKUP* recycle:exclude_dir = /tmp /temp /cache /.Cache […]

Also tagged