Posts

how to mount window server on linux machine

how to mount window server on linux machine step 1 # yum install samba-client samba-common cifs-utils step 2 #mkdir -p /mnt/ntserver step 3 # mount -t cifs //ntserver/sharefolder -o username=test,password=mypassword /mnt/ntserver Use following command if you are using Old version such as RHEL =4, 3 or Debian =3,2 # mount -t smbfs -o username=test,password=mypassword //ntserver/sharfolder /mnt/ntserver cd /mnt/ntserver; ls -l

how to Mount NTFS in CentOS step by step

how to Mount NTFS in CentOS step by step Steps: 1- download rpmforge repository and install root@server$ wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm Step:2 -install rpmforge repository here root@server$ rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm  Now, Install fuse-ntfs-3g package root@server$ yum install -y fuse fuse-ntfs-3g Now, you can mount your NTFS drive root@server$ mount /dev/sda1 /mnt/

how to Clear Squid Cache CentOS 5.x

stop squid $ service squid stop removes cached files and directory structure $ rm -rf /var/spool/squid/* removes the logs $ rm -rf /var/log/squid/* recreates the cache_dir structure $ squid -z $ service squid start

how to configure transparent squid proxy server in centos 6.4

1 step  squid installation open terminal and type following command #yum install squid  -y 2 step now edit and change  main configuration file #nano /etc/squid/squid.conf # TRANSPARENT SQUID ON CENTOS 6.4 # Recommended minimum configuration: # acl manager proto cache_object acl localhost src 127.0.0.1/32 ::1 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 acl lan src 192.168.1.1/8   #******YOUR LOCAL LAN (NEW LINE)***** # Example rule allowing access from your local networks. # Adapt to list your (internal) IP networks from where browsing # should be allowed acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl localnet src fc00::/7 # RFC 4193 local private network range acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines acl SSL_por