First you must add your linux in to a windows AD, once it is done, login as root or user that is in wheel group.
Execute this command visudo, that will open etc/sudoers file. if you do vi /etc/sudoers vi will give you an permission error. So besure to use visudo without space.
Find a line that looks like this
%wheel ALL=(ALL) ALL
put this just below that like (Yes with \\, in linux \ is an escape charator, so we have to put two \ instead of one \) this...
domain\\username ALL=(ALL)
example: If you want to add a user test1 who is in world.com
world\\test1 ALL=(ALL)
and this is an option you can put just behind the line, so it will not ask for a password if you do sudo. a bit of security issue but if you built a test linux machine gotta do lots of sudo, ye it can be your best friend.
NOPASSWD: ALL
example: world\\test1 ALL=(ALL) NOPASSWD: ALL
That is all.
Monday, July 23, 2012
Installing Exchange 2013 preview - quick and dirty
What you will need, a domain controller, a windows server 2008 or R2 or 2012 and some pre-req items
I will use an Windows 2008 R2 x64 Enterprise version for this demo.
Download a Exchange server 2013 preview from here : http://www.microsoft.com/exchange/en-us/exchange-preview.aspx
All Exchange 2010 servers in the organization need to be at Exchange 2010 SP3 orlater, and SP3 is not available at this time (2012, July), so if you try to install it on the current Exchange 2010, you won't be able to install it at all.
Pre-req items list
1. Add RSAT-ADDS
On powershell run
Import-Module ServerManager
Add-WindowsFeature RSAT-ADDS
2. Install IIS 7
On powershell run
Import-Module ServerManager\
Add-WindowsFeature Desktop-Experience, NET-Framework, NET-HTTP-Activation, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Web-Server, WAS-Process-Model, Web-Asp-Net, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI
3. Install hotfix 2619234
http://support.microsoft.com/kb/2619234
4. Microsoft Unified Communications Managed API 4.0, Core Runtime 64-bit.
http://go.microsoft.com/fwlink/?LinkId=238142
5. KB974405
http://support.microsoft.com/kb/974405
6. Microsoft Office 2010 Filter Packs - Version 2.0
http://go.microsoft.com/fwlink/?LinkID=191548
7. Microsoft Office 2010 Filter Packs - Service Pack 1
http://www.microsoft.com/download/en/details.aspx?id=26604
8. Install Windows Media Encoder
http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.LonghornWmvcoreNotInstalled.aspx
9. .Net framework 4.0
http://www.microsoft.com/en-us/download/details.aspx?id=17718
10. .Net framework 4.5
http://msdn.microsoft.com/en-us/library/5a4x27ek(v=VS.110).aspx
11. Windows Management Framework 3.0
http://www.microsoft.com/en-us/download/details.aspx?id=29939
12. Exchange Server 2013 Preview isn't compatible with Microsoft Visual C++ 11 Beta Redistributable (x64) 11.0.050531. Please uninstall it before you install Exchange 2013 Preview.
Uninstall Microsoft Visual C++ 11 Beta using "programs and feafures"
Installation steps
1. Install all pre-req items, and reboot.
2. Fully patch the new windows 2008 r2 server.
3. Run the exchange-x64.exe, it will ask a place to extract the files.
4. Choose a folder to extract.
5. Go to the folder and execute the setup.exe file
6. On Check for updates, I chose not to check, Next
7. Copying files, Next
8. Introduction screen, Next
9. Accept the license term, Next
10. Error reporting, choose no, and Next
11. On checking required software, Next
12. Installation space and location, Next
13. On Malware protection settings, select Yes to disable it and Next
14. On configure client access server, select , "this client server role will be internet-facing" and fill out the domain information
15. On customer experience improvement program window, click Next.
16. Readiness checks, wait until it finishes its task.
17, Once all check got passed, Next
18, setup will start
19, Installed
If you get "The WS-Management service does not support the request" error when you open the exchange powershell execute the command below on command prompt
%SystemDrive%\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir -enable
and reset the IIS by runnig
IISReset
2013 OWA with new office 2013 logo
First look of OWA 2013
Options page
I will use an Windows 2008 R2 x64 Enterprise version for this demo.
Download a Exchange server 2013 preview from here : http://www.microsoft.com/exchange/en-us/exchange-preview.aspx
All Exchange 2010 servers in the organization need to be at Exchange 2010 SP3 orlater, and SP3 is not available at this time (2012, July), so if you try to install it on the current Exchange 2010, you won't be able to install it at all.
Pre-req items list
1. Add RSAT-ADDS
On powershell run
Import-Module ServerManager
Add-WindowsFeature RSAT-ADDS
2. Install IIS 7
On powershell run
Import-Module ServerManager\
Add-WindowsFeature Desktop-Experience, NET-Framework, NET-HTTP-Activation, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Web-Server, WAS-Process-Model, Web-Asp-Net, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI
3. Install hotfix 2619234
http://support.microsoft.com/kb/2619234
4. Microsoft Unified Communications Managed API 4.0, Core Runtime 64-bit.
http://go.microsoft.com/fwlink/?LinkId=238142
5. KB974405
http://support.microsoft.com/kb/974405
6. Microsoft Office 2010 Filter Packs - Version 2.0
http://go.microsoft.com/fwlink/?LinkID=191548
7. Microsoft Office 2010 Filter Packs - Service Pack 1
http://www.microsoft.com/download/en/details.aspx?id=26604
8. Install Windows Media Encoder
http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.LonghornWmvcoreNotInstalled.aspx
9. .Net framework 4.0
http://www.microsoft.com/en-us/download/details.aspx?id=17718
10. .Net framework 4.5
http://msdn.microsoft.com/en-us/library/5a4x27ek(v=VS.110).aspx
11. Windows Management Framework 3.0
http://www.microsoft.com/en-us/download/details.aspx?id=29939
12. Exchange Server 2013 Preview isn't compatible with Microsoft Visual C++ 11 Beta Redistributable (x64) 11.0.050531. Please uninstall it before you install Exchange 2013 Preview.
Uninstall Microsoft Visual C++ 11 Beta using "programs and feafures"
Installation steps
1. Install all pre-req items, and reboot.
2. Fully patch the new windows 2008 r2 server.
3. Run the exchange-x64.exe, it will ask a place to extract the files.
4. Choose a folder to extract.
5. Go to the folder and execute the setup.exe file
6. On Check for updates, I chose not to check, Next
7. Copying files, Next
8. Introduction screen, Next
9. Accept the license term, Next
10. Error reporting, choose no, and Next
11. On checking required software, Next
12. Installation space and location, Next
13. On Malware protection settings, select Yes to disable it and Next
14. On configure client access server, select , "this client server role will be internet-facing" and fill out the domain information
15. On customer experience improvement program window, click Next.
16. Readiness checks, wait until it finishes its task.
17, Once all check got passed, Next
18, setup will start
19, Installed
If you get "The WS-Management service does not support the request" error when you open the exchange powershell execute the command below on command prompt
and reset the IIS by runnig
IISReset
2013 OWA with new office 2013 logo
First look of OWA 2013
Options page
Installed Apps page
Wednesday, July 18, 2012
CentOS 6 : Using DVD/CD as your local repo #2
Put the dvd in to the cdrom, and we need to mount the dvd.
#mkdir /media/CentOS_6.2_Final
after that mount the dvd with this command:
#mount /dev/cdrom /media/CentOS_6.2_Final
and then Edit CentOS-Media.repo
vi /etc/yum.repos.d/CentOS-Media.repo
You will see something like this
baseurl=file:///media/CenOS/
and blah blah
Change the "file=:///media/CentOS" to "file=:///media/CentOS_6.2_Final"
Save the file
and install package
yum --disablerepo=\* --enablerepo=c6-media
for example to install perl
yum --disablerepo=\* --enablerepo=c6-media install perl
#mkdir /media/CentOS_6.2_Final
after that mount the dvd with this command:
#mount /dev/cdrom /media/CentOS_6.2_Final
and then Edit CentOS-Media.repo
vi /etc/yum.repos.d/CentOS-Media.repo
You will see something like this
baseurl=file:///media/CenOS/
and blah blah
Change the "file=:///media/CentOS" to "file=:///media/CentOS_6.2_Final"
Save the file
and install package
yum --disablerepo=\* --enablerepo=c6-media
for example to install perl
yum --disablerepo=\* --enablerepo=c6-media install perl
Friday, June 01, 2012
Adding a user to sudo group
Open sudo config file
visudo
Go to the end of the file and uncomment %wheel ALL=(ALL) ALL line, it is located about 10 line above from the end of the file.
This change will activate the wheel group, and allow you to add a user to the wheel group (it is like local admin group in windows)
Save the change and close the file
add a user to the wheel group, in this example add a user called test to the wheel group
usermod -a -G wheel test
visudo
Go to the end of the file and uncomment %wheel ALL=(ALL) ALL line, it is located about 10 line above from the end of the file.
This change will activate the wheel group, and allow you to add a user to the wheel group (it is like local admin group in windows)
Save the change and close the file
add a user to the wheel group, in this example add a user called test to the wheel group
usermod -a -G wheel test
Configuring an NTP Client
open ntp.conf and edit it
nano /etc/ntp.conf
check status of ntpd service
service ntpd status
if it is not running start the service
service ntpd start
nano /etc/ntp.conf
check status of ntpd service
service ntpd status
if it is not running start the service
service ntpd start
Wednesday, May 30, 2012
CentOS 6 How to renew DHCP and restart NIC
To release the DHCP address on the system
dhclient -r
To obtain a new address
dhclient
To check the new IP
ifconfig
To restart network service
ifdown eth0
ifup eth0
/etc/init.d/network restart
dhclient -r
To obtain a new address
dhclient
To check the new IP
ifconfig
To restart network service
ifdown eth0
ifup eth0
/etc/init.d/network restart
CentOS 6: Install Packages Via yum Command Using DVD / CD as Repo
Open up the repo file and edit
vi /etc/yum.repos.d/CentOS-Media.repo
read the content carefully
set enabled to 1
enabled=1
Might want to add file:///media/CentOS_6.2_Final on the baseurl
so baseurl would look like this after it is added, the last line woth bold idicated that it is added.
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
file:///media/CentOS_6.2_Final/
Install a package with only the CDROM repo
# yum --disablerepo=\* --enablerepo=c6-media install pacakge-name
vi /etc/yum.repos.d/CentOS-Media.repo
read the content carefully
set enabled to 1
enabled=1
Might want to add file:///media/CentOS_6.2_Final on the baseurl
so baseurl would look like this after it is added, the last line woth bold idicated that it is added.
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
file:///media/CentOS_6.2_Final/
Install a package with only the CDROM repo
# yum --disablerepo=\* --enablerepo=c6-media install pacakge-name
Subscribe to:
Posts (Atom)