March 28, 2020
Last year, service providers announced that their public DNS services started supporting DNS-over-TLS. This new feature is different from the DNS-over-HTTPS API. Bacause BIND doesn’t have direct DNS-over-TLS support, I have added DNS-over-TLS capability to my BIND DNS Caching server with the help of STUNNEL.
(more…)
March 28, 2016
We can rescan hard drives after resize a virtual disk for a virtual machine without having to reboot the virtual machine. To do that; trigger a re-sync of the kernel for all the SCSI devices unless you know exactly which one it is connected to;
ls /sys/class/scsi_device/
echo 1 > /sys/class/scsi_device/0\:0\:0\:0/device/rescan
echo 1 > /sys/class/scsi_device/2\:0\:0\:0/device/rescan
echo 1 > /sys/class/scsi_device/2\:0\:1\:0/device/rescan
January 6, 2015
The increasing availability of High-grade and budget friendly VPS (virtual private server) services accelerated personal projects. Raspberry PI and DigitalOcean VPS helped me alot while getting my VPN Gateway (VPN Router) project done. It works in site-to-site VPN model and we are going to be able to tunnel all our LAN traffic pass trough our VPS. In this model, we are going to be able to use remote VPS‘s Internet connection.
Paid/Free VPN service providers provide very slow Internet connection in practice without any reason. By using this project, I have pushed my daily Internet traffic trough Europe based VPS servers to Turkey without feeling any slowness, for many years. According to my personal experience, below 100ms packet latency doesn’t noticeably effect web surfing experience. (more…)
March 18, 2014
I have several RDP over SSH connections defined in Remmina. When I connect to one, the fingerprint is stored in .freerdp/known_hosts – but for the “host” 127.0.0.1, due to the SSH tunnel.
When I try to connect to the next RDP over SSH connection, this fails with “Unable to connect to RDP server 127.0.0.1”, due to the record in known_hosts.
Seems like Remmina should allow several RDP to localhost to avoid this.
Workaround: Remove ~/.freerdp/known_hosts between each connection.
Permanent workardound:
rm .freerdp/known_hosts && ln -s /dev/null .freerdp/known_hosts
https://github.com/FreeRDP/Remmina/issues/223
February 16, 2014
Recently I bought a pair of Yamaha HS80M monitors for using with my desktop pc. They make sound great but when I volume up there was a very high level of deep noise. After having a short talking with my electronic engineer friend, I got the idea why the system gets noise from my pc. He told me that I should cut the ground loop in order the stop the noise.
I swapped monitor’s plug system with a non-grounded multi plug. That cut the ground loop and now there is no noise at all. In my case the ground was very weak, my pc makes to much noise and I use a copper sound cable.
Another noise resource can be your cable. I use BELKIN100%-coverage aluminum/Mylar foil shielded copper audio cable, it helps to stop environmental noise.
If you need more detailed explanation, leave a comment.
May 24, 2013
To change Centos or RHEL hostname, follow 3 steps below;
– edit /etc/hosts file;
127.0.0.1 subdomain.ozcan.com localhost.localdomain localhost
– edit /etc/sysconfig/network file;
HOSTNAME=subdomain.ozcan.com
– post new hostname to the kernel or restart network service;
sysctl kernel.hostname=subdomain.ozcan.com
or
echo "subdomain.ozcan.com" > /proc/sys/kernel/hostname
/etc/init.d/network restart
May 18, 2013
To empty our trash from terminal on Ubuntu;
sudo rm -rf ~/.local/share/Trash/
for boot partititon;
sudo rm -rf /boot/.Trash-0/
Be careful while using ‘rm -rf’ as it deletes the files and directories permanently.
May 16, 2013
If you struggled to cope with disk I/O on virtual host machines which runs on Centos or RHEL, there is a great system performance tuning tool named TUNED, comes with different profiles.
For installing tuned;
yum install tuned -y
starting the service permanently;
service tuned start
chkconfig tuned on
service ktune start
chkconfig ktune on
status of running profile;
tuned-adm active
(more…)
October 8, 2012
I built a time counter which counts time from a specific date. But on 2012, I recognized that something goes wrong. It showed our anniversary one day earlier. After googling it, I read leap years have one additional day and, I had to change place all my code with the code supports leap years. The main coding idea for handling this problem is something like this;
var currYear = this.today.getFullYear();
if ( (currYear % 4 == 0 && currYear % 100 != 0 ) || currYear % 400 == 0 ) {
this.numOfDays = 366;
}