This FAQ gives some background and discussion for frequently encountered problems with the ncurses library, the terminal database and applications. A communitybuilt site of hints and tips on using Apples new Mac OS X operating system. Joonas Pihlajamaa. Coding since 1990 in Basic, CC, Perl, Java, PHP, Ruby and Python, to name a few. Also interested in math, movies, anime, and the occasional. Copyright. txtThis computer source code is Copyright c2006 MindView, Inc. All Rights Reserved. Permission to use, copy, modify, and distribute this. August 2. 0, 2. 01. IBM recentlyannounced Docker support for Domino. It is supposed to come with FP1. Domino IMHO is not a microservic, but Domino on Docker has other advantages. Think about a support person maintaining a product. All he needs to investigate a customers issue is the data from the customer and a Domino environment that is known to run the application stable. He can the create a new container from a Docker image, copy the files from the customer into the container, start Domino and then he can try to reproduce the issue. Python Serial Readline Example Java' title='Python Serial Readline Example Java' />You can also do this with VMs, but Docker images are more flexible. Our supporter might expect that the customer uses a specific version of Linux for the Domino server installation. But it turns out, that he uses the lastest build of the Linux OS. You would need to setup a new VM with the Linux version that is needed, install and configure Domino etc Waste of time and resources. Using Docker, this is just one change in a Dockerfile. I will be speaking about Docker at Admin. Camp 2. 01. 7 in September. I will talk about Docker in general and also about Domino on Docker. In this blogpost, I want to show, how easy it is to create a Domino image optional with FP, and then build and run a Docker container from the image. I assume that you already have Docker installed on a host. I am using RHEL 7 as the host OS for Docker. Let us start with the basic Domino 9. I am using the excellent start scripts for Domino by Daniel Nashed. If you run Domino on Linux and you do not already have the scripts, get and use them. First of all, create a new directory on your host. This directory will be used to store the needed Dockerfiles. You can also download the files and use them. All Domino installation files should be accessible from a web server. YOURHOST placeholder with your webserver. Here is the Dockerfile for the Domino 9. FROM centos. ENV DOMSCRresourcesinitscripts. ENV DOMCONFresourcesserverconfig. ENV NUINOTESDIR optibmdomino. RUN yum update y. G notes notes. End of file etcsecuritylimits. COPY DOMCONFtmpsw reposerverconfig. RUN mkdir ptmpsw repo. YOURHOSTDOMINO9. BITLINXSEN. DOMINO9. 0. 16. BITLINXSEN. RUN mkdir petcsysconfig. COPY DOMSCRrcdomino etcinit. RUN chmod ux etcinit. COPY DOMSCRrcdominoscript optibmdomino. RUN chmod ux optibmdominorcdominoscript. COPY DOMSCRrcdominoconfignotes etcsysconfigFROM centos. ENV DOMSCRresourcesinitscripts. ENV DOMCONFresourcesserverconfig. ENV NUINOTESDIR optibmdominoRUN yum update y. G notes notes. End of file etcsecuritylimits. COPY DOMCONF tmpsw reposerverconfig. RUN mkdir p tmpsw repo. YOURHOSTDOMINO9. BITLINXSEN. DOMINO9. 0. 16. BITLINXSEN. RRUN mkdir p etcsysconfig. COPY DOMSCRrcdomino etcinit. RUN chmod ux etcinit. COPY DOMSCRrcdominoscript optibmdomino. RUN chmod ux optibmdominorcdominoscript. COPY DOMSCRrcdominoconfignotes etcsysconfigWe install Domino on the latest Cent. OS build if you want to use a specific Cent. OS build, change the first line in the Dockerfile and add the buildnumber. You can see a lot of commands that have been combined into one RUN statement. Doing it this way, you can keep the image size a bit smaller. Each RUN command would create an extra layer and this will increase the size of your image. So, in the first part, we update the Cent. OS image from the Docker repository with the latest fixes and also install additional packages that we need for the Domino installation. Next, we copy our response. Now we download the Domino 9. Last part is installation of the start script files, assigning user and group and granting permissions. All temporary files are also deleted. Now we can create an image from the Dockerfile. Dockerfile. This will take about 1. When the build is completed, we can list our image docker imageseknoridomino 901 9. GBNext we will use this image and install FP9. If you need some other FP, tweak the Dockerfile to your own needs. Once you get familiar to Docker, this is easy. FROM eknoridomino 901. ENV DOMCONFresourcesserverconfig. ENV NUINOTESDIR optibmdomino. COPY DOMCONFtmpsw reposerverconfig. RUN mkdir ptmpsw repo. YOURHOSTdomino. FP9linux. FP9linux. 64x. 86. R. rmoptibmdominonotes9. RFROM eknoridomino 901. ENV DOMCONFresourcesserverconfig. ENV NUINOTESDIR optibmdominoCOPY DOMCONF tmpsw reposerverconfig. RUN mkdir p tmpsw repo. YOURHOSTdomino. FP9linux. FP9linux. 64x. 86. R. rm optibmdominonotes9. RA much shorter Dockerfile, as we already have installed Domino and now can reuse the 901 image as the base image for our 901FP9 image. The last line in the RUN command removes the uninstall information. Maybe this can be done in the response. Again, build the new image. FP9 f Dockerfile. FP9 ed. 02. 76f. GBNow we can build or final Domino 9. FP9 from the 901FP9. Our Dockerfile looks like this. FROM eknoridomino 901FP9. EXPOSE 2. 58. 04. COPY resourcesdocker entrypoint. RUN chmod. 77. 5docker entrypoint. WORKDIR localnotesdata. ENV LOGNAMEnotes. ENV PATHPATH optibmdomino. ENTRYPOINT docker entrypoint. FROM eknoridomino 901FP9. EXPOSE 2. 5 8. 0 4. COPY resourcesdocker entrypoint. RUN chmod 7. 75 docker entrypoint. USER notes. WORKDIR localnotesdata. ENV LOGNAMEnotes. ENV PATHPATH optibmdominoENTRYPOINT docker entrypoint. ENTRYPOINT command contains the followingbinbash. IDlocalnotesdataserver. ID thenoptibmdominobinserver listen. IDlocalnotesdataserver. ID then. optibmdominobinserver listen 1. The ENTRYPOINT is executed when the container starts. The script just checks, if the server is already configured. If not, it starts the server in LISTEN mode. Costume Plot Template. If it finds a server. Let us build or final image. FP9 f Dockerfile. Sony Vegas Pro Keygen And Crack. FP9 1fae. 2fe. 73df. GBNow we are ready to create a container from the image. But we need one additional step. All changes that we make in a container will be lost, once the container is stopped. So we need to create a persitent data store and attach it to the container. To create a persitent volume, typedocker volume create namedominodata. And then typedocker run it p 1. FP7 v dominodata localnotesdata eknoridomino domino901FP9to build and run the container. I have used port 1. After the build, the ENTRYPOINT will start the Domino server in LISTEN mode. You can now setup your server using the remote setup tool. After you have setup your server, close the remote setup and stop Domino. This will also stop your container. You can start and get access to the container withdocker start 9. FP9docker attach 9. FP9. This gives you great flexibility. Once FP1. 0 is in the wild, create a new image from the 901 image and install FP1. Then create a new image for your final Domino installation. Run this image and attach the persitent volume. Posted in Articles 1 Comment. Arduino and Raspberry Pi Serial Communication Code and Life. Todays the last day of my summer holiday, and I had some free time on my hands. So I decided to see if I could get my Arduino Uno and Raspberry Pi to talk to each other. It turned out the task was even easier than my previous Pi to RS 2. Ohm resistors to form a voltage divider between Arduino TX pin and Pi RX pin Arduino understands Pis 3. V signal levels just fine so Pi TX to Arduino RX needed no voltage shifting at all. IMPORTANT UPDATE It turns out that the RX pin on the Arduino is held at 5. V even when that pin is not initialized. I suspect it is due to the fact that the Arduino is programmed via these same pins every time you flash it from Arduino IDE, and there are external weak pullups to keep the lines to 5. V at other times. So the method described below may be risky I suggest either add a resistor in series to the RX pin, or use a proper level converter see this post for details how to accomplish that. And if you do try the method below, never connect the Pi to Arduino RX pin before you have already flashed the program to Arduino, otherwise you may end up with a damaged Pi Setting Raspberry Pi up for serial communications. In order to use the Pis serial port for anything else than as a console, you first need to disable getty the program that displays login seen by commenting the serial line out of Pis etcinittab. Line below commented out. L tty. AMA0 1. 15. If you dont want the Pi sending stuff over the serial line when it boots, you can also remove the statements consoletty. AMA0,1. 15. 20. 0 and kgdboctty. AMA0,1. 15. 20. 0 from bootcmdline. Youll need to reboot the Pi in order for the changes to take effect. If you have a 3. 3. V compatible serial adapter in your computer or a MAX3. RS 2. 32 adapter, in which case see my tutorial on building one, its a good time to try out if everything is working on the Pi side. Install minicom sudo apt get install minicom and attach is to serial terminal. D devtty. AMA0. Then open Putty or similar serial terminal on PC side. Everything you type into minicom should appear in the serial terminal on PC side, and characters typed to serial terminal should appear on minicom. Connecting Arduino Uno to Raspberry Pi. Theres basically two ways to link the Arduino to the Pi. Easier route would be to just plug Arduino into the Pi via USB. The USB to serial bridge should be automatically recognized and be available at devtty. ACM0. But if you want to do it the hard way like I did, you can also connect the Pi GPIO pins seen on the right, 3. V not needed this time to Arduino Connect grounds of both devices triple check first that they are the groundsConnect Pi TX to Arduino RX series resistor recommended, only connect after flashing, never flash with Pi connectedConnect Arduino TX to Pi RX via a voltage devider. As a voltage divider, I used a 1 k. Ohm resistor between the Arduino TX and Pi RX, and another 1 k. Ohm between Pi RX and ground. That way, the 5. V Arduino signal voltage is effectively halved. Connect the resistor ladder first, and then the Pi RX between the two resistors, so theres at no point a voltage over 3. Pi You can see the connection in action here. Communication between Pi and Uno. For Rasp. Pi side, Id recommend minicom see the command line above for testing, and py. Serial sudo apt get install python serial for interaction. Using Python, you can easily make the Pi do lots of interesting things when commands are received from Arduino side. Heres a simple ROT 1. GPIO serial interface. ABCDEFGHIJKLMabcdefghijklm. NOPQRSTUVWXYZnopqrstuvwxyz. NOPQRSTUVWXYZnopqrstuvwxyz. ABCDEFGHIJKLMabcdefghijklm. Serialdevtty. AMA0,9. True. Keyboard. Interrupt. For the Arduino, you can you the serial capabilities of Arduino environment. Heres a simple program that echoes back everything that is sent from Pi to Arduino. Serial. begin9. 60. Byte. ifSerial. available 0. Byte Serial. read. Serial. writeincoming. Byte. Note that you shouldnt use these programs together, or nothing happens and you wont see anything either Pi side programs can be tested with a PC serial adapter and Putty, and Arduino side programs with minicom running in the Pi. Thats it for this time. Now that I have the two things communicating, I think Ill do something useful with the link next. Maybe a simple Arduino HDMI shield using Rasp.