[CentOS] hard drive info
i'm acessing a centos box via ssh, is there any way that i can find out the hard drive info, such IDE/SATA, format, size, make model, etc...? thanks ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] backup with dd
On Wed, 25 Jun 2008, Lanny Marcus wrote: On Wed, Jun 25, 2008 at 1:46 PM, Les Mikesell [EMAIL PROTECTED] wrote: Hiep Nguyen wrote: hi all, i have a centos box and would like to back up just in case the hard drive fail. one way to do this is duplicate the image of the hard drive, so if the hard drive fail, just remove it and put mirrored hard drive and done. here my system info: uname -a Linux jadenet.jadesterling.com 2.6.9-22.0.2.EL #1 Tue Jan 17 06:51:40 CST 2006 i686 i686 i386 GNU/Linux df -h FilesystemSize Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 37G 15G 20G 43% / /dev/hda1 99M 8.9M 85M 10% /boot none 188M 0 188M 0% /dev/shm i'm looking into dd, but is there anything better than dd? by the way, i would like to use external hard drive via usb to do mirror image. dd has the advantage of creating a disk that is instantly usable. The disadvantages are that you have to have it unmounted while making the copy (boot from a CD) and it takes a long time to complete since you have to copy even the unused blocks. There is also the possibility that your working disk will develop a bad spot that you don't realize until you hit it during the copy, leaving you with 2 bad disks (rotating 2 copies would avoid this issue). Clonezilla-live is a boot-from CD linux that will copy just the used portions of the disk and can save to another disk or image files on local disks or over the network. I'd recommend it over dd, but maybe someone has a way to do LVM snapshots so the copy can be done without a reboot. I'm downloading the .iso for clonezilla-live now. It's a very small download. 81.2 MB i don't know if this is possible, but assume my centos box's motherboard goes sour, can i just take its hard drive and put on similar pc? thanks___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] backup with dd
hi all, i have a centos box and would like to back up just in case the hard drive fail. one way to do this is duplicate the image of the hard drive, so if the hard drive fail, just remove it and put mirrored hard drive and done. here my system info: uname -a Linux jadenet.jadesterling.com 2.6.9-22.0.2.EL #1 Tue Jan 17 06:51:40 CST 2006 i686 i686 i386 GNU/Linux df -h FilesystemSize Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 37G 15G 20G 43% / /dev/hda1 99M 8.9M 85M 10% /boot none 188M 0 188M 0% /dev/shm i'm looking into dd, but is there anything better than dd? by the way, i would like to use external hard drive via usb to do mirror image. this is an internal box and very little info/actvities going on in this box. so, i don't have to worry about backup everyday. i may want to backup once a month. thanks, T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] exam txt file
hi all, i have centos 5 w/o gui. i can only have access via ssh. i have a text file that contains special (unprintable) characters, what editor i can use to exam what those character are??? i use vi, but i don't know what is ^@ may be an editor that can show ASCII as dec or hex. thanks ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] exam txt file
yes, corruption indeed, but i want to study why the program writes ^@ to this file. t. hiep On Thu, Apr 17, 2008 at 05:56:36AM -0700, Hiep Nguyen wrote: hi all, i have centos 5 w/o gui. i can only have access via ssh. i have a text file that contains special (unprintable) characters, what editor i can use to exam what those character are??? i use vi, but i don't know what is ^@ ^@ is the nul byte (zero byte). may be an editor that can show ASCII as dec or hex. xxd, included with vi, can show you the hex dump followed by the ascii one, while hexedit allows you to edit the file either entering the hexadecimal value or the ascii one. Anyway, a text file with \000 is very unusual, maybe it got corrupted? -- lfr 0/0 pgpam0XD0Mewr.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] exam txt file
On Thu, 17 Apr 2008, Max Hetrick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen Harris wrote: It's mostly likely not an ASCII file; it's probably UTF16 or similar so there are two bytes for every character, but the high byte is 0x00 which shows as [EMAIL PROTECTED] I've seen strange characters in DOS files before. What about running dos2unix on it? # dos2unix file.txt Or am I thinking something else? Just a thought. Regards, Max -BEGIN PGP SIGNATURE- definitely not unix file, it's novell/windows thing. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] log sshd activities
hi all, where exactly sshd log files??? this is what i have in /etc/sshsshd_config SyslogFacility AUTHPRIV if i want to log who login/logout sshd, what option do i need to turn on??? thanks, t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] disable SELinux
hi all, i asked this topic couple days ago, but i have problem again. for some reasons, iptables was turned on again. is there any way to disable iptables completely? this is what i did last time: #service iptables stop thanks, t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] disable SELinux
On Tue, 11 Mar 2008, Ray Van Dolson wrote: On Tue, Mar 11, 2008 at 11:25:33AM -0700, Hiep Nguyen wrote: hi all, i asked this topic couple days ago, but i have problem again. for some reasons, iptables was turned on again. is there any way to disable iptables completely? this is what i did last time: #service iptables stop As root: # chkconfig iptables off # service iptables stop i reviewed my notes and that's what i did: #chkconfig iptables off is there any other actions that trigger this back on when reboot? thanks, t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] disable SELinux
i know now. thanks. #chkconfig --list iptables shows all levels. i have to turn off all. t. hiep On Tue, Mar 11, 2008 at 11:25:33AM -0700, Hiep Nguyen alleged: hi all, i asked this topic couple days ago, but i have problem again. for some reasons, iptables was turned on again. is there any way to disable iptables completely? this is what i did last time: #service iptables stop Btw, your subject says selinux, but the body says iptables. I bring this up not to nitpick, but because you might not know that they different and mostly unrelated things. -- Garrick Staples, GNU/Linux HPCC SysAdmin University of Southern California Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html pgp0shvIDA7Q4.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] root vs. user login
hi all, when i login as root, i got: [EMAIL PROTECTED] html]# any other user, i got: -bash-3.1$ what do i need to change for user profile or during user creation process to make it looks like: [EMAIL PROTECTED] html]# thanks t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] internet search (not relate to Centos)
hi all, i have a little problem and seek for your advice. search jade sterling on google, msn or any other, the return is: Offering surplus bar and rod, selling to the Forging Industry, CNC Machining Industry and Screw Machine Industry supplying hot rolled and cold finished i went through all my pages and can't find Offering surplus. my question is how do i remove these words??? i hope i don't have to contact google or msn. thanks, t. hiep sorry for off-topic posting. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] internet search (not relate to Centos)
surplus is the word i would like to remove from all pages. t. hiep On Mon, 10 Mar 2008, [EMAIL PROTECTED] wrote: What words do you want to remove, and from what pages do you want to remove these words from? -- Original message from Hiep Nguyen [EMAIL PROTECTED]: -- hi all, i have a little problem and seek for your advice. search jade sterling on google, msn or any other, the return is: Offering surplus bar and rod, selling to the Forging Industry, CNC Machining Industry and Screw Machine Industry supplying hot rolled and cold finished i went through all my pages and can't find Offering surplus. my question is how do i remove these words??? i hope i don't have to contact google or msn. thanks, t. hiep sorry for off-topic posting. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] install webmin
On Thu, 6 Mar 2008, Ross Cavanagh wrote: Hiep Nguyen wrote: hi all, how do i install webmin using yum? i tried: yum search webmin, but not found. it must be on a different repos. what repos do i need to add to see this package. thanks t. hiep wget http://prdownloads.sourceforge.net/webadmin/webmin-1.400-1.noarch.rpm rpm --import http://www.webmin.com/jcameron-key.asc yum localinstall webmin-1.400-1.noarch.rpm what about openssl. yum search openssl and found a lot, but yum install openssl, nothing install. is it possible to install openssl using yum??? thanks, t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] install webmin
On Thu, 6 Mar 2008, Matt Hyclak wrote: On Thu, Mar 06, 2008 at 02:00:00PM +0100, Ralph Angenendt enlightened us: what about openssl. yum search openssl and found a lot, but yum install openssl, nothing install. is it possible to install openssl using yum??? Yes. And it probably already is installed. How about reading some documentation? http://centos.org/docs/5/ should keep you busy for a day or two ... I've suggested this twice already, but it seems to be falling on deaf ears... i did, but not 940 pages and understand/remember everything. i read the section that i need for my task, but found none that why i asked. if one can read/understand/remember all related docs that google returned, then none of us will be here on this forum. t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] /var/www/html group owner (fwd)
On Tue, 4 Mar 2008, lists-centos wrote: for apache to be able to serve the files under the document root it needs (and should only have) read access to the files (and read/execute for the directories). the directories/files under the document root should **not** be owned (or writeable) by the user/group that the web server is running as. if they are, you have a security hole should someone break through the webserver (or more likely poorly written scripts). so, a good approach is to have the directories/files under owner/group other than apache (assuming your web server is running as the apache user), with read-only access given to world. assume that i have a user and group named weber. i'll use weber to upload (via ftp) directories/files to /var/www/html/ what should /var/www/html/ look like? also, i have some php include files that i don't want anyone access except apache b/c they contain user/pw to mysql. where should i place them? i usually place them in /var/www/html/includes/ someone suggested i place them in /var/www/include/, but my question is what user/group /var/www/include/ belong to? thanks t. hiep - Rick Original Message Date: Tuesday, March 04, 2008 12:18:56 PM -0800 From: Hiep Nguyen [EMAIL PROTECTED] To: centos@centos.org Cc: Subject: [CentOS] /var/www/html group owner hi again, [EMAIL PROTECTED] ~]# ls -all /var/www/ total 64 drwxr-xr-x 8 root root 4096 Mar 3 11:44 . drwxr-xr-x 21 root root 4096 Mar 3 11:44 .. drwxr-xr-x 2 root root 4096 Jan 15 20:36 cgi-bin drwxr-xr-x 3 root root 4096 Mar 3 11:43 error drwxr-xr-x 2 root root 4096 Jan 15 20:36 html drwxr-xr-x 3 root root 4096 Mar 3 11:44 icons drwxr-xr-x 14 root root 4096 Mar 3 11:44 manual drwxr-xr-x 2 webalizer root 4096 Mar 3 11:44 usage currently, html is belonging to root group/owner and httpd is running under apache user/group. what should i change html to, so that httpd can run safely under apache user/group??? or should i change httpd to run under a different user/group??? if i keep httpd running on apache user/group, should i change html to apache group/owner??? thank you for all your help. t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -- End Original Message -- ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] permission on /var/www /var/www/html
hi all, assume apache runs under apache user/group and i have a user/group name weber. i use weber user to upload files via ftp/sftp. where should i place my include files so that no one can access except apache b/c these files contained user/pw for mysql. i usually place them in /var/www/html/includes, but people can access to this folder, so i'm thinking place them in /var/www/includes. what should the permission for /var/www/html and /var/www/inclues/? what group should these two directories belong to??? thanks, t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] show all groups comand
hi all, how do i find out all users groups existing on the system from command line? thanks, t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] install webmin
hi all, how do i install webmin using yum? i tried: yum search webmin, but not found. it must be on a different repos. what repos do i need to add to see this package. thanks t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] install LAMP
On Mon, 3 Mar 2008, Matt Hyclak wrote: On Mon, Mar 03, 2008 at 08:54:03AM -0800, Hiep Nguyen enlightened us: On Mon, Mar 3, 2008 at 8:52 AM, Hiep Nguyen [EMAIL PROTECTED] wrote: i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now. i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL. i found http://lamphowto.com/lampssl.html, but i have questions before i proceed. is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way. is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL? appreciate your help/suggestion t. hiep It's better to stick to the RPMs to make it easier to upgrade. If you want an easy way to install LAMP you can run 2 commands yum -y groupinstall Web Server yum -y install mysql-server php-mysql This will get Apache, MySQL, and PHP all installed. all done. now, how do i force apache mysql servers start up whenever the box boot? I would suggest reading the Deployment Guide (http://www.centos.org/docs/5/html/5.1/Deployment_Guide/) which will answer many of these questions. A place for you to start on this particular question would be the man page of the chkconfig command. thank you everyone for helping. done with installation, now move on to configuration. i try to access web server (10.0.0.160), but couldn't found. so check to see if httpd is running or not. [EMAIL PROTECTED] ~]# ps aux | grep httpd root 2375 1.3 3.8 26412 9932 ?Ss 08:02 0:00 /usr/sbin/httpd apache2405 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2406 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2407 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2408 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2409 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2410 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2411 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd apache2412 0.0 1.9 26548 4972 ?S08:02 0:00 /usr/sbin/httpd root 2608 0.0 0.2 3896 684 pts/0S+ 08:03 0:00 grep httpd my question is why so many of them running??? less /etc/httpd/logs/error_log: [Mon Mar 03 13:30:03 2008] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_ t:s0 [Mon Mar 03 13:30:03 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Mon Mar 03 13:30:04 2008] [notice] Digest: generating secret for digest authentication ... [Mon Mar 03 13:30:04 2008] [notice] Digest: done [Mon Mar 03 13:30:04 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Mon Mar 03 13:30:05 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations [Tue Mar 04 08:00:38 2008] [notice] caught SIGTERM, shutting down [Tue Mar 04 08:02:51 2008] [notice] SELinux policy enabled; httpd running as context system_u:system_r:ht tpd_t:s0 [Tue Mar 04 08:02:51 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Mar 04 08:02:52 2008] [notice] Digest: generating secret for digest authentication ... [Tue Mar 04 08:02:52 2008] [notice] Digest: done [Tue Mar 04 08:02:53 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Tue Mar 04 08:02:53 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations any clue why i can't see web server from my internal network? i can ping 10.0.0.160 no problem. t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] disable SELinux
hi all, with minimal installation on centos 5, selinux also included. how do i remove selinux or disable it at least? t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] disable SELinux
On Tue, 4 Mar 2008, Tom Brown wrote: with minimal installation on centos 5, selinux also included. how do i remove selinux or disable it at least? cat /etc/sysconfig/selinux you'll figure it out from there! super. thanks. t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] disable SELinux
On Tue, 4 Mar 2008, Tom Brown wrote: with minimal installation on centos 5, selinux also included. how do i remove selinux or disable it at least? cat /etc/sysconfig/selinux you'll figure it out from there! what command i can issue to enforce the change w/o reboot the box. thanks. t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] disable SELinux
On Tue, 4 Mar 2008, Alex White wrote: On Tue, 4 Mar 2008 09:29:34 -0800 (PST) Hiep Nguyen [EMAIL PROTECTED] took out a #2 pencil and scribbled: On Tue, 4 Mar 2008, Tom Brown wrote: with minimal installation on centos 5, selinux also included. how do i remove selinux or disable it at least? cat /etc/sysconfig/selinux you'll figure it out from there! what command i can issue to enforce the change w/o reboot the box. thanks. t. hiep man setenforce Are you sure you really want to turn off selinux? If you reboot, unless you change /etc/sysconfig/selinux, your machine will have selinux re-enabled. for testing, i need to disable selinux, but something still not working right. i'm trying to figure out why i can't access http://10.0.0.160 from the same network (10.0.0.x). on 10.0.0.160 box, i can access http://localhost, or http://10.0.0.160, but from any other computer, i can't. any advice how to troubleshoot this? thanks. t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] disable SELinux
On Tue, 4 Mar 2008, Dan Carl wrote: snip for testing, i need to disable selinux, but something still not working right. i'm trying to figure out why i can't access http://10.0.0.160 from the same network (10.0.0.x). on 10.0.0.160 box, i can access http://localhost, or http://10.0.0.160, but from any other computer, i can't. any advice how to troubleshoot this? thanks. The port could be being blocked by iptables. Try #service iptables stop you're exactly right, but i thought minimal installation doesn't include such. anyway, if i restart iptables service, what need to be done to iptables? thanks, t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] disable SELinux
thanks. i may well do that b/c i'm behind firewall anyway. also, i'm not ready to tackle iptables at this time. t. hiep Hiep Nguyen wrote: On Tue, 4 Mar 2008, Alex White wrote: On Tue, 4 Mar 2008, Hiep Nguyen wrote: On Tue, 4 Mar 2008, Tom Brown wrote: with minimal installation on centos 5, selinux also included. how do i remove selinux or disable it at least? cat /etc/sysconfig/selinux you'll figure it out from there! what command i can issue to enforce the change w/o reboot the box. man setenforce Are you sure you really want to turn off selinux? If you reboot, unless you change /etc/sysconfig/selinux, your machine will have selinux re-enabled. for testing, i need to disable selinux, but something still not working right. i'm trying to figure out why i can't access http://10.0.0.160 from the same network (10.0.0.x). on 10.0.0.160 box, i can access http://localhost, or http://10.0.0.160, but from any other computer, i can't. any advice how to troubleshoot this? thanks. Try disabling iptables and see if you can then access it: # service iptables stop Then you know it's iptables, and can add an iptables entry for apache: # service iptables start # iptables -I RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT # iptables -I RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT # iptables-save /etc/sysconfig/iptables Or do so graphically through /usr/bin/system-config-securitylevel Or disable iptables all together (if behind a firewall) with: # chkconfig iptables off -Ross __ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof. smime.p7s Description: S/MIME cryptographic signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] /var/www/html group owner
hi again, [EMAIL PROTECTED] ~]# ls -all /var/www/ total 64 drwxr-xr-x 8 root root 4096 Mar 3 11:44 . drwxr-xr-x 21 root root 4096 Mar 3 11:44 .. drwxr-xr-x 2 root root 4096 Jan 15 20:36 cgi-bin drwxr-xr-x 3 root root 4096 Mar 3 11:43 error drwxr-xr-x 2 root root 4096 Jan 15 20:36 html drwxr-xr-x 3 root root 4096 Mar 3 11:44 icons drwxr-xr-x 14 root root 4096 Mar 3 11:44 manual drwxr-xr-x 2 webalizer root 4096 Mar 3 11:44 usage currently, html is belonging to root group/owner and httpd is running under apache user/group. what should i change html to, so that httpd can run safely under apache user/group??? or should i change httpd to run under a different user/group??? if i keep httpd running on apache user/group, should i change html to apache group/owner??? thank you for all your help. t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] install LAMP
hi all, i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now. i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL. i found http://lamphowto.com/lampssl.html, but i have questions before i proceed. is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way. is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL? appreciate your help/suggestion t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] install LAMP
On Mon, 3 Mar 2008, Matt Shields wrote: On Mon, Mar 3, 2008 at 8:52 AM, Hiep Nguyen [EMAIL PROTECTED] wrote: hi all, i'm not an expert on linux/centos, but i play with it and have a general idea. it's time for me to setup a centos box for development. i rarely install anything from source, except a few times in college when i have to modify kernel for OS project. but i guess i can learn now. i just installed centos 5 with minimal installation. next step is to install LAMP w/ SSL. i found http://lamphowto.com/lampssl.html, but i have questions before i proceed. is it better to install from source or rpm? how easy it is to upgrade/update if install from source? it seems so much easy to upgrade/update from rpm, well b/c i'm always do this way. is there any other instruction (beside the one mentioned above) to install LAMP w/ SSL? appreciate your help/suggestion t. hiep It's better to stick to the RPMs to make it easier to upgrade. If you want an easy way to install LAMP you can run 2 commands yum -y groupinstall Web Server yum -y install mysql-server php-mysql This will get Apache, MySQL, and PHP all installed. is this include SSL??? t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] proliant ml370
On Wed, 27 Feb 2008, Joseph L. Casale wrote: hi all, i just inherit a server: Compaq ProLiant ML370 Generation 2 Server with Smart Array 5300 Controller with 6x18.2GB hard drives. i want to install centos 5 on it with hardware raid 1. any idea how? it also has a build-in and add-on ethernet cards. how do i know which one is which to assign ip? thanks. t. hiep First deduce what Raid Levels mean, possibly at http://en.wikipedia.org/wiki/Standard_RAID_levels. A mirror across 6 tiny discs like those won't leave you much room :) You might gain the performance/redundancy you need with an alternative level, I doubt you need 6 discs mirrored:) What are you doing with this server? That will help define what config/partitioning scheme you might want to use. Do you have a cdrom or DVDrom? That dictates what media type to download, unless you want to do a net install for example. Goto HP's site and download the manual for your server so you can figure out how to configure boot orders, array's etc. As far as the NIC's go, you could use a combination of lspci and ifconfig, just watch as it goes up and down when you move the cables for example. Good luck, jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos basically, my question is do i want to config raid before install os or vs? i only want to use hardware raid and my controller hd are scsi. thanks, t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] proliant ml370
hi all, i just inherit a server: Compaq ProLiant ML370 Generation 2 Server with Smart Array 5300 Controller with 6x18.2GB hard drives. i want to install centos 5 on it with hardware raid 1. any idea how? it also has a build-in and add-on ethernet cards. how do i know which one is which to assign ip? thanks. t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] connect to novell 6.5 server
Hi all, we have a centos box that run web server, but we also have novell 6.5 server that i want to read/write files to. is there anyway i can map novell's hard drive to centos box? thanks, t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] users groups
hi all, i just installed centos 5 with minimal options. i don't have gui yet, how do i get to see all users groups created on my box? thanks, t. hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] X windows
On Tue, 27 Nov 2007, Hiep Nguyen wrote: hi all, i just finished install (minimal) centos 5. how do i use yum to install X windows so that i can use gui. thanks, T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos sorry, found it. yum groupinstall X Window System will do it. T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] X windows
hi all, i just finished install (minimal) centos 5. how do i use yum to install X windows so that i can use gui. thanks, T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] install via http
hi there, i try to install centos 5 via http, but i don't know what to put in when it asks for Web site name CentOS directory. can someone give me this info? can i used mirror.centos.org /centos/5/os/i386/??? i only have the boot cd i don't want to download and burn all 6 cds. thanks ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] install via http
On Mon, 26 Nov 2007, Tim Verhoeven wrote: On Nov 26, 2007 3:45 PM, Hiep Nguyen [EMAIL PROTECTED] wrote: i used mirror.steadfast.net for web site and centos/5.0/os/i386/CentOS/ for directory, but i got this error: Unable to read package metadata. This may be due to a missing repodata directory. Please ensure that your install tree has been correctly generated. Cannot open/read repomd.xml file for repository: anaconda-base-200704101950.i386. any clue what to do. Try with /centos/5.0/os/i386 instead of /centos/5.0/os/i386/CentOS Regards, Tim -- Tim Verhoeven - [EMAIL PROTECTED] - 0479 / 88 11 83 Hoping the problem magically goes away by ignoring it is the microsoft approach to programming and should never be allowed. (Linus Torvalds) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos thanks that worked. T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] phpmyadmin on centos 4
On Thu, 15 Nov 2007, John R Pierce wrote: Hiep Nguyen wrote: hi there, i have a centos box with phpmyadmin installed, but i don't remember how i installed phpmyadmin 2.7.0-pl2. now i want to upgrade it with yum, but i don't find any phpmyadmin on my centos box. i tried: rpm -qa | grep phpmyadmi, but found nothing. find a file from that package, and `rpm -qf /path/filename` ... that will tell you what RPM it came from, if any. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos how do i find out the 'filename'? i don't know what r u refer to. it was installed in /var/www/html/phpmyadmin/ when i tried: rpm -qf /var/www/html/phpmyadmin/index.php and i got: file /var/www/html/phpmyadmin/index.php is not owned by any package. i'm clueless now. can someone help me to upgrade phpmyadmin to the latest version. right now, i'm using mysql 4.1.12 phpmyadmin 2.7.0-pl2 thanks, T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] phpmyadmin on centos 4
On Thu, 15 Nov 2007, Ross S. W. Walker wrote: Hiep Nguyen wrote: hi there, i have a centos box with phpmyadmin installed, but i don't remember how i installed phpmyadmin 2.7.0-pl2. now i want to upgrade it with yum, but i don't find any phpmyadmin on my centos box. i tried: rpm -qa | grep phpmyadmi, but found nothing. is there an easy way to upgrade phpmyadmin? try rpm -qa | grep -i myadm I believe it uses mixed case in it's name. -Ross __ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos tried that and nothing return. T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] phpmyadmin on centos 4
On Thu, 15 Nov 2007, John R Pierce wrote: Hiep Nguyen wrote: when i tried: rpm -qf /var/www/html/phpmyadmin/index.php and i got: file /var/www/html/phpmyadmin/index.php is not owned by any package. i'm clueless now. can someone help me to upgrade phpmyadmin to the latest version. right now, i'm using mysql 4.1.12 phpmyadmin 2.7.0-pl2 sounds like you installed it from tarball source or something similar rather than via RPM and the package manager. rm -rf /var/www/html/phpmyadmin check /etc/httpd/conf.d for any phpmyadmin specific apache configuration stuff, remove it if you find any, then install whatever version you want, either via rpm or yum or whateverr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos thanks, i'll give it a try later. T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] phpmyadmin on centos 4
On Thu, 15 Nov 2007, Tom Brown wrote: how do i find out the 'filename'? i don't know what r u refer to. it was installed in /var/www/html/phpmyadmin/ when i tried: rpm -qf /var/www/html/phpmyadmin/index.php and i got: file /var/www/html/phpmyadmin/index.php is not owned by any package. i'm clueless now. can someone help me to upgrade phpmyadmin to the latest version. right now, i'm using mysql 4.1.12 phpmyadmin 2.7.0-pl2 and it was installed via rpm right ??? rpm -qa | grep php what you get ?? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos i don't remember and that's the problem. rpm -qa | grep php and i got: php-mbstring-4.3.9-3.9 php-ldap-4.3.9-3.9 php-pear-4.3.9-3.9 php-mysql-4.3.9-3.9 php-4.3.9-3.9 any more pointer??? thanks T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] phpmyadmin on centos 4
hi there, i have a centos box with phpmyadmin installed, but i don't remember how i installed phpmyadmin 2.7.0-pl2. now i want to upgrade it with yum, but i don't find any phpmyadmin on my centos box. i tried: rpm -qa | grep phpmyadmi, but found nothing. is there an easy way to upgrade phpmyadmin? thanks, T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] atmail centos
On Fri, 2 Nov 2007, [EMAIL PROTECTED] wrote: On Fri, 2 Nov 2007 08:29:01 -0700 (PDT) Hiep Nguyen [EMAIL PROTECTED] took out a #2 pencil and scribbled: hi friends, i'm researching to see if i can run my own email server on centos. i'm looking at qmail centos, but the problem that i have is it doesn't have the web interface that can similar with outlook. our users don't like squirrelmail, or NOCC, or horde interfaces) however, i found atmail.com and it seems to have what i'm looking for b/c it's kindda integrate with outlook (i don't know how good it is) does any one here have any thoughts/suggestions about atmail on centos 5? or is there anything like atmail out there that i can use to run email server on centos 5. thank you for any helps. T. Hiep Are you not wanting your users to check their mail with their own client? It seems like you're wanting to provide a web interface, which isn't necessary really. You can simply allow your users to check their mail via outlook or thunderbird or whatever. Are you attempting to use calendaring or something? Otherwise, I run my own mail server for certain individuals with spamassassin and I do not use squirrelmail; although, I might there just hasn't been a need for me to set it up yet. Sincerely -- [EMAIL PROTECTED] Life is a prison, death is a release ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos i'm the one who maintain their email client, so i try to avoid they use any email client, just pure web interface will be nice, they also like to be notified when a new email arrived. there are other reasons that email client is not practical for us. T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] mount cd
hi there, i can mount my cdrom with this command: mount -t iso9660 /dev/cdrom cdrom/ how do i mount the cdrom everytime the computer is boot? thanks, T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] webmin
hi there, i just insalled centos 4.5 minimal, but want to use yum to install webmin? anybody know how?? i try: yum install webmin but not found. thanks, T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] recovery data
hi all, how do i mount usb laptop hard drive to a centos 4 box? this hard drive has 2 partitions: NT (winxp os) and fat32 for data. i'm unable to boot from it and i think NT partition is corrupted. i did try to connect to windows box, but i still can't get to fat32. any idea how to do this on centos box? i gave up on windows box. thanks, T. Hiep ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How To Free memory
b4 doing that, why not investigate to see which program eat up the memory and do something about it. On Wed, 20 Jun 2007, Fung wrote: Hi All, My CentOS 5.0 is running on x86 machine with 4GB RAM. It runs as a webserver and there is a small java applet application. When the system is fresh reboot, there is below 1GB of used memory and as times go , the used memory increased to over 3.5GB. Is there a way to free memory out like those program which works under Windows? Thank you. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos