Linux
How to install google chrome in fedora 21 22
As we all know google chrome is now becoming one of the most used browser, Its easy and simple to install in linux by following the below steps. To install Google Chrome in Fedora 20 / 19 / 18 / 17 / 16 / 15 / 14 and RHEL using ..
Error VLC is not supposed to be run as root
Today I installed VLC as root and when I tried to execute or run vlc player I received error VLC is not supposed to be run as root.
Installing VLC: To install VLC, your rpmfusion repo must be configured
RPMfusion Free Release
# yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
RPMfusion NonFree Release
..
Find shells present in server
chsh -l will list all the available shells in the
# chsh -l
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/zsh
chsl --list-shell will also print he same result as chsh -l
# chsh --list-shell
/bin/sh
..
What is sticky bit, SUID, SGID
what is "sticky bit", "SUID" , "SGID"?
1) Sticky bit was used on executable in Linux (which was used more often)so that they would remain in the memory more time after the initial execution, hoping they would be needed in the near future. But since today we have more sophisticated memory ..
Error Operation not permitted lvextend
When I tried to increase logical volume on the a server after rescanning the disk, I got the below error when using the resize2fs command.
Command used to extend an logical volume
# lvextend -L +40G /dev/VG_MyApp/backup
# resize2fs /dev/VG_MyApp/backup
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/VG_MyApp/backup is mounted on /backup; on-line resizing required
old ..
Password Configuration on CISCO switch
enable password command is used to change the existing password of the privileged mode.
Syntax:
enable password
Example:
# configure terminal
# enable password techbluff
# show running-config
Once the password is changed, run "show running-config" command to know whether the configuration has been modified. To make the change permanent, run "reload" ..
Clear keystone expired token
How to clear keystone expired token?
It is a good idea to set your log directory in the same keystone.conf file. Under log_dir
# log_dir = /var/log/keystone
Another issue that pops up is if you are not having the expired token cleanup setup.
How to resolve keystone expired token problem?
create ..
Sed Command replace newline
How to replace newline using sed command in linux or unix
# sed '{:q;N;s/\n//g;t q}' /change/newline.txt
# sed ':a;N;$!ba;s/\n/ /g'
Explanation of the command how it is used:
1) Create a label via :a
2) Append the current and next line to the pattern space via N
3) If we are before the last ..
Linux scan new disk without reboot
There will be always need of storage space in server when the data grows, In such situation a physical block device will be added and when the device block is added to the particular host in a cluster then the device has to be rescan. Below are are simple steps ..
Solution for error while loading shared libraries
When you receive this error first check you have set oracle $ORACLE_HOME, $PATH and $LD_LIBRARY_PATH correct
Check if the $ORACLE_HOME, $PATH and $LD_LIBRARY_PATH are set right
# echo $ORACLE_HOME
# echo $PATH
# echo $LD_LIBRARY_PATH
Set Path and Library path
# export LD_LIBRARY_PATH=$ORACLE_HOME/lib
# export PATH=$PATH:$ORACLE_HOME/bin
oracle> $ORACLE_HOME/bin/relink all
then try to relink ..
Find process using a port
fuser is an useful tool used to find open ports and all to kill or stop program using a filesystem or directory.
# fuser -km /home
kills all processes accessing the filesystem or directory /home
show all processes at (local) TELNET port
# fuser -s /dev/tty
# fuser telnet/tcp
# netstat --tcp ..
Hpacucli tool to find out led
When there is multiple server and multiple disk drives connected to a server, it might be confusing to figure out the faulty drive. In such situation we
can switch off the led of the faulty drive and confirm the faulty disk. Here we can see how to find out the ..
Below are the commands used to create htpasswd file
htpasswd command will create an encrypted password file in the specified file and adding additional user will add the the users to same file
# htpasswd -c .htpasswd tomy
Adding password for tomy
New password:
Re-type new password:
The passwords added to the .htpasswd file ..
Methods to test open ports
There are different methods to test open port of your server without telnet. But a normal used method is telnet.
netcat is a tool which is used to test or connect to different ports of a server
# nc 127.0.0.1 123 < /dev/null; echo $?
Will output 0 if port 123 is ..
Download program from git repo
When there is a need to download some piece of code to git repo
For this you have to install git repo on your machine
# apt-get install git git-core
If you want to get a copy of an existing Git repository of your project then the command you need is
..