Uncategorized

All posts in the Uncategorized category

FIX > yum update failed with error in CENT OS 7 , Not loading into GUI Mode.

Published September 19, 2017 by Siva

Hi Friends,

I faced an issue with yum update failed. While updating through yum , My server power went down. Hence, all packages corrupted. I found below command to fix this issue.


# yum check dependencies \
  | grep 'has missing requires' \
  | sed 's/.\+has missing requires of //' \
  | sed 's/ [=<>].\+//' \
  | while read dep; do yum -y install "$dep"; done

Thank You
Advertisements

Touchpad not working On Centos 7 (Dell Inspiron 15 3000)

Published September 7, 2017 by Siva

Hi All,

 

Recently installed centos7 on my Laptop.  But my laptop touchpad is not working, after  a couple of days.

I’m glad this is fixed in CentOS 7.
I found a fix for F22 though, on askubuntu.

I had to tweak it a bit for Centos 7.

Here we go :

edit /etc/default/grub

add i8042.nopnp at the end of the options of GRUB_CMDLINE_LINUX

then run

Code:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
echo “blacklist i2c_hid” | sudo tee /etc/modprobe.d/i2c-hid.conf
sudo depmod -a
sudo dracut -v -f
echo “synaptics_i2c” | sudo tee -a /etc/modules

Reboot and the Laptop Touchpad should work.

ISSUE: /usr/libexec/grepconf.sh: line 5: grep: command not found (all Linux commands are not working)

Published July 10, 2017 by Siva

Found the problem I have set Environmental Variables in /etc/environment which caused the system.

export JAVA_HOME=/opt/jdk1.8.0_121
export JRE_HOME=/opt/jdk1.8.0_121/jre
export PATH=$PATH:/opt/jdk1.8.0_121/bin:/opt/jdk1.8.0_121/jre/bin

FIX : PATH=/usr/local/bin:/usr/bin:$PATH

Then , THe issue resolved, Remove the content in the /etc/environment file. Happy Fixing 😉

Finding a SPAM Script in the Hosted Website.

Published December 12, 2016 by Siva

Linux Malware Detect (http://www.rfxn.com/projects/linux-malware-detect/) installation is quite easy :).

download via the link, http://www.rfxn.com/downloads/maldetect-current.tar.gz.

Unzip the file # tar zxvf maldetect-current.tar.gz
change the directory to extracted one.

sudo ./install.sh

which will install the scanner to your system. To perform the scanning itself you are to run

maldet -a

Eg: maldet -a /var/www/html

-a option here means that you want ro scan all the files.
Use -r instead to scan only recent ones.

Yout will get an scanned report in screen, use maldet -q to view the reports.

Nice tool.

Thank you

Apache – “Client denied by server configuration” – Resolved

Published January 3, 2014 by Siva

Linux and Windows System Administrators Stuffs

Having problems with displaying your site and getting error 403 in your web-browser?

does the log-file for apache errors contain lines like tis?
“client denied by server configuration: /path/to/files”

Then you probably have denied access to the directory in the httpd.conf file.

Allow access by adding:
<directory /path/to/files>
allow from all
</directory>

If your are using VirtualHosts then add the directory-block inside the <virtualhost> block.

View original post

DynDNS Client configuration on Linux systems

Published December 16, 2013 by Siva

What is DynDNS:

As you know any domain should be pointed to an IP in order to be seen in browsers. If you don’t have a connection to the internet with static IP (cable, DSL, etc.), then it becomes tedious to set an A record for your domain every time your IP changes. Dynamic DNS is a feature that will allow you to point a domain name to any IP and the changes are almost immediate.

For example, you have a server at home and host a website on your computer. But you don’t have a static IP, that is the IP changes each time you reconnect to the Internet, you can setup Dynamic DNS for the domain.

Download from the below link:

http://sourceforge.net/projects/ddclient/

INSTALLATION:

1)   cp ddclient /usr/sbin/
2) mkdir /etc/ddclient
3)  cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
 4)  vi /etc/ddclient/ddclient.conf
  — and change hostnames, logins, and passwords appropriately

Example :

  ## For those using Redhat style rc files and using daemon-mode:
  cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
  ## enable automatic startup when booting
  /sbin/chkconfig –add ddclient
  ## start the first time by hand
  /etc/rc.d/init.d/ddclient start

  ## If you are not using daemon-mode, configure cron and dhcp or ppp
  ## as described below.
protocol=namecheap
use=web, web=checkip.dyndns.com/, web-skip=’IP Address’
server=dynamicdns.park-your-domain.com
login=mydomain.com
password=’XXXXXXXXXXXXXXXXXXXXXX’

# I need to update for my subdomain
mysubdomain

Debug :

ddclient -daemon=0 -debug -verbose -noquiet

Cache file location :

/var/cache/ddclient/ddclient.cache

Force update:

ddclient –force

API:

http://dynamicdns.park-your-domain.com/update?host=Mysubdomain&domain=mydomain.com&password=XXXXXXXXXXXX&ip=100.1.1.1

 

—– End —

grub normal.mod not found – Error Fix on Ubuntu

Published December 3, 2013 by Siva

Dear All,

After long time, I am back…As I bit busy with office work, I dont have time to spent.

Recently i faced on issue on ubuntu desktop 12.10. When i boot the system , I got grub normal.mod not found.

To follow the below steps

1) Boot Live CD or USB (Try ubuntu option)
2) It will automatically connect the internet, else please configure network settings as per your infrastructure
3) open terminal > sudo add-apt-repository -y ppa:yannubuntu/boot-repair && sudo apt-get update
4) apt-get install -y boot-repair && boot-repair
Press Enter. That’s it, the Boot-Repair window will appear!
5) Select recommended repair option, it will take 5 – 10 mins , then reboot,

Problem resolved.