tag:blogger.com,1999:blog-133820472024-03-04T14:23:12.016+07:00kafemisShare Your KnowledgementAsnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.comBlogger127125tag:blogger.com,1999:blog-13382047.post-90916471264036812412024-03-04T14:22:00.004+07:002024-03-04T14:22:23.144+07:00 Step by Step How to Install and Configure Work Folder in Windows
Server 2019
<!--[if !supportLists]-->1. 1. <!--[endif]-->Add
features work folders at server
<!--[if !supportLists]-->2. 2. <!--[endif]-->Add
features IIS
<!--[if !supportLists]-->3. 3. <!--[endif]-->Setup
Work Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-15217280158679084962022-04-05T09:00:00.006+07:002022-04-05T09:00:41.844+07:00rescanning New Virtual Disk Vmware on Ubuntu without reboot 1. check host bus ls /sys/class/scsi_host2. scanning bus echo "- - -" > /sys/class/scsi_host/host#/scan # number of bus yang terlihat di nomor 1 thank,Asnan Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-43900985284545403302021-04-29T14:47:00.000+07:002021-04-29T14:47:12.620+07:00LDAP Over SSL Windows 2019 using selfcertificate 1. Create self certificate using powershell New-SelfSignedCertificate -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.1") -KeyUsage KeyEncipherment,DataEncipherment -DnsName "*.xxx.co.id" -notAfter $([datetime]::now.AddYears(10)) -CertStoreLocation cert:\localmachine\my -FriendlyName LDAPS2. open certificate console "certificate (local computer)" Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-30682671369642082022021-04-08T16:44:00.006+07:002021-04-08T16:44:47.289+07:00disable default share C$Create the AutoShareServer and AutoShareWks registry values and set to 0running as following; Click Start, click Run, type regedit, and then press ENTER.Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters Create AutoShareServer and AutoShareWks DWORD values in the LanmanServer\Parameters subkey are Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-81012238512030933852020-04-28T14:18:00.002+07:002022-05-13T16:23:16.464+07:00Extend LVM Disk at Ubuntuhttps://www.tecmint.com/extend-and-reduce-lvms-in-linux/https://packetpushers.net/ubuntu-extend-your-default-lvm-space/ Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-58762776595269058652020-04-28T13:53:00.000+07:002020-04-28T13:53:02.984+07:00Reducing an LVM2 Swap Logical Volume
Disable swapping for the associated logical volume:
# swapoff -v /dev/VolGroup00/LogVol01
Reduce the LVM2 logical volume by 512 MB:
# lvreduce /dev/VolGroup00/LogVol01 -L -512M
Format the new swap space:
# mkswap /dev/VolGroup00/LogVol01
Activate swap on the logical volume:
# swapon -v /dev/VolGroup00/LogVol01
To test if the swap logical volume was Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-10090569074419563982020-03-23T10:48:00.005+07:002020-03-23T10:48:48.302+07:00webmin nginx 500 - error - perl execution failedInstall the below;
sudo apt-get install libwww-perl
Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-18560302148848913592018-10-12T13:58:00.000+07:002019-05-27T14:22:34.998+07:00Resize HDD virtual machine at ubuntu 1. sudo parted
2. resizepart numberdisk end disk (contoh resizepart 1 300GB)
3. go to webmin, edit phisycal volume "resize to match device"
4. go to logical volume click "use all free VG space" Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-67710719148824724732018-10-11T09:24:00.001+07:002018-10-11T09:24:16.718+07:00Safest way to clean up boot partition - Ubuntu
Case I: if /boot is not 100% full and apt is working
1. Check the current kernel version
$ uname -r
It will shows the list like below:
3.19.0-64-generic
2. Remove the OLD kernels
2.a. List the old kernel
$ sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r`
You will get the list of images something like below:
linux-image-3.19.0-25-generic
Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-52887278815582087662018-09-13T15:46:00.000+07:002018-09-13T16:04:16.956+07:00HA Mysql and Share Storage on Ubuntu 18.04
Cluster Nodes:
node1. 192.168.0.11
node2. 192.168.0.12
iSCSI Storage:
server 192.168.0.20
Prepare Iscsi Storage to connect all node
see http://kafemis.blogspot.com/2011/01/setting-koneksi-ke-hp-lefthand-dengan.html
Setup Cluster Nodes:
Go to all of your nodes and check whether the new disk is visible or not. In my case, /dev/sdb is the new disk.
# fdisk -l | grep -i sdAsnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-49845128597016238472018-07-16T13:43:00.000+07:002019-09-24T15:43:51.463+07:00Setup Port Forwarding di Ubuntu 16.04Setup Port Forwarding di Ubuntu
1. sudo ufw enable (enalbe firewall)
2. Enabling the Default Policies
sudo ufw default deny incoming (Default incoming policy changed to 'deny')
sudo ufw default allow outgoing (Default outgoing policy changed to 'allow')
3. sudo ufw allow ssh (Enabling SSH Connections)
4. sudo ufw allow 80 (Enabling HTTP)
5. Sudo ufw allow 443Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-50110392416161284592018-02-27T10:14:00.002+07:002018-02-27T10:14:24.527+07:00Document Server and ownCloud Docker installation
Requirements
The latest version of Docker (can be downloaded here: https://docs.docker.com/engine/installation/)
Docker compose (can be downloaded here: https://docs.docker.com/compose/install/)
Installation
Get the latest version of this repository running the command:
git clone --recursive https://github.com/ONLYOFFICE/docker-onlyoffice-owncloud
cd docker-onlyoffice-owncloud
git submoduleAsnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-19455468164666797602018-02-13T09:23:00.004+07:002018-02-13T09:23:51.328+07:00Remove Old Kernels via DPKG
If your /boot partition has already full while doing an upgrade or package install, and apt (the script above uses apt)
can’t remove packages due to broken dependency, here you can manually
find out the old kernel packages and remove them via DPKG:
1. Run command to check out current kernel and DON’T REMOVE it:
uname -r
2. List all kernels excluding the current booted:
dpkg -l | tail -n +6Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-29953130466572363732017-08-23T16:14:00.002+07:002022-03-24T14:46:40.246+07:00How to fix DRBD recovery from split brain
Step 1: Start drbd manually on both nodes
Step 2: Define one node as secondary and discard data on this
drbdadm secondary all
drbdadm disconnect all
drbdadm -- --discard-my-data connect all
Step 3: Define anoher node as primary and connect
drbdadm primary all
drbdadm disconnect all
drbdadm connect all
Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-42553034581325753012017-08-22T10:47:00.002+07:002017-08-22T10:47:34.500+07:00Change Mysql Data Directory
Stop MySQL using the following command:
sudo /etc/init.d/mysql stop
Copy the existing data directory (default located in /var/lib/mysql) using the following command:
sudo cp -R -p /var/lib/mysql /newpath
edit the MySQL configuration file with the following command:
sudo gedit /etc/mysql/my.cnf # or perhaps /etc/mysql/mysql.conf.d/mysqld.cnf
Look for the entry for datadir, and change Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-83733729543686948602017-08-18T13:52:00.003+07:002022-03-24T14:46:15.262+07:00Configuration DRBD1. install DRBD > sudo apt install drbd8-utils
2.
To configure drbd, on the first host edit /etc/drbd.conf:
global { usage-count no; }
common { syncer { rate 100M; } }
resource r0 {
protocol C;
startup {
wfc-timeout 15;
degr-wfc-timeout 60;
}
net {
cram-hmac-alg sha1;
Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-88171902393898970702017-08-15T13:38:00.001+07:002017-08-25T13:55:09.206+07:00High Availability with Heartbeat on Unbuntu1. make sure all server/node can comunicate
2. install heartbeat > sudo apt-get install heartbeat
3. Create ha.cf File, On both servers,
sudo vi /etc/ha.d/ha.cf
keepalive 2 warntime 5 deadtime 15 initdead 90 udpport 694 auto_failback on ucast eth0 172.16.10.135 #for node2 change ip node1 logfile /var/log/ha-log&Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-45842760401223502302017-08-15T09:35:00.003+07:002017-08-15T09:35:50.448+07:00GlusterFS on Ubuntu Servers 1. make sure all server/node can comucicate2. Install server (do for 2 node) > sudo apt-get install glusterfs-server3. sudo gluster peer probe eoblasxx peer probe: success 4. This means that the peering was successful. We can check that the nodes are communicating at any time by typing: sudo gluster peer status Number of Peers: 1 Hostname: Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-75013920118099969622017-02-21T16:16:00.001+07:002017-02-21T16:16:12.918+07:00Exchange hub transport “Mail.que” file large in size
Open exchange management shell and run “Get-TransportServer ” HUB01″ |fl
Here, look for PipelineTracingEnabled. This should be set to False. If not, run
Set-TransportServer HUB01 -PipelineTracingEnabled $False
Now run “Get-TransportConfig” and ensure that
MaxDumpsterSizePerStorageGroup is in MB’s and not GB’s
MaxDumpsterTime : 7.00:00:00
If not, run
Set-TransportConfig Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-20416127995310213562017-01-20T15:17:00.001+07:002017-01-20T15:17:27.849+07:00Verbose status on welcome sceen
It enabled Verbose Status Messages in Windows Vista/7/2008
Open regedit
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\
CurrentVersion\\Policies\\System"
Create DWORD VerboseStatus (or DWORD-32 for 64bit OS)
Change Value to 1
Reboot
Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-5083603674091493232016-12-19T09:04:00.001+07:002016-12-19T09:04:54.552+07:00Resest CSC file
Open up registry editor (WARNING: Only for Advanced Users)
Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc
Add a new key (folder) called Parameters
Under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc\Parameters, add
a new DWORD called FormatDatabase and set its value to 1
Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-77874933925452504822016-11-25T13:46:00.002+07:002016-11-25T14:15:41.390+07:00Create croj job at VMware Esxi1. chmod +w /var/spool/cron/crontabs/root
2. vi /var/spool/cron/crontabs/root
3. chmod -w /var/spool/cron/crontabs/root
4. Tambahkan cronjob, misalnya
20 1 26 11 * shutdown -h now #jam dalam format UTC (beda +7 jam dengan WIB)
5. chmod +w /var/spool/cron/crontabs/root
6. Run the command "cat /var/run/crond.pid" #catat nomor pid
7. Run the command "killAsnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-5581394162493909662016-08-19T16:36:00.001+07:002016-11-25T13:47:31.978+07:00Windows NFS server to Unix nfs clientAsnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-66652366355742429642016-08-02T09:56:00.000+07:002016-08-02T09:56:08.564+07:00Force online file
Locate and click the following registry subkey:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\NetCache
Click Edit, point to New, and then click DWORD Value.
Type SilentForcedAutoReconnect, and then press ENTER to name the value.
Double-click SilentForcedAutoReconnect.
In the Value data box, type 1, and then click OK.
Asnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0tag:blogger.com,1999:blog-13382047.post-70178548496222787972016-05-16T09:09:00.002+07:002016-05-16T09:09:57.790+07:00Create new Swap file
The quicker way of getting the same file is by using the fallocate program. This command creates a file of a preallocated size instantly, without actually having to write dummy contents.
We can create a 4 Gigabyte file by typing:
sudo fallocate -l 4G /swapfile
The prompt will be returned to you almost immediately. We can verify that the correct amount of space was reserved by typing:
lsAsnan Rifaihttp://www.blogger.com/profile/10071530228305150515noreply@blogger.com0