Skip to main content

Posts

Showing posts with the label oracle linux

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...

how to install GIGABYTE ethernet driver for linux

in our tour of duty, we are facing another case where the ethernet device on motherboard didn't recognize by linux kernel. here are the specification : motherboard  : GIGABYTE G41MT-S2PT linux operating system :   Scientific Linux 6.0 another enterprise-based linux (centos, oracle linux) will works (i hope). we have try with fedora 14 , but it didn't recognize the device and the driver is not available yet. fortunate we have found the driver in binary (RPM package). first download the package file from the following links : i386 driver : kmod-atl1e-1.0.1.14-1.el6.elrepo.i686.rpm x86_64 driver : kmod-atl1e-1.0.1.14-1.el6.elrepo.x86_64.rpm step 1 install the package by typing  (as root) rpm -ivh kmod-atl1e... .rpm step 2 change directory to /etc/sysconfig/, please check whether there is a file called network, if there isn't create new file with your favourite text editor. cd /etc/sysconfig/ vim network the content of network file : NETWORKING=...

how to install gui on base server configuration installation of enterprise linux

this is tutorial how to install desktop environment on base server configuration installation of enterprise linux installation desktop environment (gnome) install several group packages below : # yum groupinstall “Base” # yum groupinstall “X Window System” # yum groupinstall “Desktop” # yum groupinstall “General Purpose Desktop” to install web browser application (mozilla firefox)  : # yum groupinstall “Internet Browser” to install office and mail client applications (openoffice.org, evolution)  : # yum groupinstall “Office Suite and Productivity” notes : *enterprise linux distribution on the example is Oracle Linux Server 6.0. *group package 'Office Suite and Productivity' is not available on DVD repository OLS 6.0.  *for fedora install group package “X Window System” and “GNOME Desktop Environment” only.

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...

how to install and uninstall vmware player

this is tutorial to install and uninstall vmware player first install group package called Development Tools to your linux system # yum groupinstall “Development Tools” then obtain a copy vmware bundle package from  www.vmware.com   change the permission of the package # chmod 755 VMware-Player-4.0.2-591240.i386.bundle to install it simply type on terminal # ./VMware-Player-4.0.2-591240.i386.bundle or if you decide to uninstall it, simply  type # vmware-installer -u vmware-player

how to install oracle virtualbox 4.*

Install VirtualBox 4.0.8 on Fedora 15/14, CentOS/Red Hat (RHEL) 5.6/6 Virtualbox-logo-smallOracle VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software. VirtualBox supports a large number of guest operating systems: Windows 3.x, Windows NT 4.0, Windows 2000, Windows XP, Windows Server 2003, Windows Vista, Windows 7, DOS, Linux (2.4 and 2.6), Solaris, OpenSolaris, OpenBSD. This guide shows howto install VirtualBox 4.0 (currently 4.1.2) on Fedora 15, Fedora 14, Fedora 13, Fedora 12, CentOS 5.6, Red Hat (RHEL) 5.6 and Red Hat (RHEL) 6. This howto uses Virtual Box yum repositories. 1. Change to root User su - ## OR ## sudo -i 2. Install Fedora or RHEL Repo Files cd /etc/yum.repos.d/ ## Fedora 15/14/13/12 and RHE...

how to reset root password

this is the tutorial how to reset your root password. it can be applied to redhat enterprise linux-based (oracle linux, centos, scilinux, fedora ). 1. restart your system, wait until it boot-up. press 'esc' to enter the GRUB menu 2. select from GRUB menu your linux kernel, it usually like this "kernel-vmlinuz-*" , press 'e' to edit 3. edit the at last line (it usually like this "rhgb linux quiet"), change it with :     rhgb linux single     or,     rhgb linux quiet 1 (this two lines above works well with fedora), or     rhgb linux single init=/bin/bash (use this line if the previous doesn't work, especially with enterprise-based distribution) press 'enter' then 4. back to the GRUB menu, choose the kernel and press 'b' to boot 5. wait for the system to boot-up and if the change succeed it will bring the system to login directly as root user 6. type command 'passwd' to enter your new root password note: ...

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...

how to install oracle linux from usb stick

here are tutorial making usb flashdisk as a media to install oracle linux to your pc If you want to install Oracle Linux from a USB drive, keep in mind that not all hardware supports USB device booting.Also, during the boot process you may have to instruct your BIOS to boot from that specific USB device. Finally, keep in mind that this method of installation is not officially sanctioned by Oracle support. Prerequisites 1. The first thing you will need is an ISO image of Oracle Linux. The quickest way to obtain an ISO image is from the Oracle Software Delivery Cloud 2. You will need a desktop or server system running Oracle Linux in order to prepare your USB drive. 3. You will also need to download this script to create the bootable USB drive. 4. Your Oracle Linux system will also need the package syslinux installed. You can install syslinux using yum with the following command: # yum install syslinux Marking Partition One as Bootable Once your prerequisites are in order...

how to create registered user on mail server

create user to access mail server # useradd -s /sbin/nologin username # passwd username example: # useradd -s /sbin/nologin belogix # passwd belogix the user created can access to mail server account, but cannot access the system using registered username. source: http://www.cyberciti.biz/tips/howto-linux-shell-restricting-access.html

list of mysql commands

here are tutorial list of mysql commands to preparing database for your web+cms needs enter database server by using mysql client  $ mysql -u root mysql to create database mysql> CREATE DATABASE namedb; to create user database and password mysql>CREATE USER 'user'@'localhost' IDENTIFIED BY 'password'; to grant access user to database create mysql>GRANT ALL ON namedb.* TO 'user'@'localhost'; to make configuration active mysql>FLUSH PRIVILEGES; to exit mysql mysql>EXIT to show user, host and password mysql>SELECT user,host,password FROM user; to show databases mysql>SHOW DATABASES; to open database mysql>USE namedb; to remove database mysql>DROP DATABASE namedb; to remove user mysql>DROP USER 'user'@'localhost'; to backup all databases mysql>MYSQLDUMP --all-databases > backup.sql to restore database mysql>MYSQL -u username -p < backup.sql

how to enable httpd to access to homedir

here are the notes how to enable accessing homedir for httpd enable access to home user directory # /etc/httpd/conf/httpd.conf locate UserDir section <IfModule mod_userdir.c> # # # UserDir disabled                       (comments this line) # # to allow httpd accessing homedir set selinux by typing this command on terminal # setsebool -P httpd_enable_homedirs 1 # chcon -R -t httpd_sys_content_t ~username/public_html example. #  chcon -R -t httpd_sys_content_t ~belogix/public_html  notes: ~userid directory must have permission 711 ~userid/public_html/ directory must have permission 755 check your setting by open your web browser pointed to http://ipaddrwebserver/~user/

about vsftpd settings

here the notes about configurations setting for vsftp daemon vsftpd defaults 1. port default : tcp/udp 21 & 20 2. main configuration files : /etc/vsftpd/vsftpd.conf 3. users that are not allowed to login via ftp : /etc/vsftpd/ftpusers turn on verbose vsftpd log format. the default log is /var/log/vsftpd.log log_ftp_protocol = YES create warning banners for all ftp users banner_file = /etc/vsftpd/issue (where file 'issue' is located on /etc/vsftpd/) add additional users to ftp server to login, upload and download files # useradd -c 'FTP USER oracle' -m belogix # passwd belogix local_enable = YES

how to change rootdir vsftpd

as default root directory for vsftpd is located in /var/ftp/pub/. to change the defaults do this step : # /etc/vsftpd/vsftpd.conf add the line below anon_root = your_directory example anon_root = /home/user/ftp/ # /etc/selinux/config set selinux to disable/permissive mode

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

public yum oracle linux repository

[ol6_latest] name=Oracle Linux $releasever Latest ($basearch) baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 gpgcheck=1 enabled=1 [ol6_ga_base] name=Oracle Linux $releasever GA installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 gpgcheck=1 enabled=0 [ol6_u1_base] name=Oracle Linux $releasever Update 1 installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 gpgcheck=1 enabled=0 [ol6_u2_base] name=Oracle Linux $releasever Update 2 installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/2/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 gpgcheck=1 enabled=0 [ol6_u3_base] name=Oracl...

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...