Thursday, September 6, 2012

Work With Subtitling VIDEO

Tools needs :

- AVI RECOMP 1.55
- Media Subtitler 2.08

In MEDIA SUBTITLER
- New Subtitle or Open Subtitle
- Open Video / Load Video
- Type or Edit Your Subtitler using Media Subtitler,
- Synchronize between Text and AUDIO, using APPLY Button, Prees Apply button as long as Yout text neeed to appear in the viedo
- Save with SRT format Files

Open AVI RECOMP
Synchronize and Compile betwwen ext And Video, embed in new video.

Wednesday, September 5, 2012

Setup SSH Server Without ASking password in CENTOS 6.3

Setup SSH Server Without ASking password in CENTOS 6.3

in client (assume IP : 192.168.0.31)

Create RSA KEY
# ssh-keygen -t rsa

will create   ~/.ssh directory called id_rsa and id_rsa.pub. id_rsa is your private key and id_rsa.pub
- id_rsa
- id_rsa.pub
later copy id_rsa.pub to server

in server (assume IP : 192.168.0.30)

copy id_rsa.pub from your client and restore in /root/.ssh directory on your server and named it as authorized_keys
#scp -r 192.168.0.31:/root/.ssh/id_rsa.pub /root/.ssh/authorized_keys

edit and change sshd config in /etc/ssh/sshd_config in your server with :

PermitRootLogin  yes
RSAAuthentication  yes
PubkeyAuthentication  yes
AuthorizedKeysFile    .ssh/authorized_keys
PermitEmptyPasswords  yes
PasswordAuthentication  yes

restart your sshd server
#/etc/init.d/sshd restart

Tuesday, September 4, 2012

HAVING PROBLEM WITH UPS ICA - CENTOS - UPSILON APPS

 After upgraded from Centos 5.3 and installed with CentOS 6 64bit version,
got problem info with
"/lib/ld-linux.so.2: bad ELF interpreter:" No such file or directory, it comes from Upsilon Driver, the application for UPS Monitoring.

Its because the previous upsilon application using 32-bit library support installed
so just installed  glibc, from Centos

root@next-server# yum install glibc.i686 
or  
root@next-server# yum install glibc.i386

and for debian based operating system

root@next-server# sudo apt-get install ia32-libs

Monday, September 3, 2012

MIGRATE Centos Linux Server from 5.8 to 6.3 with Samba 3.5

all user data need to be backup before doing this procedur

Things to do

Migrate all this component
  1. /etc/passwd
  2. /etc/group
  3. /etc/shadow
  4. home directories and shared directories
  5. /etc/samba
  6. /var/lib/samba
Backup INFO LOGIN & PASSWORD
[root@previous-server ~]# mkdir /root/move
[root@previous-server ~]# export UGIDLIMIT=500

[root@previous-server ~]# awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=65534)' /etc/passwd > /root/move/passwd.mig

[root@previous-server ~]# awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=65534)' /etc/group > /root/move/group.mig

[root@previous-server ~]# awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=65534) {print $1}' /etc/passwd | tee - |egrep -f - /etc/shadow > /root/move/shadow.mig


SYNCHRONIZE Your Home Directory
previous-server IP : 192.168.0.30
next-server IP : 192.168.0.31

install rsync application for synchronize betwen two server
[root@previous-server ~]# yum install rsync
[root@previous-server ~]# rsync -av -e ssh /home/* 192.168.0.31:/home/
 
copy all login/password/shadow backup data from previous-server onto next-server using scp application
[root@next-server ~]# scp -r 192.168.0.30:/root/move /root

Replace with backup data into your next-server
[root@next-server ~]# cd /root/move
[root@next-server ~]# cat passwd.mig >> /etc/passwd
[root@next-server ~]# cat group.mig >> /etc/group
[root@next-server ~]# cat shadow.mig >> /etc/shadow

PREPARE YOUR SAMBA
[root@next-server ~]# yum install samba samba-common
[root@next-server ~]# rsync -av -e ssh 192.168.0.30:/etc/samba/* /etc/samba/
[root@next-server ~]# rsync -av -e ssh 192.168.0.30:/var/lib/samba/* /var/lib/samba/

Because Samba was newer on the CentOS6 box. It was using Samba 3.5, while the CentOS 5 box still had Samba 3.0. The migration was pretty simple, In Samba 3, the config files are all in /etc/samba. This includes the security files, too.
In Samba 3.5, the main smb.conf is still located in the /etc/samba folder, but the other two security files (passdb.tdb and secrets.tdb) are now located in /var/lib/samba/private/.
so later u need to remove  the  passdb.tdb and secrets.tdb onto  this directory

before copying  Samba 3.5 using "passdb.tdb" for replacing the old "smbpasswd" from samba 3.0
so we need to import the smbpasswd file using the "pdbedit"

[root@next-server ~] pdbedit -i smbpasswd -e tdbsam
Importing accout for user1...ok
Importing accout for user2...ok

it will create the "passdb.tdb"  files , move the files into /var/lib/samba/private/

[root@next-server ~]# service smb start; chkconfig smb on
[root@next-server ~]# service nmb start; chkconfig nmb on
[root@next-server ~]# netstat -tulpn