Skip to main content

Posts

Plone installation in Fedora Linux

This document will help you to install and configure Plone in Fedora Linux. (I think you can use this same steps to install Plone in CentOS and Redhat Enterprise Linux.)   Make sure you have Fedora repositories enabled. (Here I'm using "dnf" command.  If you are using CentOS, Redhat or Older versions of Fedora then you have to use "yum" command instead ) $ sudo dnf repolist Last metadata expiration check: 0:07:08 ago on Sun Jul 9 01:18:52 2017. repo id repo name status *fedora Fedora 25 - x86_64 51,669 *updates Fedora 25 - x86_64 - Updates 20,457 Now you have to install the per-requesites for Plone. (You have to install it manually)   $ sudo dnf install libxml2-devel libxslt-devel \ libjpeg-turbo libjpeg-turbo-utils libjpeg-turbo-devel \ zlib zlib-devel perl-Compress-Raw-Zlib perl-IO-Zlib 1. Now you can download ...

rtl8723be driver issues in Fedora, Ubuntu, CentOS and Redhat Linux (RHEL).

I could see many people bug the developer with silly questions... I faced this issue on both Ubuntu, CentOS, and Fedora.  What I found is, the driver which Ubuntu, CentOS, or Fedora shipped is the latest one. There is no need of downloading and compiling the drivers again, without testing the installed driver with different antenna selections. In most cases re-enabling the kernel module with correct antenna selection would help.  (I think it will work in Redhat as well. But not tested.) Let me share my finding... To fix this you have to unload the current kernel modules and then insert them again with the new antenna selection... In my case, In Ubuntu the antenna was 2,  in centOS7 and Fedora, it was 1. So here are the steps (which I did). In UBUNTU (16.10, 17.04) ## Unload the current module ## sudo modprobe -rv rtl8723be ## Reload it with new option. ## sudo modprobe -v rtl8723be ant_sel=2 ## this step will help you to keep the same changes even after the...

/var/log/lastlog is very big in size.

My backup team reported that the backups are failed. And on investigation I found /var/log/lastlog is very huge in size but file system usage is normal in "df" output.  And even "du" command also shows normal in size. I found this information from redhat. This file is what we call a sparse file. A sparse file is a file that contains unallocated blocks or "empty space", as it implies, it does not actually take up filesystem space. To test this theory, execute the following command: root@server1.nyc.us:/var/log # ls -l /var/log/lastlog -rw-r--r-- 1 root tty 459561084068 Jul 1 13:05 /var/log/lastlog root@server1.nyc.us:/var/log # du -sh /var/log/lastlog 23M /var/log/lastlog See the ls -l output, which shows huge size. The fix which they have suggested is to copy/move the file to some other place, because the copying will clear the unallocated blocks. But I found the copy is taking more time. So I decided to to clear the file after stopping th...

Install VirualBox on Fedora, CentOS or Redhat Linux (RHEL)

VirtualBox-5.1 in not working in Fedora 25, Centos7 and Redhat Linux (RHEL) I installed Virtualbox-5.1 from the rpmfusion repository and I was unable to create Host-Only-Netwok adapter. When I tried to start create I got the below error. VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory Later I started researching what is this error and why it the device is not present. And I came to know that VirtualBox kernel modules were not started and that was causing the issue. I tried to start the service and it failed. (Unfortunately I don't have that output). I got the warding that kernel-core-devel is not installed on the system.  I tried to install it and that didn't worked since there was no kernel-core-devel package was not available in fedora repositories. Later I found some blogs where I got the actual fix. Here we have to uninstall the currently installed one from rpmfusion and we need to insta...

How to kill the tty sessions in unix

How to kill the tty sessions in UNIX 1. First you have to check how many logins are present in server.  Use "w" command to list all the sessions . [root@testserver ~]# w  00:22:13 up 106 days, 22:41,  2 users ,  load average: 3.31, 1.53, 1.09 USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT root     pts/15   master.world.com 00:22    1.00s  0.64s  0.61s w root     pts/18    10.47.18.111      09Mar14  36days  0.01s  0.01s -bash Total 2 users are logged in. See there is a session from the IP 10.47.18.111 is idle for last 36 days.  And I want to end this session.  For that we have to note down the tty id which is used for this Login. See here it is  pts/18 .  2....

Zimbra Heartbleed Vulnerability OpenSSL Patch.

Zimbra Collaboration Server 8 is susceptible to the OpenSSL Heartbleed bug:   Specifically, nginx, postfix and OpenLDAP all link directly to OpenSSL shipped in ZCS8. Other components in the ZCS package also link to the openssl libraries, but the above three are the potentially Internet-facing services that would be attackable. All versions of ZCS8 as released today are vulnerable. ZCS7 is not vulnerable because it uses OpenSSL 1.0.0, which is not vulnerable. Only OpenSSL 1.0.1 and later are reported as being vulnerable. Zimbra has produced an OpenSSL patch for versions 8.0.3 to 8.0.7. If you are running a version prior to 8.0.3, your server is susceptible to other critical security vulnerabilities [reference: https://www.zimbra.com/forums/announ...-84547-a.html] , so you would please need to upgrade to a secure version first, then run this patch. The patch is located here: http://files.zimbra.com/downloads/se...ssl-updater.sh The patch downloads the correct ...

exited due to signal 25 (squid Error)

[SOLVED] Hi Guys , Some times back I have faced some problem in one my squid proxy server. My squid service was killed and was failed to start the service.  # service squid start Starting squid: ....................                       [FAILED] There was no visible error on that screen. It simply returned the status is failed. Then I check the log file of system. There was an error " exited due to signal 25 ". Jul 27 12:48:46 PRXY squid[14372]: Squid Parent: child process 14375 started Jul 27 12:48:46 PRXY squid[14372]: Squid Parent: child process 14375 exited due to signal 25 Jul 27 12:48:49 PRXY squid[14372]: Squid Parent: child process 14381 started Jul 27 12:48:50 PRXY squid[14372]: Squid Parent: child process 14381 exited due to signal 25 Jul 27 12:48:53 PRXY squid[14372]: Squid Parent: child process 14387 started Jul 27 12:48:53 PRXY squid[143...

clearing cache on squid proxy

  stop squid, and erase all the files from your cache directory  For example: squid -k shutdown or /etc/init.d/squid  stop Find-out which is you squid cache Directory using following command # more /etc/squid/squid.conf | grep ^cache_dir cache_dir ufs /var/spool/squid 5120 16 256   Here it is showing /var/spool/squid. Then remove cache files ( Take a backup before deleting if required)  rm -fr  /var/spool/squid/*   then re-create the swap directory structure: squid -z  now start squid again. /etc/init.d/squid  start

Linux System Monitoring Tools.

Need to monitor Linux server performance? Try these built-in command and a few add-on tools. Most Linux distributions are equipped with tons of monitoring. These tools provide metrics which can be used to get information about system activities. You can use these tools to find the possible causes of a performance problem. The commands discussed below are some of the most basic commands when it comes to system analysis and debugging server issues such as: Finding out bottlenecks. Disk (storage) bottlenecks. CPU and memory bottlenecks. Network bottlenecks. #1: top - Process Activity Command The top program provides a dynamic real-time view of a running system i.e. actual process activity. By default, it displays the most CPU-intensive tasks running on the server and updates the list every five seconds. Commonly Used Hot Keys The top command provides several useful hot keys: Hot Key Usage t Displays summary information off and on. m Displays memory i...

How do I see all running process in Linux?

You need to use the ps command. It provide information about the currently running processes, including their process identification numbers (PIDs). Both Linux and UNIX support ps command to display information about all running process. ps command gives a snapshot of the current processes. If you want a repetitive update of this status, use top command.     ps command Type the following ps command to display all running process:    # ps aux | less Where, -A: select all processes a: select all processes on a terminal, including those of other users x: select processes without controlling ttys See every process on the system # ps -A # ps -e See every process except those running as root # ps -U root -u root -N See process run by user vishnu   # ps -u vishnu top command The top program provides a dynamic real-time view of a running system. Type the top at command prompt: # top Output: top command : Displays Linux Tasks To quit p...

SSH login without password.

Login as “ root ” on “ spicykerala.co.in ” and generate a pair of authentication keys. Note: even if is unsecured to work without password, do not enter it. Let it empty... [root@spicykerala]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: b4:35:f8:0e:44:ba:b1:85:ea:17:d3:41:da:8b:58:ed root@spicykerala.co.in The key's randomart image is: +--[ RSA 2048]----+ | o                          | | O .                        | | * O o              ...

Storing all the RPM packages installing via yum installer

For storing all the RPM packages installing via yum installer, add this following line to your /etc/yum.conf file. keepcache=1 For Example: [vichooss@spicykerala ~]$ more /etc/yum.conf [main] debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=3 color=never keepcache=1 Then all rpm packages installed via yum are stored in /var/cache/yum/*/packages . you can change the cache directory by specifying cachedir=<mydir> in yum.conf . For Example: [ vichooss@spicykerala ~]$ more /etc/yum.conf [main] debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=3 color=never keepcache=1 cachedir=/home/vichooss/Downloads