Archive for July, 2007
How to check that RoR is working in Plesk 8.1.1
I had the possibility to upgrade my Plesk instalation from 8.0.1 to 8.1.1 without to pay additional money . In the new release notes they mentioned that Ruby on Rails is supported, so I tried it to see. The upgrade was fine, and now I have RoR installed.
To activate it you have to add [...]
Enabling Sources on openSUSE 10.2
Disable ZMD before proceeding:
su -c “rczmd stop”
su -c “rpm -e zmd libzypp-zmd-backend sqlite-zmd rug zen-updater”
Now you can use YaST, Zypper or Smart.
Zypper is the new command line tool in the openSUSE package management stack. You can use it just like rug.
To add the relevant sources, issue the following commands:
su
rpm –import http://linux01.gwdg.de/~pbleser/guru-rpm.asc http://packman.unixheads.com/suse/10.2/gpg-pubkey-1abd1afb.asc
zypper -v [...]
How to install Subversion on Plesk 8.1
I will try to explain step by step how I installed Subversion on a Virtual Private Server wich runs Plesk 8.1.1 as control panel and Suse Linux 9.3 as operating system:
First step is to download subversion package, now the latest version is 1.4.4. It is very nice that they offer also a package with [...]
How to Install Drupal on your server
You can obtain the latest Drupal release archive from here. The files are in .tar.gz format and can be extracted using most compression tools. On a typical Unix command line, use:
# wget http://drupal.org/files/projects/drupal-x.x.tar.gz
# tar -zxvf drupal-x.x.tar.gz
This will create a new directory drupal-x.x/ containing all Drupal files and directories. Move the contents of that directory into [...]
How to reset MySQL root password
To reset a root password that you forgot (using paths on our system):
[root@host root]#killall mysqld
[root@host root]#/usr/libexec/mysqld -Sg –user=root &
You may have better luck with:
mysqld –skip-grant-tables –user=root
Go back into MySQL with the client:
[root@host root]# mysql
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 1 to server version: 3.23.41
Type ‘help;’ [...]
How to use vhost.conf in Plesk
Maybe you need to do some specific configurations for a domain or subdomain and you tried to do directly in httpd.include file. You saw that it works for the momment but plesk will delete again your specific configurations from this file. So, in this case the answer is vhost.conf file. This file will be placed [...]
Backup & Recovery for a subversion repository
Create a backup of the repository using the following command:
svnadmin dump /path/to/repository | gzip > repository-backup.gz
Run the svnadmin recover command on the repository:
svnadmin recover /path/to/repository
Delete any unused log files in the repository:
svnadmin list-unused-dblogs /path/to/repository | xargs rm -vf
Delete any remaining shared-memory files in the repository:
rm -f /path/to/repository/db/__db.0*
Dump/Restore for Subversion Repository
Data repository dump:
Dump first entry to current:
svnadmin dump /home/svn/repos –revision 0:HEAD > repos.dump
Dump revision 150 to current:
svnadmin dump /home/svn/repos –revision 150:HEAD –incremental > repos-150.dump
Data repository load:
First load:
svnadmin load /home/svn/repos < repos.dump
Incremental load:
svnadmin load /home/svn/repos < repos-150.dump
How to install Microsoft Core Fonts on Suse 10.2
Installing Microsoft’s TrueType core fonts for the web on any rpm based linux box with TrueType support is now easy:
I will show you a few solutions with the same final result
1. download the .spec file:
wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
* build the binary rpm with:
rpmbuild -bb msttcorefonts-2.0-1.spec
* install the package:
rpm -ivh /usr/src/packages/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm
* reload xfs server
/sbin/service xfs reload
2. a)
Get [...]
Copy and pack your files into an ISO
To create the iso file do:
mkisofs -o /storage/myfiles.iso -J -R -r -V -v /dir/path/
Replace /dir/path/ with the full path to whatever directory contains the files you wish burned to CD.
