Networking


23
Feb 09

Install Yum on RHEL4

In my company they purchased some software from Autodesk that comes on Redhat Enterprise 4, i needed to install some packages on the system for the use of some internal applications, instead of installing packages and all the dependencies, i though using automatic installer like yum would be better, below is the steps to have yum installed on your RHEL4 machine :

1. Install rhel4
2. Download Yum rpm package

wget http://gd.tuwien.ac.at/opsys/linux/yum/2.0/yum-2.0.5-1.noarch.rpm

3. Install the package

rpm -Uvh yum-2.0.5-1.noarch.rpm

4. Edit repositories location

nano /etc/yum.conf

Change the baseurl in [base] to

http://mirror.centos.org/centos/4/os/$basearch/

Change the baseurl in [updates] to

http://mirror.centos.org/centos/4/updates/$basearch/

5- Install the full yum with all its dependencies.

yum install yum
  • Share/Bookmark

4
Nov 08

Ubuntu 8.10 Intrepid – Fix Static IP & Network Manager Problem

Hey all,

today i have installed the new release of Ubuntu, 8.10 Intrepid

but i had a problem setting my IP to a static one, when i do this through the network manager, and when i edited the network files manually nothing worked, so here is the steps i followed to solve the problem :

first i removed the network manager

sudo update-rc.d -f NetworkManager remove

then i added my network configuration by editing the file /etc/network/interfaces

sudo gedit /etc/network/interfaces

so it looks like

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.xxx
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.xxx

then i edited the file /etc/resolv.conf to add my DNS

sudo nano -w /etc/resolv.conf

to look like

# Generated by NetworkManager
nameserver 192.168.1.xxx

then i restart the networking by :

sudo /etc/init.d/networking restart

if u still have problems, i suggest you restart the machine and check, the above steps is how i got my network up .

enjoy the new Ubuntu ;)

  • Share/Bookmark

7
Oct 08

Install Subversion with Web Access on Ubuntu 8.04 (Hardy Heron)

well, it is very useful to have a subversion server so u can have different versions of your applications; for back up and to be able to restore old versions, and be able to share the project with the team, when there is more than one developer working on it.

1- install apache

sudo apt-get install apache2

2- install subversion

sudo apt-get install subversion libapache2-svn

3- We’re going to create the subversion repository in /svn

sudo svnadmin create /svn

4- Now we’ll need to edit the configuration file for the subversion webdav module

sudo gedit /etc/apache2/mods-enabled/dav_svn.conf

we will comment the following line, so we can access the repository using the address http://www.servername.com/svn

<Location /svn>
</Location>

and the following line to enable the dav module

DAV svn

and the following line to set the path to our repository which is /svn in our case

SVNPath /svn

and the following 3 lines to enable basic authentication

AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd

5- We create a user to have access to our repository

sudo htpasswd -cm /etc/apache2/dav_svn.passwd

where is the desired login name
6- We restart the apache server

sudo /etc/init.d/apache2 restart

7- You can access now the repository using the address : http://www.servername.com/svn

  • Share/Bookmark

27
Jul 08

Linux Terminal Commands Guide

Hey folks,

a friend asked me for a nice guide to learn the Linux commands, so i made a search for him and found some cool links

straight to the point guide for beginners :
http://linux.org.mt/article/terminal

it covers the following topics :
* Introduction
* Preparation
* The “Bash” shell
* A simple command
* Obtaining help
* Linux Directories
* Linux Files
* Wildcards
* Typing Tricks
* Redirecting Output
* Environment variables
* Scripts
* Aliases
* Switching to root
* Compiling from source
* Conclusion

————————————————–
Alphabetical Directory of Linux Commands
http://www.oreillynet.com/linux/cmd/

a complete directory of Linux commands

————————————————–
Linux shortcuts and commands
http://www.unixguide.net/linux/linuxshortcuts.shtml

This is a practical selection of the commands we use most often

if you have more cool guides, please post in comments

  • Share/Bookmark

18
Jun 08

how to enable mod_rewrite in apache2.2 (debian/ubuntu)

Here i am going to describe how to enable mod_rewrite in apache2.2 -specaily for debian.

In default installion of apache2.2 on debian never enable mod_rewrite default. So you may need to enable .

First install the apache2.2 with this command :
debian user please use

  • Share/Bookmark

27
Mar 08

Know your System Administrator

There are four major species of Unix sysad:

1.The TECHNICAL THUG. Usually a systems programmer who has been forced into system administration; writes scripts in a polyglot of the Bourne shell, sed, C, awk, perl, and APL.

2.The ADMINISTRATIVE FASCIST. Usually a retentive drone (or rarely, a harridan ex-secretary) who has been forced into system administration.

3.The MANIAC. Usually an aging cracker who discovered that neither the Mossad nor Cuba are willing to pay a living wage for computer espionage. Fell into system administration; occasionally approaches major competitors with indesp schemes.

4.The IDIOT. Usually a cretin, morpohodite, or old COBOL programmer selected to be the system administrator by a committee of cretins, morphodites, and old COBOL programmers.

  • Share/Bookmark