Delete files older than 10 days using shell command Rumi, October 28, 2023 find is the common tool for this kind of task : find ./my_dir -mtime +10 -type f -delete EXPLANATIONS ./my_dir your directory (replace with your own) -mtime +10 older than 10 days -type f only files -delete no surprise. Remove it to test your find filter before executing the whole command Src: https://stackoverflow.com/questions/13489398/delete-files-older-than-10-days-using-shell-script-in-unix Continue Reading
Use Putty as SOCKS proxy Rumi, October 28, 2023 I’ll need 2 programs to achieve this, assuming you already have access to a Linux box and you can connect using putty client. Need S/w packages are- Putty and SeaMonkey Browser Follow the following steps- Run Putty Goto SSH > Tunnels and configure as required Turn Tick ON- Local port… Continue Reading
Recover web gui access of Elastic 2.4.0 Rumi, October 28, 2023October 28, 2023 Just in case if anyone still using the veeery old and legacy Elastix box (2.4.0) and forgot its web GUI console password, here’s the trick to get this sorted. /usr/bin/sqlite3 /var/www/db/acl.db “UPDATE acl_user SET md5_password = ‘`echo -n newpassword|md5sum|cut -d ‘ ‘ -f 1`’ WHERE name = ‘admin'” Voila! Continue Reading
Install Xen Orchestra on Ubuntu / Debian Rumi, September 23, 2023 Step 1: Update System Let’s start the installation by updating all the system packages: sudo apt update Also consider performing an upgrade: sudo apt upgrade -y Step 2: Install Node.js on Ubuntu / Debian Install dependencies. sudo apt install -y ca-certificates curl gnupg Import GPG repository keys: sudo mkdir -p… Continue Reading
Install Plex on CentOS 7 Rumi, September 15, 2023 Was just playing around. It’s a great home entertainment tool indeed. Method-1: Creating repository and using Yum To enable the Plex repository open your text editor and create a new YUM repository configuration file named plex.repo in /etc/yum.repos.d/ directory: [PlexRepo] name=PlexRepo baseurl=https://downloads.plex.tv/repo/rpm/$basearch/ enabled=1 gpgkey=https://downloads.plex.tv/plex-keys/PlexSign.key gpgcheck=1 Method-2: Installation using RPM download… Continue Reading
Get rid of esm-apps while ubuntu updates Rumi, September 15, 2023 If you ever encounter similar issue like below- Get more security updates through Ubuntu Pro with ‘esm-apps’ enabled: libavformat58 libavfilter7 ffmpeg mc sntp libswresample3 lynx-common libzmq5 fail2ban mc-data redis lynx libpostproc55 ntp ntpdate libgsasl7 redis-tools cpanminus libavcodec58 libavutil56 libavdevice58 libswscale5 libsdl2-2.0-0 libmysofa1 redis-server libavresample4 And don’t like to be financially… Continue Reading
Troubleshooting ubuntu: dpkg: unrecoverable fatal error, aborting: files list file for package ‘linux-generic’ is missing final newline Rumi, September 15, 2023 If you ever encounter with such similar of an error (in my case it occurred on my Ubuntu 20 distro), you may apply the following process to get a fix. The error: Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done The following packages will… Continue Reading
Install XRDP on CentOS 7 Rumi, September 12, 2023 Prerequisites: XRDP is an open-source version of the Microsoft Remote desktop Protocol server. It enables operating systems besides Microsoft Windows to offer a fully functional remote desktop experience. The prerequisites for the installation include: Before all else, install Gnome GUI on CentOS 7 or RHEL 7. Then install and configure… Continue Reading
Install mail server on Ubuntu or Debian Rumi, September 12, 2023 Disclaimer: This howto is tested on Ubuntu 16, 18, 20 and Debian 10, 11 edition. Installing and configuring postfix Step 1 » Assign static IP and hostname and add a host entry for the host name . Assign hostname in /etc/hostname mail.tweenpath.net Add a host entry in /etc/hosts 192.168.1.10 mail.tweenpath.net… Continue Reading
Limit Sending/Receipt Email Per day, Per Week or Per Month Rumi, September 12, 2023 For activating module accounting, open webui via browser http://>zimbra-host>:7780/webui/index.php choose accounting | configure. Select add, and fill with the following example Name : Rate limit perday Link to policy : Default Track : Sender:@domain . You can choose with your choice Period : Daily Message Count Limit : 5000 Message Cumulative Size Limit :… Continue Reading