Tag: support

Linux

Move directory to another server

* Compress directory tar cvzf myfolder.tar.gz myfolder/tar cvzf myfolder.tar.gz myfolder/ * Copy directory scp myfolder.tar.gz [username]@[ip_address_or_hostname]:/home/[username]/myfolder.tar.gzscp myfolder.tar.gz [username]@[ip_address_or_hostname]:/home/[username]/myfolder.tar.gz * Extract directory contents on new server tar -xvzf myfolder.tar.gz -C /path/to/myfoldertar -xvzf myfolder.tar.gz -C /path/to/myfolder

MySQL

Copying MySQL database to another server

* Export database from old server: mysqldump -u[username] -p[password] db_name > db_backupmysqldump -u[username] -p[password] db_name > db_backup * Copy backup to new server: scp db_backup [username]@[ip_address_or_hostname]:/home/[username]/db_backupscp db_backup [username]@[ip_address_or_hostname]:/home/[username]/db_backup * Import database to new server: mysql -u [username] -p -h localhost db_name < db_backupmysql -u [username] -p -h localhost db_name < db_backup

Kali, VMware

Cannot Copy/Paste on Kali and Vmware Workstation 12

If you cannot copy/paste from Kali 2016 to host or from host to Kali 2016 inside Vmware Workstation 12, follow these steps to remove vmware-tools and install open-vm tools: >> Uninstall VMWare Tools vmware-uninstall-tools.plvmware-uninstall-tools.pl >> Install Open VM Tools apt-get install open-vm-toolsapt-get install open-vm-tools apt-get install open-vm-tools-desktopapt-get install open-vm-tools-desktop >> Restart Kali

Virtualization, VMware

Convert Virtual Machines Between VirtualBox and VMware

VMware to VirtualBox >> Before migrating a vm, ensure it’s powered off. >> Open a command line. cd C:\Program Files (x86)\VMware\VMware Workstation\OVFToolcd C:\Program Files (x86)\VMware\VMware Workstation\OVFTool ovftool /path/to/vmware_machine.vmx /path/to/new/virtualbox_machine.ovfovftool /path/to/vmware_machine.vmx /path/to/new/virtualbox_machine.ovf >> Import the .ovf file into VirtualBox.   VirtualBox to VMware Before migrating a vm, ensure it’s powered off. >> Open VirtualBox. >> Click …

CentOS

Remote Desktop Support in CentOS

Remote Desktop Support Become root su -su – Installation yum install vinoyum install vino Setting up Remote Desktop Access Goto System->Preferences->Remote Desktop and enable these settings on the remote desktop window preferences: 1. Allow other users to view your desktop. 2. Allow other users to control your desktop. 3. Require the user to enter this …

Linux, MySQL

Enable Mysql UTF8 Support

To enable UTF8 support in server level: 1. First create a backup for file /etc/mysql/my.ini 2. Open /etc/mysql/my.ini file for editing 3. Locate [mysql] and [mysqld] and append the following lines: [mysql] default-character-set=utf8 [mysqld] collation_server=utf8_unicode_ci character_set_server=utf8 default-character-set=utf8 init_connect=’SET collation_connection = utf8_general_ci’ init_connect=’SET NAMES utf8′ 4. Restart mysql   To enable UTF8 support in database level: …