Add User no-reply
passwd no-reply
vi /home/no-reply/autoreply
This email address is not active. To get in touch with domain name please write to us at info@domain name.
vi /etc/aliases (end need to write)
###Add by User Name ########
no-reply: "|/usr/libexec/webmin/postfix/autoreply.pl /home/no-reply/autoreply no-reply"
chmod -Rv 777 /home/no-reply/autoreply
For Email Forword option activation
vi /etc/postfix/virtual
user@domain name personal email id1,personal email id2
Installing Red5 on SUSE (and other) Linux
This howto was provided by Jake Hilton. If you see any errors please let him know so that they can be corrected. These instructions are generic enough to work on many different linux operating systems.
The following steps will install the development (trunk) version of red5.
Before beginning this make sure you are running these commands as root.
1.
You can create a red5 user to run this under if you don't plan on using any ports below 1000. If you need red5 to bind to ports below 1000 you need to run it as root. With the red5 user disallow login access and make the red5 user part of the root group.
2.
Make sure you have downloaded and installed the latest JDK from java.sun.com
*
For this tutorial just download the .bin file. All you need to do is change the permissions of that bin file to 755 with
chmod 755 jdk-1_6_0
and then execute it.
./jdk-1_6_0
or something similar. Then once it’s done you just copy the contents of the folder it made and put them in /usr/java/jdk1.6.0
*
Then set your JAVA_HOME variable. It may have to be set two different ways. First way:
JAVA_HOME=/usr/java/jdk1.6.0
and the second way.
export JAVA_HOME=’/usr/java/jdk1.6.0′
3.
Install Apache Ant 1.7. You may have to download that as well. Install the binary for it.
*
Download and unzip the file. Then copy the contents to a directory, something like /usr/ant. Then set your ANT_HOME variable. If it doesn't work then don't worry about it. We will not be using that pointer in this tutorial.
4.
Once java and ant are all set up you simply pull the latest trunk for red5 to your box.
svn co http://red5.googlecode.com/svn/java/server/trunk red5-trunk
That will create a folder in your current directory called red5-trunk.
5.
Navigate to the red5-trunk directory and run
/usr/ant/bin/ant
That will build the project on your machine.
6.
At this point you will need to create a red5 directory in the opt directory.
mkdir /opt/red5
7.
Then you will want to copy the contents of the dist(distribution) folder to /opt/red5 like so
cp -R red5-trunk/dist/* /opt/red5/
8.
We need to fix the permissions on the /opt/red5 directory like so:
chown -R red5 /opt/red5
9.
In addition we need need to fix the permissions on the red5.sh file like so:
chmod 755 red5.sh
10.
To run the server you have a few options using the red5.sh file. Navigate to /opt/red5 to make sure you are in the proper location. Then run the server by either running
sh red5.sh &
or
./red5.sh &
. This will start the red5 service manually. For a start and stop script look at the “Extra info” below.
11.
Run
netstat -ant
and verify the correct ports are being bound to. You may need to edit the red5.properties file in the /opt/red5/conf directory if you can’t connect to your server from an external location. Try to connect to the server before you modify the properties file because you may be able to connect to it with no problems.
12.
Extra info: The version compiled from source does not come with a start/stop script. I have put together one that will work with this how-to. If you run red5 as a different user this script will have to be tweaked. To put this script on your system do the following logged in as root:
cd /etc/init.d/
touch red5
chmod 755 red5
vi red5
then when you are in the red5 file push “i” to start inserting into that file and then put this code in by copying it and then pasting it with a right click of the mouse:
#! /bin/sh
#
# Author: Jake Hilton
# /etc/init.d/red5
#
# Check for missing file
RED5_DIR=/opt/red5
test -x $RED5_DIR/red5.sh || exit 5
case "$1" in
start)
echo -n "Starting Red5 Service"
echo -n " "
cd $RED5_DIR
su -s /bin/bash -c "$RED5_DIR/red5.sh &" red5
sleep 2
;;
stop)
echo -n "Shutting down red5"
echo -n " "
su -s /bin/bash -c "killall -q -u red5 java" red5
sleep 2
;;
restart)
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
$0 start
;;
esac
Then you can simply start, stop, and restart red5 from that script by typing:
/etc/init.d/red5 start
/etc/init.d/red5 stop
/etc/init.d/red5 restart
http://0.0.0.0:5080/
This howto was provided by Jake Hilton. If you see any errors please let him know so that they can be corrected. These instructions are generic enough to work on many different linux operating systems.
The following steps will install the development (trunk) version of red5.
Before beginning this make sure you are running these commands as root.
1.
You can create a red5 user to run this under if you don't plan on using any ports below 1000. If you need red5 to bind to ports below 1000 you need to run it as root. With the red5 user disallow login access and make the red5 user part of the root group.
2.
Make sure you have downloaded and installed the latest JDK from java.sun.com
*
For this tutorial just download the .bin file. All you need to do is change the permissions of that bin file to 755 with
chmod 755 jdk-1_6_0
and then execute it.
./jdk-1_6_0
or something similar. Then once it’s done you just copy the contents of the folder it made and put them in /usr/java/jdk1.6.0
*
Then set your JAVA_HOME variable. It may have to be set two different ways. First way:
JAVA_HOME=/usr/java/jdk1.6.0
and the second way.
export JAVA_HOME=’/usr/java/jdk1.6.0′
3.
Install Apache Ant 1.7. You may have to download that as well. Install the binary for it.
*
Download and unzip the file. Then copy the contents to a directory, something like /usr/ant. Then set your ANT_HOME variable. If it doesn't work then don't worry about it. We will not be using that pointer in this tutorial.
4.
Once java and ant are all set up you simply pull the latest trunk for red5 to your box.
svn co http://red5.googlecode.com/svn/java/server/trunk red5-trunk
That will create a folder in your current directory called red5-trunk.
5.
Navigate to the red5-trunk directory and run
/usr/ant/bin/ant
That will build the project on your machine.
6.
At this point you will need to create a red5 directory in the opt directory.
mkdir /opt/red5
7.
Then you will want to copy the contents of the dist(distribution) folder to /opt/red5 like so
cp -R red5-trunk/dist/* /opt/red5/
8.
We need to fix the permissions on the /opt/red5 directory like so:
chown -R red5 /opt/red5
9.
In addition we need need to fix the permissions on the red5.sh file like so:
chmod 755 red5.sh
10.
To run the server you have a few options using the red5.sh file. Navigate to /opt/red5 to make sure you are in the proper location. Then run the server by either running
sh red5.sh &
or
./red5.sh &
. This will start the red5 service manually. For a start and stop script look at the “Extra info” below.
11.
Run
netstat -ant
and verify the correct ports are being bound to. You may need to edit the red5.properties file in the /opt/red5/conf directory if you can’t connect to your server from an external location. Try to connect to the server before you modify the properties file because you may be able to connect to it with no problems.
12.
Extra info: The version compiled from source does not come with a start/stop script. I have put together one that will work with this how-to. If you run red5 as a different user this script will have to be tweaked. To put this script on your system do the following logged in as root:
cd /etc/init.d/
touch red5
chmod 755 red5
vi red5
then when you are in the red5 file push “i” to start inserting into that file and then put this code in by copying it and then pasting it with a right click of the mouse:
#! /bin/sh
#
# Author: Jake Hilton
# /etc/init.d/red5
#
# Check for missing file
RED5_DIR=/opt/red5
test -x $RED5_DIR/red5.sh || exit 5
case "$1" in
start)
echo -n "Starting Red5 Service"
echo -n " "
cd $RED5_DIR
su -s /bin/bash -c "$RED5_DIR/red5.sh &" red5
sleep 2
;;
stop)
echo -n "Shutting down red5"
echo -n " "
su -s /bin/bash -c "killall -q -u red5 java" red5
sleep 2
;;
restart)
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
$0 start
;;
esac
Then you can simply start, stop, and restart red5 from that script by typing:
/etc/init.d/red5 start
/etc/init.d/red5 stop
/etc/init.d/red5 restart
http://0.0.0.0:5080/
gpasswd -a username groupname
gpasswd -a arun root
gpasswd -a arun root
1. boot computer and hold the "apple" key and the "s" key.
2. wait for terminal show
3. release keys
4. type without the quotes: "/sbin/mount -uaw"
5. press enter
6. type without the quotes: "rm /var/db/.applesetupdone
7. press enter
8. type without the quotes: "reboot"
9. press enter
this will let you create a new admin account when you reboot your computer.
2. wait for terminal show
3. release keys
4. type without the quotes: "/sbin/mount -uaw"
5. press enter
6. type without the quotes: "rm /var/db/.applesetupdone
7. press enter
8. type without the quotes: "reboot"
9. press enter
this will let you create a new admin account when you reboot your computer.
dd if=/dev/zero of=/temp/swapfile1 bs=1024 count=6000000 6000000 GB
/sbin/mkswap /temp/swapfile1
/sbin/swapon /temp/swapfile1
/temp/swapfile1 swap swap defaults 0 0
Procedure to add a swap file
You need to use dd command to create swapfile. Next you need to use mkswap command to set up a Linux swap area on a device or in a file.
a) Login as the root user
b) Type following command to create 512MB swap file (1024 * 512MB = 524288 block size):
# dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
c) Set up a Linux swap area:
# mkswap /swapfile1
d) Activate /swapfile1 swap space immediately:
# swapon /swapfile1
e) To activate /swapfile1 after Linux system reboot, add entry to /etc/fstab file. Open this file using text editor such as vi:
# vi /etc/fstab
Append following line:
/swapfile1 swap swap defaults 0 0
So next time Linux comes up after reboot, it enables the new swap file for you automatically.
g) How do I verify swap is activated or not?
Simply use free command:
$ free -m
/sbin/mkswap /temp/swapfile1
/sbin/swapon /temp/swapfile1
/temp/swapfile1 swap swap defaults 0 0
Procedure to add a swap file
You need to use dd command to create swapfile. Next you need to use mkswap command to set up a Linux swap area on a device or in a file.
a) Login as the root user
b) Type following command to create 512MB swap file (1024 * 512MB = 524288 block size):
# dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
c) Set up a Linux swap area:
# mkswap /swapfile1
d) Activate /swapfile1 swap space immediately:
# swapon /swapfile1
e) To activate /swapfile1 after Linux system reboot, add entry to /etc/fstab file. Open this file using text editor such as vi:
# vi /etc/fstab
Append following line:
/swapfile1 swap swap defaults 0 0
So next time Linux comes up after reboot, it enables the new swap file for you automatically.
g) How do I verify swap is activated or not?
Simply use free command:
$ free -m
http://support.microsoft.com/kb/833396
http://support.microsoft.com/kb/310516
http://support.microsoft.com/kb/310516
You will need to add the following rule to your security group to enable ICMP traffic to the host
Protocol : ICMP
From Port : -1
To Port : -1
Source ( IP or group ) : IP_address/32 ( Change the IP_address to be the IP you want to allow traffic from )
For SAMBA you will need to add rules for the following ports
Port 135/TCP, Port 137/UDP, Port 138/UDP, Port 139/TCP, Port 445/TCP
Protocol : ICMP
From Port : -1
To Port : -1
Source ( IP or group ) : IP_address/32 ( Change the IP_address to be the IP you want to allow traffic from )
For SAMBA you will need to add rules for the following ports
Port 135/TCP, Port 137/UDP, Port 138/UDP, Port 139/TCP, Port 445/TCP
Subscribe to:
Posts (Atom)