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

LVS (Load balancer) Error Fix : nanny[2687]: READ returned error 104:Connection reset by peer

Published August 6, 2014 by Siva

I have updated the centos 6.2 -> 6.5. After the My LVS(Linux Virtual server) load balancer throwing a below error in /var/log/messages/ frequently.
I have spent 2 days to resolve this issue. I would like to share this to everyone.

Aug 6 02:28:07 lb01 nanny[2687]: READ returned error 104:Connection reset by peer
Aug 6 02:28:07 lb01 nanny[2685]: READ returned error 104:Connection reset by peer
Aug 6 02:28:09 lb01 nanny[2686]: READ returned error 104:Connection reset by peer
Aug 6 02:28:12 lb01 nanny[2688]: READ returned error 104:Connection reset by peer
Aug 6 02:28:13 lb01 nanny[2687]: READ returned error 104:Connection reset by peer
Aug 6 02:28:13 lb01 nanny[2685]: READ returned error 104:Connection reset by peer
Aug 6 02:28:15 lb01 nanny[2686]: READ returned error 104:Connection reset by peer

Solution: 1) Simple check you hosts file.
Make sure the loopback entry in /etc/hosts.
127.0.0.1 localhost.localdomain localhost

2) Check both LB servers having same timezone.

Once verified, reload your config,

1) service ipvsadm reload
2) service pulse reload

Thank you.

Export PUTTY Sessions list to Another Computer – Simple

Published January 27, 2014 by Siva

Here we are going to see, How to Export PUTTY Sessions list to Another Computer,

    Run the below command on a source system ( to taking backup / export existing session list)

regedit /e “%userprofile%\desktop\putty-sessions.reg” HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions

    Do the below taskson a remote system ( Importing from reg file)

to copy the putty-sessions.reg file on remote system.

then right click on a file & merge it.

reg2

Thats it.

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