Tested on ubuntu 12.04
COMPONENTS INSTALED:
apt-get install openjdk-6-jdk openjdk-6-jre
apt-get install default-jre
apt-get install postgresql-8.4 postgresql-contrib-8.4 postgresql-doc
apt-get install syslog-ng
wget http://downloads.sourceforge.net/project/cyberoam-iview/iVew-Beta/iView-0.127/iView-linux-0.127-Setup.bin
chmod 755 iView-linux-0.127-Setup.bin
CONFIGURING SYSLOG:
vi /etc/syslog-ng/syslog-ng.conf
options { long_hostnames(off);sync(0);
stats(43200); dns_cache(yes); use_fqdn(no);
keep_hostname(yes); use_dns(yes);
};
source gateway {unix-stream("/dev/log");
internal();udp(ip(0.0.0.0) port(514));
};
source tcpgateway {unix-stream("/dev/log");internal();
tcp(ip(0.0.0.0) port(514) max_connections(1000));
};
destination hosts { file("/var/log/syslog-ng/$HOST/$FACILITY"
owner(root) group(root) perm(0600) dir_perm(0700)create_dirs(yes));
};
log { source(gateway); destination(hosts);
};
log { source(tcpgateway); destination(hosts);
};
/etc/init.d/syslog-ng restart
NECESSARY CHANGES :
ln -s /etc/init.d/postgresql /etc/init.d/postgresql-8.4
ln -s /var/lib/postgresql/8.4/main /var/lib/postgresql/8.4/main/data
mkdir /iviewdb/
chown -R postgres.postgres /iviewdb
su - postgres
/usr/lib/postgresql/8.4/bin/initdb -D /iviewdb
vi /etc/postgresql/8.4/main/pg_hba.conf
Database administrative login by UNIX sockets
local all postgres trust
TYPE DATABASE USER CIDR-ADDRESS METHOD
“local” is for Unix domain socket connections only
local all all trust
IPv4 local connections:
host all all 127.0.0.1/32 trust
IPv6 local connections:
host all all ::1/128 trust
/etc/init.d/postgresql restart
./iView-linux-0.127-Setup.bin
Set the patch of folder to install iView
: /var/iview/
Set the patch of folder to save the logs of iView
: /var/iview/iviewarchived/
Path values
IVIEW_HOME:/var/iview/
ARCHIVE_HOME: /var/iview/iviewarchived/
Checking kernel version compatibility …Done
Enter Postgresql 8.4 Home directory path
(Absolute path of directory that contains PostgreSQL data folder)
:/var/lib/postgresql/8.4/main/
Checking PG_version (PG 8.4 is required)...Done
searching psql client…Done
Enter JAVA 1.5 Home path
:/usr/lib/jvm/java-6-openjdk/
Setting up JAVA for Cyberoam-iView (jdk 1.5 or greater is required)Java…Done
Creating IVIEW_HOME directory…Done
Copying GUI files…Done
Copying system files…Done
Updating PostgreSQL database parameters according to hardware configuration…Done
Setup starting service postgre
./iview_linux_installer/setup: line 373: /etc/init.d/postgresql-8.4: No such file or directory
please wait creating database
25%
50%
75%
100%...Done
Updating Cyberoam-iView parameters in database…Done
Set password padrão do Cyberoam-iView administrator é identify by “admin”
Administrator Username is: admin
Specify Password:
Re-enter Password:
Administrator’s Email id
<MAIL>@DOMAIN
Registering Cyberoam-iView as a service…Done
Starting iviewd service
/etc/init.d/iviewd status
iView Web application is Running
iView Syslog server is Running
For access use: http://hostnamyip:8000
source: http://billeter.blogspot.com.br/2011/10/cyberoam-iview-debian-6.html?showComment=1414080455224#c342097946736502625
http://techsupport1978.wordpress.com/2014/01/01/cyberoam-iview-open-source-logging-and-reporting-solution/
segunda-feira, 27 de outubro de 2014
quinta-feira, 23 de outubro de 2014
HOW TO INSTALL NETFRAMEWORK 3.5 ON WINDOWS SERVER 2012 R2 (POST 15)
1. Execute the command: dism /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess
After :
dism /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess
Obs.: on the field "Source:d:" set the CD of installation on windows
when the procedure finish 100%
source: http://www.danielclasson.com/install-net-framework-35-server-2012/
2. Now, go to add and remove features of windows click inconfirmation and especify the path of cd mounted, with the file sxs “d:\sources\sxs”
wait the installation process and finish.
domingo, 19 de outubro de 2014
HOW TO SOLVED SMARTPHONE DO NOT LOAD OK LINUX - DEBIAN WHEEZY (POST 14)
Install this packet:
sudo apt-get install libmtp-dev fuse libmtp9 pkg-config libfuse-dev libglib2.0-dev libmad0-dev libid3tag0-dev dh-make autotools-de
sudo update
tar zxf mtpfs-1.1.tar.gz cd mtpfs-1.1 dh_make -s -f ../mtpfs-1.1.tar.gz
fakeroot debian/rules binary
cd .. sudo dpkg -i mtpfs_1.1-1_amd64.deb
sudo usermod -aG fuse $USERobs.; name of yours system
create a folder for mount a device, normaly i make a folder on /mnt/myPhone
Now execute this command with the device connect on your system:
mkdir /mnt/myPhone
chmod a+rwx /mnt/myPhone
mtpfs myPhone # for mount your deviceWhen you and umount the device:
fusermount -u myPhoneif you wan remove :
sudo dpkg --purge mtpfsy/
INSTALANDO FLASH EM FIREFOX/ICEWEASEL EM 3 PASSOS (POST 13)
Download pacote fash: http://get.adobe.com/flashplayer/
Descompacte o arquivo .tar.gz :
Após descompactar mova o arquivo para o diretório /usr/lib/mozilla/plugins/
Descompacte o arquivo .tar.gz :
tar xzvf install_flash_player_11_linux.i386.tar.gz
OU
tar xzvf install_flash_player_11_linux.x86_64.tar.gz
Após descompactar mova o arquivo para o diretório /usr/lib/mozilla/plugins/
cp libflashplayer.so /usr/lib/mozilla/plugins/
Habilite o plugin no navegador teste, fechando o navegado e abra novamente.
Parachrome acessar a url colocando esses parâmetros
chrome://plugins e habilitar o componente do flash que aparecer.
Para firefox, acessar as opções de plugin e habilitar.
quinta-feira, 16 de outubro de 2014
HOW TO CONFIGURE ABNT2 KEYBOARD ON LINUX (POST 12)
For to enable ABNT2 feature on keyboard for brazil or brazilian text, on Linux Debian, you must do:
# setxkbmap -model pc105 -layout br -variant abnt2
HOW TO MANAGER IPHONE / IPOD ON LINUX (POST 11)
After many reseach i found a way easy to load the device and manager without the itunes in ubuntu/debian and kalilinux
1 - Do the backup of your iphone;
2 - Connect your device in usb
3 - Execute :
aptitude install libimobiledevice-utils gvfs-backends gvfs-bin gvfs-fuse
4 - Add the users on grupo :
usermod -aG fuse username
5 - When finish wit the device connect on the computer see if device was mount automaticaly:
/home/username/.gvfs/iPhone of username
start the rhythmbox, if you do not have him installed, do it:
aptitude install rhythmbox rhythmbox-plugins
Now open the rhythmbox, and you can see the device loading and will be avaliable add and remove music by rhythmbox interface.
source:
https://wiki.debian.org/iPhone#endConfigTwo
https://wiki.debian.org/iPhone#mountScript
https://wiki.debian.org/iPhone
1 - Do the backup of your iphone;
2 - Connect your device in usb
3 - Execute :
aptitude install libimobiledevice-utils gvfs-backends gvfs-bin gvfs-fuse
4 - Add the users on grupo :
usermod -aG fuse username
5 - When finish wit the device connect on the computer see if device was mount automaticaly:
/home/username/.gvfs/iPhone of username
start the rhythmbox, if you do not have him installed, do it:
aptitude install rhythmbox rhythmbox-plugins
Now open the rhythmbox, and you can see the device loading and will be avaliable add and remove music by rhythmbox interface.
source:
https://wiki.debian.org/iPhone#endConfigTwo
https://wiki.debian.org/iPhone#mountScript
https://wiki.debian.org/iPhone
sexta-feira, 10 de outubro de 2014
HOW TO REMOVING PPA MANUAL ON LINUX (POST 10)
Geralmente mesmo recomendo os endereços dos repositórios em :
/etc/apt/sources.list
A distribuição continua apresentando erros de update, dessa forma faça:
M1
Vamos supor que tenha instalado um determinado PPA.
Para eliminar este PPA precisamos usar o comando:
sudo apt-add-repository -r ppa:EndereçoDoPPA
Troque ppa:EndereçoDoPPA pelo endereço do PPA que deseja remover, por exemplo, quero remover o PPA do Mozilla "ubuntu-mozilla-security/ppa", então o comando ficaria assim:
sudo apt-add-repository -r ppa:ubuntu-mozilla-security/ppa
Então atualizar seus repositórios:
sudo apt-get update
M2
Este método consiste em utilizar o "ppa-purge" um utilitário de linha de comando para a remoção de PPAs.
Para instalar o ppa-purge, abra o terminal e execute o comando:
sudo apt-get install ppa-purge
Em seguida, remova qualquer PPA com o seguinte comando:
sudo ppa-purge ppa:EndereçoDoPPA
/etc/apt/sources.list
A distribuição continua apresentando erros de update, dessa forma faça:
M1
Vamos supor que tenha instalado um determinado PPA.
Para eliminar este PPA precisamos usar o comando:
sudo apt-add-repository -r ppa:EndereçoDoPPA
Troque ppa:EndereçoDoPPA pelo endereço do PPA que deseja remover, por exemplo, quero remover o PPA do Mozilla "ubuntu-mozilla-security/ppa", então o comando ficaria assim:
sudo apt-add-repository -r ppa:ubuntu-mozilla-security/ppa
Então atualizar seus repositórios:
sudo apt-get update
M2
Este método consiste em utilizar o "ppa-purge" um utilitário de linha de comando para a remoção de PPAs.
Para instalar o ppa-purge, abra o terminal e execute o comando:
sudo apt-get install ppa-purge
Em seguida, remova qualquer PPA com o seguinte comando:
sudo ppa-purge ppa:EndereçoDoPPA
As vezes não resolve só fazer esse procedimento, as distro armazena cache que também deve ser limpo em:
/etc/apt/sources.list.d/ls
irá listar todos os programas, veja o que está dando erro quando faz atualualização e remova o arquivo com o mesmo nome, por exemplo:
apt-get update
http://ppa.launchpad.net/jmarsden/lubuntu/ubuntu/dists/wheezy/main/source/Sources: 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/jtaylor/keepass/ubuntu/dists/wheezy/main/source/Sources: 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Couldn't rebuild package cache
root@debian:/etc/apt/sources.list.d# ls
dropbox.list google-chrome.list jmarsden-lubuntu-wheezy.list jtaylor-keepass-wheezy.list mupen64.list webupd8team-java.list
dropbox.list.save google-chrome.list.save jmarsden-lubuntu-wheezy.list.save jtaylor-keepass-wheezy.list.save mupen64.list.save webupd8team-java.list.save
root@debian:/etc/apt/sources.list.d# rm jmarsden-lubuntu-wheezy.list
root@debian:/etc/apt/sources.list.d# rm jmarsden-lubuntu-wheezy.list.save
root@debian:/etc/apt/sources.list.d# rm jtaylor-keepass-wheezy.list
root@debian:/etc/apt/sources.list.d# rm jtaylor-keepass-wheezy.list.save
HOW TO DEFINE BACULA - POOL TYPE COPY (POST 9)
Pool {
Name =monthly
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Use Duration = 3 days
Volume Retention = 362 days # one year
Maximum Volume Bytes = 500MB # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
Label Format = "copy-${NumVols}"
Next pool = copy
Storage = File2
}
Pool {
Name = Copy
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Use Duration = 3 days
Volume Retention = 362 days # one year
Maximum Volume Bytes = 500MB # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
Label Format = "copy-${NumVols}"
Storage = File2
}
Schedule {
Name "schedule_copy"
Run = Full Pool=Daily friday at 20:12
Job {
Name =monthly
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Use Duration = 3 days
Volume Retention = 362 days # one year
Maximum Volume Bytes = 500MB # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
Label Format = "copy-${NumVols}"
Next pool = copy
Storage = File2
}
Pool {
Name = Copy
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Use Duration = 3 days
Volume Retention = 362 days # one year
Maximum Volume Bytes = 500MB # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
Label Format = "copy-${NumVols}"
Storage = File2
}
Schedule {
Name "schedule_copy"
Run = Full Pool=Daily friday at 20:12
Run = Full Pool=Week friday at 20:12
Run = Full Pool=Monthlyl friday at 20:12
}
Run = Full Pool=Monthlyl friday at 20:12
}
Name = "BackupCopy"
Type = Copy # ou Migration
JobDefs = "DefaultJob"
Client = debian-fd
FileSet = "bacula_director_set"
Pool = Daily
Storage = File
Selection Type = PoolUncopiedJobs
Schedule = schedule_copy
Schedule = schedule_copy
}
}
domingo, 5 de outubro de 2014
HOW TO SEND E-MAIL FROM BACULA USING POSTFIX WITH GMAIL ON LINUX SERVER (POST 8)
vi /etc/postfix/main.cf
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
relayhost = [smtp.gmail.com]:587
smtp_use_tls=yes
vi /etc/postfix/sasl_passwd and add line:
[smtp.gmail.com]:587 user@gmail.com:senha
postmap /etc/postfix/sasl_passwd
postfix reload
to see logs: /var/log/mail.log,
and to test send mail use:
echo "test mail from postfix" | mail -s "test mail from postfix" test@test.com
Tested on ubuntu server
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
relayhost = [smtp.gmail.com]:587
smtp_use_tls=yes
vi /etc/postfix/sasl_passwd and add line:
[smtp.gmail.com]:587 user@gmail.com:senha
postmap /etc/postfix/sasl_passwd
postfix reload
to see logs: /var/log/mail.log,
and to test send mail use:
echo "test mail from postfix" | mail -s "test mail from postfix" test@test.com
Tested on ubuntu server
sexta-feira, 3 de outubro de 2014
POOL GFS MODEL OF BACULA COMMUNITY (POST 7)
list media
estimate listing
Pool {
Name = Daily
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Use Duration = 20 hours
Volume Retention = 6 days # one year
Maximum Volume Bytes = 4GB # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
Label Format = "daily-${NumVols}"
}
Pool {
Name = week
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Use Duration = 3 days
Volume Retention = 27 days # mensal
Maximum Volume Bytes = 4GB # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
Label Format = "week-${NumVols}"
}
Pool {
Name = monthly
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Use Duration = 3 days
Volume Retention = 362 days # one year
Maximum Volume Bytes = 4GB # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
Label Format = "monthly-${NumVols}"
}
Pool {
Name = monthly2
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Use Duration = 3 days
Volume Retention = 57 days # mensal
Maximum Volume Bytes = 4GB # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
Label Format = "monthly2-${NumVols}"
}
Schedule {
Name = "agenda_gfs"
Run = Incremental Pool=Diaria monday-thursday at 20:00
Run = Full Pool=week friday at 20:00
Run = Full Pool=monthly lastday at 20:00 # just work on bacula 7.x version
}
estimate listing
Pool {
Name = Daily
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Use Duration = 20 hours
Volume Retention = 6 days # one year
Maximum Volume Bytes = 4GB # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
Label Format = "daily-${NumVols}"
}
Pool {
Name = week
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Use Duration = 3 days
Volume Retention = 27 days # mensal
Maximum Volume Bytes = 4GB # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
Label Format = "week-${NumVols}"
}
Pool {
Name = monthly
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Use Duration = 3 days
Volume Retention = 362 days # one year
Maximum Volume Bytes = 4GB # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
Label Format = "monthly-${NumVols}"
}
Pool {
Name = monthly2
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Use Duration = 3 days
Volume Retention = 57 days # mensal
Maximum Volume Bytes = 4GB # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
Label Format = "monthly2-${NumVols}"
}
Schedule {
Name = "agenda_gfs"
Run = Incremental Pool=Diaria monday-thursday at 20:00
Run = Full Pool=week friday at 20:00
Run = Full Pool=monthly lastday at 20:00 # just work on bacula 7.x version
}
Assinar:
Postagens (Atom)