Skip to main content

Posts

PHP Session Clean

I was getting the following error when trying to browse the icingaweb2 website in the browser Fatal error: Uncaught ErrorException: Uncaught ErrorException: session_name(): Cannot change session name when session is active in /usr/share/php/Icinga/Web/Session/PhpSession.php:97 Stack trace: #0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(2, 'session_name():...', '/usr/share/php/...', 97, Array) #1 /usr/share/php/Icinga/Web/Session/PhpSession.php(97): session_name('Icingaweb2') #2 /usr/share/php/Icinga/Web/Session/PhpSession.php(152): Icinga\Web\Session\PhpSession->open() #3 /usr/share/php/Icinga/Web/Controller/ActionController.php(540): Icinga\Web\Session\PhpSession->write() #4 /usr/share/php/Icinga/Web/Controller/ActionController.php(490): Icinga\Web\Controller\ActionController->shutdownSession() #5 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(512): Icinga\Web\Controller\ActionCont...

Place tO gO fRom bAngalore

Single Day Trips From Bangalore 1. Lepakshi 2. Manchanbele 3. Siddarabetta 4. Pearl Valley 5. Nandi Hills 6. Madhugiri 7. Turahalli 8. Hessarghatta 9. Area Around Bannerghatta 10. Chikkatirupathi 11. Shivanasamudra and Talakad 12. Savandurga 13. Skandagiri Night Trek 14. Hogenakkal Falls 15. Mekedatu and Chunchi Falls 16. Srirangapatna Weekend Trips from Bangalore 1. Colombo, Sri Lanka 2. Udupi 3. Tadiyandamol Trek 4. Nagalapuram 5. Murudeshwar 6. Kumaraparvatha Trek 7. Ooty and Surroundings 8. Tirupathi 9. Kudremukh 10. Mullayangiri-Bababudangiri 11. Brahmagiri and Iruppu Falls 12. BR Hills, MM Hills, Gopalswamy Betta and Hogenakkal 13. Bandajje 14. Ethina Bhuja 15. Yercaud and Yelagiri 16. Pondicherry and Mahabalipuram 17. Kodachadri 18. Sharavathi Backwaters 19. Belum Caves and Gandikota Extended Weekend Trips From Bangalore 1. Dudhsagar Trek and Goa in Monsoons 2. North Canara 3. Hampi 4. Coorg &Kasargod 5. Munnar, Thekkady ...

Linux Terminal Command

I will leave here some important basic linux terminal command that might be helpful during program installation and uninstallation process in Ubuntu. When you want to know the available version of package name then execute following command apt-cache policy packagename When you want to install the specific version of package name then execute the following command apt install packagename=version When you want to pin the package name not get to update in future then do the following In the following directory, /etc/apt/preferences.d/  Add the following content in the existing file, package : program name pin : version x.x.x* pin-priority : 1000  Note : pin-priority - This will prevent the program from the up-gradation. When you want to know the recently installed package name then execute the following command find /var/lib/dpkg/info/ -name \*.list -mtime -3 | sed 's#.list$##;s#.*/##' This will show the list package name which has ins...

Vazhai – Vizhuppuram Visit Experience sharing 3/4/2018 and 4/4/2018

About Vazhai  : Vazhai is an NGO established in 2004 working on mentoring underprivileged kids from Dharmapuri(Bangalore wing of Vazhai) and Vizhupuram(Chennai wing of Vazhai) districts where due to social and political reasons literacy rate is very low. It was formed by Presidency college graduates under the  guidance of experts like  writer Gnani ( https://en.wikipedia.org/wiki/Gnani_Sankaran ). Vazhai does get some financial aid from The Agaram foundation. Vazhai’s main motive is to raise the children to be  a socially responsible person and to groom them so that he/she gets to lead a dignified life in the society . My initital notion about Vazhai was that it is like a typical educational NGO that would focus on academically training the students and to financially support them. But these do NOT feature as a priority in Vazhai’s agenda. Infact they provide very minimal financial aid to the students. Vazhai works like this : ·     ...

Login as NAGIOS user in Terminal

I have written icinga configuration file for some servers to monitoring it. In that, some custom scripts are running with SSH command to monitor the Server status. Everything goes fine till when did shut down the server and launch the same server ( same hostname ) with different hardware due to Memory problem. Note : Memory problem - Sometimes, We need better RAM and Harddisk to handle the traffic when server started to get more request from the Client.  In this moment, the icinga custom scripts and inbuild scripts that related to the server hostname are started to throw the error message that can't connect to server using SSH : SSH Failed ( Same host name. But different hardware ). Because, My monitor server has Old server SSH Key in Known_Hosts for hostname. But, My monitoring server was trying to connect to New Server with Old server SSH Key from Known_Hosts. To avoid this problem, We need to remove Old Server SSH Key belong with Hostname from Known_Hosts...

Zoom out and Zoom in Desktop Hangouts for Windows

I would like to share my experience before exposing the Steps for how to Zoom out and Zoom in in Desktop Hangouts.  I was responding to my mentor in Desktop hangouts at the time I entered some key with Ctrl button that results Zoom out the desktop hangouts. But I didn't know which key I pressed with Ctrl button. This moment triggered me to find the answer for my title.  I don't want you guys to wait anymore. Here the answers for our title. - Zoom out  Hold Ctrl button and  press - button - Zoom in Hold Ctrl button and press + button - Default Hold Ctrl button and press 0 ( Zero ) Regards and Thanks, Gokul Karthik M Please leave comments and support me if it's helpful for you.

Install Oracle Java in Ubuntu via terminal using PPA

- Launch Terminal and type the following command sudo apt - get install python - software - properties sudo add - apt - repository ppa : webupd8team / java sudo apt - get update sudo apt - get install oracle - java8 - installer When there are multiple Java installations on your System, the Java version to use as default can be chosen. To do this, execute the following command. sudo update - alternatives -- config java sudo update - alternatives -- config javac sudo update - alternatives -- config javaws Edit - Manual Java Installation Download oracle jdk http : //www.oracle.com/technetwork/java/javase/downloads/index.html Extract zip into desired folder e . g / usr / local / after extract / usr / local / jdk1 . 8.0 _65 Setup sudo update - alternatives -- install / usr / bin / java java / usr / local / jdk1 . 8.0 _65 / bin / java 1 sudo update - alternatives -- install / usr / bin / javac javac / usr / local / jdk1 . 8.0 _65 / bin / javac 1 sudo update - alte...

Create Guest Account in Latest Version of Windows 10

     If you are using latest version of Windows 10 in your system, you might have noticed couldn't create " Guest " account on it. Here is a workaround  to fix this problem.     For reason unknown, Microsoft quietly removed Guest account from Windows 10 in middle of this year. So directly we can't create Guest user account in your system. Here are the steps to fix this problem - Open " Command Prompt " as Administrator - Enter " net user GuestAccountName /add /active:yes " to create a new account. Note : You can replace "GuestAccountName" with whatever name you wish. But you should ensure change it in the following steps also. - Enter " net user GuestAccountName * " to create password for this account. Note : You can create blank password for this account when you have pressed "Enter" button at two times. - Enter " net localgroup users GuestAccountName /delete " to remove GuestAccountName accou...

Show volume control icon in menu bar of Ubuntu

Hi there,    For some reason volume control widget is not showing in menu bar of my system. I am feeling really bad without that widget to play songs and adjust volume. Then I have restarted pulse audio service that won't work. Finally i come up with solution to fix this problem. Please follow the steps below I have mentioned to fix this problem - Go to "System settings -> Sound Settings" - In "Sound settings", you have option like " Show sound volume in the menu bar " with checkbox - Please enabled it and check if volume bar appears in menu bar of the system Please refer the following link for more info about this problem, http://askubuntu.com/questions/470702/volume-control-not-showing-in-ubuntu-14-04-unity-top-panel/470713

Configuration for PyDrive in Google Drive Before Run Authentication Script

- Go to " console.developers.google.com " - Then Go to " console.developers.google.com/iam-admin/projects " - Create your own Project - Go to " Service Accounts " menu and Enable "API" to On - Go to " API Manager " menu and then Go to "Credentials" - Clicked on " Create Credentials " and Clicked on " OAuth Client ID " - Give Some " Project Name " in " OAuth Consent Screen " page and saved it - Select "Application Type" to be Web Application - Enter " http://localhost:8080 " in "Authorized Java Scripts" - Enter "  http://localhost:8080/  " in "Authorized redirect URIs" and save it - Download JSON file and Rename to " client_secrets.json " and Put this file in working directory Problem Faced By Mine : - Json file name with client_id. So it throws some error Solution : Should rename to "client_secr...

Compress File Into Zip Format In Linux Using Terminal

- Launch Terminal - Check if "tar" package was installed in your system if not Please installed it before proceed next step - Type the following command in Terminal tar  -czvf  filename.zip  /pathfordirectory -c : Create an Archive -z : Compress an Archive with Zip File Format ( Can Also Format as tar.gz ) -v : This is an Optional. It displays the process of Archive in Terminal. It's also Called as " Verbose ". -f : Allows to Specify File Name for the Archive 

Set Environment Path in Linux

- Create /bin folder in /home directory - Go to /home/user directory - Open terminal and type the following command vim .bashrc Note: You can open .bashrc file in any editor. - Add the following line in .bashrc file export PATH=$PATH:~/bin - Save the changes in .bashrc file - Go to ~/bin folder and create any file Ex: touch uiautomatorviewer Format : touch filename - Open file and enter the following code Ex: #!/bin/bash echo "Message"; /home/user/tools/uiautomatorviewer - Save the file and change it to executable format chmod +x filename - Restart the terminal - Now enter the filename in any directory Enjoy !!!!!!!! Regards and Thanks, Gokul Karthik M Software QA Engineer Email : gokul.hotspot@gmail.com Phone : +91 99441 70730

Create UIAutomator Project Using Eclipse

Step 1 : Open Eclipse IDE Step 2 : Go to ' File ' -> ' New ' -> ' Java project ' Step 3 : Add Project name and click ' Next ' Step 4 : Click ' Finish ' Step 5 : Expand your project and right click on src folder -> ' New ' -> ' Class ' Step 6 : Enter ' Name ' for class . Also mention ' Package ' and then click ' Finish ' Step 7 : Right click on your project -> open ' Properties ' Step 8 : Go to ' Java Build Path '  Step 9 : Open ' Library Section ' Step 10 : Click on ' Add External Jar ' and navigate to ' android-SDK/platforms ' and choose uiautomator.jar and android.jar file Step 11 : Click on ' Add Library ' -> Select ' JUnit ' . Select JUnit 3. If you want to select JUnit 4. Then you need Java 5. Step 12 : Click ' Next ' -> then ' Finish ' . Then ...

Install and Configure Apache in Ubuntu 14.04

Easy way to install and configure "Apache" server in Ubuntu 14.04 1.Install apache:              sudo apt-get install apache2 2. In /etc/apache2/sites-available/000-default.conf :                 ScriptAlias /cgi-bin/ /var/cgi-bin/                <Directory "/var/cgi-bin">                         AllowOverride None                         Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch                     ...