Showing posts with label Kali Linux. Show all posts
Showing posts with label Kali Linux. Show all posts

Thursday, February 4, 2016

Android Emulator requires 64 bit System

Error messages :


http://askubuntu.com/questions/534044/error-32-bit-linux-android-emulator-binaries-are-deprecated-when-attemping-to-r

You can download 64 bit Kali Linux from here:
https://www.kali.org/downloads/

Wednesday, February 3, 2016

Resize Disk in for VM images (Kali Linux as a Guest OS)

1. In VMware settings, change the disk size

2. Boot the VM image with the installation Disk ISO. You can choose the startup device in the VMware settings. 

3. Open the GParted application. 

4. Since the added space is at the end, you need to delete the swap Linux patitaion first, then you can expand your /dev/sda1. 

Details see: http://askubuntu.com/questions/51272/how-do-i-repartition-with-gparted

  1. In the machine's settings point the CD Drive to the .iso file with your Ubuntu LiveCD. You may also need to make sure the "Connect at power on" check box is checked.
  2. Power the virtual machine on and hit F2 with the focus inside the machine.
  3. Once inside the BIOS move to the Boot tab and select CD-Rom as primary boot device.
  4. Run gParted - I think it's always there.
  5. Destroy the swap partition: swapoff, delete the extended and linux-swap partitions.
  6. Resize your primary partition to desired size.
  7. Allocate your swap back again to whatever you like - create an extended partition and then allocate as linux swap. Remember about swapon :)
And that's it. You now have a big primary partition!
In my case you'd need to have Jedi reflexes to get into BIOS by pressing F2 on the splash screen - the boot delay is just too short. What you can do to slow it down is go to your vm's .vmx file and type in something reasonable like:


Other useful link: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1020778

Friday, June 27, 2014

Setup FTP server

CentOS

# yum install vsftpd ftp -y
http://www.unixmen.com/install-vsftpd-server-on-centos-rhel-scientific-linux-6-4/

FTP login uses plain/clear text, you can use SFTP to encrypt the login

If you have following problem when use FTP to login:
Name (localhost:dbadmin): username
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/username
Login failed.
ftp> 

You just need to disable selinux and reboot

To disable permanently, I edited /etc/selinux/config and set
SELINUX=disabled
After the reboot, I was able to log in normally.

http://unix.stackexchange.com/questions/79743/what-are-the-settings-to-correct-vsftpd-500-oops-cannot-change-directory-erro

Kali Linux


   17  apt-cache search ftpd
   19  apt-get install ftpd
   21  /etc/init.d/atftpd
   22  /etc/init.d/atftpd start

$ service atftpd start

Note that ftp server does not allow root to log in

root@kali-csc5991:/home/csc5991-student# ftp localhost
ftp: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
220 kali-csc5991 FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17) ready.
Name (localhost:csc5991-student):
331 Password required for csc5991-student.
Password:
230-
230- The programs included with the Kali GNU/Linux system are free software;
230- the exact distribution terms for each program are described in the
230- individual files in /usr/share/doc/*/copyright.
230-
230- Kali GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
230- permitted by applicable law.
230 User csc5991-student logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>