Kategori: Genel

  • Add Opera Browser PPA into Debian or Ubuntu

    Setup key with: wget -O – http://deb.opera.com/archive.key | sudo apt-key add – Setup repository with: sudo sh -c ‘echo “deb http://deb.opera.com/opera-stable/ stable non-free” >> /etc/apt/sources.list.d/opera.list’ Setup package with: sudo aptitude update sudo aptitude install opera-stable or you can install one of these packages Package: opera Version: 12.16.1860 Package: opera-next Version: 12.16.1860 Package: opera-stable Version: 43.0.2442.806…

  • RedBot Discord bot failsafe bash script with monit

    #!/bin/bash PIDFILE=/var/run/redbot.pid case $1 in start) echo $! > ${PIDFILE} cd “$(dirname “$0″)” su – redbot -c “cd /home/redbot/Red-DiscordBot && python3.5 ./red.py &” read -rsp $’Press enter to continue…n’ ;; stop) kill `cat ${PIDFILE}` rm ${PIDFILE} ;; *) echo “usage: redbot {start|stop}” ;; esac exit 0 Monit conf.d file check process redbot with pidfile /var/run/redbot.pid…

  • QEMU KVM installation and configuration

    apt-get install qemu-kvm qemu virt-manager virt-viewer libvirt-bin qemu-img create ubuntu.img 10G qemu-img create -f qcow2 ubuntu.qcow 10G qemu-system-x86_64 -hda ubuntu.img -boot d -cdrom /ubuntu-15.04-server-amd64.iso -m 512 qemu -hda ubuntu.img -m 512 Running Openwrt with QEMU needs some files from openwrt trunk, get them from here qemu-system-arm -M realview-pbx-a9 -m 1024M -nographic -kernel openwrt-realview-vmlinux.elf -sd openwrt-realview-sdcard.img…

  • Installing ZSH shell on debian based systems

    Installing and setting ZSH as default shell apt-get update apt-get install zsh Set it as default shell chsh -s /bin/zsh Reboot your sytem.

  • Using usbmount with ntfs and exfat filesystems

    Adding ntfs to usbmount Install usbmount with sudo apt-get install usbmount. Install NTFS driver package ntfs-3g with sudo apt-get install ntfs-3g. Configure usbmount to mount specified filesystems by opening the usbmount file with sudo nano /etc/usbmount/usbmount.conf. In here there is a line called FILESYSTEMS=””. Only filesystems specified in this line are mounted via usbmount, so…

  • Zimbra Enforcing a match between FROM address and sasl username

    zmprov mcf zimbraMtaSmtpdRejectUnlistedRecipient yes zmprov mcf zimbraMtaSmtpdRejectUnlistedSender yes zmprov mcf zimbraMtaSmtpdSenderLoginMaps  proxy:ldap:/opt/zimbra/conf/ldap-slm.cf +zimbraMtaSmtpdSenderRestrictions reject_authenticated_sender_login_mismatch vi /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf Add reject_sender_login_mismatch to the the line permit_mynetworks, reject_sender_login_mismatch zmmtactl restart zmconfigdctl restart Test your SMTP Configuration from this site https://www.wormly.com/test-smtp-server

  • IMG to VDI conversion with VirtualBox within Batch inputs

    @echo off set /p kaynakdosyayol=Full path to the source img file : set /p kaynakdosya=Full name of source img file : cd C:Program FilesOracleVirtualBox VBoxManage convertdd %kaynakdosyayol%%kaynakdosya% %homepath%Desktop%kaynakdosya%.vdi echo VDI file saved to your desktop

  • certbot-zimbra

    Automated letsencrypt/certbot certificate deploy script for Zimbra hosts. The script tweaks zimbra’s nginx config to allow access of .well-known webserver location from local files instead of redirecting upstream to jsp. So it may not be used if there’s no zimbra-nginx package installed. Letsencrypt by default tries to verify a domain using https, so the script…

  • How to change SMTP Banner, HELO,EHLO Greetings for Zimbra on Zimbra v.8.0.9

    Take a Zimbra backup or VM snapshot before doing any changes Enter the following command to change SMTP Banner: su – zimbra zmlocalconfig -e postfix_smtpd_banner=”yourmailserver.yourdomain.com” Then if you want to change HELO/EHLO names, enter: zmprov mcf zimbraMtaMyHostname yourmailserver.yourdomain.com If you want to disable adding X-originating (Client’s internal-LAN IP) to email headers: zmprov mcf zimbraSmtpSendAddOriginatingIP FALSE…

  • Windows Server 2012 R2 Evaluation to Standart Edition

    Open cmd with admin privileges DISM /online /Get-CurrentEdition After knowing your edition then you can see your upgrade options with DISM /online /Get-TargetEditions Finally change edition id to your upgrade edition and enter your product key. DISM /online /Set-Edition: /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula Restart your server. Licence key for standart edition DBGBW-NPF86-BJVTX-K3WKJ-MTB6V