1. On pc install itunes and make a back up of iphone/ipad
2. Install iExplorer and open back up
3. Mount the app folder (AppDomain-com.tencent.xin) as a drive in iExplorer
4. Copy over mounted folder to the pc
5. Install sqlitebrowser and open db file (in the Documents/#randomnumbers/DB/MM.sqlite)
Sunday, 6 September 2015
Thursday, 27 August 2015
linux mint 17.1 multisystem error, The terminal (VteTerminal) widget requires a version of gtkdialog built with libvte.
I was trying to do a fresh install of windows 7 on ultrabay on Thinkpad T420s.
Upon installing all the updates and trying to make a back up so the partition can be exported to another drive, I decided to upgrade clonezilla to newest version.
As usual, I formatted an empty USB to FAT and tried to load clonezilla image.
First I got a problem, where multisystem did not load at all, stuck at 'multisystem logo'
So I tried to re-install from .sh script downloaded from official website.
Trying to use the script, it complained about xterm.
-> sudo apt-get install xterm
Once xterm was installed script started generating repository pop up (I suppose it is adding some new repo, as manual method requires it).
Then it turned unsuccessful.
A quick googling revealed manual method,
(SOURCE: https://translate.googleusercontent.com/translate_c?depth=1&hl=en&prev=search&rurl=translate.google.ca&sl=fr&u=http://forum.ubuntu-fr.org/viewtopic.php%3Fid%3D1229491%26p%3D34&usg=ALkJrhi6qDC6qOCIfS1cc3J0GTbWpBts5A)
-> sudo apt-add-repository 'deb http://liveusb.info/multisystem/depot all main'
-> wget -q http://liveusb.info/multisystem/depot/multisystem.asc -O- | sudo apt-key add -
-> sudo apt-get update
-> sudo apt-get install multisystem
'sudo apt-get update' complained about duplicate repository,
-> sudo nano /etc/apt/sources.list
then I commented out by putting # in front of 'deb http://liveusb~~'
Installed multisystem then complained about 'The terminal (VteTerminal) widget requires a version of gtkdialog built with libvte.'
Google search about the error returned a person who had the same problem, (SOURCE: http://superuser.com/questions/919442/failure-of-multisystem-after-first-install-on-mint-17-1-64-bit) and following solution page in dutch which needed to be translated. (SOURCE: https://translate.googleusercontent.com/translate_c?depth=1&hl=en&prev=search&rurl=translate.google.ca&sl=de&u=https://forum.ubuntuusers.de/topic/multisystem-findet-nicht-die-richtige-gtkdialo/&usg=ALkJrhjT7TZaQYDdWakXFCc1_DGm-Fj75Q)
I have tried other methods suggested by the first french thread,
-> sudo dpkg -i <path to gtkdialog.deb file>
using files downloaded from,
(SOURCE: http://liveusb.info/multisystem/depot/dists/all/main/).
Using version multisystem 1.0304 1.0309, gtkdialog 0.8.0, 0.8.2-1 0.8.3-2 amd64 in different combination did not yield a working install.
So I tried to purge all instances of multisystem, then did a fresh install of the newest version, which showed the gtkdialog error again.
This time, using dutch webpage solution, I compiled gtkdialog using vte as follows,
-> wget https://gtkdialog.googlecode.com/files/gtkdialog-0.8.3.tar.gz
-> decompress file to '~/Download/gtkdialog-0.8.3/', and cd into the folder
-> sudo apt-get intsall gtk+-2.0-dev
-> sudo ./configure
look for VTE... no
-> sudo apt-get install libvte-dev
-> sudo ./configure
look for VTE... yes
-> sudo make
-> sudo make install
-> gtkdialog -v
this should show
'gtkdialog version 0.8.3 release (C) 2003-2007 Laszlo Pere, 2011-2012 Thunor Built with additional support for: VTE.'
Props to verdooft and everyone else I refered in resolving the problem!!
Upon installing all the updates and trying to make a back up so the partition can be exported to another drive, I decided to upgrade clonezilla to newest version.
As usual, I formatted an empty USB to FAT and tried to load clonezilla image.
First I got a problem, where multisystem did not load at all, stuck at 'multisystem logo'
So I tried to re-install from .sh script downloaded from official website.
Trying to use the script, it complained about xterm.
-> sudo apt-get install xterm
Once xterm was installed script started generating repository pop up (I suppose it is adding some new repo, as manual method requires it).
Then it turned unsuccessful.
A quick googling revealed manual method,
(SOURCE: https://translate.googleusercontent.com/translate_c?depth=1&hl=en&prev=search&rurl=translate.google.ca&sl=fr&u=http://forum.ubuntu-fr.org/viewtopic.php%3Fid%3D1229491%26p%3D34&usg=ALkJrhi6qDC6qOCIfS1cc3J0GTbWpBts5A)
-> sudo apt-add-repository 'deb http://liveusb.info/multisystem/depot all main'
-> wget -q http://liveusb.info/multisystem/depot/multisystem.asc -O- | sudo apt-key add -
-> sudo apt-get update
-> sudo apt-get install multisystem
'sudo apt-get update' complained about duplicate repository,
-> sudo nano /etc/apt/sources.list
then I commented out by putting # in front of 'deb http://liveusb~~'
Installed multisystem then complained about 'The terminal (VteTerminal) widget requires a version of gtkdialog built with libvte.'
Google search about the error returned a person who had the same problem, (SOURCE: http://superuser.com/questions/919442/failure-of-multisystem-after-first-install-on-mint-17-1-64-bit) and following solution page in dutch which needed to be translated. (SOURCE: https://translate.googleusercontent.com/translate_c?depth=1&hl=en&prev=search&rurl=translate.google.ca&sl=de&u=https://forum.ubuntuusers.de/topic/multisystem-findet-nicht-die-richtige-gtkdialo/&usg=ALkJrhjT7TZaQYDdWakXFCc1_DGm-Fj75Q)
I have tried other methods suggested by the first french thread,
-> sudo dpkg -i <path to gtkdialog.deb file>
using files downloaded from,
(SOURCE: http://liveusb.info/multisystem/depot/dists/all/main/).
Using version multisystem 1.0304 1.0309, gtkdialog 0.8.0, 0.8.2-1 0.8.3-2 amd64 in different combination did not yield a working install.
So I tried to purge all instances of multisystem, then did a fresh install of the newest version, which showed the gtkdialog error again.
This time, using dutch webpage solution, I compiled gtkdialog using vte as follows,
-> wget https://gtkdialog.googlecode.com/files/gtkdialog-0.8.3.tar.gz
-> decompress file to '~/Download/gtkdialog-0.8.3/', and cd into the folder
-> sudo apt-get intsall gtk+-2.0-dev
-> sudo ./configure
look for VTE... no
-> sudo apt-get install libvte-dev
-> sudo ./configure
look for VTE... yes
-> sudo make
-> sudo make install
-> gtkdialog -v
this should show
'gtkdialog version 0.8.3 release (C) 2003-2007 Laszlo Pere, 2011-2012 Thunor Built with additional support for: VTE.'
Props to verdooft and everyone else I refered in resolving the problem!!
Wednesday, 12 August 2015
_Things to do with python
www.quora.com/Python-programming-language-1/What-are-some-interesting-things-to-do-with-Python
_How to browse sqllite db file
SOURCE:
https://www.google.ca/?gws_rd=ssl#q=how+to+browse+sql+db+file
https://www.google.ca/?gws_rd=ssl#q=how+to+browse+sql+db+file
_Michener institute Genetics Technology admission requirements
SOURCE:
http://michener.ca/admissions/applying/admissions-requirements/
NOTE: If you are submitting a Molecular Cell Biology course as a Human Genetics course you must provide course outlines for review and approval.
Please click here for the 2015 Applicant Experience Checklist
*The PowerPoint presentation that must be reviewed while completing the Applicant Experience Checklist can be found here.
Each program offered by Michener has a fixed size, reflecting labour market demand and clinical education spaces. Therefore enrolment in the program is limited, and admission can be very competitive. Admissions to the Genetics Technology program will be determined by an assessment of academic achievement, CGPA, (35 %), professional and academic experience (15 %) and the Multi Mini Interview (50%). See Selection Process for more information.
http://michener.ca/admissions/applying/admissions-requirements/
OPTION A
- Canadian certified Medical Laboratory Technologist (MLT) AND
- At least two university-level genetics courses
- 0.5 credit in Human Genetics (1 semester-length course)
- 0.5 credit in Molecular Genetics (1 semester-length course)
- These courses must have been completed within the last 10 years with a minimum grade of 70%.
OPTION B
- Bachelor of Science (BSc) degree AND
- At least two university-level genetics courses
- 0.5 credit in Human Genetics (1 semester-length course)
- 0.5 credit in Molecular Genetics (1 semester-length course)
- These courses must have been completed within the last 10 years with a minimum grade of 70%.
NOTE: If you are submitting a Molecular Cell Biology course as a Human Genetics course you must provide course outlines for review and approval.
Applicant Experience Checklist
To assess your experience, ALL applicants are asked to fill out an Applicant Experience Checklist and to submit the requested supporting documents along with the form by February 13, 2015. Please note that this document must be submitted in person, or by mail or e-mail to the Admissions Office at The Michener Institute, 222 St. Patrick St. Room 500, Toronto, ON M5T 1V4 or admissions@michener.caPlease click here for the 2015 Applicant Experience Checklist
*The PowerPoint presentation that must be reviewed while completing the Applicant Experience Checklist can be found here.
Each program offered by Michener has a fixed size, reflecting labour market demand and clinical education spaces. Therefore enrolment in the program is limited, and admission can be very competitive. Admissions to the Genetics Technology program will be determined by an assessment of academic achievement, CGPA, (35 %), professional and academic experience (15 %) and the Multi Mini Interview (50%). See Selection Process for more information.
Additional Requirements
All applicants must provide proof of English language proficiency. Applicants providing documents from overseas must complete specific document requirements._Make JS BOT for web application agar.io
SOURCE:
https://github.com/heyitsleo/agar.io-bot
http://www.devbattles.com/en/sand/post-1202-Writing+a+bot+for+the+browser+game+agar.io
https://www.reddit.com/r/MachineLearning/comments/38r2lq/a_bot_for_agario/
https://github.com/heyitsleo/agar.io-bot
http://www.devbattles.com/en/sand/post-1202-Writing+a+bot+for+the+browser+game+agar.io
https://www.reddit.com/r/MachineLearning/comments/38r2lq/a_bot_for_agario/
_Netbook based Video Surveillance using yawcam
SOURCE:
http://community.spiceworks.com/topic/486487-yawcam-webcam-server-alternatives
this is Windows alternative to RPi kerberos.io due to responsiveness issue,
looking for similar linux solution
http://community.spiceworks.com/topic/486487-yawcam-webcam-server-alternatives
this is Windows alternative to RPi kerberos.io due to responsiveness issue,
looking for similar linux solution
_[Raspberry Pi] Jasper, voice recognition solution
SOURCE:
http://jasperproject.github.io/documentation/installation/
http://jasperproject.github.io/documentation/installation/
[Raspberry Pi] Using GPIO port, infrared remote control access (IR sensor)
SOURCE:
16x2 LCD to display status
http://www.adafruit.com/products/181
GPIO setup tutorial
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/test-and-configure
What to do with I2C and SPI
http://quick2wire.com/articles/i2c-and-spi/
tutorials
http://www.modmypi.com/blog/raspberry-pis-remotes-ir-receivers
how to add lirc_rpi
http://www.jamesrobertson.eu/blog/2013/may/19/installing-lirc-on-raspbian.html
comprehensive tutorial
http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/
python GPIO
http://openmicros.org/index.php/articles/94-ciseco-product-documentation/raspberry-pi/218-2-raspberry-pi-gpio-inputs-in-python
16x2 LCD to display status
http://www.adafruit.com/products/181
GPIO setup tutorial
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/test-and-configure
What to do with I2C and SPI
http://quick2wire.com/articles/i2c-and-spi/
tutorials
http://www.modmypi.com/blog/raspberry-pis-remotes-ir-receivers
how to add lirc_rpi
http://www.jamesrobertson.eu/blog/2013/may/19/installing-lirc-on-raspbian.html
comprehensive tutorial
http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/
python GPIO
http://openmicros.org/index.php/articles/94-ciseco-product-documentation/raspberry-pi/218-2-raspberry-pi-gpio-inputs-in-python
[Raspberry Pi] passwordless ssh login to pi
I have been rebooting raspberry pi a lot lately, and had to SSH into it each time manually and type in password.
There is a simple way to SSH without typing password each time.
1. On laptop 'ls ~/.ssh'
1.1 if above returns id_rsa.pub or id_dsa.pub, key already exists
1.2 if nothing returns or to make new keys 'ssh-keygen -t rsa -C login@devicename' (e.g. ssh-keygen -t rsa -C "kee@myThinkpad0")
1.3 'cat ~/.ssh/id_rsa.pub' returns 'ssh-rsa <RANDOM CHARACTERS> kee@myThinkpad0'
2. Use this command to append public key to Pi, cat ~/.ssh/id_rsa.pub | ssh <USERNAME>@<IP-ADDRESS> 'cat >> .ssh/authorized_keys'
2.1 I typed( cat ~/.ssh/id_rsa.pub | ssh pi@10.42.0.2 'cat >> .ssh/authorized_keys' )
2.2 This command asked for password, and did not succeed.
2.3 Checking whether the file or folder existed on Pi, 'ls ~/.ssh' returned nothing.
2.4 So, created a folder by 'mkdir ~/.ssh' on Pi made 2.1 work.
The source file mentions "Agent admitted failure to sign using the key" error as well as scp method.
I personally prefer scp (scp ./id_rsa.pub pi@10.42.0.2:~/.ssh), however, this might replace previous file which may not be preferred in some cases.
Source: https://www.raspberrypi.org/documentation/remote-access/ssh/passwordless.md
There is a simple way to SSH without typing password each time.
1. On laptop 'ls ~/.ssh'
1.1 if above returns id_rsa.pub or id_dsa.pub, key already exists
1.2 if nothing returns or to make new keys 'ssh-keygen -t rsa -C login@devicename' (e.g. ssh-keygen -t rsa -C "kee@myThinkpad0")
1.3 'cat ~/.ssh/id_rsa.pub' returns 'ssh-rsa <RANDOM CHARACTERS> kee@myThinkpad0'
2. Use this command to append public key to Pi, cat ~/.ssh/id_rsa.pub | ssh <USERNAME>@<IP-ADDRESS> 'cat >> .ssh/authorized_keys'
2.1 I typed( cat ~/.ssh/id_rsa.pub | ssh pi@10.42.0.2 'cat >> .ssh/authorized_keys' )
2.2 This command asked for password, and did not succeed.
2.3 Checking whether the file or folder existed on Pi, 'ls ~/.ssh' returned nothing.
2.4 So, created a folder by 'mkdir ~/.ssh' on Pi made 2.1 work.
The source file mentions "Agent admitted failure to sign using the key" error as well as scp method.
I personally prefer scp (scp ./id_rsa.pub pi@10.42.0.2:~/.ssh), however, this might replace previous file which may not be preferred in some cases.
Source: https://www.raspberrypi.org/documentation/remote-access/ssh/passwordless.md
[Raspberry Pi] unknown host problem with shared internet
I have shared my laptop wifi internet access with raspberry pi using ethernet cable in previous post.
However, when I tried to ping www.google.com, it gave me an error of unknown host.
Trying to 'ping 8.8.8.8' also returned error, while to ping actual IP address worked. (i.e. 'ping xxx.xxx.xxx.xxx')
smithg400 from the source website mentioned specifying gateway in /etc/network/interfaces as well as DNS resolution and to have a look at /etc/resolv.conf
/etc/network/interfaces already had a gateway set up to the IP address of my laptop.
sudo cat /etc/resolv.conf returned empty. So I added nameserver xx.xx.xx.xx on the resolv.conf, which made DNS resolution work and I could ping www.google.com
This however, disappeared once I rebooted. Quick 'man resolvconf' returned that configuration file for resolv.conf is at /etc/resolvconf.conf. So, fix this file as well for persistent result.
Source: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=57024
However, when I tried to ping www.google.com, it gave me an error of unknown host.
Trying to 'ping 8.8.8.8' also returned error, while to ping actual IP address worked. (i.e. 'ping xxx.xxx.xxx.xxx')
smithg400 from the source website mentioned specifying gateway in /etc/network/interfaces as well as DNS resolution and to have a look at /etc/resolv.conf
/etc/network/interfaces already had a gateway set up to the IP address of my laptop.
sudo cat /etc/resolv.conf returned empty. So I added nameserver xx.xx.xx.xx on the resolv.conf, which made DNS resolution work and I could ping www.google.com
This however, disappeared once I rebooted. Quick 'man resolvconf' returned that configuration file for resolv.conf is at /etc/resolvconf.conf. So, fix this file as well for persistent result.
Source: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=57024
Tuesday, 11 August 2015
[Raspberry Pi] Connecting to raspberry pi using ethernet cable on linux mint 17 laptop
This post has been created using various sources I found on google.
1. To directly connect to PI, without sharing internet
2. Sharing internet
SOURCE:
http://stackoverflow.com/questions/16040128/hook-up-raspberry-pi-via-ethernet-to-laptop-without-router
http://elinux.org/RPi_cmdline.txt
https://pihw.wordpress.com/guides/direct-network-connection/
http://www.linuxcircle.com/2013/05/03/connecting-rpi-to-laptop-ethernet/
https://www.youtube.com/watch?v=ZK-JHfJqmkY
1.1 If headless (no monitor and keyboard for pi), mount SD card on your laptop
1.2 Go to boot partition, append ip=169.254.0.2 and save
1.3 Go to main partition, modify /etc/network/interfaces as below
1.3.1 (Recommended) save a copy of interfaces file for other setup
1.3.2 (Above procedures can be done on the RPi OS once logged in)
------------------------------------------------------------------------------------------------------------
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 169.254.0.2
netmask 255.255.255.0
gateway 169.254.0.1
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
-----------------------------------------------------------------------------------------------------------
1.4 On laptop, click on network connections, add a new 'Ethernet' connection.
1.4.1 Name the connection as you like, go to IPv4 settings
1.4.2 Change Method: Manual, Add Addresses and set to 169.254.0.1
1.4.3 Netmask 255.255.255.0 Gateway 0.0.0.0
1.5 Reboot RPi and you can SSH using ssh pi@169.254.0.2
2.1 On laptop, click network icon. On drop down menu click network connections.
2.1.1 Name the new Ethernet connection as you wish, go to IPv4 tab
2.1.2 Change Method: Shared to other computers
2.1.3 Click this new connection on network dropdown menu
2.2 On laptop terminal, enter 'cat /var/lib/misc/dnsmasq.leases'
2.1.1 (Output looks like below, remember ip address)
----------------------------------------------------------------------------
1439123882 b8:27:eb:a1:b2:c3 10.42.0.39 raspberrypi
----------------------------------------------------------------------------
2.2 On raspberry pi, modify /etc/network/interfaces as below
--------------------------------------------------------------------------------------------------------
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 10.42.0.39
netmask 255.255.255.0
gateway 10.42.0.1
--------------------------------------------------------------------------------------------------------
2.3 Reboot OR if using keyboard and monitor 'sudo ifdown eth0' and 'sudo ifup eth0' to get new ip address
2.4 'ping www.google.com' to test the connection
1. To directly connect to PI, without sharing internet
2. Sharing internet
SOURCE:
http://stackoverflow.com/questions/16040128/hook-up-raspberry-pi-via-ethernet-to-laptop-without-router
http://elinux.org/RPi_cmdline.txt
https://pihw.wordpress.com/guides/direct-network-connection/
http://www.linuxcircle.com/2013/05/03/connecting-rpi-to-laptop-ethernet/
https://www.youtube.com/watch?v=ZK-JHfJqmkY
1.1 If headless (no monitor and keyboard for pi), mount SD card on your laptop
1.2 Go to boot partition, append ip=169.254.0.2 and save
1.3 Go to main partition, modify /etc/network/interfaces as below
1.3.1 (Recommended) save a copy of interfaces file for other setup
1.3.2 (Above procedures can be done on the RPi OS once logged in)
------------------------------------------------------------------------------------------------------------
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 169.254.0.2
netmask 255.255.255.0
gateway 169.254.0.1
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
-----------------------------------------------------------------------------------------------------------
1.4 On laptop, click on network connections, add a new 'Ethernet' connection.
1.4.1 Name the connection as you like, go to IPv4 settings
1.4.2 Change Method: Manual, Add Addresses and set to 169.254.0.1
1.4.3 Netmask 255.255.255.0 Gateway 0.0.0.0
1.5 Reboot RPi and you can SSH using ssh pi@169.254.0.2
2.1 On laptop, click network icon. On drop down menu click network connections.
2.1.1 Name the new Ethernet connection as you wish, go to IPv4 tab
2.1.2 Change Method: Shared to other computers
2.1.3 Click this new connection on network dropdown menu
2.2 On laptop terminal, enter 'cat /var/lib/misc/dnsmasq.leases'
2.1.1 (Output looks like below, remember ip address)
----------------------------------------------------------------------------
1439123882 b8:27:eb:a1:b2:c3 10.42.0.39 raspberrypi
----------------------------------------------------------------------------
2.2 On raspberry pi, modify /etc/network/interfaces as below
--------------------------------------------------------------------------------------------------------
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 10.42.0.39
netmask 255.255.255.0
gateway 10.42.0.1
--------------------------------------------------------------------------------------------------------
2.3 Reboot OR if using keyboard and monitor 'sudo ifdown eth0' and 'sudo ifup eth0' to get new ip address
2.4 'ping www.google.com' to test the connection
Saturday, 10 May 2014
[Raspberry pi] RTL8188CU usb dongle driver installation and automatically connecting to wifi on boot
http://www.ebay.ca/itm/321261160362?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
purchased item
Mini USB 150M 150Mbps Wireless LAN Adapter 802.11b/n/g WiFi w/ 2dBi Antenna D1
more info
on $lsusb
ID 0bda:0179 Realtek Semiconductor Corp.
Installation of this usb dongle does not work on raspbian,
3.10.36+ #666
Following this guide,
Realtek wifi 8188CUS doesn't "just work"
http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=52236
and this original poster,
http://www.fars-robotics.net/
1. set up /etc/network/interfaces
2. set up /etc/wpa_supplicant/wpa_supplicant.conf
3. set up driver according to section... Installing the rtl8188eu based wifi adaptor driver for Raspbian.
3.1 $uname -a reveals version, which is reflected by URL date on 3.2
3.2 $wget https://dl.dropboxusercontent.com/u/80256631/8188eu-20140117.tar.gz
3.3 $tar -zxvf 8188eu-*.tar.gz
3.4 $sudo install -p -m 644 8188eu.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
3.5 $sudo insmod /lib/modules/$(uname -r)/kernel/drivers/net/wireless/8188eu.ko
3.6 $sudo depmod -a
4. modify /etc/rc.local according to following guide, **module name is different**
raspberrypi.stackexchange.com/questions/4120/how-to-automatically-reconnect-wifi
4.1 some files need to be created at /usr/local/bin/wifi, /etc/wifi.conf
5. reboot
P.S. to force connecting by commands at rc.local,
add following to /etc/rc.local, without modifying /etc/networks/interfaces or wpa_conf files
##/etc/rc.local
##for a WEP AP
iwconfig wlan0 essid APNAME key 1234567890
dhclient wlan0
#will run every boot
For linux mint 16 as well as ubuntu, this same dongle will work following this guide,
Good news re RealTek RTL-8188CUs
http://ubuntuforums.org/showthread.php?t=2042768
which is found from here,
Edimax EW-7811Un USB wireless – connecting to a network (on ubuntu 11.10)
http://www.r-statistics.com/2011/11/edimax-ew-7811un-usb-wireless-connecting-to-a-network-on-ubuntu-11-10/
Step 0: get a network cable
In order to solve this issue you will need Internet. Get a network cable which you can physically connect to your router. Once you have Internet access the following steps are much easier to follow.
Step 1: make it easy to open terminal window in a specific folder location
This step is important since it makes several other steps easier to manage.
The instructions on how to do it are given here. You simply need to open a terminal window (press CTRL+ALT+T), and type:
sudo apt-get install nautilus-open-terminal
From now on, whenever you want to open a new terminal window in a specific folder – you simply right-click that folder (from the folder which is a level above it) and choose “Open in Terminal”
Step 2: Download the latest edimx drivers
http://www.realtek.com.tw/downloads/...oads=true#2742
Step 3: Install the new driver
Go to the download folder and open (using right click, if you followed step 0) the terminal for the folder “RTL8192CU_8188CUS_8188CE-VAU_linux_v3.1.2590.20110922″. Then run:
sudo bash install.sh
(note 1: it will ask for your user’s password – as will any command which is using the sudo = super user do prefix)
(note 2: in order to paste in the terminal, use ctrl+shift+v instead of just ctrl+v as is in the GUI and other editors)
Step 4: blacklist the old driver
Next, we want to edit /etc/modprobe.d/blacklist.conf Getting there using the GUI wouldn’t work, because ubuntu wouldn’t let us save the changes we will make. Instead, just open the terminal and type:
sudo gedit /etc/modprobe.d/blacklist.conf
Go to the end of the file and add the line:
blacklist rtl8192cu
(thanks goes to icracked for the advise)
Step 5: remove and re-insert the network USB (and reboot)
Once done – I was finally able to see and connect to my home Internet network.
At this point, some people also said reboot helped, so if you got this far, why not do that too…
purchased item
Mini USB 150M 150Mbps Wireless LAN Adapter 802.11b/n/g WiFi w/ 2dBi Antenna D1
more info
on $lsusb
ID 0bda:0179 Realtek Semiconductor Corp.
Installation of this usb dongle does not work on raspbian,
3.10.36+ #666
Following this guide,
Realtek wifi 8188CUS doesn't "just work"
http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=52236
and this original poster,
http://www.fars-robotics.net/
1. set up /etc/network/interfaces
2. set up /etc/wpa_supplicant/wpa_supplicant.conf
3. set up driver according to section... Installing the rtl8188eu based wifi adaptor driver for Raspbian.
3.1 $uname -a reveals version, which is reflected by URL date on 3.2
3.2 $wget https://dl.dropboxusercontent.com/u/80256631/8188eu-20140117.tar.gz
3.3 $tar -zxvf 8188eu-*.tar.gz
3.4 $sudo install -p -m 644 8188eu.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
3.5 $sudo insmod /lib/modules/$(uname -r)/kernel/drivers/net/wireless/8188eu.ko
3.6 $sudo depmod -a
4. modify /etc/rc.local according to following guide, **module name is different**
raspberrypi.stackexchange.com/questions/4120/how-to-automatically-reconnect-wifi
4.1 some files need to be created at /usr/local/bin/wifi, /etc/wifi.conf
5. reboot
P.S. to force connecting by commands at rc.local,
add following to /etc/rc.local, without modifying /etc/networks/interfaces or wpa_conf files
##/etc/rc.local
##for a WEP AP
iwconfig wlan0 essid APNAME key 1234567890
dhclient wlan0
#will run every boot
For linux mint 16 as well as ubuntu, this same dongle will work following this guide,
Good news re RealTek RTL-8188CUs
http://ubuntuforums.org/showthread.php?t=2042768
which is found from here,
Edimax EW-7811Un USB wireless – connecting to a network (on ubuntu 11.10)
http://www.r-statistics.com/2011/11/edimax-ew-7811un-usb-wireless-connecting-to-a-network-on-ubuntu-11-10/
Step 0: get a network cable
In order to solve this issue you will need Internet. Get a network cable which you can physically connect to your router. Once you have Internet access the following steps are much easier to follow.
Step 1: make it easy to open terminal window in a specific folder location
This step is important since it makes several other steps easier to manage.
The instructions on how to do it are given here. You simply need to open a terminal window (press CTRL+ALT+T), and type:
sudo apt-get install nautilus-open-terminal
From now on, whenever you want to open a new terminal window in a specific folder – you simply right-click that folder (from the folder which is a level above it) and choose “Open in Terminal”
Step 2: Download the latest edimx drivers
http://www.realtek.com.tw/downloads/...oads=true#2742
Step 3: Install the new driver
Go to the download folder and open (using right click, if you followed step 0) the terminal for the folder “RTL8192CU_8188CUS_8188CE-VAU_linux_v3.1.2590.20110922″. Then run:
sudo bash install.sh
(note 1: it will ask for your user’s password – as will any command which is using the sudo = super user do prefix)
(note 2: in order to paste in the terminal, use ctrl+shift+v instead of just ctrl+v as is in the GUI and other editors)
Step 4: blacklist the old driver
Next, we want to edit /etc/modprobe.d/blacklist.conf Getting there using the GUI wouldn’t work, because ubuntu wouldn’t let us save the changes we will make. Instead, just open the terminal and type:
sudo gedit /etc/modprobe.d/blacklist.conf
Go to the end of the file and add the line:
blacklist rtl8192cu
(thanks goes to icracked for the advise)
Step 5: remove and re-insert the network USB (and reboot)
Once done – I was finally able to see and connect to my home Internet network.
At this point, some people also said reboot helped, so if you got this far, why not do that too…
Thursday, 1 May 2014
Turn old laptop monitor/screen lcd to make a external monitor
Source: RedFathom ( https://www.youtube.com/watch?v=r_lm1kRa1Fs&list=PL5xraSSdWblzadOLVWeN4_n3uh4AEigfe )
His sources:
Teensyduino microcontroller
http://www.pjrc.com/store/teensy.html
LVDS controller
http://www.ebay.com/sch/m.html?_odkw=&_ssn=goldpart&_nkw=gm5621
Bongofish
http://wiki.bongofish.co.uk/doku.php?id=bongofish:penenabled
Waxbee code
http://code.google.com/p/waxbee/
Teensyduino is used for serial-usb conversion of the tablet. (RedFathom)
The tablet uses a teensyduino 2.0 loaded with the waxbee script. it's just wired between D1&D2 on the teensy and 9-Rxd&10-Txd on the tablet. of course gnd-gnd vcc-vcc. i'll have to post my configuration file probably. you can find everything you need on the bongofish website it's where i found most of the info to do this. you'll probably have to take the tape off the cable since the colors vary. (RedFathom)
Model : HP TC4400 tablet
May 1, 2014:
Ordered LVDS controller (gm5621) off ebay.
Ordered teensy (2.0 without pin) off www.pjrc.com/store/teensy.html
Studied bongofish website, corresponding WACOM model# : SU-025-C02
there are 2 types for the pins, 10 or 14 pins.
For 14 pins, identify gnd(P1 or P2), vcc(P13), usb data+(P4), usb data -(P3).
For 10 pins, identify gnd(P6), vcc(P1), rxd tab->host @19200baud (P2), txd tab<-host (P3)
**txd description is different in bongofish website, but i believe this is the correct way.
TBC...
His sources:
Teensyduino microcontroller
http://www.pjrc.com/store/teensy.html
LVDS controller
http://www.ebay.com/sch/m.html?_odkw=&_ssn=goldpart&_nkw=gm5621
Bongofish
http://wiki.bongofish.co.uk/doku.php?id=bongofish:penenabled
Waxbee code
http://code.google.com/p/waxbee/
Teensyduino is used for serial-usb conversion of the tablet. (RedFathom)
The tablet uses a teensyduino 2.0 loaded with the waxbee script. it's just wired between D1&D2 on the teensy and 9-Rxd&10-Txd on the tablet. of course gnd-gnd vcc-vcc. i'll have to post my configuration file probably. you can find everything you need on the bongofish website it's where i found most of the info to do this. you'll probably have to take the tape off the cable since the colors vary. (RedFathom)
Model : HP TC4400 tablet
May 1, 2014:
Ordered LVDS controller (gm5621) off ebay.
Ordered teensy (2.0 without pin) off www.pjrc.com/store/teensy.html
Studied bongofish website, corresponding WACOM model# : SU-025-C02
there are 2 types for the pins, 10 or 14 pins.
For 14 pins, identify gnd(P1 or P2), vcc(P13), usb data+(P4), usb data -(P3).
For 10 pins, identify gnd(P6), vcc(P1), rxd tab->host @19200baud (P2), txd tab<-host (P3)
**txd description is different in bongofish website, but i believe this is the correct way.
TBC...
Friday, 28 March 2014
[python] google developers tutorial
https://developers.google.com/edu/python/
readable and comprehensive
readable and comprehensive
[tutorialspoint] Python Extension Programming with C
http://www.tutorialspoint.com/python/python_further_extensions.htm
For your first look at a Python extension module, you'll be grouping your code into four parts:
Structure
setup.py
Usage II
For your first look at a Python extension module, you'll be grouping your code into four parts:
- The header file Python.h.
- The C functions you want to expose as the interface from your module.
- A table mapping the names of your functions as Python developers will see them to C functions inside the extension module.
- An initialization function
Structure
#include <Python.h> static PyObject *module_func(PyObject *self, PyObject *args) { /* Do your stuff here. */ Py_RETURN_NONE; } static PyMethodDef module_methods[] = { { "func", (PyCFunction)module_func, METH_NOARGS, NULL }, { NULL, NULL, 0, NULL } }; PyMODINIT_FUNC initModule() { Py_InitModule3(func, module_methods, "docstring..."); }
Example
#include <Python.h> static PyObject* helloworld(PyObject* self) { return Py_BuildValue("s", "Hello, Python extensions!!"); } static char helloworld_docs[] = "helloworld( ): Any message you want to put here!!\n"; static PyMethodDef helloworld_funcs[] = { {"helloworld", (PyCFunction)helloworld, METH_NOARGS, helloworld_docs}, {NULL} }; void inithelloworld(void) { Py_InitModule3("helloworld", helloworld_funcs, "Extension module example!"); }
Usagesetup.py
from distutils.core import setup, Extension setup(name='helloworld', version='1.0', \ ext_modules=[Extension('helloworld', ['hello.c'])])
$ python setup.py install
Usage II
#!/usr/bin/python import helloworld print helloworld.helloworld()
Wednesday, 26 March 2014
Raspberry pi using SPI
http://www.brianhensley.net/2012/07/getting-spi-working-on-raspberry-pi.html
Original post guides through enabling RPi to connect to a micro controller.
He uses wheezy, but this works fine in nOS 2.2 as of March 2014.
I am only saving the commands required to enable it and test.
Background of SPI available at original link.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update
sudo chmod +x /usr/bin/rpi-update
sudo rpi-update
sudo shutdown -h now
#After reboot, check spidev0.0 is in fact available
ls /dev/
wget http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git\;a=blob_plain\;f=Documentation/spi/spidev_test.c -O spidev_test.c
#Original link command did not have escape letter, which did not work on my pi connection through SSH, so this one includes two escapes for ;
nano spidev_test.c
#change the device to spidev0.0
gcc spidev_test.c
sudo ./a.out
#if it does not work it will print 00s
#if it does work it will print FF 40 00 95 DE AD BE EF BA AD F0 0D
#MISO and MOSI pins needs to be connected (GPIO 9 and GPIO 10)
#Positioning PI's HDMI port towards me, SD slot on the left, USB on the right, GPIO count begins from left bottom pin [1], incrementing to right up to GPIO 13.
#Then the top row left [14], to top right [26]
Original post guides through enabling RPi to connect to a micro controller.
He uses wheezy, but this works fine in nOS 2.2 as of March 2014.
I am only saving the commands required to enable it and test.
Background of SPI available at original link.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update
sudo chmod +x /usr/bin/rpi-update
sudo rpi-update
sudo shutdown -h now
#After reboot, check spidev0.0 is in fact available
ls /dev/
wget http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git\;a=blob_plain\;f=Documentation/spi/spidev_test.c -O spidev_test.c
#Original link command did not have escape letter, which did not work on my pi connection through SSH, so this one includes two escapes for ;
nano spidev_test.c
#change the device to spidev0.0
gcc spidev_test.c
sudo ./a.out
#if it does not work it will print 00s
#if it does work it will print FF 40 00 95 DE AD BE EF BA AD F0 0D
#MISO and MOSI pins needs to be connected (GPIO 9 and GPIO 10)
#Positioning PI's HDMI port towards me, SD slot on the left, USB on the right, GPIO count begins from left bottom pin [1], incrementing to right up to GPIO 13.
#Then the top row left [14], to top right [26]
Raspberry pi backup SD card using linux
I use raspberry pi model B.
Due to my unstable power supply RPi had gone through many freeze/crashes.
This sudden change in voltage can corrupt SD card easily.
Restoring SD image and pop it back in, and save some downtime.
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=91&t=46911
sudo dd if=/dev/mmcblk0 bs=4M | gzip > /home/your_username/image.gz
gzip -dc /home/your_username/image.gz | sudo dd bs=4M of=/dev/sdb
--
for me
sudo fdisk -l
#Showed sdcard as /dev/mmcblk0
sudo dd if=/dev/mmcblk0 bs=4M | gzip >/media/my/RPIbackup'date +%y%m%d'.gz
#To restore
sudo fdisk -l
gzip -dc /home/your_username/image.gz | sudo dd bs=4M of=/dev/mmcblk0
Due to my unstable power supply RPi had gone through many freeze/crashes.
This sudden change in voltage can corrupt SD card easily.
Restoring SD image and pop it back in, and save some downtime.
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=91&t=46911
sudo dd if=/dev/mmcblk0 bs=4M | gzip > /home/your_username/image.gz
gzip -dc /home/your_username/image.gz | sudo dd bs=4M of=/dev/sdb
--
for me
sudo fdisk -l
#Showed sdcard as /dev/mmcblk0
sudo dd if=/dev/mmcblk0 bs=4M | gzip >/media/my/RPIbackup'date +%y%m%d'.gz
#To restore
sudo fdisk -l
gzip -dc /home/your_username/image.gz | sudo dd bs=4M of=/dev/mmcblk0
Subscribe to:
Posts (Atom)