More from the web

Tuesday 13 October 2015

Increasing memory utilization in Windows Server 2003



 Using more of that memory installed in your server.








The following are the memory limits for the various versions of Windows Server 2003 R2

Version                                                                         Limit X86                                  Limit X64
Windows Server 2003 R2 Datacenter Edition             64 GB (16 GB with 4GT)          1 TB
Windows Server 2003 R2 Enterprise Edition              64 GB (16 GB with 4GT)          1 TB   
Windows Server 2003 R2 Standard Edition                4 GB                                          32 GB

But these limit which are over 4GB for the 32-bit versions assume the use of Physical Address Extension (PAE)


To enable PAE, use the /PAE switch in the Boot.ini file.

The following is an example of a Boot.ini file where the PAE switch has been added:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Windows Server 2003, Enterprise" /fastdetect /PAE

Edit the Boot.ini file
To view and edit the Boot.ini file, follow these steps:

1) Click Start, point to Settings, and then click Control Panel.
2) In Control Panel, double-click System.
3) Click the Advanced tab, and then click Settings under Startup and Recovery.
4) Under System startup, click Edit.

Details in links below:

https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778%28v=vs.85%29.aspx#physical_memory_limits_windows_server_2003_r2

https://support.microsoft.com/en-us/kb/283037

https://support.microsoft.com/en-us/kb/317526

Wednesday 7 October 2015

Join Linux to active directory domain and setup a samba share

1 ) As root install the following prerequisites
yum –y install nscd.x86_64 pam_krb5.x86_64 samba-winbind.x86_64

2) Run the authconfig-tui util  command
Configure Winbind as follows






Restart Services

/etc/init.d/winbind restart
/etc/init.d/nmbd restart
/etc/init.d/smbd restart



Now see if you can list the domain users and groups:
wbinfo -u # lists all the users in the domain
wbinfo -g # lists all the groups in the domain



And also check if winbind and nsswitch are correctly working:

getent passwd # should return a list with all users on the local system and from the active directory

getent group # should return a list with all groups and their members, both from the local system and the active directory.



Some names or groups are resolved with getent, but others are not

The range of your idmap parameter is not wide enough to encompass all the users or groups

idmap uid = 16777216-33554431

idmap gid = 16777216-33554431


Create Windows share using Samba On Linux
1) Create directory to be shared

 2) Edit the samba configuration file  (keep a backup)
     vi /etc/samba/smb.conf

3) Create share

4) Save and restart the smb service
#service smb restart

You should now see the share appear while browsing the network


Entering line "chcon -t samba_share_t /path" can help with permission errors on the shared folder



References 

http://blog.zwiegnet.com/linux-server/create-windows-share-oracle-linux/
http://blog.zwiegnet.com/linux-server/join-centos-to-active-directory-domain/
https://raymii.org/s/tutorials/SAMBA_Share_with_Active_Directory_Login_on_Ubuntu_12.04.html
https://help.ubuntu.com/community/ActiveDirectoryWinbindHowto






Wednesday 2 September 2015

Copying entire folder using Smbclient

1. connect using smbclient smbclient //computername/sharename -U username -W domainname
2. The windows box will ask the password.
3. After you connected do this step by step
4. type tarmode
5. type recurse
6. type prompt
7. mget foldertocopy\
8. the whole folder will be copied to your directory.