Skip to main content

Posts

Showing posts with the label enterprise linux

Honor Code Certificate from edX - IEEE

Honor Code Certificate from edX - Linux Foundation

installing nvidia display driver on EL6

this is tutorial to install nvidia display driver on enterprise linux *all of the command must be executed as root user  1. check the nvidia product type lspci -nn | grep VGA here you will have the infomation what proprietary driver you should download from www.nvidia.com site. 2. install the Development Tools group packages, kernel headers, kernel devel, and dkms yum groupinstall "Development Tools" yum install dkms kerne-devel kernel-headers 3. disable the nouveau driver using your text editor vim /etc/modprobe.d/blacklist.conf #add this line blacklist nouveau 4. go to /boot directory make a copy of initramfs file cd /boot mv initramfs-$(uname -r).img initramfs-$(uname -r).img.bak 5. proceed to create new initramfs file dracut -v initramfs-$(uname -r).img $(uname -r) 6. change inittab to start the system with no X11 vim /etc/inittab change runlevel to 3 7. restart the system reboot 8. login in command line as root, run the script to install t...

sysVinit versus systemd

here are examples of the systemctl version of a few common chkconfig and service commands. 1. to list processes # chkconfig --list # systemctl list-units 2. to enable a service # chkconfig (servicename) on # systemctl enable (servicename).service 3. to disable a service # chkconfig (servicename) off # systemctl disable(servicename).service 4. to start a service # service (servicename) start # systemctl start (servicename).service 5. to stop a service # service (servicename) stop # systemctl stop (servicename).service 6. to see the status of a service # service (servicename) status # systemctl status (servicename).service or # systemctl is-active (servicename).service source: http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet

about gigabyte NIC onboard not detected on enterprise linux distribution

on several gigabyte motherboard, onboard network interface card  will not be detected on enterprise linux distribution (e.g. scientific linux, oracle linux server, etc). alternatively you must supply add-on card. or if you insist to use the onboard card, you must install the unofficial nic driver. this is tutorial how to install driver for onboard network interface card GIGABYTE first of all prepare your system. make sure it has package group "Development Tools" installed. if it has not, install it # yum groupinstall “Development Tools” download the source code : https://www.dropbox.com/s/na91bu4az4p9827/AR81Family-linux-v1.0.1.14.tar.gz extract the source code : # tar zxvf AR81Family-linux1.0.1.14.tar.gz the extraction process will make the new directory "AR81Family*", change to the directory # cd AR81Family* compile the source by type on terminal : # make then, # make install wait until the compiling process finish. next make the new scrip...

about sshd settings

ssh (secure shell) - service name : sshd - log file /var/log/secure* /var/log/audit/audit.log - default configuration files and ssh ports /etc/ssh/sshd_config     --> openssh server configuration file /etc/ssh/ssh_config     --> openssh client configuration file ~/.ssh/     --> user ssh configuration directory ~/.ssh/authorized_keys    ---> lists public key (RSA or DSA) that can be used to log into the user's account /etc/nologin     --> if the file exists, sshd refuses to let anyone except root log in /etc/hosts.allow   /etc/hosts.deny     --> these two file are access control list that should be enforced by tcp-wrappers defined here - ssh default port    ---> tcp:22 - examples of using tcp wrappers for sshd allow ssh only from 192.168.1.2 172.16.23.12 put the line in /etc/hosts.allow sshd : 192.168.1.2 17...

mariadb yum repository

# MariaDB 5.5 repository list - created 2013-01-24 12:38 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/rhel6-x86 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 # MariaDB 5.5 repository list - created 2013-01-24 12:38 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/centos6-x86 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 # MariaDB 5.5 repository list - created 2013-01-24 12:38 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/fedora16-x86 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1

about vsftpd module helper (ip_conntrack)

vsftpd modul helper (ip_conntrack) # /etc/sysconfig/iptables add the lines to open port tcp 21 for vsftpd -A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT # /etc/sysconfig/iptables-config edit the lines below # Load additional iptables modules (nat helpers) # Default: -none- # # IPTABLES_MODULES="ipconntrack_ftp ip_nat_ftp" # # restart service # service iptables restart The ip conntrack ftp module is used by iptables to listen to traffic and allow connections to the data ports (20). This allows an FTP server to operate on a machine which is running a firewall. Without this option passive ftp will not work. Another option is just skip this module assign min and max pass ranges in vsftpd and open those ports. source: http://www.cyberciti.biz/tips/rhel-fedora-centos-vsftpd-installation.html

how to connect httpd service to mysqld service

connecting http service to mysql service this is tutorial to connecting htttpd and mysqld on separated pc (dedicated server) on this example information provides for the database server has ip address 192.168.1.100, and the web server has ip address 192.168.1.200 this tutorial is using oracle linux server 6 but this can be applied to rhel-based distributions on the database server pc access your server, $ mysql -u root mysql create new database, mysql>create database namedb; create database user, mysql>create user 'user'@'host_ip_addr_webserver' identified by 'password' note : use sign '%' at host if you want your database server to be accessed from any IP's give user created to access database, mysql>grant all on namedb.* to 'user'@'host_ip_addr_webserver'; mysql>flush privileges; mysql>exit edit iptables to open port tcp:3306 on the web server pc check first your pc can remotely access da...