| ProfileSysAdmin ParadiseBlogLists | Help |
|
June 08 /usr/openwin/bin/xinit: connection refusedDuring installing Solaris, if you encounter the following error messages. Please check whether you forget to plug your usb mouse or the mouse problem.
............................... giving up /usr/openwin/bin/xinit: connection refused (error no 146):unable to connect to x server /usr/openwin/bin/xinit/: no such process (error 2) server error ................... May 24 Apache Rewrite RuleOnce you have a new website to replace the old one. You want to assign a new domain name for the new website. You want to bring the old domain name user to the new domain name.
Using Apache, you can make use of Rewrite Rule.
Here is an example:
Any user input http://www.olddomain.com/olddir will bring to http://www.newdomain.com/
You can add the following lines into httpd.conf under the working directory
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$ [NC] RewriteCond %{REQUEST_URI} ^/* [NC] RewriteRule ^(.*)$ http://www.newdomain.com/ May 11 FSCK.ext3: permission denied while trying to open /dev/ida!c0d0p2Just tried to install Fedora Core 5 on my HP DL380 Server. I was experienced with loading it after the installation. The following error shown:
checking filesystems
FSCK.ext3: permission denied while trying to open /dev/ida!c0d0p2 You must have r/w access to the filesystem or be root
( FAILED) An error occured during the file system check Dropping you to a shell; the system will reboot When you leave the shell Warning ---SELinux is active Disabling security, enforcement for system recovery Run 'setenforce 1' to reenable Give root password for maintenance ( or type control-D to continue ) Solution:
It is caused by selinux. Try to use the Rescue disk of FC5 to boot up the system. Edit /etc/sysconfig/selinux to disable it. Everything will be alright after the restart. March 10 Compilation failure for GD LibraryI was going to install a software on my Solaris 8 Box which required GD Library to install first.
I downloaded the newest version gd-2.0.33 from http://www.boutell.com/gd/ and failed to compile it with the follow errors:
Undefined first referenced
symbol in file gdImageCreateFromGd2Part gdparttopng.o ld: fatal: Symbol referencing errors. No output written to .libs/gdparttopng collect2: ld returned 1 exit status I got hopeless without finding any solution on the Internet. I ensured libpng was installed well.
Suddenly my mind came a hint. I changed the set path with looking /usr/local/bin first and then /usr/bin. At last, it was solved. I guessed it was because there wass older version pack in /usr/bin which made it failed. March 02 Compile SendmailIt is hard to find detail information from Internet about compiling sendmail. But it is not as smooth as you think.
Environment: Solaris 8 (You are recommended to install Developer Distribution or above which installed most of the Sun packages and libraries)
Sendmail Version: 8.13.5
1, Download Sendmail Source from www.sendmail.org
2, Download and install Berkeley DB from www.sleepycat.com or www.sunfreeware.org . I tried v3.3.11. (Better use v3.x version. There are many unknown error when trying v4.x)
3, Download and install make v3.8 from www.sunfreeware.org
4, Download and install gcc v3.4.2 from www.sunfreeware.org
5, Download and install libiconv 2.8 from www.sunfreeware.org
6, Check whether the following sun packages installed or not:
7, Check the UNIX_PATH to include the following path:
8, create the following directories if not existed:
9, Extract sendmail source to a temporary locaiton.
10, Change to directory sendmail_src_home/sendmail
11, Execute "sh Build" (If there is error, most probably it is caused by missing some SUN packages)
12, If no error reported, change to directory sendmail_src_home/cf/domain
13, Copy generic.m4 to YOUR_HOSTNAME.m4 (for example mailsrv.abc.com.m4)
14, Change to directory sendmail_src_home/cf/cf
15, Copy generic-solaris.mc to config.mc and insert the following lines below the line OSTYPE(...) in config.mc. The FEATURE is optional in case you want to use such database.
16, Execute "sh Build config.cf"
17, Copy the config.cf to replace /etc/mail/sendmail.cf
18, Change to directory sendmail_src_dir/sendmail
19, Execute "sh Build install"
20, If no error reported, change to directory sendmail_src_dir and execute "sh Build install" again
21, Possibly it is successfully installed.
22, Execute "/etc/rc2.d/S88sendmail stop" and "/etc/rc2.d/S88sendmail start"
23, telnet localhost 25 and see whether the sendmail is installed with the compile version.
February 27 Zimbra Mail Server InstallationRecently, I am trying to study a new enterprise email server for my company. To save money, I tend to find an open source system. There are 3 popular choices, here is the comments to them.
Scalix - not supports unicode.
OpenXchange - not provide wizards installation and web console in the free license version
As of above concerns, I selected Zimbra (www.zimbra.com).
The open source version already provides rich email functions. I am not going to list here. The information can be found on their websites.
I have tried installed it on FC3 and FC4. It is quite stable and the installation is very smooth. You may just spend ten somethings minutes to install it.
Some tips on the system installation:-
1, After a clean OS installation, remove the hostname, which created when installing the OS, from the 127.0.0.1 entry of /etc/hosts and add another entry for the mail domain.
2, install fetchmail and libstdc by execute
3, Download the Open Source Version of Zimbra from their website. Extract it into the OS, for example /tmp
4, cd /tmp/zcs and execute ./install.sh
5, They are just some "y" and information provided aftewards. You will be asked to input domain name. Just input the mail domain as of input at the /etc/hosts. In this example, that is "abc.com"
6, Then another few steps for "y".
7. Congratulation, you got it. It's too easy.
8. Open http://IP:7071 and login with the admin account
9. Enjoy. 限制Linux的用戶郵件容量(Quota)我公司是用Sendmail作為MTA,郵件會儲存於/var/spool,若要限制用戶的郵箱容量,最直接的方法是從Linux的File System著手,只需要限制/var下面屬放某用戶的檔案容量便可以。
開幕做了I.T.的工作差不多八個年頭,搵到食都係靠Internet,I.T.資訊日新月異,學都學唔切,所以我地唔會咁苯係咁日日睇paper睇新聞咁不斷學I.T.野,通常都係用煮到埋來就食的心態,咁當真係煮到埋時點呢?咁哽係唔係去圖書館啦,最快一定係o係Internet搵料解決,但有沒有發覺越來越難找到資料,因為搵到出來的資料實在太多,而且要找到準確無誤的資料就更加難,有很多人只係將manual的資料搬字過字的Post上去,唔係個個都係高手,一望就明,所以我成時都希望有人可以放一些step by step的資料,而且唔洗咁多concept的,最重要係行到run到咁就最fit,我公司成日都有新project,好多時我工作要的資料都要搵好多個site咁夾埋才用到,好煩的,有時急起來邊有時間咁搵,咪只能係一個不齊全的site下面踫下撞下,總覺得那些人放出來的資料都唔照顧下睇的人會唔會明。
SysAdmin Playground就是希望從這方面著想,對一些我做過的工作或研究,盡量細致一些show出來,希望造福到一些I.T.新手們(或鳥哥們)。我雖然滿懷大志,但寫出來的東西都未必一定對(起碼在我的環境是run到),我亦不會那麼傻或那麼多時間將那些東西試在不同環境下校對,若有高手想幫助,隨時歡迎回應。 |
|
|||
|
|