Wednesday, December 24, 2014

Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName solved on Slackware


Just go to /etc/httpd/httpd.conf file

ServerName slackwarepc.sourav.com:80

Apache,PHP and SSL configuration on Slackware 12.2

apache,php and ssl configuration on slackware

login as root

pkgtool

select setup

click services

select rc.httpd

put a star beside it

exit

mcedit /etc/httpd/httpd.conf

find the line

DirectoryIndex index.html

copy the line and paste it just below the line

DirectoryIndex index.html

change html to php

find mod_php

you will find the line

Include /etc/httpd/mod_php.conf

uncomment this line

save and exit

mcedit /etc/httpd/php.ini

find the line

short_open_tag=Off

change it to On

find another line

asp_tags=Off

change it to On

save and exit

cd /var/www/htdocs

mc

the mc interface will open

copy the index.html file
rename the copied file as index.php

open the index.php file in mc

write

less than?php

phpinfo();
?greater than

save and exit

/etc/rc.d/rc.httpd stop

/etc/rc.d/rc.httpd start

go to http://192.168.28.51/index.php

you should see the php information

to get the information about httpd

slackpkg info httpd

cd /etc/rc.d

ls

you will find rc.httpd

if rc.httpd is not executable

make it executable

chmod +x rc.httpd

mcedit /etc/httpd/httpd.conf

find the line 

Listen 80

change it to

192.168.28.51:80

find the line

starting with 

Loadmodule ssl

uncomment this line

find the file

Include /etc/httpd/extra/httpd-ssl.conf

uncomment this line

save and exit

open

/etc/httpd/extra/httpd-ssl.conf

find the line 

Listen 443

change it to

192.168.28.51:443

(if you keep the Listen 443 line ,you will get an error starting apache,so remove Listen 443)

find

SSLCertificateFile "/etc/httpd/server.crt"

uncomment the line if it is commented

find

SSLCertificateKeyFile "/etc/httpd/server.key"

uncomment the line if it is commented

save and exit

Now 

locate *.crt

you will find a crt file in the /usr/doc/openvpn 2.x/sample-keys folder

go to that folder

copy server.crt and server.key file to /etc/httpd/


/etc/rc.d/rc.httpd restart

netstat -ntlp | grep httpd

it will show httpd listening on 80 and 443 port

open

https://192.168.28.51






Tuesday, December 23, 2014

Install Exchange Server 2010 on Windows Server 2008 R2


Install server 2008 R2,Install DNS and DC

Go to the exchange directory in command prompt

setup /PrepareAD /OrganizationName:Sourav

setup /PrepareALLDomains

Install 2007 Office System Converter: Microsoft Filter Pack.

Open Powershell with administrative credential 

Type import-module ServerManager

Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy,Desktop-Experience -Restart.

Then Run the command on powershell

Set-Service NetTcpPortSharing -StartupType Automatic

Now Start Exchange from setup file in GUI


Configure SDM and manage Cisco 3600 Router



From the global configuration mode

ip domain-name sourav.com

crypto key generate rsa general-keys

pick a byte size (i.e 1024)

ip http server

ip http secure-server

username sourav privilege 15 password cisco

line vty 0 1

login local

exit

Now go to the pc 

install Java(1.6 or 1.4 otherwise sdm will load forever and never start)

Start SDM Launcher

Saturday, December 20, 2014

Exchange 2010 Hub Transport Role Installation Fails error solved

Open Registry Editor.
Locate the registry subkey:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
In the details pane, click New, and then click DWORD Value.
Type DisabledComponents, and then press ENTER.
Double-click DisabledComponents, and then type 0xffffffff in Hexadecimal or 4294967295 in Decimal.
Restart

Run the exchange setup again

Thursday, December 18, 2014

Install lazarus on Ubuntu 14.04


I could not install fpc because it is broken

So I installed

apt-get install fpc-source

Then Downloaded 64 bit version of fpc 

http://ftp.psu.ru/programming/fpc/2.6.2/x86_64-linux/

then 

tar -xvf fpc-2.6.2.x86_64-linux.tar

cd fpc-2.6.2.x86_64-linux/

sudo sh install.sh

apt-get install lazurus



"The package "leakview" is installed, but no valid package file (.lpk) was found" error solved when installing lazarus on Ubuntu 14.04


Create a file in /usr/lib/lazarus/1.0.10/packager/globallinks named leakview.lpk.

 Write these lines on that file..

(less then)?xml version="1.0" encoding="UTF-8"?(greater than)
(less then)CONFIG(greater than)
  (less then)Package Version="4"(greater than)
    (less then)PathDelim Value="\"/(greater than)
    (less then)Name Value="leakview"/(greater than)
    (less then)AddToProjectUsesSection Value="True"/(greater than)
    (less then)Author Value="Dmitry 'skalogryz' Boyarintsev"/(greater than)
    (less then)CompilerOptions(greater than)
      (less then)Version Value="12"/(greater than)
      (less then)PathDelim Value="\"/(greater than)
      (less then)SearchPaths(greater than)
        (less then)UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)\$(LCLWidgetType)"/(greater than)
      (less then)/SearchPaths(greater than)
      (less then)Parsing(greater than)
        (less then)SyntaxOptions(greater than)
          (less then)CStyleOperator Value="False"/(greater than)
          (less then)UseAnsiStrings Value="False"/(greater than)
        (less then)/SyntaxOptions(greater than)
      (less then)/Parsing(greater than)
      (less then)Linking(greater than)
        (less then)Debugging(greater than)
          (less then)GenerateDebugInfo Value="False"/(greater than)
          (less then)UseLineInfoUnit Value="False"/(greater than)
        (less then)/Debugging(greater than)
      (less then)/Linking(greater than)
      (less then)Other(greater than)
        (less then)CompilerPath Value="$(CompPath)"/(greater than)
      (less then)/Other(greater than)
    (less then)/CompilerOptions(greater than)
    (less then)Description Value="Leak View. allows fast navigation trough HeapTrc (and other?) leaks."/(greater than)
    (less then)Version Major="1"/(greater than)
    (less then)Files Count="4"(greater than)
      (less then)Item1(greater than)
        (less then)Filename Value="heaptrcview.lfm"/(greater than)
        (less then)Type Value="LFM"/(greater than)
      (less then)/Item1(greater than)
      (less then)Item2(greater than)
        (less then)Filename Value="heaptrcview.pas"/(greater than)
        (less then)HasRegisterProc Value="True"/(greater than)
        (less then)UnitName Value="HeapTrcView"/(greater than)
      (less then)/Item2(greater than)
      (less then)Item3(greater than)
        (less then)Filename Value="leakinfo.pas"/(greater than)
        (less then)UnitName Value="leakinfo"/(greater than)
      (less then)/Item3(greater than)
      (less then)Item4(greater than)
        (less then)Filename Value="dbginforeader.pas"/(greater than)
        (less then)UnitName Value="DbgInfoReader"/(greater than)
      (less then)/Item4(greater than)
    (less then)/Files(greater than)
    (less then)i18n(greater than)
      (less then)EnableI18N Value="True"/(greater than)
      (less then)OutDir Value="languages"/(greater than)
    (less then)/i18n(greater than)
    (less then)Type Value="RunAndDesignTime"/(greater than)
    (less then)RequiredPkgs Count="2"(greater than)
      (less then)Item1(greater than)
        (less then)PackageName Value="CodeTools"/(greater than)
      (less then)/Item1(greater than)
      (less then)Item2(greater than)
        (less then)PackageName Value="IDEIntf"/(greater than)
      (less then)/Item2(greater than)
    (less then)/RequiredPkgs(greater than)
    (less then)UsageOptions(greater than)
      (less then)UnitPath Value="$(PkgOutDir)\"/(greater than)
    (less then)/UsageOptions(greater than)
    (less then)PublishOptions(greater than)
      (less then)Version Value="2"/(greater than)
      (less then)IgnoreBinaries Value="False"/(greater than)
    (less then)/PublishOptions(greater than)
  (less then)/Package(greater than)
(less then)/CONFIG(greater than)


The xml file is modified ,The "<" symbol replaced by less then and ">" is replaced by greater than

However the xml file is at 

http://svn.freepascal.org/svn/lazarus/trunk/components/leakview/leakview.lpk


Then go the /usr/lib/lazarus/1.0.10/packager/globallinks directory and chek if there is a file called leakview.lpl,open the file in nano and see if this line is there

$(LazarusDir)/components/leakview/leakview.lpk

restart lazarus and you are done

source:http://forum.lazarus.freepascal.org/index.php?topic=22500.0



Sourav Bhattacharya

Linux Faculty/Enthusiast for 7 years

Kolkata




Thursday, December 4, 2014

Configure samba on slackware 12.2

1 - Change directory to /etc/samba.
rootatslackwarepc:/etc/samba# cd /etc/samba
 

2 - Copy /etc/samba/smb.conf-sample to /etc/samba/smb.conf.

 rootatslackwarepc:/etc/samba# cp smb.conf-sample smb.conf
 

3 - Edit smb.conf configuration file.
rootatslackwarepc:/etc/samba# vim smb.conf
 

Here is how I set samba server for file sharing in my network for your reference:
#======================= Global Settings =====================================
 [global]

 # workgroup = NT-Domain-Name or Workgroup-Name, eg: LINUX2
 workgroup = MYGROUP

 # server string is the equivalent of the NT Description field
server string = Samba Server

 # Security mode. Defines in which mode Samba will operate. Possible
 # values are share, user, server, domain and ads. Most people will want
 # user level security. See the Samba-HOWTO-Collection for details.
security = user

 # This option is important for security. It allows you to restrict
 # connections to machines which are on your local network. The
 # following example restricts access to two C class networks and
 # the "loopback" interface. For more examples of the syntax see
 # the smb.conf man page
 ; hosts allow = 192.168.1. 192.168.2. 127.
hosts allow = 192.168.1. 127.

 # this tells Samba to use a separate log file for each machine
 # that connects
log file = /var/log/samba.%m

 # Put a capping on the size of the log files (in Kb).
max log size = 50

 # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
 # via DNS nslookups. The default is NO.
dns proxy = no

 #============================ Share Definitions ==============================
[homes]
 comment = Home Directories
 browseable = no
 writable = yes

 # This one is useful for people to share files
[tmp]
 comment = Temporary file space
 path = /tmp
 read only = no
 public = yes

 # A publicly accessible directory, but read only, except for people in
 # the "sales" group
[sales]
 comment = Public Stuff
 path = /home/samba
 public = yes
 writable = yes
 printable = no
 write list = atsales
 

That is a basic file sharing configuration. I didn't add anything. Just uncomment configuration I need for my network, and set shared directory path and name. I also didn't allow printer sharing in this configuration.
Now we need to test smb.conf for any error although we didn't do much editing in the file. The command for checking smb.cof configuration file is testparm. Here is the result of the above configuration:
rootatslackwarepc:/etc/samba# testparm
 Load smb config files from /etc/samba/smb.conf
 Processing section "[homes]"
 Processing section "[tmp]"
 Processing section "[sales]"
 Loaded services file OK.
 Server role: ROLE_STANDALONE
 Press enter to see a dump of your service definitions

 [global]
 workgroup = MYGROUP
 server string = Samba Server
 log file = /var/log/samba.%m
 max log size = 50
 dns proxy = No
 wins support = Yes
 hosts allow = 192.168.1., 127.

 [homes]
 comment = Home Directories
 read only = No
 browseable = No

 [tmp]
 comment = Temporary file space
 path = /tmp
 read only = No
 guest ok = Yes

 [sales]
 path = /usr/local/samba/public
 read only = No
 guest only = Yes
 guest ok = Yes
 rootatslackwarepc:/etc/samba#
 

Create samba users, groups, shared directory and set permissions.
Samba users are independent from Linux system users and groups. That means they are not sharing the /etc/passwd users. So you need to create samba users again and give them password. Here is how to do it:
rootatslackwarepc:~# smbpasswd -a labu
 New SMB password:
 Retype new SMB password:
 Failed to modify password entry for user labu
 

Why do I failed to create user for samba? That's because samba user must first be a Linux system user. So create an account for a samba user in Linux system first then create a samba account:
rootatslackware:~# smbpasswd -a labu
 New SMB password:
 Retype new SMB password:
 Added user labu.
 rootatslackware:~#
 

When you successfully created a samba user account, the database about user account and password is kept in /etc/samba/private/smbpasswd file. This is only applicable for Slackware Linux. Other distribution could be different.
If you want to give permission only for a certain people, you can create a group for them to use a certain directory. Create that certain directory. Then, you can set permissions and ownership for that group to use the directory. Here is a step by step on how to do it:
Add group, create a directory and change group owner and permission for that group:
rootatslackwarepc:~# groupadd sales
 rootatslackwarepc:~# mkdir /home/sales
 rootatslackwarepc:~# ls -l /home | grep sales
 drwxr-xr-x 2 root root 4096 2008-11-29 23:23 sales/
 rootatslackwarepc:~# chown sales.sales /home/sales
 rootatslackwarepc:~# ls -l /home | grep sales
 drwxr-xr-x 2 root sales 4096 2008-11-29 23:23 sales/
 rootatslackwarepc:~# chmod 775 /home/sales/
 rootatslackwarepc:~# ls -l /home | grep sales
 drwxrwxr-x 2 root sales 4096 2008-11-29 23:23 sales/
 

Now we need to add users to the sales group. Here is how to do it:
rootatslackwarepc:~# usermod -g users -G sales labu
 

We can check whether user labu has been added to the sales group in /etc/group:
rootatslackwarepc:~# cat /etc/group
 

Make sure user you added is in the group, like this:
sales:x:102:labu
 

Start Linux samba service
If everything is ready, then it's time to start Linux samba service. The samba server is a standalone server, so you have to make it executable before start the service. Here is all the steps that you should do to restart Linux samba service:
Set 755 permissions for samba service:
rootatslackwarepc:~# chmod 755 /etc/rc.d/rc.samba
 rootatslackwarepc:~# ls -l /etc/rc.d/rc.samba
 -rwxr-xr-x 1 root root 791 2008-03-16 04:52 /etc/rc.d/rc.samba*
 rootatslackwarepc:~#
 

Now we can restart the service:
rootatslackwarepc:~# /etc/rc.d/rc.samba restart
 Starting Samba: /usr/sbin/smbd -D
 /usr/sbin/nmbd -D
 rootatslackwarepc:~#
 

Testing and troubleshooting Linux samba server and client
We can query using nmblookup host:
rootatslackwarepc:~# nmblookup slackwarepc
 querying slackwarepc on 192.168.1.255
 192.168.1.3 slackwarepc
 rootatslackwarepc:~#
 

Test using smbclient:
luzaratslackwarepc:~$ smbclient -L 192.168.1.3
 Password:
 Domain=[slackwarepc] OS=[Unix] Server=[Samba 3.0.33]

 Sharename Type Comment
 --------- ---- -------
 netlogon Disk Network Logon Service
 tmp Disk Temporary file space
 public Disk
 IPC$ IPC IPC Service (Samba Server)
 luzar Disk Home Directories
 Domain=[slackwarepc] OS=[Unix] Server=[Samba 3.0.33]

 Server Comment
 --------- -------


 Workgroup Master
 --------- -------
 MYGROUP slackwarepc
 luzaratslackwarepc:~$



source:http://www.basicconfig.com/linux_samba_server_setup
 

client lanman auth is disabled solved

 I faced this error when trying to troubleshoot my samba configuration

the solution is

In the global section of your smb.conf just add this

client lanman auth = Yes
source:http://blog.amit-agarwal.co.in/2011/04/28/client-lanman-auth-disabled-error-samba/
 

Wednesday, December 3, 2014

your pc ran into a problem and needs to restart solved


1) Turn on the laptop and keep pressing F2.

2) BIOS: change the SATA OPERATION from smart response technology to AHCI
Disable rapid storage Technology

Disable secure boot

3) Save and exit. The system will restart.

4) Using an usb pendrive with windows 8 in it (you can use a cd/dvd too), choose the boot option (im my case, usb).

5) Choose "restore computer".

6) go to troubleshoot, then, advanced options.

7) NOW i could RESTORE my laptop. It took a while and at the end it performed some uptades.

source:http://answers.microsoft.com/en-us/windows/forum/windows_8-system/windows-8-stuck-in-restart-loop-your-pc-ran-into-a/600b12a8-2bc6-4570-81f1-54a06bc5bb05

Configure Bind on Slackware 12.2

The dns master configuration file is named.conf. Its location is /etc/named.conf. We better backup this file first for safety reason if we screw up later.

root@slackware:/etc# cp named.conf named.conf.bac
 root@slackware:/etc# ls -l | grep named.conf
 -rw-r--r-- 1 root root 681 2008-04-14 06:07 named.conf
 -rw-r--r-- 1 root root 681 2008-12-01 01:13 named.conf.bak
 root@slackware:/etc#


Let's view the named.conf file with less command: 

options {
 directory "/var/named";
 /*
 * If there is a firewall between you and nameservers you want
 * to talk to, you might need to uncomment the query-source
 * directive below. Previous versions of BIND always asked
 * questions using port 53, but BIND 8.1 uses an unprivileged
 * port by default.
 */
 // query-source address * port 53;

 /*
 * ISP dns server ip address
 */
 forward first;
 forwarders {
 200.188.1.123;
 200.188.1.124;
 };

 };

 //
 // a caching only nameserver config
 //
 zone "." IN {
 type hint;
 file "caching-example/named.root";
 };

 zone "localhost" IN {
 type master;
 file "caching-example/localhost.zone";
 allow-update { none; };
 };

 zone "0.0.127.in-addr.arpa" IN {
 type master;
 file "caching-example/named.local";
 allow-update { none; };
 };


This is the default named.conf configuration. By default, named.conf file only configured for localhost. So we need to edit or add our domain in this file later. We also need to create new dns zone files for our domain. We can see that all dns zone files were kept in /var/named/caching-example directory. So let's view /var/named/caching-example directory: 

root@slackware:/etc# ls -l /var/named/caching-example/
 total 16
 -rw-r--r-- 1 root root 195 2008-09-17 15:26 localhost.zone
 -rw-r--r-- 1 root root 2878 2008-09-17 15:26 named.ca
 -rw-r--r-- 1 root root 433 2008-09-17 15:26 named.local
 -rw-r--r-- 1 root root 2878 2008-09-17 15:26 named.root
 root@slackware:/etc#


Setup additional dns zones

You know that to setup dns you need a qualified domain name? That's true but not totally true. You can setup local BIND caching name server for your local network to speed up dns lookups, which in turn will speed up all of your Internet services. Here are examples of default configuration zone files for bind dns server:

This is localhost.zone file default configuration. It is configured for localhost:

$TTL 86400
 $ORIGIN localhost.
 @ 1D IN SOA @ root (
 42 ; serial (d. adams)
 3H ; refresh
 15M ; retry
 1W ; expiry
 1D ) ; minimum

 1D IN NS @
 1D IN A 127.0.0.1


This is named.local file default configuration. As you can see in the /etc/named.conf file configuration above, this is the reverse dns configuration file, also configured for localhost:

$TTL 86400
 @ IN SOA localhost. root.localhost. (
 1997022700 ; Serial
 28800 ; Refresh
 14400 ; Retry
 3600000 ; Expire
 86400 ) ; Minimum
 IN NS localhost.

 1 IN PTR localhost.


When we added our new domain, we'll just need to copy and configure these two files to setup bind dns server, for private dns or public dns. We leave alone the cache zone file, named.ca and the master list of the root name servers, named.root. Well, the named.root should be update from time to time though. Normally once a month because it does not change very often. Get latest update named.root from ftp.internic.net.

These are normal terms or jargon that we should know to understand bind configuration files:
•$TTL - sets a default time-to-live. 
•w - For week
•d - For day
•h - For hour
•m - For minute
•s - For second
•@ - same as $ORIGIN.
•IN - Defines the address class; IN = Internet.
•SOA - Start of Authority - Indicates authority for this zone.
•Serial number - Serial number in YYYYMMDDSS, where SS is number the file changed.
•Refresh - Tells dns slave, or secondary servers how often to check for updates.
•Retry - Tells the secondary server how often it should resend the request if fails.
•Expire - Period of time the secondary server can use its existing data.
•Minimum, or Negative-caching TTL - Cached on non-authoritative servers.
•A - Alias record - Name-to-address mapping.
•PTR - Address-to-name mapping.
•CNAME - (canonical name) alias to an A record.
•NS - Lists a nameserver for this zone.

Setup local caching name server(cache dns)

In Slackware, we don't have to edit anything to setup local caching name server. As you can see above, the localhost already configured! What we have to do is just enable bind daemon and run the service. Let's see if what I say is true.

Start dns service

Bind uses standalone server which means it's not included in inetd master server. So we have to make it executable to start the service. Here are the steps you need to do:

Change bind daemon's permission and make it executable. Here is an example:

root@slackware:~# ls -l /etc/rc.d/rc.bind
 -rw-r--r-- 1 root root 3116 2008-04-14 05:48 /etc/rc.d/rc.bind
 root@slackware:~# chmod 755 /etc/rc.d/rc.bind
 root@slackware:~# ls -l /etc/rc.d/rc.bind
 -rwxr-xr-x 1 root root 3116 2008-04-14 05:48 /etc/rc.d/rc.bind*
 root@slackware:~#


Now we can start the service. Here is an example command to start bind service(dns service) in Slackware:

root@slackware:~# /etc/rc.d/rc.bind start
 Starting BIND: /usr/sbin/named
 root@slackware:~#


The bind service has been started and it should be running now. But how do we now that our local caching name server is running ok?

Testing and troubleshooting dns server

To check named.conf configuration file, we can use named-checkconf tool:

root@slackware:~# named-checkconf /etc/named.conf


To check zone configuration file, we can use named-checkzone tool:

root@slackware:~# named-checkzone localhost /var/named/caching-example/localhost.zone


Use dig command to query reverse lookup.

root@slackware:~# dig -x 127.0.0.1 
; > DiG 9.4.2-P2 > -x 127.0.0.1
 ;; global options: printcmd
 ;; Got answer:
 ;; ->>HEADER ;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
 ;; WARNING: recursion requested but not available

 ;; QUESTION SECTION:
 ;1.0.0.127.in-addr.arpa. IN PTR

 ;; ANSWER SECTION:
 1.0.0.127.in-addr.arpa. 10000 IN PTR localhost.

 ;; Query time: 7 msec
 ;; SERVER: 192.168.1.1#53(192.168.1.1)
 ;; WHEN: Mon Dec 1 22:59:54 2008
 ;; MSG SIZE rcvd: 63



Run dig hostname command to query server response.

root@slackware:~# dig localhost

 ; > DiG 9.4.2-P2 > localhost
 ;; global options: printcmd
 ;; Got answer:
 ;; ->>HEADER ;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
 ;; WARNING: recursion requested but not available

 ;; QUESTION SECTION:
 ;localhost. IN A

 ;; ANSWER SECTION:
 localhost. 10000 IN A 127.0.0.1

 ;; Query time: 3 msec
 ;; SERVER: 192.168.1.1#53(192.168.1.1)
 ;; WHEN: Mon Dec 1 23:01:09 2008
 ;; MSG SIZE rcvd: 43

 root@slackware:~#


We got response there, didn't we? At the answer section there we got localhost respond to our query.

Setup a private bind dns server

To setup a private bind dns server, we need to add a new zone in the /etc/named.conf file and configure a new zone in /var/named/caching-example. This is an example of a new zone and it's reversed name resolution zone that you can add in /etc/named.conf for private dns server:

zone "example.com" in {
 allow-transfer { any; };
 file "caching-example/zone.example.com";
 type master;
 };

 // Set up reversed name resolution
 zone "1.168.192.in-addr.arpa" {
 type master;
 file "caching-example/192.zone";
 };


Make a copy of localhost.zone file and named it zone.example.com (name it zone.yourdomain.com). Below is my zone.example.com configuration. You can edit this file, add other servers you have in your network and just change names and ip addresses to your own.

;
 ; Data for private bind dns server
 ;
 $TTL 1D
 @ 1D IN SOA slackware.example.com. root.example.com. (
 2008120101 ; serial
 3H ; refresh
 15M ; retry
 1W ; expiry
 1D ) ; minimum

 ;

 @ IN NS slackware.example.com.
 @ IN A 192.168.1.3
 slackware IN A 192.168.1.3
 web IN CNAME slackware.example.com.


This is the reversed name resolution zone configuration:

;
 ; Reverse lookup dns zone file for private bind dns server
 ;
 $TTL 1D
 @ IN SOA slackware.example.com. root.example.com. (
 2008112302 ; Serial
 604800 ; Refresh
 86400 ; Retry
 2419200 ; Expire
 86400 ) ; Negative Cache TTL

 @ IN NS slackware.
 3 IN CNAME slackware.example.com.


You need to restart the bind service before your new dns takes effect. Before you restart the service, make sure you check /etc/named.conf and zone files syntax as mentioned in the testing dns section above. If you encounter problems, you can always check log file in /var/log/messages.

Setting up a private and a public dns server is the same except for a public bind dns server you need a qualified domain name and ip address.


Source:http://www.basicconfig.com/slackware_linux_dns_server_setup

Tuesday, December 2, 2014

Log out from ubuntu 14.04

gnome-session-quit was not working for me

So I used

sudo pkill -u username

however sudo service lightdm restart did not work for me,got in a unresponsive blank screen



Some shell script resources

http://www.onlinevideolecture.com/computer-programming/madhur-bhatia/shell-scripting-tutorials/index.php?course_id=2898&lecture_no=58

Friday, November 21, 2014

Sunday, October 12, 2014

Convert GPT to MBR using Linux

sudo apt-get install gdisk. Press "Enter" to install the partitioning tool to Ubuntu.


Input "sudo gdisk" into Terminal, then press "Enter" to run gdisk as a superuser. Input the name assigned to the boot device, then press "Enter" again.


Press "r," then hit "Enter," to switch to the recovery and transformation options. Press "g," then press "Enter," to select the option to convert GPT to MBR on Linux.


Press "0," then press "Enter," to convert GPT to MBR on the primary partitions. Press "y," then "Enter,"










Source:http://www.ehow.com/how_12119053_convert-gpt-mbr-linux.html

Windows can not be installed solved

Friday, September 12, 2014

Friday, July 25, 2014

Photoshop CS5,Filter Gallery grayed out error solved


Here is how it solved for me,

I go to image-mode-change CMYK to RGB,I have heard toggling between 8 to 16 bits or 32 bits work too.

Photoshop CS5,can not type in multiline in one textbox in one layer error solved

I faced this irritating issue,

Here how it got solved

I reset the character panel(click on the rightmost symbol at the top of the character panel).

Turn off the numlock.

Right click on the the first arrow sign from left under file and then Reset tool or Reset all tools.

and then I seem to type multiline on a textbox in just one layer

Sunday, July 13, 2014

"joomla installation hangs at creating database tables" solved

I had this peculiar error when configuring Joomla 3,I never saw this before

anyway here is how it got solved

Change mysqli to mysql during installation


Then I go to the root folder (htdocs) and then go the folder where I am going to install joomla,then extract joomla in that folder and then go to installation/SQL/mysql and there is the installation joomla.sql file,all ENGINE=InnoDB should be changed to ENGINE=MyIsam.

And you are done.

Sourav Bhattacharya