2015年4月1日星期三

Centos 6.5 network not startup after installation & then install SSH,LAMP and webmin

After startup Centos with root, key in

setup 

to start the setup utility

User the network setting to key in all the network info your server required and save it.

After that, edit /etc/sysconfig/network-scripts/ifcfg-eth0.

Find ONBOOT="no"

Change it into ONBOOT="yes"

If you user network manager then chkconfig NetworkManager on or
you use old network service then chkconfig network on

------------------------------------------------------------------------

Install SSH

yum -y install openssh*

after installation complete. start the service

service sshd start


------------------------------------------------------------------------
Install LAMP

yum  -y  install  httpd  php  php-mysql  mysql  mysql-server

Set MYSQL start when boot and start now

chkconfig mysqld on
/etc/init.d/mysqld start

Set Apache start when boot and start now

chkconfig httpd on
/etc/init.d/httpd start

After that , double check the firewall setting to make sure ports are opened correctly.

Edit use this command
vi /etc/sysconfig/iptables

After edit , please restart the service again
/etc/init.d/iptables restart

Double check the firewall status
/sbin/iptables -L -n

---------------------------------------------------------

Download Webmin & install (Remarks, please install & start all service for LAMP before install webmin)

wget http://prdownloads.sourceforge.net/webadmin/webmin-1.831-1.noarch.rpm

then install optional dependencies with :

yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty

and then run the command :

rpm -U webmin-1.831-1.noarch.rpm

more details can be find at :
http://www.webmin.com/rpm.html




SME Server 9.0 Sysmon Installation

The installation for sysmon on the web of SME Linux is not updated.

Please try this step that I can install Sysmon on SME9.0

Sysmon is needed the gettext. So install it.

yum install gettext --enablerepo=sme8contribs,smecontribs

Fping is also a needed things. So get and install it.

wget http://rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/fping-3.1-1.el5.rf.i386.rpm

rpm -Uvh fping-3.1-1.el5.rf.i386.rpm

The last procedure is download sysmon and install.

wget http://sme-mirror.firewall-services.com/releases/8/smecontribs/i386/RPMS/smeserver-sysmon-6.2-
2.el5.sme.noarch.rpm

rpm -Uvh smeserver-sysmon-6.2-2.el5.sme.noarch.rpm

After installation, please update the SME 9.0 system via server manager/software installer and reboot.
If not update, I find that the sysmon cannot draw the graph correctly.

Please try & enjoy.

You can use this text include all command

yum install gettext --enablerepo=sme8contribs,smecontribs
wget http://rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/fping-3.1-1.el5.rf.i386.rpm
rpm -Uvh fping-3.1-1.el5.rf.i386.rpm
wget http://sme-mirror.firewall-services.com/releases/8/smecontribs/i386/RPMS/smeserver-sysmon-6.2-2.el5.sme.noarch.rpm
rpm -Uvh smeserver-sysmon-6.2-2.el5.sme.noarch.rpm



2015年3月10日星期二

win7 cannot login after create a new user.(domain or local) with error. The user profile service failed to logon. User profile cannot be loaded

The user profile service failed to logon. User profile cannot be loaded.

You can check this method provided by microsoft.

http://support.microsoft.com/kb/947215


But if you find that. You create a new account (local/domain) without problem but cannot login with the error "The user profile service failed to logon. User profile cannot be loaded." Then you can try to check that on C drive.

C:/User/"User name" exist or not.

If no, then you need to check the default user folder rights is correct or not.

It must be read by everyone. If no , then new OS find you login a new user. It will copy the items in the C:/User/default user and C:/User/default. But rights is not correct then the OS can not create the new user directories and information. After that, it cannot load the profile because it had not been copied or created.

get the ownership by admin user.
add access right on the folder for everyone group can read.
restat pc and login with new user id.

It should work at least for me. ^_^



2014年9月18日星期四

clean up outlook 2010 cache

Turn Off Cached Exchange Mode

Click the Start Menu > Control Panel > Mail
Click the button labeled Show Profiles
Highlight the profile you are using for Exchange email
Click the Properties button.
Click the Email Accounts button
Highlight the Microsoft Exchange account and click the Change button.
Uncheck the box that says “Use Cached Exchange Mode”
Click the Next button
Click Finish.


Delete OST files from hard drive

Windows 7: C:\Users\username\AppData\Local\Microsoft\Outlook
Windows Vista: C:\User\user name\Local Settings\Application Data\Microsoft\Outlook
Windows XP: C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook


Turn On Cached Exchange Mode

Click the Start Menu > Control Panel > Mail
Click the button labeled Show Profiles
Highlight the profile you are using for Exchange email
Click the Properties button.
Click the Email Accounts button
Highlight the Microsoft Exchange account and click the Change button.
Check the box that says “Use Cached Exchange Mode”
Click the Next button
Click Finish.
Restart Outlook


Once Outlook is restarted, all of your mailbox data  including email, calendars, tasks and notes will download to your computer again.  This process may take a while to complete depending on the size of your mailbox.  You can watch the progress in the lower right corner of the Outlook application window.

2014年9月17日星期三

Add new/replacement harddisk in Linux Raid 1(Mirror)

Example data like this
sda is original / source harddisk
sdb is new / replacement  harddisk

md0 members are sda1 and sdb1
md1 members are sda2 and sdb2

After you have changed the hard disk /dev/sdb, boot the system.
 ----------------------------------------------------------------------------------------------------------------
If you use a disk and it is contained some raid info, you need to erase the metadata using this command.
mdadm --zero-superblock /dev/sdb
 ----------------------------------------------------------------------------------------------------------------


sda is master/original drive
sdb new drive

after replace harddisk

boot the master harddisk. If bios have problem and cannot boot, boot rescuecd(you can download from search the web) via usb or CD.

after login and access terminal or command prompt.

copy partition table
sfdisk -d /dev/sda | sfdisk /dev/sdb

after that can verify use
fdisk -l

if ok then

add join harddisk to raid. add partition one by one
mdadm --manage /dev/md0 --add /dev/sdb1

mdadm --manage /dev/md1 --add /dev/sdb2

if md1 is big and boot up is using rescuecd, you can reboot pc using the new harddisk now due to md0 is boot partition and sync is completed. It can startup now.
After reboot, login to root and re-add md1 again using the last command.

God bless you!

2014年9月16日星期二

SBS Exchange send as a distrubutions group

You need to grant the users the "Send As" permissions. Not sure how to accomplish that on SBS 2003, but on Exchange 2003 or 2007 you will:
  1. Start the Exchange version of Active Directory Users and Computers
  2. From the View menu choose Advanced Features.(Must activate this option to see the Security tab after Properties)
  3. Right click the user who wants to let other people send messages on his behalf and select Properties.
  4. Select the Security tab and click Advanced.
  5. Select the Permissions tab and click Add.
  6. Enter the users who require the Send As permission, then click OK.
  7. You will see the list of permissions. Make sure that "This object only" is selected for the apply field, then scroll to the bottom and select the Send As permission. Click OK.
  8. OK the Advanced security dialog box, and OK the User Properties window to close.

2014年8月27日星期三

CentOS 6.5 Linux install raid 1 with efi firmware system


during the centos install.

make the two harddisk partition tables as below

sda (first drive)
- sda1 - FAT32 - /boot/efi - in firmware boot menu as "CentOS"
- sda2 - Linux software RAID - /boot
- sda3 - Linux software RAID - /

sdb (second drive)
- sdb1 - FAT32 - copy of /boot/efi - in firmware boot menu as "CentOS Backup"
- sdb2 - Linux software RAID - /boot
- sdb3 - Linux software RAID - /

example screen :




after the installation complete

do this commandsto make the secound harddisk bootable

# dd if=/dev/sda1 of=/dev/sdb1
# efibootmgr --create --disk /dev/sdb --label "CentOS Backup" --load "\\EFI\\redhat\\grub.efi"         

after that, update efi bios to boot the CentOS and CentOS Backup for the first and secound device in boot sequence.