Pages

Thursday, January 29, 2015

Samba Error Multiple connections to a server or shared resource by same user, ..

How to fix samba error on windows client :
"Multiple connections to a server or shared resource by same user, using more than one username, are not allowed. Disconnect all previous connections to the server or shared resource and try again"

Solution
Windows by default stores a cache of all the network drives accessed so that next time when you try to access the same path it will take the credentials from the cache without prompting for username/password again.


In such cases you need to clear the cache. 

How do we do that?
Go to your windows machine and open the cmd prompt

C:\Users\Deepak>net use
New connections will be remembered.
Status       Local     Remote                    Network
-------------------------------------------------------------------------------
OK                     \\192.9.18.6\common        Microsoft Windows Network
The command completed successfully.


As you see above a single cache entry is there in my windows machine for //192.9.18.6, so next time if I try to access this share with some other username/password, I would get the same error.

So we will have to clear this cache

C:\Users\Deepak>net use /delete \\192.168.0.100\IPC$
\\192.168.0.100\IPC$ was deleted successfully.

C:\Users\Deepak>net use
New connections will be remembered.

There are no entries in the list.


or 

If you are using active directory, you can add script ".bat"  on your server for automatically mapping.
add netlogon samba : /var/lib/samba/netlogon/name_logon.bat

with value of file .bat like this  :

net time \\192.9.18.6 /set /yes
net use m: /delete /y
net use m: \\192.9.18.6\common








Wednesday, January 28, 2015

How to remove all file of same extension files in directory linux

Insert into folder 
and then delete all file of same extention file *.txt

# find . -name "*.txt" -type f -delete



Sunday, January 25, 2015

How to install RapidSVN on Centos 6


Download rapidsvn the latest epel-release rpm from
http://dl.fedoraproject.org/pub/epel/6/x86_64/


Install epel-release rpm:
# rpm -Uvh file_name_rapidsvn.rpm


if you are found error: Failed dependencies:
please install library dependencies  using yum search or download from http://pkgs.org/centos-6/epel-x86_64/rapidsvn-0.12.0-3.el6.x86_64.rpm.html


Install rapidsvn rpm package:
# yum install rapidsvn


reff :
http://pkgs.org/centos-6/epel-x86_64/rapidsvn-0.12.0-3.el6.x86_64.rpm.html

Tuesday, January 20, 2015

find file in linux with command terminal

example  : Find file with extention .pdf


# find /home -type f -name "*.pdf"

Monday, January 19, 2015

Extract Files tar on linux


How to extract or uncompress a file from tar ball downloaded from the Internet under Linux using bash command prompt?

Extract or Unpack a TarBall File

To unpack or extract a tar file, type:

tar -xvf file.tar

To save disk space and bandwidth over the network all files are saved using compression program such as gzip or bzip2. To extract / unpack a .tar.gz (gzip) file, enter (note -z option):

tar -xzvf file.tar.gz

To extract / unpack a .tar.bz2 (bzip2) file, enter (note -j option):
tar -xjvf file.tar.bz2


Where,
-x : Extract a tar ball.
-v : Verbose output or show progress while extracting files.
-f : Specify an archive or a tarball filename.
-j : Decompress and extract the contents of the compressed archive created by bzip2 program (tar.bz2 extension).
-z : Decompress and extract the contents of the compressed archive created by gzip program (tar.gz extension).

Monday, January 12, 2015

Setting Autentification Postfix Mail dan Dovecot with user LDAP on Centos 6

Edit Postfix config :

vim /etc/postfix/ldap-aliases.cf

bind = no
version = 3
timeout = 20
size_limit = 1
expansion_limit = 0
start_tls = no
tls_require_cert = no
server_host = ldap://192.9.18.25
search_base = ou=Groups,dc=server,dc=co,dc=id
scope = sub
query_filter = (mail=%s)
result_attribute = mgrpDeliverTo
special_result_filter = %s@%d
                     

vim /etc/postfix/ldap-users.cf

bind = no
version = 3
timeout = 20
size_limit = 1
expansion_limit = 0
start_tls = no
tls_require_cert = no
server_host = ldap://192.9.18.25
search_base = ou=Groups,dc=server,dc=co,dc=id
scope = sub
query_filter = (mail=%s)
result_attribute = mgrpDeliverTo


Monday, December 8, 2014

Linux Command

Informasi sistem

Perintah Deskripsi
# arch
lihat arsitektur dari mesin(1)   [man]
# cal 2007
lihat tabel kalendar tahun 2007   [man]
# cat /proc/cpuinfo
menampilkan informasi CPU   [man]
# cat /proc/interrupts
menampilkan penggunaan interupsi   [man]
# cat /proc/meminfo
lihat penggunaan memori komputer   [man]
# cat /proc/swaps
menampilkan partisi swap yang dipakai linux sebagai memori virtual   [man]
# cat /proc/version
menampilkan versi dari kernel.   [man]
# cat /proc/net/dev
menampilkan informasi kartu nic dan statistik penggunaan nic   [man]
# cat /proc/mounts
menampilkan filesystem yang termuat   [man]
# clock -w
simpan perubahan tanggal di BIOS.   [man]
# date
tampilkan tanggal sistem   [man]
# date 041217002007.00
tetapkan tanggal dan waktu - BulanHariJamMenitTahun.Detik   [man]
# dmidecode -q
tampilkan komponen perangkat keras dari sistem
# hdparm -i /dev/hda
tampilkan karakteristik dari sebuah hard-disk   [man]
# hdparm -tT /dev/sda
uji coba tes baca pada sebuah hard-disk   [man]
# lspci -tv
tampilkan perangkat-perangkat PCI yang ada   [man]
# lsusb -tv
tampilkan perangkat-perangkat USB   [man]
# uname -m
tampilkan arsitektur mesin(2)   [man]
# uname -r
tampilkan versi dari kernel yang digunakan   [man]


Saturday, December 6, 2014

How get UUID from Hardisk on linux


#blkid /dev/sda1

/dev/sda1: LABEL="/" UUID="ee7cf0a0-1922-401b-a1ae-6ec9261484c0" SEC_TYPE="ext2" TYPE="ext3"

Friday, December 5, 2014

How To Enable NTFS Support in CentOS 6



1) Preparation

Enable EPEL repository using following command.

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm


2) Install NTFS Drivers.

yum -y install ntfs-3g

Wednesday, November 26, 2014

Setup LDAP server (389 Directory Server) on Centos 6.5



389 Directory Server
The 389 directory server is a LDAP (Lightweight directory access protocol) server developed by Red Hat. The name 389 is derived from the LDAP port number. Though 389 server is being built on top of fedora, it supports many operating system such as CentOS, Scientific Linux, Debian and solaris etc.





Features:

- Multi-Master Replication, to provide fault tolerance and high write performance
- Scalability: thousands of operations per second, tens of thousands of concurrent users, tens of millions of entries, hundreds of gigabytes of data
- The codebase has been developed and deployed continuously by the same team for more than a decade
- Extensive documentation, including helpful Installation and Deployment guides
- Active Directory user and group synchronization
- Secure authentication and transport (SSLv3, TLSv1, and SASL)
- Support for LDAPv3
- On-line, zero downtime, LDAP-based update of schema, configuration, management and in-tree Access Control Information (ACIs)
- Graphical console for all facets of user, group, and server management 


Thursday, November 20, 2014

Cara membuka IP Camera Trendnet TV-IP672P dari VLC Player



Untuk membuka streaming video ip camera trendnet
pertama instal aplikasi vlc player
anda bisa download apliaksinya dari situs  resminya :
http://www.videolan.org/

kemudian buka notepad
isikan sebagai berikut :

rtsp://192.126.19.229:554/play1.sdp

simpan dengan extention  .sdf contoh :   streaming.sdf
kemudian klikanan filenya streaming.sdf -> open with vlc player.

atau anda bisa langsung untuk membuka streaming langsung dari vlc.
caranya Open aplikasi Vlc -> Media -> open network streaming
kemudian masukan urlnya :

rtsp://192.168.19.229:554/play1.sdp


selamant mencoba