Skip to main content

Posts

Showing posts with the label centos

Dual Booting CentOS 7 - Windows 7

Menyandingkan Windows 7 dan CentOS 7 dalam satu perangkat (komputer) yang sama ternyata tidak mudah, walaupun kedua OS tersebut sama-sama memiliki angka 7 di belakangnya :) Bila pada komputer kita sudah terinstal sistem operasi Windows dan berencana akan menginstal CentOS 7 sebagai sistem operasi yang kedua, ternyata caranya agak berbeda dengan tahapan instalasi dual-booting bila menggunakan CentOS 6. Bagi yang pernah mencoba untuk melakukannya mungkin kita mendapatkan setelah prosedur instalasi selesai ternyata pada menu GRUB2 kita tidak mendapatkan pilihan menu untuk masuk ke sistem operasi Windows kita. Hal tersebut ternyata akibat dari CentOS 7 belum bisa membaca partisi NTFS milik sistem operasi Windows, yang mengakibatkan menu GRUB2 tidak langsung menambahkannya di dalam menu booting komputer kita pada saat proses instalasi CentOS 7. Untuk memunculkan menu sistem operasi WIndows 7 di dalam menu GRUB2 berikut langkah-langkahnya : Lakukan instalasi paket yang ber...

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

CentOS 6.4 Released

March 12th 2013 The CentOS team is pleased to announce the immediate availability of CentOS 6.4 for i386 and x86_64 architectures. CentOS 6.4 is based on the upstream release EL 6.4 and includes packages from all variants. All upstream repositories have been combined into one, to make it easier for end users to work with. There are some very important changes to this release compared with the previous versions of CentOS and we highly recommend reading this announcement along with the Release Notes . Especially take a look at the "Known Issues" section. There is also a minimal install CD that will get you a very small base install that you can add to. Download link: i386 | x86_64

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

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

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