Showing posts with label centos. Show all posts
Showing posts with label centos. Show all posts

Wednesday, December 3, 2008

install g++ + centos

How to Install g++ on CentOS 4 and CentOS 5

g++ is often necessary for building various packages. But It’s quite hard to install it in CentOS if you don’t know a simple thing: yum install g++ will not work here. yum install compat-g++and yum install gcc-g++ won’t give any result too. The only command for yum to install g++ on CentOS is the following:

yum install gcc-c++

You might also want to install it with some more useful packages. Then your command will be:

yum install gcc-c++ compat-gcc-32 compat-gcc-32-c++

Hope this helps you to install g++ under CentOSAddThis

rsync + centos

Setup rsync server on CentOS

Step-by-step installation and configuration rsync server on CentOS
From transamrit.net
  • Make sure xinetd and rsync is available, if not type
    # yum -y install rsync xinetd
  • Add xinetd service to system
    # chkconfig --add xinetd
  • Make sure xinetd running on init 3 and 5
    # chkconfig --list xinetd
  • Enable rsync
    # vi /etc/xinetd.d/rsync
    Change disable = yes into disable = no
  • Create username and password for rsync client to use
    # vi /etc/rsyncd.secrets
    adminname:hispassword
  • Create configuration and shares for rsync daemon
    # vi /etc/rsyncd.conf
    max connections = 2
    log file = /var/log/rsync.log
    timeout = 300

    [shares]
    comment = shared data stored here
    path = /home/adminname/shares
    read only = false # chg to true if you want read only
    list = yes
    uid = adminname
    gid = adminname
    auth users = adminname
    secrets file = /etc/rsyncd.secrets
    hosts allow = 10.10.105.0/24
  • Secure /etc/rsyncd.*
    # chown root.root /etc/rsyncd.*
    # chmod 600 /etc/rsyncd.*
  • Restart xinetd
    # service xinetd restart
  • Make sure rsync now running
    # chkconfig --list
  • Perhaps you also want to enable port 873 tcp and udp on your firewall so other can connect to your server

Monday, October 13, 2008

install x windows + centos

yum groupinstall "X Software Development" "X Window System"
yum groupinstall “X Window System” “GNOME Desktop Environment”