Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Tuesday, September 20, 2016

Hey everybody!


After a long break from blogging I've decided to start sharing my experience and what I've learned so far with Python programming. 
Recently I've started with web programming over Python and Flask. I've made a cool personal financial assistant app that works just great. I plan to start sharing a step-by-step guide on how to become a beginner programmer using Python (and Flask). 

The plan is as follows:

  1.  Weekly post starting from the basic through advanced topics
  2.  I will try to respond as fast as I can to your questions
  3.  As always you can reach my @gunavarablog (twitter)
I'm planning to do a well-explained tutorial on how to create your own linux server with apache that can host your Flask apps! 


Things you need to get ready:

  1. Get python! (I am using 2.7x and for the purpose of upcoming tutorial series, you should install version 2.7) - Python.org
  2. I am using Eclipse with PyDev as an IDE. You can download it from HERE.

My development environment includes:

  1. Windows 10   64bit
  2. Eclipse IDE with PyDev
  3. Python 2.7.12
  4. Flask
  5. MySQLdb
  6. Ubuntu Server
  7. Apache + MySQL + PHP 
  8. WinSCP
  9. Puty (ssh)

Wednesday, November 21, 2012

So... OK, I got this new Samsung Galaxy SIII and I wanted to explore my files and transfer some music to my phone via USB cable. Apparently, Samsung did some bad magic and by default you are not able to explore your device using MTP in ubuntu (haven't checked in other distros but I've read people had same problem). Since I'm using kUbuntu, opening dolphin explorer mounted my Galaxy S3  as "camera" and I was not able to create/paste any files into it(Unknown error). So after some time googling around, i'm finally able to operate my phone via USB cable and a cool little program. Here's a simple guide what you should do to be able to transfer files to your device.

1. Make sure when connecting your device to Ubuntu via USB cable you select the Media device connection type.

2. Open up the terminal and either use the "sudo" command or just do this as root:
'apt-get update', 'apt-get upgrade' when your update is ready or you have nothing to update check out this:
'apt-cache search libmtp'
 so you see results like this:
libmtp-common - Media Transfer Protocol (MTP) common files
libmtp-dbg - Media Transfer Protocol (MTP) debugging symbols
libmtp-dev - Media Transfer Protocol (MTP) development files
libmtp-doc - Media Transfer Protocol (MTP) library documentation
libmtp-runtime - Media Transfer Protocol (MTP) runtime tools
libmtp9 - Media Transfer Protocol (MTP) library
mtp-tools - Media Transfer Protocol (MTP) library tools
gmtp - simple MP3 player client for MTP based devices
python-pymtp - Pythonic binding to LibMTP to interact with MTP devices

Just to be sure I installed everything without the doc and debug package.
You can do that easily by this command: (copy and paste in your terminal)
sudo apt-get install libmtp-common libmtp-dev libmtp-runtime libmtp9 mtp-tools gmtp python-pymtp

3. Now install one more thingy:
sudo apt-get install libusb-dev

4. Reboot

5. The program you installed in step 2 "gmtp" is the software you will use to transfer files. The trick is: 
launch gmtp (either from Applications-->Multimedia-->gMTP or ALT+F2 "gmtp") now plug in the cable into your device and click "Connect" in gMTP fast. 

6. Give it few seconds to detect the device and select either Phone or SDcard to operate with. 


7. After you have selected the storage to operate with you will view the files like this:



There you have it! I can confirm that this software works. I have transferred my pictures, music and files this way.

I've read somewhere about an application that can do this via wireless (like Kies for windows) but haven't tried it yet. When I do, I will make a tutorial for it as well. 
Hope I've helped you and if you have any questions, please use the comments.

Device: Samsung Galaxy S3
Hardware: Lenovo Z580
OS: Kubuntu 12.04





Subscribe to RSS Feed Follow me on Twitter!