Sunday, 17 April 2016

How to transfer and received file beagle bone to FTP server in fedora

 How to transfer and received file beagle bone to FTP server in        fedora

Server Side:
Step 1:In vsftpd.conf file (/etc/vsftpd/vsftpd.conf) editthis lines.


Step 2 : start service vsftpd (service vsftpd start)
Step 3: stop firewall (systemctl stop firewalld.service)
step 4: mount --bind /default directory/ /var/ftp

Client side: 

Step 1: stop firewall service

from ftplib import FTP

import os

flag = True


        os.system("ifconfig eth0")

        ftps = FTP('')


        print "Select an option for transfering files:\n1.Machine to BBB\n2. BBB to machine"

        print "3.FTP to BBB\n4.BBB to FTP\n5.Exit"

        choice = int(input())

        if choice == 1:

                mcip = raw_input("Enter the ip of machine from where the file is to be received: ")

                user = raw_input("Enter the user from  whom the file is to be received: ")

                filename = raw_input("Enter path of the file to be received: ")

                destpath = raw_input("Enter the path where the file is to be stored: ")

                os.system("scp "+user+"@"+mcip+":"+filename+" "+destpath)

                print "File received successfully"

        elif choice == 2:

                mcip = raw_input("Enter the ip of machine to send files to: ")

                user = raw_input("Enter the user to whom the file is to be sent: ")

                destpath = raw_input("Enter where the file should be stored on receiving machine: ")

                filename = raw_input("Enter the path to the file to be sent: ")

                os.system("scp "+filename+" "+user+"@"+mcip+":"+destpath)

                print "File successfully sent"

        elif choice == 3:


                filename = raw_input("Enter the filename to be downloaded: ")

                ftps.retrlines('RETR '+filename, open(filename,"wb").write)

                print "File successfully downloaded"

        elif choice == 4:

                filename = raw_input("Enter the filename which is to be sent: ")
        print filename
                #ftps.storlines("STOR " + os.path.basename(filename), open(filename))
        ftps.storlines('STOR '+os.path.basename(filename), open(os.path.basename(filename),w"/var/ftp"))

                print "File successfully uploaded"


                flag = False

Monday, 8 February 2016

How to connect beaglebone

[apcoer@localhost-localdomain ~]$ ssh root@
The authenticity of host ' (' can't be established.
ECDSA key fingerprint is c0:81:1a:f4:58:b9:51:15:00:df:ee:71:c4:d9:fd:54.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': y
Please type 'yes' or 'no': yes
Warning: Permanently added '' (ECDSA) to the list of known hosts.
Debian GNU/Linux 7 BeagleBone Debian Image 2014-04-23

Last login: Wed Apr 23 20:27:40 2014 from
root@beaglebone:~# vnc
-bash: vnc: command not found
root@beaglebone:~# vncserver

New 'X' desktop is beaglebone:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/beaglebone:1.log


2) open remote desktop