Centos Migration Notes

Discussion in 'Technology' started by wing, Aug 30, 2014.

  1. wing

    wing Administrator Staff Member Owner

    This is for my own reference.. This is not fully finished


    Import epel
    rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

    yum install fail2ban

    yum install phpmyadmin

    yum install screen

    phpmyadmin modify
    vi /etc/httpd/conf.d/phpMyAdmin.conf

    Install mail
    yum install postfix mailx cyrus-sasl-plain

    If you like to install and update Webmin via RPM, create the /etc/yum.repos.d/webmin.repo file containing :[Webmin]
    name=Webmin Distribution Neutral
    enabled=1You should also fetch and install my GPG key with which the packages are signed, with the commands :wget http://www.webmin.com/jcameron-key.asc
    rpm --import jcameron-key.ascYou will now be able to install with the command :yum install webmin
    get steam
    yum install wget
    wget http://media.steampowered.com/client/steamcmd_linux.tar.gz
    tar zxf steamcmd_linux.tar.gz
    Export mysql database
    mysqldump -uroot -p --all-databases > alldb.sql

    Import mysql database
    mysql -u root -p < alldb.sql

    SCP install
    yum install openssh-clients rsync

    SCP usage
    To copy a file from B to A while logged into B:
    scp /path/to/file username@a:/path/to/destination
    To copy a file from B to A while logged into A:
    scp username@b:/path/to/file /path/to/destination

    SCP recursive
    scp -r root@my.web.server.com:/var/www/whatportis/* /var/www/whatportis/


    tf2 stuff..

    yum install perl-DBD-mysql perl-DBI
    yum install dos2unix
    find . -type f -exec dos2unix {} \;
    yum install cpan
    cd /tmp
    wget http://search.cpan.org/CPAN/authors/id/B/BO/BORISZGeo-IP-PurePerl-1.23.tar.gz
    tar -zxf Geo-IP-PurePerl-1.23.tar.gz
    cd Geo-IP-PurePerl-1.23
    perl Makefile.PL
    make test
    sudo make install

    yum install libgcc.i686 glibc.i686 zlib.i686 ncurses-libs.i686

    yum install zlib.i686

    firewall stuff: good place to start
    sudo iptables -I INPUT 5 -p tcp --dport 27015 -m state --state NEW,ESTABLISHED -j ACCEPT
    sudo iptables -I INPUT 6 -p udp --dport 27015 -m state --state NEW,ESTABLISHED -j ACCEPT
    sudo iptables -I INPUT 7 -p udp --dport 27005 -m state --state NEW,ESTABLISHED -j ACCEPT
    sudo iptables -I INPUT 8 -p udp --dport 27020 -m state --state NEW,ESTABLISHED -j ACCEPT
    sudo iptables -I INPUT 9 -p udp --dport 26901 -m state --state NEW,ESTABLISHED -j ACCEPT
    sudo service iptables save
    sudo service iptables restart
    1. Did you install phpmyadmin and open up your ip in the conf.d and restart httpd but it still does not work. Do you have php installed?
    2. Steam tools fails after first download. Did you chown the parent directory?
    3. Did you import all your databases but they still don't work. Flush privileges.
    4. Install SCP and put correct code in and it says scp command not found. Each side of link needs installation
    5. Did you open mysql ports, you know for fact all your privileges are correct but still getting unable to connect to database. SELINUX.. edit /etc/selinux/config
    • Dumb Dumb x 1
Live Thread addon by sonnb

Share This Page