Monthly Archives: November 2012

Network services

To start all the network services:
service network start
To stop all the network services:
service network stop

To turn off the network interface:
ifdown eth0
To turn on the network interface:
ifup eth0

Advertisements

Apache share folder + Junction Link Magic

In order to create a new folder available on a web server running Apache tomcat.
First, you need to check the what is the default DocumentRoot value in
\Apache\conf\httpd.conf

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

Then, go to above folder and create a new directory in it.
once you open your web browser  you should be able to navigate to

http://localhost/newFolder

Now, to use Junction Link Magic to create a junction point.

And you can share all your data!

Error: Cannot retrieve repository metadata (repomd.xml) for repository: “repo-name”. Please verify its path and try again

I have come across the problem while trying to install new packages.

Problem
ftp://ftp.***.com/pub/redhat/linux/***/6Server/en/os/SRPMS/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 – “couldn’t connect to host”
Error: Cannot retrieve repository metadata (repomd.xml) for repository: “repo-name”. Please verify its path and try again

The issue is that OS cannot access the repository

Solution
edit the file /etc/yum.repos.d/”repo-name”.repo
e.x.
vim /etc/yum.repos.d/rhel-source.repo

and disable causing problems repository by setting
enable=0

Save and exit the file.

Done!

install libstdc++.so.5 on SUSE 10 SP 3 x64

Problem
Install libstdc++.do.5 on SUSE 10 SP3 x64 without installation cd/dvd.

Normally, yast2 can be used to install the missing package
yast2 -i

Solution
To install the missing package you need to have access to the SUSE repository.

then, download the package on your hard disk and install it.
you can either right click on it or use the following command as root:
rpm -ivh file.rpm

After that you should be all set.