Tag archive for ‘centos’

Shell script to create list of backup files in ~/.mybackup file. Use with mybackup shell script

#!/bin/bash # mybackupadd – Add file to ~/.mybackup file, then backup and email all # file as tar.gz to your email a/c. # # Usage : ./mybackupadd ~/public_html/ # # Copyright (C) 2004 nixCraft project # Email : http://cyberciti.biz/fb/ # Date : Aug-2004 # ————————————————————————- # This program is free software; you can redistribute it [...]

Shell script to backup directories from Linux server to Windows 2000/NT Server

#!/bin/bash # Shell script to backup directories from Linux server to Windows 2000/NT Server. # Run it as follows # Scriptname /home backup abc123 //server2000/backup # Backup /home directory from Linux box to NT/2000 box called # ‘server2000′ in share called ‘/backup’ with username # ‘backup’ and password ‘abc123′ # ——————————————————————– # This is a [...]

Renaming files with –– at the start

I’m making a post about this because I ran into this today and I couldn’t remember how to rename a file starting with — (two or double hyphens) in Linux (e.g. –index.html). The customer has obviously used a Windows FTP client to rename index.html to –index.html so it is out of their way, and now [...]

Ubuntu: Rename an Account [ User ID ]

How do I rename a user name from ‘tom’ to ‘jerry’ under Ubuntu Linux? You need to use the usermod command. It can modify the system account files (such as /etc/passwd) to reflect the changes that are specified on the command line. The syntax is as follows: usermod -l {new-login-name} {current-old-login-name} In this example, rename [...]

7 Tasks You Shouldn’t Use a GUI For

Sometimes the GUI is just too slow. Learn how to resize images, add drop shadows, splice mp3s, clone hard drives and more with the command line. Here are a few tasks that you might want to consider using the command line for. 1. Resizing images Unless you are doing some sort of cropping there is [...]

Cannot start Web server from Plesk panel, No such file ‘/usr/local/etc/rc.d/apache2.sh’ error appears

Attempts to start or stop apache web service on Server > Services page fail with error ERROR: PleskFatalException Unable to make action: Unable to manage service by websrvmng: websrvmng: No such file ‘/usr/local/etc/rc.d/apache2.sh’: No such file or directory System error 2: No such file or directory   Apache startup script name is specified with the [...]

Plesk yum update shows: [Errno 14] HTTP Error 404: Not Found

Today while trying to run yum update for one of our server we got the following error. yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.bytemark.co.uk * atomic: www5.atomicorp.com * base: mirror.sov.uk.goscomb.net * extras: mirror.sov.uk.goscomb.net * updates: mirror.sov.uk.goscomb.net http://www4.atomicorp.com/channels/plesk/9.0/centos/5/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Solution: To fix this [...]

HOW-TO install ffmpeg, Mplayer, mencoder,FLVtool2 and Yamdi on Plesk Linux based server

So login with SSH and enter as root. We need to make sure the correct lib directories are setup in ldconfig. Edit the /etc/ld.so.conf file and add the following lines. After you save it, run the command ldconfig /usr/local/lib /usr/lib Compiler install Because in many cases no compiler or maybe other incompatbile compiler is installed, [...]

How can I hide information_schema database from phpMyAdmin?

By default, phpMyAdmin shows all databases available to a user. So, in addition to the databases that belong to the user, the information_schema database is also visible to them. To hide the information_schema database from phpMyAdmin on a particular MySQL logical server, add the following line to the phpMyAdmin config.inc.php file: $cfg['Servers'][$i]['hide_db'] = ‘information_schema’; Please [...]

How to fix Broken RedHat up2date support on Parallels Plesk

In Parallels Plesk Panel 10.0.1 installed on RedHat 4 OS try upgrading any component through Autoinstaller in Parallels Plesk interface. The following error is shown: There was an error downloading: …… …… …… An error has occurred: exceptions.UnboundLocalError See /var/log/up2date for more information Error: The up2date utility failed to install the required packages. Attention! Your [...]