Skip to main content

Posts

Showing posts with the label how to

Checking your Network Interface Card is connected or not

  Check your Network Interface Card cat /sys/class/net/eth0/carrier or, cat /sys/class/net/eth0/operstate if the result is 0 or down , it means your NIC to cable is not connected . if the result is 1 or up , it means your NIC to cable is connected .    

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 create guest headless VMs

create VMs in guest headless mode guest headless is a term to create virtual guest by using the linux terminal (CLI). the computer server facilitates installation through command lines, and guest installation process will be done by remote application (ssh). here are the steps how to create fedora 18 (for example) virtual machine using image file (iso).  1. creating guest name $ VBoxManage createvm --name "fedora 18" --register 2. allocating amounts of RAM and networking type $ VBoxManage modifyvm "fedora 18" --ostype fedora --memory 1024 --acpi on --pae on --boot1 dvd --nic1 bridged --bridgeadapter1 eth0 3. create amount of hard disk capacity $ VBoxManage createhd --filename fedora18.vdi --size 10000 4. selecting hard disk device type $ VBoxManage storagectl "fedora18" --name "IDE Controller" --add ide 5. connecting fedora18.vdi file to hard disk device type $ VBoxManage storageattach "fedora 18" --storagectl ...

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.

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 create local repository

this is tutorial how to create local repository using dvd-iso file   first, create mount point directory where iso file to be mounted ex. # mkdir /mnt/iso/ then mounting your iso file to mount point directory using the syntax # mount -o loop file.iso mountdir ex. # mount -o loop linux.iso /mnt/iso/ create configuration file for yum # vim /etc/yum.repos.d/local.repo [local-repo] name=local-repo baseurl=file:///mnt/iso/ gpgcheck=0 enabled=1 check the yum configuration by typing # yum clean all # yum list packagename ex. # yum list nmap

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

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

selinux not allowing vsftpd accessing homedir

enabling selinux policy for ftp access check the current status of selinux policy : # getenforce check the ftp policy status : # getsebool -a | grep ftp which usually returns the following output : allow_ftpd_anon_write –> off allow_ftpd_full_access –> off allow_ftpd_use_cifs –> off allow_ftpd_use_nfs –> off allow_tftp_anon_write –> off ftp_home_dir --> off                               (change that to on)                                                                    ...

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

how to enable name-based virtual hosting httpd

here are tutorial to enable name-based virtual hosting httpd # /etc/httpd/conf/httpd.conf locate Section 3 from the configuration file, uncomments few lines or create new lines parameter  NameVirtualHost *:80 <VirtualHost *:80>       ServerName yourfirstwebsite.domain       DocumentRoot "/var/www/html/" </VirtualHost>    <VirtualHost *:80>       ServerName yoursecondwebsite.domain       DocumentRoot "/var/www/html2/" </VirtualHost> save your configuration and please kindly restart your httpd service      

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/

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

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

how to change delay timing and boot session GRUB

this tutorial to change GRUB delay timing and boot session on dual booting 1.    edit GRUB configuration file,  /etc/default/grub , example # vim /etc/default/grub 2.    to change GRUB time out, edit on GRUB_TIMEOUT (in second), fill with your time. 3.     to change boot session booting, edit on GRUB_DEFAULT (first is = 0). please pay attention on what session your OS before apply any changes. 4.   Save, recompile your GRUB by type this line below : # update-grub