LDFLAGS += `pkg-config –libs gtk+-2.0 gthread-2.0` -lm
adding -lm to LDFLAGS was effective.
LDFLAGS += `pkg-config –libs gtk+-2.0 gthread-2.0` -lm
adding -lm to LDFLAGS was effective.
Incomplete. Forget it.
Recent debian Kernels are SMP compatible.
You can check the SMP compatibility by “uname -a”. The output would contain word “SMP”.
1. download kernel sourece:
root@mamiko-PC:/usr/src# ls
linux-patch-3.2-rt.patch.bz2 linux-source-3.2.tar.bz2
2. unzip:
root@mamiko-PC:/usr/src# tar xjf linux-source-3.2.tar.bz2 root@mamiko-PC:/usr/src# bunzip2 linux-patch-3.2-rt.patch.bz2
root@mamiko-PC:/usr/src# ls -l
合計 76144
-rw-r–r– 1 root root 707720 6月 17 07:36 linux-patch-3.2-rt.patch
drwxr-xr-x 22 root root 4096 7月 20 14:43 linux-source-3.2
-rw-r–r– 1 root root 77251230 6月 17 07:37 linux-source-3.2.tar.bz2
3. patch:
root@mamiko-PC:/usr/src# cd linux-source-3.2
root@mamiko-PC:/usr/src/linux-source-3.2# patch -p1 <../linux-patch-3.2-rt.patch
4. install qt4-dev-tools package
5.
#lscpu
#cat /proc/cpuinfo
To disable touchpad:
synclient TouchpadOff=1
Don’t forget:
Feed 5V to 2pin of ISP socket on board.
There are various reasons why you may wish to assign static IP addresses on your network. For instance, one may gain a certain degree of predictability with unchanging addresses, or you may not have a DHCP server available.
A static address can be configured with most networking tools standard in Arch Linux, for example see netctl, systemd-networkd, dhcpcd.
The following describes how to configure a static IP address manually. You need:
/24 is the CIDR notation of 255.255.255.0 netmask.If you are running a private network, it is safe to use IP addresses in 192.168.*.* for your IP addresses, with a subnet mask of 255.255.255.0 and a broadcast address of 192.168.*.255. The gateway is usually 192.168.*.1 or 192.168.*.254.
iface eth0 inet static
address 192.168.1.16
netmask 255.255.255.0
gateway 192.168.1.1
————-
Above is not for debian.
Important!
Everything is in file: /etc/network/interfaces
Never put more than one gateway!!
# Disables all core updates:define( 'WP_AUTO_UPDATE_CORE', false );# Enables all core updates, including minor and major:define( 'WP_AUTO_UPDATE_CORE', true );# Enables core updates for minor releases (default):define( 'WP_AUTO_UPDATE_CORE', 'minor' );.htaccesss in root directory is also effective.
#include <errno.h>
if(clock_gettime(CLOCK_MONOTONIC_RAW, tp)!=0)
printf(“errno=%d: %s\n”, errno, strerror(errno));
(not so good example)
secs = (clock() – ut0)/(double)CLOCKS_PER_SEC; will overflow every72 minutes in 32 bit machine.
clock_gettime(CLOCK_REALTIME, tp) may be most modern, but needs -lrt when linking.