Reset Vesta CP (vestacp) admin password Rumi, December 31, 2018 Method 1 Login to your server via SSH. Enter the below command to change the password. $ v-change-user-password admin newpassword Replace the newpassword field with the new password you want to set. Method 2 Login to your server via SSH. Enter command following command. $ passwd admin Enter new UNIX… Continue Reading
Clean up boot partition – Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64 Rumi, December 27, 2018 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… Continue Reading
Ubuntu old repository add Rumi, November 21, 2018 If you want to continue using an outdated release then edit /etc/apt/sources.list and change archive.ubuntu.com and security.ubuntu.com to old-releases.ubuntu.com. You can do this with sed: sudo sed -i -re ‘s/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g’ /etc/apt/sources.list then update with: sudo apt-get update && sudo apt-get dist-upgrade Sometimes, it might be faster to create backups of your system and reinstall using supported release instead. Continue Reading
Configure iSCSI Initiator (client) in CentOS / RHEL 6 Rumi, October 30, 2018 To use RHEL/CentOS 6 system as an iSCSI initiator or client, you must have iscsi-initiator-utils package installed. You can verify that this is installed on your system using the rpm command, as shown in the following example: $ rpm -qa | grep iscsi-initiator-utils Install the package if its not already… Continue Reading
Add Multipath and connect to XFS system Rumi, October 30, 2018 Device Mapper Multipathing (DM-Multipath) is a native multipathing in Linux, Device Mapper Multipathing (DM-Multipath) can be used for Redundancy and to Improve the Performance. It aggregates or combines the multiple I/O paths between Servers and Storage, so it creates a single device at the OS Level. For example, Lets say… Continue Reading
Ubuntu repo upgrade from an old unsupported release Rumi, October 23, 2018 If you want to continue using an outdated release then edit /etc/apt/sources.list and change archive.ubuntu.com and security.ubuntu.com to old-releases.ubuntu.com. You can do this with sed: sudo sed -i -re ‘s/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g’ /etc/apt/sources.list then update with: sudo apt-get update && sudo apt-get dist-upgrade Sometimes, it might be faster to create backups of… Continue Reading
Stateful Load Balancer with iptables and NAT Rumi, October 2, 2018October 2, 2018 Allow IP forwarding (Note: if your testing this on the same box your doing this on it won’t work, you need at least 3 machines to test this out, virtual ones work nicely) First we enable ipv4 forwarding or this will not work: # echo “1” > /proc/sys/net/ipv4/ip_forward XOR #… Continue Reading
Assign range of IP addresses to an interface Rumi, October 2, 2018 For example, you need to assign the IP range 192.168.10.6 – 192.168.10.100 to your eth0 interface. Create a range file in /etc/sysconfig/network-scripts/ifcfg-eth0-range0 as below DEVICE=eth0 BOOTPROTO=static IPADDR_START=192.168.10.6 IPADDR_END=192.168.10.100 NETMASK=255.255.255.0 CLONENUM_START=1 ONBOOT=yes TYPE=Ethernet CLONENUM_START is the number that will be assigned to the first IP alias interface (eth0:1 in this example)…. Continue Reading
Install CakePHP 3 On Ubuntu 16.04 Rumi, September 30, 2018September 30, 2018 This guide assumes you’ve set up a Ubuntu 14.04 server and have MYSQL up and running. This guide uses the “PHPMyAdmin” from the “One Click Apps” available on Digital Ocean running on a vps running Ubuntu 16.04. The smallest memory (512mb) should be enough to get you up and running…. Continue Reading
Converting OVA for use with KVM / QCOW2 Rumi, September 21, 2018February 18, 2019 The OVA file is nothing more than a TAR archive, containing the .OVF and .VMDK files. Easy! Using Evergreen ILS for example: ~ $ file Evergreen_trunk_Squeeze.ova Evergreen_trunk_Squeeze.ova: POSIX tar archive (GNU). I’ts possible to use the tar command to list the contents ~ $ tar -tf Evergreen_trunk_Squeeze.ova Evergreen_trunk_Squeeze.ovf Evergreen_trunk_Squeeze-disk1.vmdk Simply… Continue Reading