Balloon Collaboration
December 15, 2019, 02:15:01 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Hosting for barntek.net has been extended for another 3 years
 
   Home   Help Search gallery Calendar Login Register  
Pages: 1 ... 8 9 [10]
 91 
 on: January 01, 2013, 05:54:42 PM 
Started by Larry - Last post by Dan
Just a suggestion, for the purposes of this bulletin board, when you post a new test (or otherwise) Python script, give it a .py.txt extension...that way it will be easily downloadable and you can just delete the .txt to make it executable...


Done... and done.  Thanks for the tip. LB

 92 
 on: December 31, 2012, 04:40:14 PM 
Started by Larry - Last post by Larry
Ok, Danny got me interested in programming XML on the python.  I have done a couple of tests and here are the results.  Danny and I play this stupid game called Eve Online and they have "API Functions" that will let you look at information about your character via xml files.  These are the files I am playing with.  I created a key that will only allow access to my account status for the purposes of this code.

EveAPI2.py


If you download this file, it will come down as a .txt...  Just rename it from a .txt to a .py

In order to run this, I had to install the urllib2 and the lxml libraries:
  sudo apt-get install python-urllib2
  sudo apt-get install python-lxml
Once these installed, I was able to start programming with them.

This is a fairly simple sample.  I may try getting fancier and try to get deeper into it.  I know this doesn't seem to have any benifit to out balloon project, yet, but maybe something will come of it in the future.  If nothing else, it is giving me keyboard time with python...

 93 
 on: December 30, 2012, 05:25:06 AM 
Started by Larry - Last post by Larry
I think this is pretty cool...  I found out that if you enable SSH in the raspi-config, then you can use this program called puTTY to control the pi from you windows desktop.  You will get a window that looks like the LXTerminal and you will log in - user and passwd.  Then you will be on the PI.

First, you need to get on the pi and, from the LXTerminal, execute the command ifconfig.  (That is NOT a misprint...  ifconfig).   This will give you info about eth0 and the loopback.  I don't have wi-fi, so I I don't know what it will have pertaining to that.  The second line of the eth0 section, it sould say inet addr:192.168.1.106 (or what ever the pi's IP address is.

When you run puTTY, use this address and port 22.  It should give a warning window, then go on to the screen when you click ok.  if it doesn't work, let me know, and I will try to help you out.

 94 
 on: December 30, 2012, 12:46:08 AM 
Started by Larry - Last post by Larry
Ok, I have to write this down so I don't lose it.  I am sure I don't have everything here and right, but I will do the best I can.  

I was able to change my pi so it will boot up to the user KI4IMS automatically, all the way to the GUI.  It proved to be a little trickier than I thought and noone on the web seemed to address it directly.  There was a lot of infering on my part.  Basically, my pi now boots up to ki4ims@RPi1.

This is the site i followed to rename the Hostname of the Pi.  It changes the pi@raspberry to pi@RPi1.
  • Type in sudo nano /etc/hostname
  • Change raspberry to whatever you want your new hostname to be. <ctrl>o to save and <ctrl>x to exit.
  • Type in sudo nano /etc/hosts
  • Change anywhere you see 'raspberry' to your new hostname.  <ctrl>o to save and <ctrl>x to exit.
  • Type in sudo reboot
  • This will read in the changes and should boot up with the new hostname

Now, you have to create a new user and give him the same privileges as pi.
  • Type in sudo adduser username where username is the name of the user to create.
  • The system will ask you several questions concerning the new user.  Answer them.
  • Type in sudo visudo
  • Find the line which says root   ALL=(ALL:ALL) ALL and add a line under it identical to it except insert the new username instead of root.  <ctrl>o to save and <ctrl>x to exit.
  • Type in sudo reboot.  When it boots back up, if it boots up to the GUI, then log out and log back in as your new username.  Return to the command line and verify that it shows you logged in as your new username.
    • Type in sudo deluser pi to delete pi as a user, or type sudo deluser -remove-home pi to remove pi as a user and delete the /home/pi directory.
    • Now, type sudo visudo and erase the line you added earlier under root   ALL=(ALL:ALL) ALL.  Then, look at the bottom of the file and find pi ALL=(ALL) NOPASSWD: ALL and change pi to your new username.  <ctrl>o to save and <ctrl>x to exit.

    Now you need to edit the /etc/lightdm/lightdm.conf file to tell it which user to login as when the GUI starts.
    Type sudo nano /etc/lightdm/lightdm.conf and find the line that says autologin-user=pi and change pi to your new username.  Also, find the line that says greeter-hide-users = True and add a # in front of the line.   Be aware that there are 2 lines that say this, and you want to edit the one that has no # in front.  <ctrl>o to save and <ctrl>x to exit.

    Now, if you reboot, it should boot right up to the GUI as your new username and hostname.  Just remember, if this doesn't work, you can always reburn the SD-Card and start over.  Keep in mind, when you do this, anything you had set up under the pi user will be gone and have to be resetup under your new username.  I would suggest trying this with a new burning so if it goes wrong, you won't lose a lot...  hehe

    Good Luck.

 95 
 on: December 30, 2012, 12:12:14 AM 
Started by Larry - Last post by Larry
You are probably right, but I am using Wheezy for development, for now, because of the graffical interface.  Eventually, I may migrate to Arch.
 

 96 
 on: December 30, 2012, 12:10:45 AM 
Started by Larry - Last post by Larry
I don't know..  I ran into the same deal.  I bought a couple of San Disk 8gig sd cards, and they seem to have just a few bytes less space than the sony did.  I tried reformatting them different ways, but it made no difference.

 97 
 on: December 26, 2012, 03:52:39 AM 
Started by Larry - Last post by DaddyB
The wireless dongle arrived.  It is a TP-LINK model TL-WN722N.
I used the 'Wireless Config' routine found on the desktop.  It will almost setup itself.

I checked again with the 'other' wireless dongle and it couldn't be recognised. (I had to be sure)   Cheesy

 98 
 on: December 23, 2012, 01:29:32 AM 
Started by Larry - Last post by DaddyB
The new one has been shipped.  Time of arrival is between Dec 27 and Jan 2....
I'll post the brand name when it arrives...  Hope it works.  I really don't need it now sence I am running ethernet...

 99 
 on: December 22, 2012, 08:25:00 PM 
Started by Larry - Last post by DaddyB
I installed some stuff that I didn't like on the card, and not knowing how to un-install it, I decided to rewrite the OS.  I used the image that I had made before and on the Sony, it worked just fine.  So guess all 8gb cards are not the same size.  I had reformated the other card, and I am wondering if windows put some stuff that wasn't on the Sony....?  Hmmmm.....   Huh

 100 
 on: December 22, 2012, 08:18:56 PM 
Started by Larry - Last post by DaddyB
I tried both OS's but I like RaspBMC best.  The only thing, after about 10 mins it locks up and I have to reboot...   Undecided

I guess for running things on the balloon, Arch will probally work best.  It boots up fairly fast and doesn't seem to have a lot of stuff running in the background.

Pages: 1 ... 8 9 [10]
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!