Archive

Author Archive

How to install clipshare

March 5th, 2009

First off download clipshare and unzip it. You will see installation.txt sql and upload folder after the extract.

Now check if your system is suPHP or not. Create a test php file test.php and add the following code




Now access this through the browser and if its showing your username then suPHP is enabled in the server so you can avoid the steps below of changing folder permission to 777 or else follow the complete steps.

1. Edit /upload/cgi-bin/ubr_upload.pl in a text editor, and change the path to (where you will insall the script)/tmp/uploader/ usually /home/user/public_hmtl/tmp/uploader/
2. Edit /upload/include/config.php in a text editor, and change the variables marked with “CHANGE HERE”
3. Edit /upload/include/dbconfig.php and enter your database info

Login to your control panel create a database,username and pass with all privileges.
4. Optional: Edit /upload/include/language.php to remove / add language files
5. Upload the contents (only the contents, not the folder itself) of the /upload folder on your server, in BINARY mode

6. Set write permissions (chmod 777) to the following folders:
/flvideo
/video
/thumb
/chimg
/photo
/tmp
/tmp/logs
/tmp/sessions
/tmp/thumbs
/tmp/uploader
/cache/templates_c
7. Set execute permissions (chmod 755) to /cgi-bin and /cgi-bin/ubr_upload.pl
8. Create database and database user. Import the database dump from /sql/clipshare.sql with phpmyadmin
9. Access your ClipShare Admin Panel at http://www.yourdomain.com/siteadmin/
Default admin user / password: admin / admin
- Change the admin user / password !!
- Change the site name, email, meta keywords, description, etc
- Optional: change different settings
- Create channels
- Add your advertising

Enjoy sharing videos !!!

VN:F [1.9.6_1107]
Rating: 6.9/10 (8 votes cast)
VN:F [1.9.6_1107]
Rating: -1 (from 1 vote)

admin general, linux ,

Bacula – A Complete Backup Soln.

March 5th, 2009

Bacula is a set of Open Source, enterprise ready, computer programs that permit you to manage backup, recovery, and verification of computer data across a network of computers of different kinds.

Bacula supports Linux, UNIX and Windows backup clients, and a range of professional backup devices including tape libraries. Administrators and operators can configure the system via a command line console, GUI or web interface; its back-end is a catalog of information stored by MySQL, PostgreSQL, or SQLite.

Any installation contains three kinds of daemons to execute backup and restore functionality:

1) Director Daemon – manages other daemons, queries and updates catalog, interfaces with operator front-ends, automates backup schedules
2) Storage Daemon – makes system calls to drive backup media, responds to read/write requests from Director, and receives backup/restore data from file daemon
3) File Daemon – negotiates client-side communication, encryption and compression, opens file handles to access a client’s data

The master config file is the director’s [/etc/bacula/bacula-dir.conf]. In it is all the information needed to be able to backup the servers it manages. Since each component of the backups system is it’s own daemon, the host, port, and passwords to communicate with them are all listed in the conf file. All options need to match the ones in the daemon’s config, or communication will fail.

Visit http://www.bacula.org/en/ to read more …

VN:F [1.9.6_1107]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.6_1107]
Rating: 0 (from 0 votes)

admin Uncategorized

rpm got stuck

March 5th, 2009

If your server got stuck with rpm command do the following steps.

Remove cached DB
rm -fv /var/lib/rpm/__db.00*
rpm –rebuilddb

The last command takes some time so don’t stop it.

VN:F [1.9.6_1107]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.6_1107]
Rating: 0 (from 0 votes)

admin general, linux

Scalp – a web log analyzer

March 5th, 2009

Tired of examining apache logs for hack attempts ? Okay, relax a bit ! Scalp is there to rescue you :-D

Scalp ( a simple python script ) is a web log analyzer for the Apache web server that look for security problems. It reads the Apache log and perform log analysis for possible attacks against rulesets provided by PHP-IDS project. In its standard form, the script can handle Apache logs of more than 100 megabytes without a problem. The tool outputs its results as a report in text, XML or HTML format.

Running the program as the following will use the Apache log file at /var/log/apache2/access.log and the PHPIDS ruleset from ~/default_filter.xml;


$ python scalp.py –log /var/log/apache2/access.log –filters ~/default_filter.xml

Romain Gaucher, who created scalp, is currently working on a C++ version of his program.

VN:F [1.9.6_1107]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.6_1107]
Rating: 0 (from 0 votes)

admin linux

Exim commands

February 17th, 2009

Exim commands

BASIC COMMANDS

Print a count of the messages in the queue: exim -bpc

Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient): exim -bp

Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals): exim -bp | exiqsumm

Print what Exim is doing right now: exiwhat

Run a pretend SMTP transaction from the command line.The message will NOT actually be delivered : exim -bh 192.168.11.22

Display all of Exim’s configuration settings: exim -bP

SEARCHING THE QUEUE WITH exiqgrep

Use -f to search the queue for messages from a specific sender: ‘exiqgrep -f [user]@domain’

Use -r to search the queue for messages for a specific recipient/domain: exiqgrep -r [user]@domain

Use -o to print messages older than the specified number of seconds. For example, messages older than 1 day:

exiqgrep -o 86400

Use -y to print messages that are younger than the specified number of seconds. For example, messages less than an hour old:

exiqgrep -y 3600

MANAGING THE QUEUE

Start a queue run: exim -q -v

Remove a message from the queue: exim -Mrm <message-id>

Freeze a message: exim -Mf <message-id>

Remove all frozen messages: exiqgrep -z -i | xargs exim -Mrm

View a message’s headers: exim -Mvh <message-id>

View a message’s body: exim -Mvb <message-id>

View a message’s logs: exim -Mvl <message-id>

VN:F [1.9.6_1107]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.6_1107]
Rating: 0 (from 0 votes)

admin general, linux ,

Nginx or Engine – X

February 17th, 2009

Please check out the new features about engine -x.

Nginx is a high-performance web and proxy server. It has a lot of features

As an Apache replacement that gracefully handles many concurrent connections: Nginx is especially popular among web hosting providers. 50,000 simultaneous connections have been reported, thanks to Nginx’s use of epoll and kqueue.

As a load-balancing proxy server: Nginx is a popular front-end to Rails and PHP applications, either via FastCGI or HTTP. Written in C, it consumes about a quarter of the CPU that Perlbal uses.

As a mail proxy server: more of a niche application, but fastmail.fm reports great success.

As a server with a simple installation process, a clean configuration file, and few bugs: Nginx is easy to get running, and it almost never needs restarting. You can even upgrade the binary with zero downtime.

VN:F [1.9.6_1107]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.6_1107]
Rating: 0 (from 0 votes)

admin linux ,

Introduction to Domain Name Server (DNS)

May 21st, 2007

Domain Name Server

The DNS system forms one of the largest and most active distributed databases on the world, without which Internet would stop working. Domain name servers translate domain names to IP addresses. Every time you use a domain name, you use the Internet’s domain name servers (DNS) to translate the human-readable domain name into the machine-readable IP address.

How It Works

Assuming no caching, let’s discuss how a name server converts the domain name sparksupport.com into an IP address. A name server would start its search for an IP address by contacting one of the root name servers. The root servers know the IP address for all of the name servers that handle the top-level domains ( .COM, .NET etc domains ). Your name server would ask the root for sparksupport.com, and the root would say (assuming no caching), “I don’t know the IP address for sparksupport.com, but here’s the IP address for the COM name server.” Your name server then sends a query to the COM name server asking it if it knows the IP address for sparksupport.com. The name server for the COM domain knows the IP addresses for the name servers handling the SPARTKSUPPORT.COM. Your name server then contacts the name server for SPARKSUPPORT.COM and asks if it knows the IP address for sparksupport.com. It does, so it returns the IP address to your name server. Hurray !! human-readable domain address is so converted to machine-readable IP address.

BIND Name Server

The Berkeley Internet Name Domain (BIND) server implements the Internet Domain Name Service (DNS) for Linux operating system. BIND is based on a server-client relationship. There are several different classes of servers, with varying degrees of authority. Different BIND server configurations possible are Primary Server, Secondary Server, Caching-only Server, Forwarder Server, Slave Server.

A primary master server for a domain is the authority for that domain. This server maintains all the data corresponding to its domain. Each domain should have at least two master servers: a primary master, and a secondary master to provide backup service if the primary is unavailable or overloaded. A server can be a master for multiple domains, serving as primary for some domains and secondary for others.

A secondary master server is a server that is delegated authority and receives its data for a domain from a primary master server. At boot time, the secondary server requests all the data for the given domain from the primary master server. This server then periodically checks with the primary server to see if it needs to update its data.

A slave-and-forwarder configuration is useful when you do not want all the servers at a given site to interact with the rest of the Internet servers. A slave server always forwards queries it cannot satisfy locally to a fixed list of forwarding servers, instead of interacting with the master name server for the root and other domains. The forwarding server would forward the queries and interact with other name servers on the Internet to resolve each query before returning the answer.

How to verify whether DNS is working correctly ?

After you have setup your DNS Server, it’s very important to check that the entries which are populated to the Internet are correct. You can use the following checklist using nslookup.

Hands on…….


Querying DNS entries for sparksupport.com at the DNS Server 72.232.109.82

[root@spark root]# nslookup

Note:  nslookup is deprecated and may be removed from future releases.

Consider using the `dig' or `host' programs instead.  Run nslookup with

the `-sil[ent]' option to prevent this message from appearing.

>; server 72.232.109.82

Default server: 72.232.109.82

Address: 72.232.109.82#53

> set q=any

> sparksupport.com

Server:         72.232.109.82

Address:        72.232.109.82#53

sparksupport.com        mail exchanger = 0 ASPMX.L.GOOGLE.com.

sparksupport.com        text = "v=spf1 a mx ~all"

sparksupport.com

        origin = ns1.sparksupport.com

        mail addr = sales.sparksupport.com

        serial = 2006110200

        refresh = 1200

        retry = 7200

        expire = 1209600

        minimum = 86400

sparksupport.com        nameserver = ns2.sparksupport.com.

sparksupport.com        nameserver = ns1.sparksupport.com.

Name:   sparksupport.com

Address: 72.232.109.82

> exit

[root@spark root]#

Every domain has a domain name server somewhere that handles its requests, and there is a person maintaining the records in that DNS. This is one of the most amazing parts of the DNS system — it is completely distributed throughout the world on millions of machines administered by millions of people, yet it behaves like a single, integrated database!

VN:F [1.9.6_1107]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.6_1107]
Rating: +1 (from 1 vote)

admin Articles, linux