Tag: it


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


OpenSSH server installation

To install the OpenSSH server application on your Ubuntu server system: Installation sudo apt-get install openssh-serversudo apt-get install openssh-server Backup original configuration file sudo cp / etc/ssh/sshd_config / etc/ssh/sshd_config.originalsudo cp / etc/ssh/sshd_config / etc/ssh/sshd_config.original sudo chmod a-w / etc/ssh/sshd_config.originalsudo chmod a-w / etc/ssh/sshd_config.original Generate SSH keys During the process you will be prompted for a …

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 …


Delete shared folders from terminal

> Run a command line instance with administrative privileges > Execute the following command to list all non-hidden shared folders: net sharenet share > Execute the following command to delete a shared folder: net share shared_folder_name /deletenet share shared_folder_name /delete How to delete all default hidden shared folders: https://gist.github.com/maldevel/4f550f85d2ec147bf49e @echo off   net share /delete …