Enable Java in Firefox Ubuntu

I’ve been trying to get Java applet working to be able to remotely access my UCL desktop through Oracle Secure Global Desktop Web Server

Googling around seems to get me to the answer that it is not possible to get it working with Chrome as it has changed its policy. However, it’s possible with Firefox

Instructions on Java website aren’t helping at all

Here’s how I made it to work:
http://askubuntu.com/questions/354361/how-to-install-the-java-plugin-for-firefox

sudo apt-get install icedtea-plugin

then go to about:addons

You should have IcedTea-Web Plugin (using IcedTea-Web 1.5 (1.5-1ubuntu1)) on the plugin list and it’s not enable

Change it to Always Active and restart browser
It should work fine now 🙂

Advertisements

Make changes to SensorTag

1. Cloud http://dev.ti.com/tirex/#/?link=CC26xx%20Bluetooth%20Smart%2FDevelopment%20Tools%2FCC2650%20Bluetooth%20Smart%20SensorTag%2FExamples%2FSensorTag
2. Code Composer Studio – debug, then make sure to click Resume otherwise, it won’t be detected on the SensorTag app on the phone

Also, the example https://www.youtube.com/watch?v=Ag4EDXVZ7HQ to change the name etc; the file has changed location to SensorTag>Application>SensorTag.c

// Device information parameters
static const uint8_t devInfoModelNumber[] = "Adila SensorTag";
static const uint8_t devInfoNA[] = "N.A.";
static const uint8_t devInfoFirmwareRev[] = FW_VERSION_STR;
static const uint8_t devInfoMfrName[] = "Texas Instruments";
static const uint8_t devInfoHardwareRev[] = "PCB 1.2/1.3";

for Cloud, need to install
1. TI Cloud Agent
2. Modify proxy at where you installed in at C:\Users\noradila\TICloudAgent\util\proxy.js

add:
module.exports.proxy = "DIRECT"

Setup CC2650 Sensortag

I had way too much problem getting it to work. Finally it’s working!
I’m using CC2650 sensortag with debugger devPack
Make sure the sensor is being detected in Device Manager otherwise it won’t work
If it is not being detected, check if the LED are light up
If they are, change to other cables – cables that you use to charge the phone might not work (at least that was the problem with mine – 3 of my cables aren’t working with the sensor but work for charging phones)

The one that worked was LOGIK 1.2m micro USB cable (USB A to micro USB) I got it for £19.99 (I think!) from PC World

Here’s the link where I followed how setup http://43oh.com/2015/07/how-to-setup-a-development-environment-for-the-cc2650stk-sensortag/

1. Install BLE-STACK2
2. Install Code Composer Studio
Help->CCS App Center> update TI-RTOS for SimpleLink
and TI-ARM compiler

3. Install XDS emulation

Open CCS, select a workspace
File->TI Resource Explorer. On the left panel you should see BLE-Stack for SimpleLink wireless MCUs
If you don’t see it, click Add additional packages and look for it at C:\ti\simplelink\ble_cc26xx_2_01_00_4423 (or where you installed BLE-STACK2 at)
Add that package; go through ble_cc26xx_2_01_00_4423>Projects>ble>SensorTag>CC26xx>CCS and you’ll find SensorTag and SensorTagStack

Import SensorTag and SensorTagStack
Build SensorTagStack

Plug in the sensor and debug

Good to go! 😀

Install Adobe Reader on Ubuntu

A good way of doing it
I tried to install it through Wine but had some errors

http://ubuntuhandbook.org/index.php/2014/10/install-adobe-reader-ubuntu-14-10/

Instructions copied from the link

1. Open up terminal by pressing Ctrl+Alt+T on keyboard. When it opens, paste the command below and hit enter to add the repository:

sudo add-apt-repository "deb http://archive.canonical.com/ precise partner"

Type in your user password when it asks. Note that there’s no visual feed back when you typing a password.

2. After you added the repository, update package lists and install the acroread package by running below commands one by one:

sudo apt-get update && sudo apt-get install acroread

Install Adobe Reader in Ubuntu 14.10

Once installed, you should be able to open it from Unity dash or Application menu.

3 After properly installed Adobe Reader, don’t forget to remove the Canonical Partners repository for Precise:

sudo add-apt-repository -r "deb http://archive.canonical.com/ precise partner"

sudo apt-get update

To open it from the terminal, acroread

Contiki 3.0

I couldn’t get Cooja to run – even when I did, there’s no Sky mote available
Here’s what was suggested to be done:


$ git clone --recursive https://github.com/contiki-os/contiki
Cloning into 'contiki'...
remote: Counting objects: 85790, done.
remote: Compressing objects: 100% (74/74), done.
remote: Total 85790 (delta 33), reused 0 (delta 0), pack-reused 85701
Receiving objects: 100% (85790/85790), 61.26 MiB | 309 KiB/s, done.
Resolving deltas: 100% (61855/61855), done.

$ cd cooja
$ git branch
* master

$ git branch -r
origin/HEAD -> origin/master
origin/master
origin/release-2-7
origin/release-3-0

$ git checkout origin/release-3-0 -b release-3-0
Branch release-3-0 set up to track remote branch release-3-0 from origin.
Switched to a new branch 'release-3-0'

$ git branch
master
* release-3-0

$ cd tools/cooja
$ rm -rf .git
$ cd ..
$ git submodule update --init

$ cd cooja
$ ant run_bigmem


adila@adila:~$ cd Desktop/
adila@adila:~/Desktop$ git clone --recursive https://github.com/contiki-os/contiki
Cloning into 'contiki'...
remote: Counting objects: 86048, done.
remote: Total 86048 (delta 0), reused 0 (delta 0), pack-reused 86047
Receiving objects: 100% (86048/86048), 61.27 MiB | 4.67 MiB/s, done.
Resolving deltas: 100% (62060/62060), done.
Checking connectivity... done.
Submodule 'cpu/cc26xx-cc13xx/lib/cc13xxware' (https://github.com/g-oikonomou/cc13xxware.git) registered for path 'cpu/cc26xx-cc13xx/lib/cc13xxware'
Submodule 'cpu/cc26xx-cc13xx/lib/cc26xxware' (https://github.com/g-oikonomou/cc26xxware.git) registered for path 'cpu/cc26xx-cc13xx/lib/cc26xxware'
Submodule 'tools/cc2538-bsl' (https://github.com/JelmerT/cc2538-bsl.git) registered for path 'tools/cc2538-bsl'
Submodule 'tools/mspsim' (https://github.com/contiki-os/mspsim.git) registered for path 'tools/mspsim'
Cloning into 'cpu/cc26xx-cc13xx/lib/cc13xxware'...
remote: Counting objects: 159, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 159 (delta 0), reused 0 (delta 0), pack-reused 157
Receiving objects: 100% (159/159), 578.40 KiB | 0 bytes/s, done.
Resolving deltas: 100% (57/57), done.
Checking connectivity... done.
Submodule path 'cpu/cc26xx-cc13xx/lib/cc13xxware': checked out '63ed52888467ea7d403b0c743852162395232c9e'
Cloning into 'cpu/cc26xx-cc13xx/lib/cc26xxware'...
remote: Counting objects: 413, done.
remote: Total 413 (delta 0), reused 0 (delta 0), pack-reused 413
Receiving objects: 100% (413/413), 871.56 KiB | 0 bytes/s, done.
Resolving deltas: 100% (289/289), done.
Checking connectivity... done.
Submodule path 'cpu/cc26xx-cc13xx/lib/cc26xxware': checked out '0e82b18bf2c69fb0a40af4d2496db2a3dc721cec'
Cloning into 'tools/cc2538-bsl'...
remote: Counting objects: 131, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 131 (delta 0), reused 0 (delta 0), pack-reused 127
Receiving objects: 100% (131/131), 62.98 KiB | 0 bytes/s, done.
Resolving deltas: 100% (40/40), done.
Checking connectivity... done.
Submodule path 'tools/cc2538-bsl': checked out '1223bfe03cdb31c439f1a51593808cdabc1939d2'
Cloning into 'tools/mspsim'...
remote: Counting objects: 9374, done.
remote: Total 9374 (delta 0), reused 0 (delta 0), pack-reused 9374
Receiving objects: 100% (9374/9374), 7.31 MiB | 4.70 MiB/s, done.
Resolving deltas: 100% (4274/4274), done.
Checking connectivity... done.
Submodule path 'tools/mspsim': checked out '58f187351f3417814aa2d0d92af9e2bb768d92ee'

adila@adila:~/Desktop$ cd contiki
adila@adila:~/Desktop/contiki$ git branch
* master

adila@adila:~/Desktop/contiki$ git branch -r
origin/HEAD -> origin/master
origin/master
origin/release-2-7
origin/release-3-0

adila@adila:~/Desktop/contiki$ git checkout origin/release-3-0 -b release-3-0
warning: unable to rmdir cpu/cc26xx-cc13xx/lib/cc13xxware: Directory not empty
warning: unable to rmdir cpu/cc26xx-cc13xx/lib/cc26xxware: Directory not empty
M tools/cc2538-bsl
Branch release-3-0 set up to track remote branch release-3-0 from origin.
Switched to a new branch 'release-3-0'

adila@adila:~/Desktop/contiki$ git branch
master
* release-3-0

adila@adila:~/Desktop/contiki$ cd tools/cooja/
adila@adila:~/Desktop/contiki/tools/cooja$ rm -rf .git
adila@adila:~/Desktop/contiki/tools/cooja$ cd ..
adila@adila:~/Desktop/contiki/tools$ git submodule update --init

Submodule 'cpu/cc26xx/lib/cc26xxware' (https://github.com/g-oikonomou/cc26xxware.git) registered for path '../cpu/cc26xx/lib/cc26xxware'
Cloning into 'cpu/cc26xx/lib/cc26xxware'...
remote: Counting objects: 413, done.
remote: Total 413 (delta 0), reused 0 (delta 0), pack-reused 413
Receiving objects: 100% (413/413), 871.56 KiB | 0 bytes/s, done.
Resolving deltas: 100% (289/289), done.
Checking connectivity... done.
Submodule path '../cpu/cc26xx/lib/cc26xxware': checked out '420ae3682c11619c1340697632b2dc49f7e53037'
Submodule path 'cc2538-bsl': checked out 'd6711e24ceeb1de09421166a3dc1b97378648af5'

adila@adila:~/Desktop/contiki/tools$ cd cooja/
adila@adila:~/Desktop/contiki/tools/cooja$ ant run_bigmem

Skype – no sound in Linux

I usually use it on my iPhone since it’s easier
but anyway, it doesn’t hurt to have one on the laptop

Installing on Ubuntu is pretty straightforward
I had problems not hearing both sides communication

https://support.skype.com/en/faq/FA10964/how-do-i-adjust-the-sound-settings-on-my-computer-and-in-skype-for-linux

Install PulseAudio Volume Control from Ubuntu Software Centre
Restart your computer before proceeding (well, I had to)
Open PulseAudio Volume Control; adjust the input and output accordingly

On Skype, Options > Sound Device, it should detect PulseAudio

I’m not sure what I clicked earlier; I changed the setting somewhere from Digital to Analogue (not sure what anymore lol)

Install from tar.gz file

http://askubuntu.com/questions/25961/how-do-i-install-a-tar-gz-or-tar-bz2-file

How you compile a program from a source

open a console
use the command cd to navigate to the correct folder. If there is a README file with installation instructions, use that instead.
extract the files with one of the commands

If it’s tar.gz use tar xvzf PACKAGENAME.tar.gz
if it’s a tar.bz2 use tar xvjf PACKAGENAME.tar.bz2

./configure

make

sudo make install

to run it, usually call it by it’s name