Recent Changes - Search:

I'm sorry, I didn't catch your name https://www.enlightenedtraining.com/stmap_21wizxfu.html?toprol.ticlopidine.cialis zovirax duo dm "The potential opportunity is substantial. As the British Geological Survey estimates, UK shale gas resources may be 50% larger than conventional gas resources. With exploratory drilling now going ahead, estimates will be more accurate and the British Geological Survey is due to release a more comprehensive estimate of the UK's shale gas resources in 2013."

Ubuntu

Fix dpkg 'Package is in a very bad inconsistent state'

    sudo dpkg --remove --force-remove-reinstreq <package-name>

Clone SD card

Check which device is SD-car (e.g. using mount)

On olivia:

    /dev/mmcblk0     # mounts on cards: /dev/mmcblk0p[0-9]

Unmount all from SD card

   > sudo umount /dev/mmcblk0p*     # Ignore 'device not mounted' - this is what we want

Copy to image:

   > sudo dd if=/dev/mmcblk0 of=sd.img

- 32GB takes a LONG time, so brace yourself

Insert target SD card and copy to it from image

   > sudo dd if=sd.img of=/dev/mmcblk0

- If you thought that copying to image takes long, copying from takes ten times longer!

NOTE

- Previous run dd with option 'bs=4M' resulted in disk size of 8GB.

  Note sure if this is due to given option, but I'm not using it again.

View info binaries

Good Source: Static, Shared Dynamic and Loadable Linux Libraries

Dependencies shared libraries

Source

    ldd <program/shared lib>

List symbols contained in the object file or shared library

    nm <libname>

This is one level. Also resolve higher order dependiencies:

    nm <libname>

See source ref above for explanation symbols.

View all known shared libs

    ldconfig -v

Apparently scans all known system directories. Displays link redirections

Content info of program/shared lib

    readelf -a -W elffile
  • Sections - dynamic offset, relocation
  • External dependencies
  • Symbol table

GCC

Cross-compile 32-bits

Needs 32-bit standard libraries and crosscompile support:

    sudo apt-get install ia32-libs 
    sudo apt-get install gcc-4.7-multilib g++-4.7-multilib

Use following options on compiler command line:

  • -m32 - pure 32-bit compilation
  • -mx32 - 32-bit compilation in 64-bit app

-m32 will need pure 32-bit libraries for everything.

In Eclipse, option also needs to be set for the linker!

Install other version gcc/g++

Source

NOTE: Skip following line in source, test ppa had progressed beyond gcc 4.7

    sudo add-apt-repository ppa:ubuntu-toolchain-r/test

Switch between gcc versions.

update-alternatives needs to be configured, see previous step

Interactive select version:

    sudo update-alternatives --config gcc

This will, of course, work with any program configured with alternatives.


Check Ubuntu version

   lsb_release -a

xdmx (on RPi)

Determine screen depth Ubuntu:

   xwininfo -root | grep Depth:

Addendums

Use this version of xdmx on ubuntu:

ssh:

   ssh -X wri@nyske

'-X' is necessary!

Command:

   > startx -- /usr/bin/Xdmx :1 +xinerama -display :0.0 -display localhost:10.0 -norender -noglxproxy \ 
      -fontpath /usr/share/fonts     # Added for RPi

Setting screen depth

Following for 16 bits (RPi is 16 bits deep)

   > sudo vi /etc/X11/xorg.conf

   Section "Screen"
       Identifier "Screen0"
       Device     "Card0"
       Monitor    "Monitor0"
       DefaultDepth 16              # <-- Add this
       SubSection "Display"

Remove/uncomment the line to revert. Default is 24 bits on my laptop

To test:

Test the screen resolution and depth


Battery

Show status:

Any of these:

   cat /proc/acpi/battery/BAT0/*
   upower -i /org/freedesktop/UPower/devices/battery_BAT0
   gnome-power-statistics

Disable controlled shutdown:

Settings in conf-editor

Set 'critical_battery' to 'nothing', in order to fully drain new battery. Will take the unexpected shutdowns as a given for the time being.

Later: set back to 'suspend'.


Restart Window Manager

Log off when all is broken:

  kill -9 -1

Light restart:

 unity --replace
  • Restarts without logging out.
  • This will run within cmd. Perhaps use & next time
  • Double sidebar???
  • Some appearance things changed, eg. larger icons on task switching. I can live with that.

Full restart (Will also log you off):

 sudo service lightdm restart

Change resize borders windows:

   sudo vi /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml
Edit - History - Print - Recent Changes - Search
Page last modified on December 04, 2015, at 02:05 PM