Categories
linux

Menu Firefox LXDE

cat /home/user/.local/share/applications/firefox.desktop

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Firefox
Name[en_US]=Firefox
Exec=/home/user/firefox/firefox
Comment[en_US]=Firefox web browser
StartupNotify=false
Icon=/home/user/firefox/browser/icons/mozicon128.png

Categories
linux pemasangan perisian

JRE 1.6 pada Debian 9 32-bit

Download JRE 1.6 dari https://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html

Pasang JRE 1.6


mkdir /usr/lib/jvm
cp /home/user/jre-6u45-linux-i586.bin .
./jre-6u45-linux-i586.bin
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_45/bin/java" 1

Download firefox 45.9.0esr dari https://ftp.mozilla.org/pub/firefox/releases/45.9.0esr/linux-i686/ dan ekstrak ke home folder user

Link plugin jre ke folder plugin firefox
mkdir .mozilla/plugins
ln -s /usr/lib/jvm/jre1.6.0_45/lib/i386/libnpjp2.so /home/user/.mozilla/plugins/

Categories
moodle

Cara Pasang Moodle 3.6 Pada Debian 9

Pasang pakej-pakej yang diperlukan

apt install php7.0 libapache2-mod-php7.0 php7.0-mysql php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline apache2 apache2-utils mysql-server php7.0-curl php7.0-gd php7.0-intl php7.0-zip php7.0-xml

Sediakan database

Dalam tag [server] /etc/mysql/mariadb.conf.d/50-server.cnf, tambahkan

innodb_large_prefix = ON

Simpan dan restart mariadb

systemctl restart mariadb

mysql -u root -p
create database moodle;
update mysql.user set plugin = 'mysql_native_password' where User='root';
SET GLOBAL innodb_file_format = barracuda;
\q

Pasang moodle

cd /var/www
tar -xvf /home/user1/moodle-latest-36.tgz
chown www-data /var/www/moodle
chown -R root /var/www/moodle
chmod -R 0755 /var/www/moodle
chown www-data /var/www/moodle
cd moodle/admin/cli/
sudo -u www-data /usr/bin/php install.php

Contoh setting apache2

# cat /etc/apache2/sites-available/000-default.conf

# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

ServerAdmin webmaster@localhost
DocumentRoot /var/www/moodle
Alias /moodle /var/www/moodle

order allow,deny
allow from all

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Categories
linux

GPG error owncloud

Pernah dapat error ni?

All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.owncloud.org/download/repositories/production/Debian_9.0 Release: The following signatures were invalid: EXPKEYSIG 47AE7F72479BC94B ownCloud build service
W: Failed to fetch http://download.owncloud.org/download/repositories/production/Debian_9.0/Release.gpg The following signatures were invalid: EXPKEYSIG 47AE7F72479BC94B ownCloud build service
W: Some index files failed to download. They have been ignored, or old ones used instead.

Senang je

wget -nv https://download.owncloud.org/download/repositories/production/Debian_9.0/Release.key -O Release.key
2019-03-20 00:40:43 URL:https://download.owncloud.org/download/repositories/production/Debian_9.0/Release.key [4485/4485] -> "Release.key" [1]

apt-key add - < Release.key OK

Categories
zimbra

Senaraikan member CoS Zimbra

Dapatkan ID CoS

zmprov gac -v | grep -e cn: -e zimbraId

Senaraikan account dengan CoS tersebut

zmprov sa zimbraCOSId=e00428a1-0c00-11d9-836a-000d93afea2a

Categories
perisian

cPanel vs zPanel/Sentora

Kos

cPanel: minimum 15 USD sebulan
Sentora: tiada bayaran bulanan

Sokongan sistem pengoperasian

cPanel: CentOS, CloudLinux, or RHEL 6 & 7, Amazon Linux (semua versi)
Sentora: CentOS 6 & 7, Ubuntu 12.04 & 14.04, Debian 7 & 8

Pilihan sokongan teknikal

Kedua-duanya memberikan sokongan melalui forum tetapi cPanel turut memberikan sokongan melalui email melalui sistem tiket kepada yang melanggan lesen cPanel.

Categories
perisian

Web Hosting Control Panel

Apakah web hosting control panel?

web hosting control panel adalah aplikasi yang membantu penyedia servis web dan pelanggan servis mereka menjalankan kerja-kerja berkaitan laman web dengan lebih mudah

Siapa yang memerlukan web hosting control panel?

System admin syarikat web hosting dan pelanggan syarikat tersebut.

Bagaimana memasang web hosting control panel?

Secara minimum, anda mestilah mempunyai public IP, server untuk hos servis web dan panel web hosting. Kemudian, bergantung kepada fitur panel tersebut, proses pemasangan dari semudah menjalankan baris arahan hinggalah ke agak kompleks.

Berapakah kos web hosting control panel?

Kos adalah bergantung kepada pengeluar perisian berkenaan. Ada yang mengecas 10 USD sebulan dan ada yang boleh didapatkan tanpa kos.

Categories
perisian

Web Hosting

Web hosting adalah menyediakan servis laman web.

Syarikat web hosting menyediakan servis yang membantu pengguna untuk membolehkan mereka mempunyai laman web sendiri.

Dengan ini, mereka tidak perlu bersusah-payah membeli perkakasan yang diperlukan seperti server, peralatan rangkaian, kos selenggaraan perkakasan server dan rangkaian serta yuran bulanan boradband.

Categories
pemasangan zimbra

Pasang SSL GoDaddy pada Zimbra 8

  1. Muatnaik fail ssl yang diperlukan ke server zimbra

    cp domain.key commercial.key
    cp intermediate/gd_bundle-g2-g1.crt commercial_ca.crt
    scp Certificate/numbers-digits.crt commercial.key commercial_ca.crt zimbra-IP:/tmp

  2. Periksa ssl

    su - zimbra
    /opt/zimbra/bin/zmcertmgr verifycrt comm /opt/zimbra/ssl/zimbra/commercial/commercial.key /tmp/numbers-digits.crt /tmp/commercial_ca.crt

  3. Pasangkan ssl

    /opt/zimbra/bin/zmcertmgr deploycrt comm /tmp/number-digits.crt /tmp/commercial_ca.crt

  4. Mulakan semula zimbra
    zmcontrol restart
Categories
backup

Pasang bacula-web pada Ubuntu 16.04

  1. Muaturun bacula-web
    curl -O http://www.bacula-web.org/files/bacula-web.org/downloads/bacula-web-latest.tgz
    sudo mkdir -v /var/www/bacula-web

  2. Salin dan ekstrak ke /var/www
    cp /home/user1/bacula-web-latest.tgz .
    sudo cp /home/user1/bacula-web-latest.tgz .
    tar -xzf bacula-web-latest.tgz -C /var/www/bacula-web
    sudo tar -xzf bacula-web-latest.tgz -C /var/www/bacula-web
    chown -Rv www-data: /var/www/bacula-web
    sudo chown -Rv www-data: /var/www/bacula-web
    sudo chmod -Rv u=rx,g=rx,o=rx /var/www/bacula-web
    cd bacula-web/
    cd application/config/
    sudo cp config.php.sample config.php

  3. Edit setting nama dan path fail sqlite pada /var/www/bacula-web/application/config/config.php
    $config[0]['label'] = 'Main Backup Server';
    $config[0]['db_type'] = 'sqlite';
    $config[0]['db_name'] = '/var/lib/bacula/bacula.db';

  4. Edit /etc/php/7.0/apache2/php.ini dan set timezone
    date.timezone = Asia/Kuala_Lumpur

  5. Edit /etc/apache2/sites-available/000-default.conf dan tambah berikut sebelum “</VirtualHost>”
    <Directory /var/www/html/bacula-web>
     AllowOverride All
    </Directory>

  6. Ubah permission cache dan sqlite
    sudo chmod 755 application/view/cache/
    sudo chown www-data /var/lib/bacula/bacula.db
    sudo chown www-data /var/lib/bacula
    sudo service apache2 reload

  7. Siap. Anda sekarang boleh mengakses bacula-web pada IP/bacula-web/