Need to install some 32-bit libraries for the emulator to work:
$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
Notes on Software Development
$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
$ sudo apt-get install virtualbox
However, the version that comes with Ubuntu is fairly old. I decided to connect directly to www.virtualbox.org to get the latest version.
apt
and installs the 5.1 version of VirtualBox.
deb http://download.virtualbox.org/virtualbox/debian yakkety contrib
The name yakkety
is the name of the Ubuntu 16.10 distribution.dkms
the installation should automatically be updated when the kernel is updated.
$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc
$ sudo apt-key add oracle_vbox_2016.asc
$ sudo apt-get update
$ sudo apt-get install virtualbox-5.1
git
and dkms
installed before proceeding.
The installation is a 2 step process:$ sudo apt-get install git $ sudo apt-get install dkms
/usr/src
which is managed by dkms
. Then it should automatically be compiled into the kernel whenever it is updated.$ git clone https://github.com/diederikdehaas/rtl8812AU.git
dkms
package like this:
Note that in the following block of commands, the first thing I do is a$ sudo -s -H # DRV_NAME=rtl8812AU # DRV_VERSION=4.3.14 # mkdir /usr/src/${DRV_NAME}-${DRV_VERSION} # git archive driver-${DRV_VERSION} | tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION} # dkms add -m ${DRV_NAME} -v ${DRV_VERSION} # dkms build -m ${DRV_NAME} -v ${DRV_VERSION} # dkms install -m ${DRV_NAME} -v ${DRV_VERSION} # exit $
sudo -s -H
as I want to do all the commands as root
(superuser).The company network may have blocked the git:// protocol and a package manager like ngm may fail when attempting to update dependencies.
You can get Git to automatically use https:// instead of git:// in URL's.
git config --global url.https://.insteadOf git://
$ make --versionGNU Make 3.81
$ gunzip poco-1.6.1.tar.gz $ tar -xf poco-1.6.1.tar $ cd poco-1.6.1 $ ./configure $ make -s
$ sudo make -s install
$ sudo xcodebuild -license
$ cd /path/to/boost
$ tar --bzip2 -xf ./boost_1_59_0.tar
$ cd boost_1_59_0
$ ./bootstrap.sh --prefix=/usr/local
$ ./b2 stage
/usr/local
which was specified using the --prefix option. Use sudo to allow for writing to /usr/local
.
$ sudo ./b2 install
session.user = "Robert"
import javax.servlet.http.HttpSession
import org.springframework.web.context.request.RequestContextHolder
class SessionStorageService {
static transactional = false
static scope = "singleton"
def setUser(User user) {
getSession().user = user
}
def getUser() {
getSession().user
}
private HttpSession getSession() {
return RequestContextHolder.currentRequestAttributes().getSession()
}
}
sessionStorageService
:
class BaseController {
def sessionStorageService
...
sessionStorageService.setUser("Robert")
...
}
Any comments or suggestions are appreciated .