Posts

Showing posts from January, 2018

How to install Openbox

sudo apt install openbox obconf sudo apt install xcompmgr cairo-dock     # create folder and file cd ~/.config mkdir openbox cd openbox # Edit file using any file editing tool like nano, vim, gedit etc nano autostart # Add following entries and save xcompmgr & cairo-dock &   sudo apt-get install menu cp / var / lib / openbox / debian-menu.xml ~ / .config / openbox / debian-menu.xml cp / etc / xdg / openbox / menu.xml ~ / .config / openbox / menu.xml cp / etc / xdg / openbox / rc.xml ~ / .config / openbox / rc.xml openbox --reconfigure     or if X11   cp / etc / X11 / openbox / menu.xml ~ / .config / openbox / menu.xml cp / etc / X11 / openbox / rc.xml ~ / .config / openbox / rc.xml  Adding a panel/taskbar sudo apt-get install tint2     sudo apt-get install feh      

Basic Commands

Find somthing in files grep -r "what you are looking for" /where/to/look/

Wordpress

Security Basics: find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; chmod 604 .htaccess Move from http to https: #UPDATE wp_options SET option_value = replace(option_value, 'http://www.granadillamedia.com', 'https://www.granadillamedia.com') WHERE option_name = 'home' OR option_name = 'site url' #UPDATE wp_posts SET guid = replace(guid, 'http://www.granadillamedia.com','https://www.granadillamedia.com') #UPDATE wp_posts SET post_content = replace(post_content, 'http://www.granadillamedia.com', 'https://www.granadillamedia.com') UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.granadillamedia.com','http://www.granadillamedia.com') Footer Copy Write Auto Date(Year) <script type="text/javascript">   document.write(new Date().getFullYear()); </script>