stevepedwards.com/DebianAdmin linux mint IT admin tips info

Raspberry Pi Quad Core Install – X11vnc config and BOGOMIPS comparisons

Finally bought one to check out, so will see how it goes.

The install has a more detailed raspi-config menu,


with some interesting options to activate before first boot, like Enable Camera – as I have one to check out soon – and:

www.Rastrack.co.uk


An interesting development it seems is the optional Device Tree data – a method of separating hardware from the kernel. I did not choose this just yet, in case there were issues.



Once at the Desktop, I installed SSH for the usual PuTTY remote control comfort, then followed some of my homepage Wheezy Install commands for ease of recapping some essentials, like Vim and some other whimsical options, after gaining root control from the default Pi user, using

sudo –s

passwd root

su root

as seen in my history:

root@raspberrypi:/# history

1 ls /

2 passwd root

3 adduser stevee

4 exit

5 su root

6 reboot

9 apt-get update

10 apt-get upgrade

15 apt-get install vim

16 apt-get install module-assistant build-essential

19 apt-get install openssh-server

20 ssh-keygen

21 apt-get install samba smbclient cifs-utils

24 apt-get install pdbedit

25 pdbedit -a stevee

26 vi /etc/samba/smb.conf

27 testparm

28 apt-get install testparm

29 mkdir /share

30 vi /etc/samba/smb.conf

32 /etc/init.d/samba restart

36 chown -R stevee /share/

64 smbclient -L RASPBERRYPI -U stevee

65 lsusb

66 apt-get install nmap tcpdump htop ntop rsync rdesktop autoconf automake module-assistant smartmontools ntfs-3g coreutils

67 nmap 127.0.0.1

68 htop

69 cat /proc/cpuinfo

70 apt-get install banshee

71 cd /

72 history

I'm now at the point of installing x11vnc to be able to remote in to X via TightVNC.

x11vnc –storepasswd

Enter VNC password:

Verify password:

Write password to /home/stevee/.vnc/passwd? [y]/n y

Password written to: /home/stevee/.vnc/passwd

x11vnc -auth guess

18:02:29 -auth guess: failed for display='unset'

Trying my user conf as user stevee:

x11vnc -auth /home/stevee/.Xauthority -display :0

No go there either. What's using the X server?

ps -aux | grep X

warning: bad ps syntax, perhaps a bogus '-'?

See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ

root 2392 0.0 1.8 30528 16684 tty7 Ss+ 17:33 0:01 /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

pi 2517 0.0 0.3 12872 2988 ? Ssl 17:33 0:00 /usr/bin/lxsession -s LXDE-pi -e LXDE

pi 2553 0.2 2.7 119980 24232 ? Sl 17:33 0:05 lxpanel --profile LXDE-pi

pi 2556 0.0 1.8 114380 16416 ? Sl 17:33 0:00 pcmanfm --desktop --profile LXDE-pi

root 5629 0.0 0.2 3556 1864 pts/0 S+ 18:08 0:00 grep X

Ah, the Pi uses LXDE as the Window manager – the one I didn't like on the main Wheezy page...

X11vnc gives example auths for gdm, kdm and xdm in its output, but not LXDE. Trying:

x11vnc -auth /usr/bin/X :0 -auth /var/run/lightdm/root/:0

Nope – research required...

http://www.megaleecher.net/Raspberry_Pi_VNC_Setup#axzz3fbZUoiqv

Ok, this sets up x11vnc server at boot, for user Pi, as raspi-config can set this user as a desktop auto load. Change to user Pi and go home:

su pi

cd ~

pi@raspberrypi ~ $ ls .

./ .cache/ .local/

../ .config/ .profile

.asoundrc .dbus/ .themes/

.bash_history .dmrc .Xauthority

.bash_logout .gstreamer-0.10/ .xsession-errors

.bashrc .gvfs/ .xsession-errors.old

pi@raspberrypi ~ $ cd .config/

pi@raspberrypi ~ $
ls

pi@raspberrypi ~ $
mkdir autostart/

cd autostart/

SU to root and create the startup file

vi x11vnc.desktop

[Desktop Entry]

Encoding=UTF-8

Type=Application

Name=X11VNC

Exec=x11vnc -forever -usepw -display :0 -ultrafilexfer

StartupNotify=false

Terminal=false

Hidden=false

Following the link How To- set boot into Pi user Dtop at start up

raspi-config


vi /boot/config.txt


Reboot.

Once the screen is back, logged in as Pi, log in to ssh via PuTTY:



Run:

x11vnc

If all goes well after IPv6 crap:

*** XOpenDisplay failed. No -display or DISPLAY.

12/07/2015 10:48:44 *** Trying ":0" in 4 seconds. Press Ctrl-C to abort.

12/07/2015 10:48:44 *** 1 2 3 4

12/07/2015 10:48:48 *** XOpenDisplay of ":0" successful.

12/07/2015 10:48:48

12/07/2015 10:48:48 Using X display :0

12/07/2015 10:48:48 rootwin: 0xe2 reswin: 0x1400001 dpy: 0x1bf04b0


Now connect VNC:


Finally!! But what if you want to boot into another account and not Pi? I'll look into that another time.


The HDMI screen res is hard to see as it's scaled to 65% in VNC.

Ok, so move around and see what's on. First, there's no TV volume. Look at that later.

I installed Banshee earlier. About 17 seconds to load. Meh...

To access net shares in Filemanager:


A more readable font and size:


The CPU spec in

cat /proc/cpuinfo

shows the 4 cores and bogomips:


  1. "BogoMips (from "bogus" and MIPS) is an unscientific measurement of CPU speed made by the Linux kernel when it boots to calibrate an internal busy-loop. An oft-quoted definition of the term is "the number of million times per second a processor can do absolutely nothing"

    processor    : 0

    model name    : ARMv7 Processor rev 5 (v7l)

    BogoMIPS    : 38.40

    Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm

    CPU implementer    : 0x41

    CPU architecture: 7

    CPU variant    : 0x0

    CPU part    : 0xc07

    CPU revision    : 5

    How does that value compare to the old single core Pi from that Post? It didn't give that info:

    cat /proc/cpuinfo
    processor : 0
    model name : ARMv6-compatible processor rev 7 (v6l)
    Features : swp half thumb fastmult vfp edsp java tls
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xb76
    CPU revision : 7

    Hardware : BCM2708
    Revision : 0010
    Serial : 000000004773a8a5

    Just running these 2 main user functions – SSH and x11vnc – the Task Manage shows little overhead of the total available, so you should be OK for another large App or two without much trouble:


    Here's a comparison with an old Dell GX520 P4 dual core mini Desktop – hmm - almost 15 times faster per core than the Pi, and about 7 year old technology:

    MintPC100 stevee # cat /proc/cpuinfo

    processor : 0

    vendor_id : GenuineIntel

    cpu family : 15

    model : 4

    model name : Intel(R) Pentium(R) 4 CPU 3.00GHz

    stepping : 3

    microcode : 0x5

    cpu MHz : 2800.000

    cache size : 2048 KB

    physical id : 0

    siblings : 2

    core id : 0

    cpu cores : 1

    apicid : 0

    initial apicid : 0

    fpu : yes

    fpu_exception : yes

    cpuid level : 5

    wp : yes

    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts nopl pni dtes64 monitor ds_cpl est cid cx16 xtpr

    bogomips : 5985.03

    clflush size : 64

    cache_alignment : 128

    address sizes : 36 bits physical, 48 bits virtual

    power management:

    processor : 1

    vendor_id : GenuineIntel

    cpu family : 15

    model : 4

    model name : Intel(R) Pentium(R) 4 CPU 3.00GHz

    stepping : 3

    microcode : 0x5

    cpu MHz : 2800.000

    cache size : 2048 KB

    physical id : 0

    siblings : 2

    core id : 0

    cpu cores : 1

    apicid : 1

    initial apicid : 1

    fpu : yes

    fpu_exception : yes

    cpuid level : 5

    wp : yes

    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts nopl pni dtes64 monitor ds_cpl est cid cx16 xtpr

    bogomips : 5985.03

    clflush size : 64

    cache_alignment : 128

    address sizes : 36 bits physical, 48 bits virtual

    power management:

    My AMD Athlon dual core of 5400MHz:

    stevee@Dell531 ~ $ cat /proc/cpuinfo

    processor : 0

    vendor_id : AuthenticAMD

    cpu family : 15

    model : 67

    model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5600+

    stepping : 3

    cpu MHz : 1000.000

    cache size : 1024 KB

    physical id : 0

    siblings : 2

    core id : 0

    cpu cores : 2

    apicid : 0

    initial apicid : 0

    fpu : yes

    fpu_exception : yes

    cpuid level : 1

    wp : yes

    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good nopl pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy vmmcall

    bogomips : 2009.07

    TLB size : 1024 4K pages

    clflush size : 64

    cache_alignment : 64

    address sizes : 40 bits physical, 48 bits virtual

    power management: ts fid vid ttp tm stc

    processor : 1

    vendor_id : AuthenticAMD

    cpu family : 15

    model : 67

    model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5600+

    stepping : 3

    cpu MHz : 1000.000

    cache size : 1024 KB

    physical id : 0

    siblings : 2

    core id : 1

    cpu cores : 2

    apicid : 1

    initial apicid : 1

    fpu : yes

    fpu_exception : yes

    cpuid level : 1

    wp : yes

    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good nopl pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy vmmcall

    bogomips : 2009.07

    TLB size : 1024 4K pages

    clflush size : 64

    cache_alignment : 64

    address sizes : 40 bits physical, 48 bits virtual

    power management: ts fid vid ttp tm stc


Comments are closed.

Post Navigation