Wednesday, February 11, 2015

Remove little black rectangle on screen - raspberry pi

To rid yourself of the annoying little black rectangle do the following, its only a work around but it does work.


Create a script, mine starts my kiosk as well so is called /home/pi/screen.sh

this script should look like:
#!/bin/bash
startx –help
while true; do chromium –kiosk –incognito –enable-plugins http://your web addresshere.html;sleep 180s;done


The 2nd line is my kiosk – you probably wont need it but I put it there anyway.

Then add the following line
 @/home/pi/screen.sh

to the file:

/etc/xdg/lxsession/LXDE-pi/autostart

Reboot and watch the splash screen followed by a brief black flash and then your screenly, kiosk, or whatever your running without the black rectangle.

Custom boot / splash screen - Raspberry Pi

Displaying an image during boot instead of the default command line scrolling text - custom boot/splash screen on Raspberry Pi

This is based on the guide here. 
This solution works but there are a few seconds of text shown before the boot image appears.
To hide it edit /boot/cmdline.txt

and change to:

console=tty3

add 
logo.nologo
to see booting use alt+f3
Install fbi

sudo apt-get install fbi
Copy the splashscreen image to be used
Copy your custom splash image into: /etc/ and name it "splash.png".
Presumably the resolution to use is 1920x1080px.
Create A Script

sudo nano
 
Paste the following into the text editor:

#! /bin/sh
### BEGIN INIT INFO
# Provides:          asplashscreen
# Required-Start:
# Required-Stop:
# Should-Start:      
# Default-Start:     S
# Default-Stop:
# Short-Description: Show custom splashscreen
# Description:       Show custom splashscreen
### END INIT INFO


do_start () {

    /usr/bin/fbi -T 1 -noverbose -a /etc/splash.png    
    exit 0
}

case "$1" in
  start|"")
    do_start
    ;;
  restart|reload|force-reload)
    echo "Error: argument '$1' not supported" >&2
    exit 3
    ;;
  stop)
    # No-op
    ;;
  status)
    exit 0
    ;;
  *)
    echo "Usage: asplashscreen [start|stop]" >&2
    exit 3
    ;;
esac

:


Exit and save the file as: /etc/init.d/asplashscreen

(using a name starting with 'a' will ensure it runs first)
Finally make the script executable and install it for init mode:

sudo chmod a+x /etc/init.d/asplashscreen
sudo insserv /etc/init.d/asplashscreen

sudo reboot 
 

Getting Out Of Black Screen

If you get a black screen at the end of booting (if you've not setup auto running the GUI etc) use CTRL + ALT + F2 to get the command prompt
 
 
found at http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/custom-boot-up-screen 

Tuesday, February 3, 2015

Centos 7 and XRDP

To install XRDP on Centos 7 the best way is :

1. install nux repo
# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

2. Install xrdp with gnome and vnc server

Install Gnome
# yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

Install xrdp and tigervnc
# yum -y install xrdp tigervnc-server

3. When  is installed, let`s start the xrdp service.
 
# systemctl start xrdp.service

Setup ssh keys between servers

1. Create key
# ssh-keygen -t rsa

2. Copy id to other server
#  ssh-copy-id [email protected]

-- type password.

From now on you can login without password just:

#ssh server.address.com

Cybermap

Internet Storm Center Infocon Status

Internet Storm Center Infocon Status
Internet Storm Center Infocon Status