Re: [CentOS] Dual boot with 2 drives
On 08/09/2014 05:23 AM, Alan McRae wrote: > No problems Joe. I have done this multiple times. > > I assume you have Fedora 20 on sda (the first disk) with > the bootloader (grub2) on sda. Your BIOS will be set to boot sda. > > You install CentOS 7 on sdb (obvious). > > Your options are with the bootloader (grub2). If you install > the bootloader on sdb the two systems will remain separate. > You will have to change the BIOS to boot either sda (F20) or sdb (C7). > > The way I prefer would be to install the new bootloader on sda > (overwriting the current configuration). > Your BIOS will still boot sda which will take you into > the grub2 menus which will show both Fedora 20 and CentOS 7. > > You need to be aware that in the above configuration sda will > boot into /boot on sdb (C7) which will have the dual boot menus. > Don't wreck this directory or you won't be able to boot F20 (easily). > > The F20 and C7 installers are very good. They scan the disks for > linux and Windows installations and add them into the boot menu for you. > > I have a laptop which boots C7, C6, F20, XP and 3 versions of Android > using grub2. > > Alan > Alan, Thank you for your reply. I was concerned that if, during the C7 install, I put the bootloader on sda that it would wipe out what was already there and prevent me from booting F20. Apparently this is not the case. However, I decided to put the bootloader on sdb so I could easily wipe out the C7 install and use the drive for something else. I did the install from the C7 DVD disk. Maybe I missed something but once I indicated I only wanted to use the sdb disk (checkmark on icon), I did not have the option as to where to put the bootloader. After the install, when I boot the computer I go directly to F20. If I press the ESC key when booting I get a BIOS bootloader menu. Miraculously, sdb is on the list. Apparently the BIOS is smart enough to recognize that sdb is bootable and, therefore, puts it on the list. Thanks, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Dual boot with 2 drives
Hi, I have a laptop with 2 hard drives. The first has Fedora 20 (no windows or anything else) and the second is unused. I would like to install CentOS7 on the unused drive so I can dual boot with the choice of the 2 OS's on the Grub menu. I am comfortable in partitioning drives and installing Linux distributions. I am afraid I may mess up the MBR and/or set up Grub incorrectly so I lose everything. Please point me to some documentation to help me. Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Mother board recommendation
On 05/16/2014 10:28 AM, Dave Stevens wrote: > Quoting Joseph Hesse : > >> Hello, >> >> I want to build a lightweight server and install centos. Does anyone >> have a recommendation for a suitable motherboard? >> >> Thank you, >> Joe > > there are lots of motherboards that might do; in my experience make > sure it has lots of top end for memory, 32 gigs is not hard to find. > you also need to consider how many cpus cores drives other > peripherals. really it's a large topic. check ebay too, I found a nice > supermicro two cpu opteron board with 8 cores and 16G ram for $250. > > D > >> ___ >> CentOS mailing list >> CentOS@centos.org >> http://lists.centos.org/mailman/listinfo/centos >> > > > Thank you for your reply. I am currently using, as a server, a workstation computer. It was built with a gigabyte motherboard and has 8G ram and a 1000G Sata 3 drive. It is accessed with ssh and runs an ftp server, a web server and a samba server so my wife can back up her pc to it. It is running behind a router. This computer more than meets my needs as a lightweight server except the hardware is dying and I want to replace it. The question in my mind is: should I just buy another workstation class motherboard and duplicate what I already have or buy a motherboard which is intended to be used as a server? Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Mother board recommendation
Hello, I want to build a lightweight server and install centos. Does anyone have a recommendation for a suitable motherboard? Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Set static IP
Hello, I want my CentOS 6.5 computer to have a static IP. Currently I get the IP I want because I have my router assign it on the basis of mac address. I placed the following file as: /etc/sysconfig/networking-scripts/eth0 DEVICE="eth0" BOOTPROTO=static HWADDR=00:1F:D0:9E:AE:67 ONBOOT=yes TYPE=Ethernet USERCTL=no IPV6INIT=no PEERDNS=yes NETMASK=255.255.255.0 IPADDR=192.168.0.99 GATEWAY=192.168.0.1 NM_CONTROLLED=no I also disabled Network Manager with chkconfig. It didn't work. When I rebooted I had no IP address for eth0. Should I leave all the other scripts in /etc/sysconfig/networking-scripts unchanged? Suggestions would be appreciated. Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Samba problem
Hello, My only hard drive failed on a private server so I had to replace it and reinstall Centos 6.5 and Samba. My smb.conf file is OK according to "testparm". I configured smb and nmb, with chkconfig, to start when the system boots. After the system boots if I do "service nmb status" I get the response "nmbd dead but pid file exists". I can delete the pid file manually and start nmb with "service nmb start". The problem is that when the system shuts down and restarts I still find that "nmbd dead but pid file exists". Any suggestions on how to fix the problem would be much appreciated. Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Change server name in postfix configuration
Hi, A consultant, long gone, set up postfix, dovecot, amavisd and squirrelmail for my wife. It works fine but my wife wants to change the server name from old.com to new.com so the name is more appropriate for her business. My approach would be to use sed to change all occurences of old.com to new.com. Specifically, I used grep to identify the following files where I should make the changes. /etc/postfix/main.cf /etc/dovecot/dovecot.conf /etc/squirrelmail/config.php /etc/amavisd.conf /etc/sysconfig/network (change host name) In addition, there would be an MX record for mail.new.com pointing to the IP of the server. My question is, will this work or will I corrupt my email server? If I mess it up I can always restore it to the original. Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Dual Band Wireless
Hi, Because of heavy interference in the 2.5GHz range in my neighbourhood, I want to switch to wireless dual band (5GHZ) and wireless ac. Do you have any suggestions for USB wireless adapters for CentOS 6.5 that work with dual band and ac? Also, if you have any suggestions on wireless routers for these bands I would like to hear about them. Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Monitor Wireless Networks OT
On 02/24/2014 07:58 PM, Billy Crook wrote: > On Thu, Feb 20, 2014 at 3:50 PM, Frank Cox > wrote: >> On Thu, 20 Feb 2014 15:42:35 -0600 >> Joseph Hesse wrote: >> >>> Apparently my hardware is not sufficient. When I run "iwlist scan" I get: >>> >>> lo p5p1; Interface doesn't support scanning >> I'm pretty sure you have to run it as root user. > You also have to run it on your wireless nic. p5p1 sounds like a > gig-ethernet wired nic. wlp should be your wireless > > You might also have to ifup wlan0 or ifconfig wlan0 up to get it to > scan. Sometimes if its down, it won't scan. > > I thought I might share my scripts anyway. First the awk, then the cronjob. > > # cat bin/iwlistparse.awk > $1 == "BSS" { > MAC = $2 > wifi[MAC]["enc"] = "Open" > wifi[MAC]["mac"] = $MAC > } > $1 == "SSID:" { > wifi[MAC]["SSID"] = $2 > } > $1 == "freq:" { > wifi[MAC]["freq"] = $NF > } > $1 == "signal:" { > wifi[MAC]["sig"] = $2 " " $3 > } > $1 == "WPA:" { > wifi[MAC]["enc"] = "WPA" > } > $1 == "WEP:" { > wifi[MAC]["enc"] = "WEP" > } > END { > #printf "%s\t\t%s\t%s\t\t%s\n","SSID","Frequency","Signal","Encryption" > > for (w in wifi) { > printf > "%s\t\t%s\t\t%s\t%s\n",wifi[w]["SSID"],wifi[w]["mac"],wifi[w]["freq"],wifi[w]["sig"],wifi[w]["enc"] > } > } > > # cat bin/wlanpatrol > #!/bin/bash > tstamp="$(date +\%Y\%m\%d\%H\%M\%S)" > > #Wirelss is flakey. Retry a 'few' times to get the right number of > authorized APs, or any APs at all. sometimes scans just fail > iter=0 > while [[ "${iter}" -le 60 ]] > do > iter=$(( ${iter} + 1 )) > /sbin/iwlist wlp12s0 scanning 2>&1 | grep -v 'wlp12s0\ \ \ > Interface\ doesn'\''t\ support\ scanning\ :\ Device\ or\ resource\ > busy' > /root/iwlistlogs/${tstamp} > > #Replace 00.11.22.33.44.55's with the mac addresses of your authorised APs > OurAPCount="$( awk -f /root/bin/iwlist.awk < > /root/iwlistlogs/${tstamp} | grep -i -e '00.11.22.33.44.55' -e > '00.11.22.33.44.55' -e '00.11.22.33.44.55' -e '00.11.22.33.44.55' -e > '00.11.22.33.44.55' -e '00.11.22.33.44.55' | wc -l)" > if [[ ! -s "/root/iwlistlogs/${tstamp}" ]] > then > continue > fi > > #In our environment, I expect 6 legitimate APs be visible at all times. > if [[ ${OurAPCount} -eq 6 ]] > then > break > fi > #echo OurAPCountError: ${OurAPCount} found. > > sleep 0.1 > done > > APCount="$( awk -f /root/bin/iwlist.awk /root/iwlistlogs/${tstamp} | wc -l)" > > #Here we check for bits and pieces of our actual company name in the > names of all detected APs. Then we ignore the authorized mac > addresses, to come upwith a list of APs pretending to be us. > RogueAPs="$( awk -f /root/bin/iwlist.awk < /root/iwlistlogs/${tstamp} | \ > grep -i -e my -e company -e mc -e myc -e yco -e com -e omp -e mpa -e > pan -e any | \ > grep -i -v -e '00.11.22.33.44.55' -e '00.11.22.33.44.55' -e > '00.11.22.33.44.55' -e '00.11.22.33.44.55' -e '00.11.22.33.44.55' -e > '00.11.22.33.44.55' )" > > if [[ $OurAPCount != 6 ]] > then > awk -f /root/bin/iwlist.awk < /root/iwlistlogs/${tstamp} | > mail -s "Abnormal number of Our authorized APs: ${OurAPCount}" > bcr...@mycompany.com > fi > > > if [[ ! -z "${RogueAPs}" ]] > then > mail -s "ROGUE APS IN USE" bcr...@ourapcount.com <<< "${RogueAPs}" > fi > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos Thank you for the script. FYI: p5p1 is the name of the wireless interface on my Fedora 20 laptop. It was assigned automatically. It appears as wlan0 on my CentOS 6.5 laptop. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Problem with cron
Thank you. Sorry, I have egg on my face. On 02/23/2014 08:22 AM, Stephen Harris wrote: > On Sun, Feb 23, 2014 at 08:20:06AM -0600, Joseph Hesse wrote: >> I have a root cron job that powers down my server every day at 1am and >> 6pm. The output of '# crontab -l' is shown below. >> >> * 1,18 * * * poweroff > Nope. That says "every minute of hours 1 and 18". So 0100, 0101, 0102, 0103 > etc etc > > You want it to read "0 1,18 * * * poweroff" > >> Apparently a cron job that executed correctly at 6pm was executing >> minutes past 6pm when the server was restarted. This is totally >> unexpected behavior. > Totally expected. > >> Is there a fix for this behavior? > Yes, user error; fix the cron job. > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Problem with cron
I have a root cron job that powers down my server every day at 1am and 6pm. The output of '# crontab -l' is shown below. * 1,18 * * * poweroff Last night, after the server powered down at 6pm, I decided I wanted to use the server so I started it with the power button. The server, after a minute or so, powered itself down. This behaviour happened repeatedly until I waited past 7pm. Then the server did not poweroff. Apparently a cron job that executed correctly at 6pm was executing minutes past 6pm when the server was restarted. This is totally unexpected behavior. Here is the output of the cron log file. The name of the server has been redacted. # grep -i 'Feb 22' cron-20140223 | grep -i poweroff Feb 22 18:00:01 xx CROND[2875]: (root) CMD (poweroff) Feb 22 18:12:01 xx CROND[1894]: (root) CMD (poweroff) Feb 22 18:16:01 xx CROND[1893]: (root) CMD (poweroff) Feb 22 18:18:01 xx CROND[1896]: (root) CMD (poweroff) Feb 22 18:22:01 xx CROND[1915]: (root) CMD (poweroff) Feb 22 18:25:01 xx CROND[1919]: (root) CMD (poweroff) Feb 22 18:34:01 xx CROND[1890]: (root) CMD (poweroff) Is there a fix for this behavior? Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Problem with wireless router
Hello, I am using wireless N on a DLink-655 wireless router. It is the "A" hardware version with the latest firmware. I am using a channel that no one in my vicinity is using, according to iwlist. I checked the Statistics from the router web interface and they are shown below for a period of less than an hour. It looks like the errors are excessive, especially the "RX Packets Dropped" Is this par for the course and TCP takes care of it or am I having hardware problems with my router? Thank you, Joe Wireless Statistics Sent :138143 TX Packets Dropped :41 Received :99485 RX Packets Dropped :50911 Errors :27 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Monitor Wireless Networks OT
Thank you to you for the offer. As a learning experience I will try to do it myself. Also, thank you to the user who pointed out that the iwlist command has to be run as root. On 02/20/2014 11:52 AM, Billy Crook wrote: > there's the iwlist command. I put together an awk script to columnate > the data I cared about, and a cronjob that runs it analyzes it for > things i care about (like neighbors using my same or similar network > name, same frequencies, etc, and put it in a cronjob to log and email > me anomalies. > > Works pretty well. I can share my script and awk if helpful > > On Thu, Feb 20, 2014 at 9:43 AM, Tom Bishop wrote: >> On Thu, Feb 20, 2014 at 9:39 AM, Joseph Hesse wrote: >> >>> Hi, >>> I am having interference with my neighbouring wireless networks. >>> Is there a linux tool that enables me to monitor the ESSID, channel, >>> power output and other information for neighbouring wireless networks? >>> I am especially interested in the channel so I can choose a different one. >>> Thank you, >>> Joe >>> ___ >>> CentOS mailing list >>> CentOS@centos.org >>> http://lists.centos.org/mailman/listinfo/centos >>> >> There is a really good Android app, WIFI analyzer >> https://play.google.com/store/apps/details?id=com.farproc.wifi.analyzer if >> you have access to a phone or better yet a tablet. Very nice and allows >> you to look at all kinds of things, I also know of another one called Wifi >> Radar for linux but not nears as good. >> ___ >> 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] Monitor Wireless Networks OT
Apparently my hardware is not sufficient. When I run "iwlist scan" I get: lo p5p1; Interface doesn't support scanning On 02/20/2014 11:52 AM, Billy Crook wrote: > there's the iwlist command. I put together an awk script to columnate > the data I cared about, and a cronjob that runs it analyzes it for > things i care about (like neighbors using my same or similar network > name, same frequencies, etc, and put it in a cronjob to log and email > me anomalies. > > Works pretty well. I can share my script and awk if helpful > > On Thu, Feb 20, 2014 at 9:43 AM, Tom Bishop wrote: >> On Thu, Feb 20, 2014 at 9:39 AM, Joseph Hesse wrote: >> >>> Hi, >>> I am having interference with my neighbouring wireless networks. >>> Is there a linux tool that enables me to monitor the ESSID, channel, >>> power output and other information for neighbouring wireless networks? >>> I am especially interested in the channel so I can choose a different one. >>> Thank you, >>> Joe >>> ___ >>> CentOS mailing list >>> CentOS@centos.org >>> http://lists.centos.org/mailman/listinfo/centos >>> >> There is a really good Android app, WIFI analyzer >> https://play.google.com/store/apps/details?id=com.farproc.wifi.analyzer if >> you have access to a phone or better yet a tablet. Very nice and allows >> you to look at all kinds of things, I also know of another one called Wifi >> Radar for linux but not nears as good. >> ___ >> 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] Monitor Wireless Networks
Hi, I am having interference with my neighbouring wireless networks. Is there a linux tool that enables me to monitor the ESSID, channel, power output and other information for neighbouring wireless networks? I am especially interested in the channel so I can choose a different one. Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] RSync Problem
I use an external USB drive and rsync to back up everything in /home. The USB drive has an entry in fstab and I mount it with "# mount /mnt" The rsync command I use is: rsync -av --delete --include='.thunderbird' --include='.filezilla' --include='.putty' \ --exclude='.*' --exclude='Desktop' --exclude='VirtualBox*' /home/* /mnt/home/ After I deleted one of the users on my system, including their home directory, I ran the rsync command. I found that the deleted user's home directory wasn't deleted from /mnt/home. I thought that the --delete option deleted everything on the destination that was not on the source. Please help. Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Virtual Hosts question
I am running Wordpress on a CentOS 6.5 server which is behind a router. The private IP is 192.168.0.99, the public URL is X.com (name changed). I have two virtual hosts in my httpd.conf file. The second one, listed below, is for Wordpress and it is accessed with http://X.com/d4i or http://www.X.com/d4i. They work fine. Actually, not show, I have more Wordpress virtual hosts, and they are accessed with http://X.com/s1, http://X.com/s2, etc. and they work. I want the first virtual host to be a default and accessed whenever a user types http://X.com (no sub directory). There is a valid /var/www/html/index.html file. Unfortunately it doesn't work. The error is "Directory index forbidden by Options directive: /var/www/wordpress/" and googling didn't help. I have my httpd.conf and error.log below. Thank you, Joe == httpd.conf == ServerName 192.168.0.99 NameVirtualHost *:80 ServerName IDoNotExist.com DocumentRoot /var/www/html DirectoryIndex Index.html index.html ServerName X.com ServerAlias www.X.com DocumentRoot /var/www/wordpress DirectoryIndex Index.html index.html index.php Index.php CustomLog logs/access_log_custom common == httpd.conf == Tail of error.log == [Thu Feb 06 10:25:48 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Feb 06 10:25:48 2014] [notice] Digest: generating secret for digest authentication ... [Thu Feb 06 10:25:48 2014] [notice] Digest: done [Thu Feb 06 10:25:49 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations [Thu Feb 06 10:26:01 2014] [error] [client 24.118.254.66] Directory index forbidden by Options directive: /var/www/wordpress/ [Thu Feb 06 10:26:01 2014] [error] [client 24.118.254.66] File does not exist: /var/www/wordpress/favicon.ico == error.log == ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Permissions for LAMP
On 01/25/2014 07:32 AM, Steven Tardy wrote: > On Sat, Jan 25, 2014 at 7:33 AM, Joseph Hesse wrote: > >> I am running a Lamp server on a CentOS 6.5 box. It works fine, I am >> concerned that I may have the wrong file/dir permissions. >> >> The directories /var and /var/www are root:root and 755. >> >> For /var/www/html and all directories underneath I have apache:apache >> and 770. >> >> For all files under /var/www/html I have apache:apache and 660. >> >> Are these these permissions OK? >> >> Thank you, >> Joe >> ___ >> CentOS mailing list >> CentOS@centos.org >> http://lists.centos.org/mailman/listinfo/centos >> > the problem with your /var/www/html permissions is the user/group "apache" > can write to directories and files. which can be used by anyone on the > internet(bad guys) to use potentially exploitable dynamic > pages(.php/.cgi/etc) to add/modify files on your server. this is a bad > thing. SELinux may offer some protections. > i would: >chmod -R g-w /var/www/html >chown -R somewebuser /var/www/html > (replace somewebuser with the unix user account to modify the website.) > >http://wiki.apache.org/httpd/FileSystemPermissions > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos I now understand, by rtfd, how to set it up so apache owns nothing and does not have write permission. For my understanding, please tell me what a bad guy would have to do to exploit apache having read/write permission. Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Permissions for LAMP
I am running a Lamp server on a CentOS 6.5 box. It works fine, I am concerned that I may have the wrong file/dir permissions. The directories /var and /var/www are root:root and 755. For /var/www/html and all directories underneath I have apache:apache and 770. For all files under /var/www/html I have apache:apache and 660. Are these these permissions OK? Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Simple-Scan
Thank you everybody for your help. I have "simple-scan" installed and working. Happy New Year! Joe On 12/19/2013 07:48 AM, Scott Robbins wrote: > On Thu, Dec 19, 2013 at 07:22:25AM -0600, Joseph Hesse wrote: >> Hi, >> I just upgraded from 6.4 to 6.5. In 6.4 I had a scanner program >> "simple-scan". I can't seem to get it for 6.5. I tried the elrepo and >> forge repositories but they are not available there. I tried to rebuild >> it from source but that didn't work. Any suggestions would be >> appreciated. FYI: My Fujitsu scanner is not TWAIN compliant but it >> works with "simple-scan". > It looks like Nux Desktop and LinuxTECH repos have it. Untested by me. > In the case of the Nux Desktop x86_64 one (LinuxTECH only has i686) > > http://pkgs.org/centos-6/nux-dextop-x86_64/simple-scan-2.32.0.2-1.el6.nux.x86_64.rpm.html > > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Simple-Scan
Hi, I just upgraded from 6.4 to 6.5. In 6.4 I had a scanner program "simple-scan". I can't seem to get it for 6.5. I tried the elrepo and forge repositories but they are not available there. I tried to rebuild it from source but that didn't work. Any suggestions would be appreciated. FYI: My Fujitsu scanner is not TWAIN compliant but it works with "simple-scan". Thank you, Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 6.4, LAMP, MariaDB
On 10/27/2013 01:34 PM, Keith Keller wrote: > On 2013-10-26, Joseph Hesse wrote: >> Thank you for your reply. What I want to do is install WordPress on a >> CentOS 6.4 server using MariDB. According to the WordPress >> documentation you need a LAMP server. I have installed MariaDB and >> php. What else do I have to install to get a functioning LAMP server? > LAMP: > > Linux > Apache > MySQL (or MariaDB) > PHP > > CentOS provides Linux; you've said that you installed MariaDB and PHP, > so now you need Apache. > > It's not entirely clear where your problem is. Are you having a > specific issue, or are you just asking a general question? If you have > a specific problem you should just ask it rather than weaving around it. > > --keith > Keith, Thank you for your comment. In any future post I will try to ask a specific question. Cheers, Joe Hesse ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 6.4, LAMP, MariaDB
On 10/26/2013 05:10 PM, Reindl Harald wrote: > > Am 26.10.2013 23:37, schrieb Joseph Hesse: >> I know that php-mysql has to be installed to complete the LAMP stack >> installation. From lots of googling I understand that there is a >> php-mysql and a php-mysqlnd. If I do: >> # yum list | grep -i php-mysql >> I only get php-mysql, not php-mysqlnd, even though the MariaDB >> repository is active. > CentOS != Fedora > >> Will php-mysql work or should I try to find mysqlnd? > maybe you should read what myqsqlnd is at all > http://www.php.net/manual/en/intro.mysqlnd.php > > it is a different *low-level* abstraction compared > to libmysql and so the question is nonsense > > from the view of php scripts there is no difference > > hence you can even compile php with libmysqlnd without > provide any loadable extension > >> FYI: I installed >> LAMP with MariaDB on a Fedora 19 box and, I don't remember how, >> php-mysqlnd was installed > CentOS/RHEL != Fedora > > Thank you for your reply. What I want to do is install WordPress on a CentOS 6.4 server using MariDB. According to the WordPress documentation you need a LAMP server. I have installed MariaDB and php. What else do I have to install to get a functioning LAMP server? Thank you in advance. Joe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] CentOS 6.4, LAMP, MariaDB
Hi, I am trying to install a LAMP stack using MariaDB on CentOS 6.4, 64 bit. I have installed MariaDB by using the MariaDB repository configuraton tool. I installed php by itself. Both MariaDB and php individually test fine. I know that php-mysql has to be installed to complete the LAMP stack installation. From lots of googling I understand that there is a php-mysql and a php-mysqlnd. If I do: # yum list | grep -i php-mysql I only get php-mysql, not php-mysqlnd, even though the MariaDB repository is active. Will php-mysql work or should I try to find mysqlnd? FYI: I installed LAMP with MariaDB on a Fedora 19 box and, I don't remember how, php-mysqlnd was installed. Thank you, Joe Hesse ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Should I upgrade Samba 3.6 to Samba 4.1
Hi, I just installed Samba on my Centos 6.4 computer. Smbstatus says my version is 3.6.9-151.el6-4.1. My smb.conf file only has a [global] and [homes] section. My configuration works, as expected, from a Win7 Virtual Box computer and a Win8 Virtual Box computer. I can see the share from the Windows file explorer and can map the share to a network drive. The Samba server is not virtual. The problem is my wife's Win7 laptop which is running some sort of home edition of Win7. I did everything I could in control panel to enable file sharing but I still can't see the Samba share. I can ping the computer running Samba? I tried to launch "gpedit.msc" but this program was not there. Do you think it would work if I upgraded Samba to the latest version 4.1? Should I consider upgrading to Win7 professional? Thank you, Joe Hesse ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba problem
On 10/05/2013 03:49 AM, Marios Zindilis wrote: > This intrigued me enough, to fire up two VMs in VirtualBox, one Win7, one > CentOS, bridged network, and copied your Samba configuration, used it as > you pasted it in the original message. > > There are some questionable options in your smb.conf. For example, there is > an "interfaces" option, which is meant to limit the network interfaces on > which Samba listens, but then there is "bind interfaces only = no" which > negates the former. Also there is "browsable = yes" in the [homes] share > definition, which I think makes one user's home directory visible to other > users, which is not usually what you want. That said, your configuration > should still work fine. > > In my case, to get it to work, I had to do "smbpasswd -a admin" and give > admin a samba password, which made it possible for user admin to browse his > own share _on_the_localhost_ (on CentOS machine). > > To be able to browse if from Windows, either: > > 1. You need to also be logged in as "admin" in Windows 7 (worked for me > when I logged in as "admin" on Win7) or, > > 2. You need to create a user mapping, but adding a line in the [Global] > section of /etc/samba/smb.conf reading "username map = > /etc/samba/username.map" and the edit "/etc/samba/usename.map" and add one > line in it with "SambaUsername = WindowsUsername". For example. the line > "admin = marios" inside /etc/samba/username.map worked for me while logged > in Win7 as "marios" (not as admin any more). > > I hope the above are useful. > > > On Sat, Oct 5, 2013 at 7:54 AM, Chris Weisiger wrote: > >> when I set it to share I don’t need a passwordits configure like an >> anonymous file server. but I can tune the settings in actual shared section >> of the conf file >> >> -Original Message- >> From: John R Pierce >> Sent: Friday, October 04, 2013 11:43 PM >> To: centos@centos.org >> Subject: Re: [CentOS] Samba problem >> >> On 10/4/2013 9:27 PM, Chris Weisiger wrote: >>> You can set "security = share" >>> >>> I had mine set to see the user share but I changed my setup >> are share passwords even supported anymore? that was the default mode >> for windows 3.x and 95-98 sharing, each share could have two passwords, >> one for read-only and one for write, and there was no concept of a user. >> >> what Ive always found works adequately is to create a smbpassword for >> each windows user, with the same password as they log onto their >> desktop. then windows will just autoconnect. if you have unix clients, >> use nfs, not smb!! >> >> what works *best* is to have active directory or another ldap+kerberos >> implementation, and have all your windows systems joined to the domain >> and users logging onto domain accounts. THEN you share to the domain >> accounts and its all good. >> >> windows 7 and newer default to requiring more strict encryption and >> authentication, which older systems may not provide by default. >> >> >> -- >> john r pierce 37N 122W >> somewhere on the middle of the left coast >> >> ___ >> 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 >> > > I thank you and everyone who replied to my Samba problem. What worked for me is to have a Windows user with the same name as the user on the CentOS computer and set a Samba password to be the same on both machines. What confused me is that many times I log on to a service on another computer and only have to know the name and password of the computer I am logging in to. My real home network consists of my wife's Windows computer and multiple Linux desktops. I backup my computers using rsync. For the windows computer I looked at Cygwin which has the rsync program but decided instead to map a drive letter on her computer to a Samba share. She then could use the Windows backup program and backup to the Samba share. Afaik, the Windows backup program mirrors the selected files on the backup device. She has no need of restoring files prior to a certain date. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba problem
On 10/04/2013 02:39 PM, John R Pierce wrote: > On 10/4/2013 12:11 PM, Joseph Hesse wrote: >> security = user > > you'll need to run > > smbpasswd -a admin > > on the samba server, and give the 'admin' SMB user a password. Samba > can't use the unix /etc/password|shadow combination as the hashes used > by SMB aren't compatible. > > I used "smbpasswd "to assign a Samba password to user "admin". My Win7 virtual machine still couldn't see the share. It is my impression that the smb.conf file in the book I am using allows passwordless access to the shares. Also, if it helps, here is some more output. [root@CentOS ~]# smbclient -L localhost -U Enter root's password: Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9-151.el6_4.1] Sharename Type Comment - --- homes Disk Home Directories IPC$IPC IPC Service (CentOS) Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9-151.el6_4.1] Server Comment ---- CENTOS CentOS WIN7VM WorkgroupMaster ---- WORKGROUPWIN7VM ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba problem
On 10/04/2013 02:15 PM, Earl Ramirez wrote: > On Fri, 2013-10-04 at 14:11 -0500, Joseph Hesse wrote: >> Hello, >> >> I am trying to learn how to use Samba. I first just want to get it to >> work, then I'll make it better. >> I am not concerned about security since everything is on a private network. >> I am following the material in "CentOS 6 Linux Server Cookbook" by >> Jonathan Hobson. >> I am using two virtual computers with Virtual Box running on Fedora 19. >> Both virtual computers have bridged networking. >> One virtual computer is Win7, the other is CentOS 6.4. >> They are both up to date. There is only one user, "admin", on the CentOS >> virtual computer. >> >> The Win7 computer can successfully ping the CentOS computer. >> >> My Win7 computer can not see the share on the Samba server. >> >> The command "# testparm" shows no errors. >> >> The command below gives the following error: >> >> [admin@CentOS ~]$ smbclient //CentOS/admin >> Enter admin's password: >> Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9-151.el6_4.1] >> tree connect failed: NT_STATUS_ACCESS_DENIED >> >> My smb.conf file, below, is taken from the book I am using. >> >> Any suggestions or help would be much appreciated. >> >> Thank you, >> Joe Hesse >> >> [global] >> unix charset = UTF-8 >> dos charset = CP932 >> workgroup = WORKGROUP >> server string = CentOS >> netbios name = CentOS >> dns proxy = no >> wins support = no >> interfaces = 127.0.0.0/8 192.168.0.0/24 eth0 >> bind interfaces only = no >> log file = /var/log/samba/log.%m >> max log size = 1000 >> syslog only = no >> syslog = 0 >> panic action = /usr/share/samba/panic-action %d >> security = user >> encrypt passwords = true >> passdb backend = tdbsam >> obey pam restrictions = yes >> unix password sync = yes >> passwd program = /usr/bin/passwd %u >> passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\ >> spassword:* %n\n *password\supdated\ssuccessfully* . >> pam password change = yes >> map to guest = bad user >> usershare allow guests = no >> domain master = no >> local master = no >> preferred master = no >> os level = 8 >> [homes] >> comment = Home Directories >> browseable = yes >> writable = yes >> valid users = %S >> create mask =0755 >> directory mask =0755 >> ___ >> CentOS mailing list >> CentOS@centos.org >> http://lists.centos.org/mailman/listinfo/centos > Hello Joseph, > > Is the samba service runing? > > $ service smb start > $ service nmb start > > You will also need to configure the firewall for the following ports, > 137, 138, 139 and 445. > > > > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos Both services are running. I checked with "service smb status" and "service nmb status" Also checked with chkconfig --list The ports are open. I checked with "system-config-firewall" and the ports for Samba and Samba Client are open. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Samba problem
Hello, I am trying to learn how to use Samba. I first just want to get it to work, then I'll make it better. I am not concerned about security since everything is on a private network. I am following the material in "CentOS 6 Linux Server Cookbook" by Jonathan Hobson. I am using two virtual computers with Virtual Box running on Fedora 19. Both virtual computers have bridged networking. One virtual computer is Win7, the other is CentOS 6.4. They are both up to date. There is only one user, "admin", on the CentOS virtual computer. The Win7 computer can successfully ping the CentOS computer. My Win7 computer can not see the share on the Samba server. The command "# testparm" shows no errors. The command below gives the following error: [admin@CentOS ~]$ smbclient //CentOS/admin Enter admin's password: Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9-151.el6_4.1] tree connect failed: NT_STATUS_ACCESS_DENIED My smb.conf file, below, is taken from the book I am using. Any suggestions or help would be much appreciated. Thank you, Joe Hesse [global] unix charset = UTF-8 dos charset = CP932 workgroup = WORKGROUP server string = CentOS netbios name = CentOS dns proxy = no wins support = no interfaces = 127.0.0.0/8 192.168.0.0/24 eth0 bind interfaces only = no log file = /var/log/samba/log.%m max log size = 1000 syslog only = no syslog = 0 panic action = /usr/share/samba/panic-action %d security = user encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\ spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes map to guest = bad user usershare allow guests = no domain master = no local master = no preferred master = no os level = 8 [homes] comment = Home Directories browseable = yes writable = yes valid users = %S create mask =0755 directory mask =0755 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Problem with "yum update"
On 08/13/2013 10:38 AM, John Doe wrote: > From: Joseph Hesse > >> I am trying to update my system with yum and I keep getting this >> error message. >> ---> Package perl-Compress-Zlib.i686 0:2.020-131.el6_4 will be obsoleted >> ---> Package perl-IO-Compress.noarch 0:2.052-1.el6.rfx will be obsoleting > Repoforge extra wants to replace a base library with his version... > Other base packages need the old library. > > JD > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos What steps should I take to fix this so I can do a successful "yum update"? Thanks again, Joe Hesse ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Problem with "yum update"
Hi, I am trying to update my system with yum and I keep getting this error message. Thank you, Joe Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: centos.mirror.lstn.net * epel: fedora-epel.mirror.lstn.net * extras: centos.mirror.lstn.net * rpmforge: mirror.hmc.edu * rpmforge-extras: mirror.hmc.edu * rpmforge-testing: mirror.hmc.edu * updates: centos.mirror.lstn.net Setting up Update Process Resolving Dependencies --> Running transaction check ---> Package perl-Compress-Zlib.i686 0:2.020-131.el6_4 will be obsoleted ---> Package perl-IO-Compress.noarch 0:2.052-1.el6.rfx will be obsoleting --> Processing Dependency: perl(Compress::Raw::Bzip2) = 2.052 for package: perl-IO-Compress-2.052-1.el6.rfx.noarch --> Processing Dependency: perl(Compress::Raw::Zlib) = 2.052 for package: perl-IO-Compress-2.052-1.el6.rfx.noarch ---> Package perl-IO-Compress-Base.i686 0:2.020-131.el6_4 will be obsoleted ---> Package perl-IO-Compress-Zlib.i686 0:2.020-131.el6_4 will be obsoleted --> Running transaction check ---> Package perl-Compress-Raw-Bzip2.i686 0:2.052-1.el6.rf will be installed ---> Package perl-IO-Compress.noarch 0:2.052-1.el6.rfx will be obsoleting --> Processing Dependency: perl(Compress::Raw::Zlib) = 2.052 for package: perl-IO-Compress-2.052-1.el6.rfx.noarch --> Finished Dependency Resolution You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] fstab, unusual behavior of "missing UUID"
I have the following as the last line of my /etc/fstab file on a computer running CentOS6.4.. UUID=3b550884-8d05-41a5-a205-17b6d7269dd1 /mnt ext3 rw,suid,dev,exec,noauto,nouser,async 0 2 The UUID refers to an ext3 partition of a removable USB drive. If the USB drive is not plugged into the computer the computer will not boot. It seems that this is the incorrect behavior since "noauto" means there is nothing to mount. I noticed this situation since an almost identical /etc/fstab on a Fedora 18 computer will boot without the USB drive being plugged in. The reason this is important to me is that I want to plug my USB drive into a running computer and then mount it with "# mount /mnt" so I can do backups. Thank you, Joe Hesse ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] sda and sdb reverse order with an external USB drive
Hello I am using 64 bit CentOS 6.4 on an i7 laptop with one sata drive and a CD drive. I installed CentOS by manually partitioning sda as: sda1 as /boot, sda2 as swap, sda3 as /. The booted system works great. When I insert an external USB drive, formatted as ext3, the hard drive on the laptop and the USB drive are either sda or sdb, depending upon the order on which I insert the USB drive and boot the system. Please see the two mount commands below for each of these situations. This seems to work in either order except for the fact that I don't want my USB drive to automount. What I want is that after I insert the USB drive in a running system and wait 15 seconds, I want to mount the USB drive with the command "# mount /mnt". To accomplish this I added a line to /etc/fstab but it didn't work. When I uncomment the last line in fstab (see below) the computer hangs and doesn't boot. I was successful with this strategy on a similar laptop with Fedora 18 but not my current one. Thank you, Joe Hesse The following mount command was issued by first completely booting CentOS and then inserting the external USB Drive. Note the sda3 is / and sda1 is /boot. [root@XoticPC ~]# mount /dev/sda3 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) /dev/sda1 on /boot type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/sdb1 on /media/GoFlex type ext3 (rw,nosuid,nodev,uhelper=udisks) The following mount command was issued by inserting the external USB drive in a powered down computer and then booting. Note the sdb3 is / and sdb1 is /boot. [root@XoticPC ~]# mount /dev/sdb3 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) /dev/sdb1 on /boot type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/sda1 on /media/GoFlex type ext3 (rw,nosuid,nodev,uhelper=udisks) The /etc/fstab file was generated by the install process. The commented line at the bottom was added by me in an unsuccessful attempt to be able to insert the USB drive in a booted computer, not having it mount, and then control the mounting with "# mount /mnt". The last UUID is the UUID of sdb1 determined with the command "# blkid /dev/sdb1". # /etc/fstab UUID=1d7606b7-46b8-4b29-9a4e-a50a1f6a1759 / ext4defaults1 1 UUID=e0fdfeb1-e7a7-4a06-b5fa-7730c3c2e60d /boot ext4defaults1 2 UUID=d0e3c2ee-7c66-4d13-b387-1da958020b1a swap swapdefaults0 0 tmpfs /dev/shmtmpfs defaults0 0 devpts /dev/ptsdevpts gid=5,mode=620 0 0 sysfs /syssysfs defaults0 0 proc/proc proc defaults0 0 #UUID=3b550884-8d05-41a5-a205-17b6d7269dd1 /mnt ext3 rw,suid,dev,exec,noauto,nouser,async 0 2 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos