Tag archive for ‘centos’

Verify: SSL Certificate Under OpenSSL

All UNIX / Linux applications linked against the OpenSSL libraries can verify certificates signed by a recognized certificate authority (CA). How do I verify SSL certificates using OpenSSL command line toolkit itself under UNIX like operating systems without using third party websites? You can pass the verify option to openssl command to verify certificates as [...]

Kill Process In Ubuntu Linux

How can I kill a process using the bash command prompt? Do I always need to kill the process using PID? To kill processes by name use the killall command. The syntax is as follows: killall -SIGNAME process-name The default signal for kill is TERM (terminate process). To list available signals, enter: $ kill -l [...]

UNIX / Linux: Deleting Multiple Files In Bulk

How do delete multiple files in bulk (say all *.bak file stored in /netapp/ and its subdirectory) under Linux / UNIX operating systems? You can use the find command as follows to find and delete file in bulk: find /path/to/delete -type f -iname “fileType” -delete OR find /path/to/delete -type f -iname “fileType” -exec rm -f [...]

Unix Signals

A signal is a message which can be sent to a running process. Signals can be initiated by programs, users, or administrators. For example, to the proper method of telling the Internet Daemon (inetd) to re-read its configuration file is to send it a SIGHUP signal. For example, if the current process ID (PID) of [...]

How to Change an IP Address on Solaris

To change an IP address on a Solaris system immediately, use the `ifconfig` command. The syntax for `ifconfig` is: ifconfig <interface> <ip address> <netmask> <broadcast address> If you don’t know the names of your network interfaces, use the `ifconfig -a` command to list all of the available network interfaces. Permanently Change an IP Address on [...]

Apple’s Darwin Streaming Server On Centos 5.3

Introduction This tutorial will run you through the installation, configuration and preparation of media for Apple’s Darwin QuickTime Streaming Server on Centos/RHEL 5.2. Darwin QuickTime Streaming Server is capable of serving H.264 and mpeg4 file formats via the RTP/RTSP streaming protocols. Prerequisites 1. CentOS 5.2 x86 installed 2. Development tools must be installed (can be [...]

IP Camera Capture Shell Script

Primitive IP Camera Capture Script Axis 210a Camera Use a Cron Job To Control #!/bin/sh – #Primitive IP Camera Capture Script #Axis 210a Camera #Use a Cron Job To Control #Tested under FreeBSD #Original author / source: http://forums.freebsd.org/showpost.php?p=12005&postcount=3 ROT=$(date “+%b%d%y%H%M”) CAPTOOL=/usr/local/bin/mencoder CAP_OPT1=”-prefer-ipv4 -fps 6 -demuxer lavf” CAP_OPT2=”-nosound -oac mp3lame -ovc xvid -xvidencopts pass=1 -o” ADDIES=”cam1 [...]

openvpn error: Cannot open TUN/TAP dev /dev/net/tun

P: Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13) Note: Attempting fallback to kernel 2.2 TUN/TAP interface Cannot open TUN/TAP dev /dev/tun0: No such file or directory (errno=2) R: The host OS *must* allow the VPS to use the tun device first. vzctl set –devices c:10:200:rw –save vzctl set –capability net_admin:on –save   Incoming [...]

Linux / UNIX: Run Commands When You Log Out

I’ve written a Perl script that connects to our central server for me and it allows me feed data so that I make a timesheet later. How do I run my script when I log out from Apple OS X or Linux / UNIX workstation using bash shell? Almost all modern shell including bash allows [...]

vi Find And Replace Text Command

How do I find and replace (substitute) test using vi or vim text editor under UNIX / Linux / BSD or Apple OS X operating systems? Both vi and vim text editor comes with substitute command for finding and replacing text. Syntax The syntax is as follows: :%s/WORD-To-Find-HERE/Replace-Word-Here/g OR :%s/FindMe/ReplaceME/g Examples The substitute command can [...]