sábado, 16 de setembro de 2017

HOW TO FIX ERROR BUSYBOX BUILT-IN SHELL (INITRAMFS) ON EVERY BOOT

execute:
after this message put:

fsck /dev/sda1

segunda-feira, 11 de setembro de 2017

HOW TO HARDENING APACHE 2.4.18 ON UBUNTU SERVER 16.04 LTS

Fisrt check the versions:

apache2 -v    # check version apache:
my result:  apache 2.4.18
lsb_release -a # check ubuntu version
my result: ubuntu 16.04.3 lts

1: Directory list disble

vi /etc/apache2/apache2.comf

change from:

 
<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>


 
for:

 
<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>
2:Apache version disable:

/etc/apache2/conf-enabled/security.conf
 

change from:
 
ServerSignature On
ServerTokens OS

for:
ServerSignature Off
ServerTokens Prod

3: Default Apache page disable

rename default page for old:
mv /var/www/html/index.html  /var/www/html/index.html.old

domingo, 3 de setembro de 2017

HOW TO INSTALL ZABBIX-SERVER 3.4.1 ON UBUNTU SERVER 16.04 LTS

apt-get update
apt-get install apache2
apt-get install php (will be install php 7)
apt-get install mysql
apt-get install mysql-server
apt-get install php7.0-xml php7.0-bcmath php7.0-mbstring
apt-get install libapache2-mod-php
apt-get install  a2enmod php7.0

wget http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb
dpkg -i zabbix-release_3.4-1+xenial_all.deb
apt-get update
apt-get install zabbix-server-mysql zabbix-frontend-php

mysql -uroot -p<your_root_password>
create user 'zabbix'@'localhost' identified by 'your_zabbix_password';
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'your_zabbix_password';
flush privileges;
quit mysql database

zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix
put the zabbix_user from mysql

vi /etc/zabbix/zabbix_server.conf
add the password of zabbix user from database zabbix
service zabbix-server start
update-rc.d zabbix-server enable /etc/apache2/conf-enabled/zabbix.conf <<some times after execute this command there is a erro about locale, than you must execute this command dpkg-reconfigure locales to fix first for run again this command>>


vi /etc/zabbix/apache.conf

<IfModule mod_php7.c>
    php_value max_execution_time 300
    php_value memory_limit 128M
    php_value post_max_size 16M
    php_value upload_max_filesize 2M
    php_value max_input_time 300
    php_value always_populate_raw_post_data -1
    # php_value date.timezone Europe/Riga  <<<change for your native region>>
      php_value date.timezone America/Sao_Paulo
</IfModule>

service apache2 restart
apt-get install zabbix-agent
service zabbix-agent start

for finish, you must fix those errors:


  1. Time zone for PHP is not set (configuration parameter "date.timezone").
  2. PHP bcmath extension missing (PHP configuration parameter --enable-bcmath).
  3. PHP mbstring extension missing (PHP configuration parameter --enable-mbstring).
  4. PHP xmlwriter extension missing.
  5. PHP xmlreader extension missing.

for 1: add time zone for both field <php5 and php7> tag on,  /​etc/​apache2/​conf-enabled/zabbix.conf

for 2: you must execute apt-get install php-bcmath 
for 3: you must execute apt-get install php-mbstring
for 4: you must execute apt-get install php-xmlwriter
for 5: you must execute apt-get install php-xmlreader

for finish restart apache service and php by this way:

/etc/init.d/apache2 restart

and just finish the wizard

Source: https://www.zabbix.com/documentation/3.4/manual/installation/install#installing_frontend







sábado, 2 de setembro de 2017

HOW TO INSTALL ANDROID STUDIO ON UBUNTU AND FIX PROBLEM

add-apt-repository ppa:ubuntu-desktop/ubuntu-make 
apt-get update 
apt-get install ubuntu-make  

If you have a problem like that: 


ERROR: Unhandled exception
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/umake/tools.py", line 158, in wrapper
    function(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/umake/ui/__init__.py", line 56, in display
    cls.currentUI._display(contentType)
  File "/usr/lib/python3/dist-packages/umake/ui/cli/__init__.py", line 61, in _display
    contentType.run_callback(result=rlinput(contentType.content, contentType.default_input))
  File "/usr/lib/python3/dist-packages/umake/interactions/__init__.py", line 141, in run_callback
    self._callback_fn(result)
  File "/usr/lib/python3/dist-packages/umake/frameworks/baseinstaller.py", line 152, in confirm_path
    if os.listdir(path_dir):

PermissionError: [Errno 13] Permission denied: '/root/.local/share/umake/android/android-studio'



execute first :

sudo -s
unset SUDO_UID
unset SUDO_GID


After, for finish the correctly installation execute again

apt-get install ubuntu-make  


for remover you can do that:

umake android --remove

sábado, 15 de julho de 2017

HOW TO START A FORENSE BROWSER ANALYZER ON (IE, FIREFOX AND GOOGLE CHROME)

For mozilla:
http://www.nirsoft.net/utils/mozilla_cache_viewer.html
For ie:
http://www.nirsoft.net/utils/ie_cache_viewer.html
For chrome:
http://www.nirsoft.net/utils/chrome_cache_view.html


for everyone:
http://www.nirsoft.net/utils/browsing_history_view.html

terça-feira, 13 de junho de 2017

HOW TO SOLVE ISSUES FOR IMPLEMENTED SOPHOS TRANSPARENT AUTENTICATION SERVICE (STAS)

First problem that was found, is the detail about the fqn field and just wins server..  following the print to help on this configuration


The second error that was found is for start the service of SSO client on the server, that was checked this erro for start the service:

Was solved just found the service and set a user and password :



More detail about the next configuration following this video: https://www.youtube.com/watch?v=4Z5VZ1EIzgc

sexta-feira, 26 de maio de 2017

HOW TO INSTALL KASPERSKY ANTIVÍRUS FOR GNU LINUX

FOR INSTALL KASPERSKY NETWORK AGENT :

REQUIREMENTS THE SAME FOR KASPERSKY ENDPOINT FOR LINUX

DOWNLOAD AGENT FOR DEB:
https://products.s.kaspersky-labs.com/multilanguage/endpoints/kesl/klnagent_10.1.1-26_i386.deb

DOWNLOAD AGENT FOR  RPM:
https://products.s.kaspersky-labs.com/multilanguage/endpoints/kesl/klnagent-10.1.1-26.i386.rpm

HOW TO INSTALL:
https://support.kaspersky.com/5108

AFTER EXECUTE "HOW TO INSTALL" PROCEDURE FOLLOWING THIS PROCEDURE: 
PAGE 24
Installing Network Agent

SOURCE: https://docs.s.kaspersky-labs.com/english/kes10_linux_adminguide_en.pdf

FOR INSTALLATION ON LINUX WORKSTATION OR LINUX SERVER:

REQUIREMENTS:
http://support.kaspersky.com/kes10linux#requirements

DOWNLOAD RPMX86:
https://products.s.kaspersky-labs.com/multilanguage/endpoints/kesl/kesl-10.0.0-3458.i386.rpm
DOWNLOAD RPMX64:
https://products.s.kaspersky-labs.com/multilanguage/endpoints/kesl/kesl-10.0.0-3458.i386.rpm
DOWNLOAD DEBX86:
https://products.s.kaspersky-labs.com/multilanguage/endpoints/kesl/kesl_10.0.0-3458_i386.deb
DOWNLOAD DEBX64:
https://products.s.kaspersky-labs.com/multilanguage/endpoints/kesl/kesl_10.0.0-3458_amd64.deb



AFTER EXECUTE "HOW TO INSTALL" PROCEDURE FOLLOWING THIS PROCEDURE: 
PAGE 23
Installing the Kaspersky Endpoint Security package
Updating Kaspersky Endpoint Security settings

SOURCE: https://docs.s.kaspersky-labs.com/english/kes10_linux_adminguide_en.pdf


HOW TO INSTALL A CUSTOM INSTALLATION:
https://support.kaspersky.com/5110

HOW TO INSTALL BY KSC:

https://support.kaspersky.com/7626


terça-feira, 9 de maio de 2017

HOW TO ENABLE PERMISSION FOR SUBFOLDERS

root@rocket-chat:/var/www# chmod +x /var/www/html/tmve/ -R
root@rocket-chat:/var/www# chown www-data:www-data  /var/www/html/tmve/ -R

quarta-feira, 3 de maio de 2017

HOW TO INSTALL LINUX PHPBB SERVER (FORUM SERVER) ON YOUR UBUNTU SERVER 16.04.2 LTS

install linux server with the lamp feature
after that
sudo apt-get install php-xml
service apache2 restart
wget https://www.phpbb.com/files/release/phpBB-3.2.0.zip
unzip phpBB-3.2.0.zip
cp -r phpBB3  /var/www/html
chown www-data:www-data -R /var/www/html/phpBB3
chmod 775 -R /var/www/html/phpBB3
mysql -uroot -p
create database phpbb;
exit

http://<your_ip>/phpBB3/install/app.php

check the requirements, if you have a message:
Directory is not writable

sudo usermod -aG www-data <your_user>
sudo chown -R www-data:www-data /var/www/html/
cd /var/www/html/phpBB3
sudo chmod 660 images/avatars/upload/ config.php
sudo chmod 770 store/ cache/ files/

After those procedures will work file the requirements and you carry on the steps about the installation and configuration.

So, now you must rename or dell the folder install inside of /var/www/html/phpBB3/
in my case  was renamed folder phpBB3 for phpbb and inside of folder: "/var/www/html/phpbb" was renamed the folder install for installl.

After that was possible to see everthing about the forum phpbb.

In some cases for attached files was necessary add this configuration about extension GD on my php server:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0-gd