Dienstag, 7. August 2012

Systemcalls

pselect6 (2) - synchronous I/O multiplexing
_Exit (2) - terminate the calling process
__clone2 (2) - create a child process
_exit (2) - terminate the calling process
_llseek (2) - reposition read/write file offset
_newselect (2) - synchronous I/O multiplexing
_syscall (2) - invoking a system call without library support
(OBSOLETE)
_sysctl (2) - read/write system parameters
accept (2) - accept a connection on a socket
accept4 (2) - accept a connection on a socket
access (2) - check real user's permissions for a file
acct (2) - switch process accounting on or off
add_key (2) - Add a key to the kernel's key management
facility
adjtimex (2) - tune kernel clock
afs_syscall (2) - unimplemented system calls
alarm (2) - set an alarm clock for delivery of a signal
alloc_hugepages (2) - allocate or free huge pages
arch_prctl (2) - set architecture-specific thread state
arm_fadvise (2) - predeclare an access pattern for file data
arm_fadvise64_64 (2) - predeclare an access pattern for file data
arm_sync_file_range (2) - sync a file segment with disk
bdflush (2) - start, flush, or tune buffer-dirty-flush daemon
bind (2) - bind a name to a socket
break (2) - unimplemented system calls
brk (2) - change data segment size
cacheflush (2) - flush contents of instruction and/or data cache
capget (2) - set/get capabilities of thread(s)
capset (2) - set/get capabilities of thread(s)
chdir (2) - change working directory
chmod (2) - change permissions of a file
chown (2) - change ownership of a file
chown32 (2) - change ownership of a file
chroot (2) - change root directory
clock_getres (2) - clock and time functions
clock_gettime (2) - clock and time functions
clock_nanosleep (2) - high-resolution sleep with specifiable clock
clock_settime (2) - clock and time functions
clone (2) - create a child process
clone2 (2) - create a child process
close (2) - close a file descriptor
connect (2) - initiate a connection on a socket
creat (2) - open and possibly create a file or device
create_module (2) - create a loadable module entry
delete_module (2) - delete a loadable module entry
dup (2) - duplicate a file descriptor
dup2 (2) - duplicate a file descriptor
dup3 (2) - duplicate a file descriptor
epoll_create (2) - open an epoll file descriptor
epoll_create1 (2) - open an epoll file descriptor
epoll_ctl (2) - control interface for an epoll descriptor
epoll_pwait (2) - wait for an I/O event on an epoll file
descriptor
epoll_wait (2) - wait for an I/O event on an epoll file
descriptor
eventfd (2) - create a file descriptor for event notification
eventfd2 (2) - create a file descriptor for event notification
execve (2) - execute program
exit (2) - terminate the calling process
exit_group (2) - exit all threads in a process
faccessat (2) - check user's permissions of a file relative to a
directory file descriptor
fadvise64 (2) - predeclare an access pattern for file data
fadvise64_64 (2) - predeclare an access pattern for file data
fallocate (2) - manipulate file space
fchdir (2) - change working directory
fchmod (2) - change permissions of a file
fchmodat (2) - change permissions of a file relative to a
directory file descriptor
fchown (2) - change ownership of a file
fchown32 (2) - change ownership of a file
fchownat (2) - change ownership of a file relative to a
directory file descriptor
fcntl (2) - manipulate file descriptor
fcntl64 (2) - manipulate file descriptor
fdatasync (2) - synchronize a file's in-core state with storage
device
flock (2) - apply or remove an advisory lock on an open file
fork (2) - create a child process
free_hugepages (2) - allocate or free huge pages
fstat (2) - get file status
fstat64 (2) - get file status
fstatat (2) - get file status relative to a directory file
descriptor
fstatat64 (2) - get file status relative to a directory file
descriptor
fstatfs (2) - get file system statistics
fstatfs64 (2) - get file system statistics
fstatvfs (2) - get file system statistics
fsync (2) - synchronize a file's in-core state with storage
device
stty (2) - unimplemented system calls
ftruncate (2) - truncate a file to a specified length
ftruncate64 (2) - truncate a file to a specified length
futex (2) - Fast Userspace Locking system call
futimesat (2) - change timestamps of a file relative to a
directory file descriptor
getcwd (2) - Get current working directory
get_kernel_syms (2) - retrieve exported kernel and module symbols
get_mempolicy (2) - Retrieve NUMA memory policy for a process
get_thread_area (2) - Get a Thread Local Storage (TLS) area
getcontext (2) - get or set the user context
getcpu (2) - determine CPU and NUMA node on which the calling
thread is running
getdents (2) - get directory entries
getdents64 (2) - get directory entries
getdomainname (2) - get/set domain name
getdtablesize (2) - get descriptor table size
getegid (2) - get group identity
getegid32 (2) - get group identity
geteuid (2) - get user identity
geteuid32 (2) - get user identity
getgid (2) - get group identity
getgid32 (2) - get group identity
getgroups (2) - get/set list of supplementary group IDs
getgroups32 (2) - get/set list of supplementary group IDs
gethostid (2) - get or set the unique identifier of the current
host
gethostname (2) - get/set hostname
getitimer (2) - get or set value of an interval timer
getpagesize (2) - get memory page size
getpeername (2) - get name of connected peer socket
getpgid (2) - set/get process group
getpgrp (2) - set/get process group
getpid (2) - get process identification
getpmsg (2) - unimplemented system calls
getppid (2) - get process identification
getpriority (2) - get/set program scheduling priority
getresgid (2) - get real, effective and saved user/group IDs
getresgid32 (2) - get real, effective and saved user/group IDs
getresuid (2) - get real, effective and saved user/group IDs
getresuid32 (2) - get real, effective and saved user/group IDs
getrlimit (2) - get/set resource limits
getrusage (2) - get resource usage
getsid (2) - get session ID
getsockname (2) - get socket name
getsockopt (2) - get and set options on sockets
gettid (2) - get thread identification
gettimeofday (2) - get / set time
getuid (2) - get user identity
getuid32 (2) - get user identity
gtty (2) - unimplemented system calls
idle (2) - make process 0 idle
inb (2) - port I/O
inb_p (2) - port I/O
init_module (2) - initialize a loadable module entry
inl (2) - port I/O
inl_p (2) - port I/O
inotify_add_watch (2) - add a watch to an initialized inotify instance
inotify_init (2) - initialize an inotify instance
inotify_init1 (2) - initialize an inotify instance
inotify_rm_watch (2) - remove an existing watch from an inotify
instance
insb (2) - port I/O
insl (2) - port I/O
insw (2) - port I/O
intro (2) - Introduction to system calls
inw (2) - port I/O
inw_p (2) - port I/O
io_cancel (2) - cancel an outstanding asynchronous I/O operation
io_destroy (2) - destroy an asynchronous I/O context
io_getevents (2) - read asynchronous I/O events from the completion
queue
io_setup (2) - create an asynchronous I/O context
io_submit (2) - submit asynchronous I/O blocks for processing
ioctl (2) - control device
ioctl_list (2) - list of ioctl calls in Linux/i386 kernel
ioperm (2) - set port input/output permissions
iopl (2) - change I/O privilege level
ioprio_get (2) - get/set I/O scheduling class and priority
ioprio_set (2) - get/set I/O scheduling class and priority
ipc (2) - System V IPC system calls
kexec_load (2) - load a new kernel for later execution
keyctl (2) - Manipulate the kernel's key management facility
kill (2) - send signal to a process
killpg (2) - send signal to a process group
lchown (2) - change ownership of a file
lchown32 (2) - change ownership of a file
link (2) - make a new name for a file
linkat (2) - create a file link relative to directory file
descriptors
listen (2) - listen for connections on a socket
llseek (2) - reposition read/write file offset
lock (2) - unimplemented system calls
lookup_dcookie (2) - return a directory entry's path
lseek (2) - reposition read/write file offset
lstat (2) - get file status
lstat64 (2) - get file status
madvise (2) - give advice about use of memory
madvise1 (2) - unimplemented system calls
mbind (2) - Set memory policy for a memory range
migrate_pages (2) - move all pages in a process to another set of
nodes
mincore (2) - determine whether pages are resident in memory
mkdir (2) - create a directory
mkdirat (2) - create a directory relative to a directory file
descriptor
mknod (2) - create a special or ordinary file
mknodat (2) - create a special or ordinary file relative to a
directory file descriptor
mlock (2) - lock and unlock memory
mlockall (2) - lock and unlock memory
mmap (2) - map or unmap files or devices into memory
mmap2 (2) - map files or devices into memory
modify_ldt (2) - get or set ldt
mount (2) - mount file system
move_pages (2) - move individual pages of a process to another
node
mprotect (2) - set protection on a region of memory
mpx (2) - unimplemented system calls
mq_getsetattr (2) - get/set message queue attributes
mq_notify (2) - register for notification when a message is
available
mq_open (2) - open a message queue
mq_timedreceive (2) - receive a message from a message queue
mq_timedsend (2) - send a message to a message queue
mq_unlink (2) - remove a message queue
mremap (2) - remap a virtual memory address
msgctl (2) - message control operations
msgget (2) - get a message queue identifier
msgop (2) - message operations
msgrcv (2) - message operations
msgsnd (2) - message operations
msync (2) - synchronize a file with a memory map
munlock (2) - lock and unlock memory
munlockall (2) - lock and unlock memory
munmap (2) - map or unmap files or devices into memory
nanosleep (2) - high-resolution sleep
nfsservctl (2) - syscall interface to kernel nfs daemon
nice (2) - change process priority
oldfstat (2) - get file status
oldlstat (2) - get file status
oldolduname (2) - get name and information about current kernel
oldstat (2) - get file status
olduname (2) - get name and information about current kernel
open (2) - open and possibly create a file or device
openat (2) - open a file relative to a directory file
descriptor
outb (2) - port I/O
outb_p (2) - port I/O
outl (2) - port I/O
outl_p (2) - port I/O
outsb (2) - port I/O
outsl (2) - port I/O
outsw (2) - port I/O
outw (2) - port I/O
outw_p (2) - port I/O
path_resolution (2) - how a pathname is resolved to a file
pause (2) - wait for signal
pciconfig_iobase (2) - pci device information handling
pciconfig_read (2) - pci device information handling
pciconfig_write (2) - pci device information handling
personality (2) - set the process execution domain
pipe (2) - create pipe
pipe2 (2) - create pipe
pivot_root (2) - change the root file system
poll (2) - wait for some event on a file descriptor
posix_fadvise (2) - predeclare an access pattern for file data
ppoll (2) - wait for some event on a file descriptor
prctl (2) - operations on a process
pread (2) - read from or write to a file descriptor at a
given offset
pread64 (2) - read from or write to a file descriptor at a
given offset
preadv (2) - read or write data into multiple buffers
prlimit (2) - get/set resource limits
prof (2) - unimplemented system calls
pselect (2) - synchronous I/O multiplexing
ptrace (2) - process trace
putpmsg (2) - unimplemented system calls
pwrite (2) - read from or write to a file descriptor at a
given offset
pwrite64 (2) - read from or write to a file descriptor at a
given offset
pwritev (2) - read or write data into multiple buffers
quotactl (2) - manipulate disk quotas
read (2) - read from a file descriptor
readahead (2) - perform file readahead into page cache
readdir (2) - read directory entry
readlink (2) - read value of a symbolic link
readlinkat (2) - read value of a symbolic link relative to a
directory file descriptor
readv (2) - read or write data into multiple buffers
reboot (2) - reboot or enable/disable Ctrl-Alt-Del
recv (2) - receive a message from a socket
recvfrom (2) - receive a message from a socket
recvmmsg (2) - receive multiple messages on a socket
recvmsg (2) - receive a message from a socket
remap_file_pages (2) - create a nonlinear file mapping
rename (2) - change the name or location of a file
renameat (2) - rename a file relative to directory file
descriptors
request_key (2) - Request a key from the kernel's key management
facility
rmdir (2) - delete a directory
rt_sigaction (2) - examine and change a signal action
rt_sigpending (2) - examine pending signals
rt_sigprocmask (2) - examine and change blocked signals
rt_sigqueueinfo (2) - queue a signal and data
rt_sigreturn (2) - return from signal handler and cleanup stack
frame
rt_sigsuspend (2) - wait for a signal
rt_sigtimedwait (2) - synchronously wait for queued signals
rt_tgsigqueueinfo (2) - queue a signal and data
sbrk (2) - change data segment size
sched_get_priority_max (2) - get static priority range
sched_get_priority_min (2) - get static priority range
sched_getaffinity (2) - set and get a process's CPU affinity mask
sched_getparam (2) - set and get scheduling parameters
sched_getscheduler (2) - set and get scheduling policy/parameters
sched_rr_get_interval (2) - get the SCHED_RR interval for the named
process
sched_setaffinity (2) - set and get a process's CPU affinity mask
sched_setparam (2) - set and get scheduling parameters
sched_setscheduler (2) - set and get scheduling policy/parameters
sched_yield (2) - yield the processor
security (2) - unimplemented system calls
select (2) - synchronous I/O multiplexing
select_tut (2) - synchronous I/O multiplexing
semctl (2) - semaphore control operations
semget (2) - get a semaphore set identifier
semop (2) - semaphore operations
semtimedop (2) - semaphore operations
send (2) - send a message on a socket
sendfile (2) - transfer data between file descriptors
sendfile64 (2) - transfer data between file descriptors
sendmsg (2) - send a message on a socket
sendto (2) - send a message on a socket
set_thread_area (2) - Set a Thread Local Storage (TLS) area
set_tid_address (2) - set pointer to thread ID
setcontext (2) - get or set the user context
setdomainname (2) - get/set domain name
setegid (2) - set effective user or group ID
seteuid (2) - set effective user or group ID
setfsgid (2) - set group identity used for file system checks
setfsgid32 (2) - set group identity used for file system checks
setfsuid (2) - set user identity used for file system checks
setfsuid32 (2) - set user identity used for file system checks
setgid (2) - set group identity
setgid32 (2) - set group identity
setgroups (2) - get/set list of supplementary group IDs
setgroups32 (2) - get/set list of supplementary group IDs
sethostid (2) - get or set the unique identifier of the current
host
sethostname (2) - get/set hostname
setitimer (2) - get or set value of an interval timer
setns (2) - reassociate thread with a namespace
setpgid (2) - set/get process group
setpgrp (2) - set/get process group
setpriority (2) - get/set program scheduling priority
setregid (2) - set real and/or effective user or group ID
setregid32 (2) - set real and/or effective user or group ID
setresgid (2) - set real, effective and saved user or group ID
setresgid32 (2) - set real, effective and saved user or group ID
setresuid (2) - set real, effective and saved user or group ID
setresuid32 (2) - set real, effective and saved user or group ID
setreuid (2) - set real and/or effective user or group ID
setreuid32 (2) - set real and/or effective user or group ID
setrlimit (2) - get/set resource limits
setsid (2) - creates a session and sets the process group ID
setsockopt (2) - get and set options on sockets
settimeofday (2) - get / set time
setuid (2) - set user identity
setuid32 (2) - set user identity
setup (2) - setup devices and file systems, mount root file
system
sgetmask (2) - manipulation of signal mask (obsolete)
shmat (2) - shared memory operations
shmctl (2) - shared memory control
shmdt (2) - shared memory operations
shmget (2) - allocates a shared memory segment
shmop (2) - shared memory operations
shutdown (2) - shut down part of a full-duplex connection
sigaction (2) - examine and change a signal action
sigaltstack (2) - set and/or get signal stack context
signal (2) - ANSI C signal handling
signalfd (2) - create a file descriptor for accepting signals
signalfd4 (2) - create a file descriptor for accepting signals
sigpending (2) - examine pending signals
sigprocmask (2) - examine and change blocked signals
sigqueue (2) - queue a signal and data to a process
sigreturn (2) - return from signal handler and cleanup stack
frame
sigsuspend (2) - wait for a signal
sigtimedwait (2) - synchronously wait for queued signals
sigwaitinfo (2) - synchronously wait for queued signals
socket (2) - create an endpoint for communication
socketcall (2) - socket system calls
socketpair (2) - create a pair of connected sockets
splice (2) - splice data to/from a pipe
spu_create (2) - create a new spu context
spu_run (2) - execute an SPU context
ssetmask (2) - manipulation of signal mask (obsolete)
stat (2) - get file status
stat64 (2) - get file status
statfs (2) - get file system statistics
statfs64 (2) - get file system statistics
statvfs (2) - get file system statistics
stime (2) - set time
subpage_prot (2) - define a subpage protection for an address range
swapoff (2) - start/stop swapping to file/device
swapon (2) - start/stop swapping to file/device
symlink (2) - make a new name for a file
symlinkat (2) - create a symbolic link relative to a directory
file descriptor
sync (2) - commit buffer cache to disk
sync_file_range (2) - sync a file segment with disk
sync_file_range2 (2) - sync a file segment with disk
syncfs (2) - commit buffer cache to disk
syscall (2) - indirect system call
syscalls (2) - Linux system calls
sysctl (2) - read/write system parameters
sysfs (2) - get file system type information
sysinfo (2) - returns information on overall system statistics
syslog (2) - read and/or clear kernel message ring buffer;
set console_loglevel
tee (2) - duplicating pipe content
tgkill (2) - send a signal to a thread
time (2) - get time in seconds
timer_create (2) - create a POSIX per-process timer
timer_delete (2) - delete a POSIX per-process timer
timer_getoverrun (2) - get overrun count for a POSIX per-process timer
timer_gettime (2) - arm/disarm and fetch state of POSIX per-process
timer
timer_settime (2) - arm/disarm and fetch state of POSIX per-process
timer
timerfd_create (2) - timers that notify via file descriptors
timerfd_gettime (2) - timers that notify via file descriptors
timerfd_settime (2) - timers that notify via file descriptors
times (2) - get process times
tkill (2) - send a signal to a thread
truncate (2) - truncate a file to a specified length
truncate64 (2) - truncate a file to a specified length
tuxcall (2) - unimplemented system calls
ugetrlimit (2) - get/set resource limits
umask (2) - set file mode creation mask
umount (2) - unmount file system
umount2 (2) - unmount file system
uname (2) - get name and information about current kernel
unimplemented (2) - unimplemented system calls
unlink (2) - delete a name and possibly the file it refers to
unlinkat (2) - remove a directory entry relative to a directory
file descriptor
unshare (2) - disassociate parts of the process execution
context
uselib (2) - load shared library
ustat (2) - get file system statistics
utime (2) - change file last access and modification times
utimensat (2) - change file timestamps with nanosecond precision
utimes (2) - change file last access and modification times
vfork (2) - create a child process and block parent
vhangup (2) - virtually hangup the current tty
vm86 (2) - enter virtual 8086 mode
vm86old (2) - enter virtual 8086 mode
vmsplice (2) - splice user pages into a pipe
vserver (2) - unimplemented system calls
wait (2) - wait for process to change state
wait3 (2) - wait for process to change state, BSD style
wait4 (2) - wait for process to change state, BSD style
waitid (2) - wait for process to change state
waitpid (2) - wait for process to change state
write (2) - write to a file descriptor
writev (2) - read or write data into multiple buffers

Sonntag, 10. Juni 2012

Dilemmageschichte

Mara kletter gerne und besonders gut. Eines Tages fällt sie jedoch vom Baum, verletzt sich hierbei aber nicht. Ihr Vater sieht das und bespricht den Vorfall mit ihr. Er will, dass sie nicht mehr auf Bäume klettert. Sie verspricht ihm in die Hand, sich daran zu halten.

 Einen Tag später klettert die junge Katze ihrer Freundin Charlie auf den Baum und kommt nicht mehr selbst herunter. Es könnte sein, dass die Mieze fällt und sich hierbei dann schwer verletzt. Charlie fragt Mara, da sie ja weiß, dass diese gut klettern kann, ob sie nicht ihre Katze retten würde.

Aufgabe: Lösen Sie das Problem mit Hilfe von entweder Bibel, Bhagavad Gita, Koran oder den Unix man pages!

Lösung: man pstree | cat

Donnerstag, 5. Januar 2012

Mittwoch, 4. Januar 2012

Nautilus und XFCE

nautilus --no-desktop

Im gconf-editor dann:

apps > nautilus > preferences

Häkchen bei "show desktop" entfernen

Quelle: http://www.linuxmintusers.de/index.php?topic=5443.0

Samstag, 19. November 2011

OpenSuSE 12.1

The following package updates will not be installed

Derartige Meldungen kann man in Yast dadurch in den Griff bekommen, dass
man Herstellerwechsel zulässt.

zypper up

Mittwoch, 2. November 2011

Samstag, 22. Oktober 2011

Conky Starter

sh -c "sleep 25; exec conky"

Mittwoch, 19. Oktober 2011

Default Apps in Unity

~/.local/share/applications

Leider werden hier aber keine Terminals an sich angeboten.

Montag, 26. September 2011

Politik

Dimensionen
Bezugsfeld
Universalisierbarkeit
fachwissenschaft. Begriffe
Verknüpfung
fachwissenschaft. Strukturierung
Macht
System
Recht
Gemeinwohl
Knappheit
kollektive Güter
fachwissenschaft. Theorien
Fakten
Tatsachenbeschreibung
Kontext: Vernetzung
Schlüsselprobleme
Kontroversitätsbewußtsein
Perspektivität
Schlussfolgerungen
Interpretationen
Transfer
Rekontextualisierung

eindimensional
inkohärent
konstatierend
Intension (definitorische Elemente)
partikular
subjektiv
undifferenziert
bei zentraler Bedeutung
differenziert
im Ansatz integriert
institutionenbezogen
kohärent
multiperspektivisch
strukturiert
widerspruchsfrei
analytisch
elaboriert
Extension (Anwendungen, Beispiele)
komplexe Interdependenz
meta-reflexiv
systemisch-strukturell
transparent
vergleichend

Sonntag, 4. September 2011

Conky

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Use Xft?
use_xft yes

xftfont Droid Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 182 0
maximum_width 182

# Draw shades?
draw_shades no
default_color D6D6D6 #4D4D4D
# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 25
gap_y 60

# -- Lua Load -- #
#lua_load ~/.draw_bg.lua
#lua_draw_hook_pre draw_bg

TEXT
SYSTEM ${hr 2}
${goto 6}${voffset 6}${goto 40}${pre_exec cat /etc/issue.net} $machine
${goto 40}Kernel: ${kernel}
${hr 2}

${goto 6}${goto 32}CPU1: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}
${goto 6}${goto 32}CPU2: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${goto 6}${goto 32}CPU3: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${goto 6}${goto 32}CPU4: ${cpu cpu3}% ${alignr}${cpubar cpu3 8,60}
${goto 6}${goto 32}RAM: ${mem} ${alignr}${membar 8,60}
${goto 6}${goto 32}DISK: ${diskio}${alignr}${diskiograph 8,60 F57900
FCAF3E}
${goto 6}${goto 32}SWAP: $swapperc% ${alignr}${swapbar 8,60}

#${goto 6}${voffset -4}${goto 32}CPU Temp: ${alignr}${exec sensors |
grep 'CPU Temperature' | cut -c19-20}°C / ${color #FCAF3E}${exec sensors
| grep 'CPU Temperature' | cut -c37-38}°C$color
#${goto 5}${voffset -4}${goto 32}Mother Temp: ${alignr}${exec sensors |
grep 'MB Temperature' | cut -c19-20}°C / ${color #FCAF3E}${exec sensors
| grep 'MB Temperature' | cut -c37-38}°C$color
#${goto 4.5}${voffset -6}${goto 32}HD Temp:${alignr}${exec
hddtemp /dev/sda -n --unit=C}°C / ${color #FCAF3E}${exec sensors | grep
'CPU Temperature' | cut -c54-55}°C$color
#${goto 6}${voffset -4}${goto 32}Fan Speed: ${alignr}${exec sensors |
grep 'RPM'| cut -c16-25}

${goto 6}${goto 32}Uptime: ${alignr}${uptime}
${goto 6}${goto 32}Processes: ${alignr}$processes ($running_processes
running)
${goto 30} Highest: ${alignr 13}CPU${alignr}RAM
${goto 32}${voffset -5.5}${hr 1}
${voffset -1}${goto 32}${top name 1} ${goto 124}${top cpu
1}${alignr }${top mem 1}
${voffset -1}${goto 32}${top name 2} ${goto 124}${top cpu
2}${alignr }${top mem 2}
${voffset -1}${goto 32}${top name 3} ${goto 124}${top cpu
3}${alignr }${top mem 3}
${voffset -1}${goto 32}${top name 4} ${goto 124}${top cpu
4}${alignr }${top mem 4}

${voffset -1}DATE ${hr 2}
${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
${alignc}${time %A %d %B}

${voffset -1}HD ${hr 2}
${goto 29} Root: ${fs_used_perc /}%${alignr}${fs_size /}
${goto 29} Free: ${fs_free /}${alignr}${fs_bar 8,60 /}
${goto 29} Home: ${fs_used_perc /home}%${alignr}${fs_size /home}
${goto 29} Free: ${fs_free /home}${alignr}${fs_bar 8,60 /home}
${goto 29} Backup: ${fs_used_perc /backup}%${alignr}${fs_size /backup}
${goto 29} Free: ${fs_free /backup}${alignr}${fs_bar 8,60 /backup}

${voffset -1}NETWORK ${hr 2}
${if_up wlan0}
${goto 32}SSID: ${wireless_essid wlan0}
${goto 32}Signal: ${wireless_link_qual wlan0}%
${alignr}${wireless_link_bar 8,60 wlan0}
${goto 32}Up: ${upspeed wlan0}${font} ${alignr}${upspeedgraph wlan0 8,60
F57900 FCAF3E}
${goto 32}Total: ${totalup wlan0}
${goto 32}Down: ${downspeed wlan0}${font} ${alignr}${downspeedgraph
wlan0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown wlan0}
${goto 32}Local IP: ${alignr}${addr wlan0}
${goto 32}Public IP: ${alignr}${execi 3600 wget -O -
http://www.whatismyip.com/automation/n09230945.asp | tail}
# |--ETH0
${else}${if_up eth0}
${goto 32}Up: ${upspeed eth0}${font} ${alignr}${upspeedgraph eth0 8,60
F57900 FCAF3E}
${goto 32}Total: ${totalup eth0}
${goto 32}Down: ${downspeed eth0}${font} ${alignr}${downspeedgraph eth0
8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown eth0}
${goto 32}Local IP: ${alignr}${addr eth0}
# |--PPP0
${endif}${else}${if_up ppp0}
${goto 32}Up: ${upspeed ppp0}${font} ${alignr}${upspeedgraph ppp0 8,60
F57900 FCAF3E}
${goto 32}Total: ${totalup ppp0}
${goto 32}Down: ${downspeed ppp0}${font} ${alignr}${downspeedgraph ppp0
8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown ppp0}
${goto 32}Local IP: ${alignr}${addr ppp0}
${endif}${else}${goto 32}Network Unavailable${endif}${endif}

#${voffset -1}WEATHER ${hr 2}
#${voffset -10}${alignr 56}${font
ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast
--location=UKXX0113 --datatype=WF --imperial}${font}
#${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font
Arial Black:size=26}${execi 600 conkyForecast --location=UKXX0113
--datatype=HT --imperial}${font}
#${alignc 43}${execpi 600 conkyForecast --location=UKXX0113
--datatype=DW --imperial --startday=1 --shortweekday} ${alignc
8}${execpi 600 conkyForecast --location=UKXX0113 --datatype=DW
--imperial --startday=2 --shortweekday} ${alignc -29}${execpi 600
conkyForecast --location=UKXX0113 --datatype=DW --imperial --startday=3
--shortweekday} ${alignc -64}${execpi 600 conkyForecast
--location=UKXX0113 --datatype=DW --imperial --startday=4
--shortweekday}
#${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast
--location=UKXX0113 --datatype=WF --imperial --startday=1 --endday=4
--spaces=1}${font}
#${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast
--location=UKXX0113 --datatype=HT --imperial --startday=1 --hideunits
--centeredwidth=3}/${execpi 600 conkyForecast --location=UKXX0113
--datatype=LT --imperial --startday=1 --hideunits --centeredwidth=3}
${alignc -14}${execpi 600 conkyForecast --location=UKXX0113
--datatype=HT --imperial --startday=2 --hideunits
--centeredwidth=3}/${execpi 600 conkyForecast --location=UKXX0113
--datatype=LT --imperial --startday=2 --hideunits --centeredwidth=3}
${alignc -40}${execpi 600 conkyForecast --location=UKXX0113
--datatype=HT --imperial --startday=3 --hideunits
--centeredwidth=3}/${execpi 600 conkyForecast --location=UKXX0113
--datatype=LT --imperial --startday=3 --hideunits --centeredwidth=3}
${alignr 6}${execpi 600 conkyForecast --location=UKXX0113 --datatype=HT
--imperial --startday=4 --hideunits --centeredwidth=3}/${execpi 600
conkyForecast --location=UKXX0113 --datatype=LT --imperial --startday=4
--hideunits --centeredwidth=3}${font}
#${voffset 4}Location:${alignr}${execi 600 conkyForecast
--location=UKXX0113 --datatype=CN}
#Last Updated: ${alignr} ${execi 600 conkyForecast --location=UKXX0113
--hideunits --datatype=LU -m 0 }
#Feels Like:${alignr}${execi 600 conkyForecast --location=UKXX0113
--datatype=LT --imperial}
#Dew Point: ${alignr}${execi 600 conkyForecast --location=UKXX0113
--datatype=DP --imperial}
#Current Condition:${alignr}${execi 600 conkyForecast
--location=UKXX0113 --datatype=CC}
#Chance of Precip: ${alignr}${execi 600 conkyForecast
--location=UKXX0113 --startday=0 --datatype=PC}
#Humidity: ${alignr}${execi 600 conkyForecast --location=UKXX0113
--datatype=HM}
#Wind: ${alignr}${execi 600 conkyForecast --location=UKXX0113
--datatype=WS --imperial} - ${execi 600 conkyForecast
--location=UKXX0113 --datatype=WD}
#Pressure: ${alignr}${execi 600 conkyForecast --location=UKXX0113
--hideunits --datatype=BR}
#Visibility: ${alignr}${execi 600 conkyForecast --location=UKXX0113
--datatype=VI --imperial}
#Sunrise: ${alignr}${execi 600 conkyForecast --location=UKXX0113
--datatype=SR}
#Sunset: ${alignr}${execi 600 conkyForecast --location=UKXX0113
--datatype=SS}
#Moon Phase:${alignr 8}${execi 600 conkyForecast --location=UKXX0113
--datatype=MP} ${font MoonPhases:size=8}${execi 600 conkyForecast
--location=UKXX0113 --datatype=MF}${font}
${hr 2}

Sonntag, 29. Mai 2011

VBox Image schrumpfen

VBoxManage modifyvdi /pfad/zur/vdi/datei.vdi compact

Mittwoch, 25. Mai 2011

apt Fehler

Paketlisten werden gelesen... Fehler!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_natty-getdeb_games_binary-i386_Packages
E: Die Paketliste oder die Statusdatei konnte nicht eingelesen oder geöffnet werden.

Reparatur mit:

sudo rm /var/lib/apt/lists/* -vf

Sonntag, 1. Mai 2011

Moodle 2 Backup Bug II

http://tracker.moodle.org/browse/MDL-25811

and

http://tracker.moodle.org/browse/MDL-27066

Moodle 2 Backup Bug

Change backup settings in Moodle to 'manual' and to 'put backup-files
in serverpath'.

cd /path/domain/public_www/directory/moodlebackup/

vi ../moodle/backup/util/helper/backup_cron_helper.class.php

Place the line

set_config('backup_auto_running', '0', 'backup');

before the line

mtrace("Checking automated backup status",'...');

sudo -u www-data /usr/bin/php ../moodle/admin/cli/automated_backups.php

Pray. This only works with smaller Moodle sites!

Dienstag, 26. April 2011

Desktop Entry

cat .local/share/applications/xmind.desktop

#!/usr/bin/env xdg-open

[Desktop Entry]
Encoding=UTF-8
Name=XMind
Comment=Launch XMind 3.0
Exec=/bin/sh -c 'APPMENU_DISPLAY_BOTH=1 /usr/local/xmind/xmind'
Terminal=false
Type=Application
Icon=/usr/local/xmind/xmind-logo-36.png
StartupNotify=true
Categories=Office;
MimeType=application/xmind;

Mittwoch, 13. April 2011

Ubuntu Unity Panel

Einstellungen zum Panel abrufen:

gsettings get com.canonical.Unity.Panel systray-whitelist

Aufbohren:

gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

Danach funktioniert evtl. das weather-indicator Applet nicht mehr?!

gsettings set com.canonical.Unity.Panel systray-whitelist
"['JavaEmbeddedFrame', 'Wine', 'Dropbox', 'Shutter']"

Scheint ein ordentlicher Kompromiss zu sein.

Ausloggen, wieder einloggen und das Panel kann wieder zugemüllt werden ;-)

Donnerstag, 3. Februar 2011

Kanotix auf der Comburg

Ein Rechner auf der Comburg (pc70) lief unter Kanotix. Leider war jedoch
das Passwort für den Benutzer nicht richtig gesetzt oder vom vorherigen
Benutzer geändert worden, so dass eine Verwendung des PCs unmöglich war.

init=/bin/bash

als Bootoption für den grub hinzugefügt

mount -rw -o remount /

um / schreibbar zu machen

passwd pc70

und dann das Passwort eingegeben. Dann den Rechner mit reboot neu starten
(shutdown scheint es auf Kanotix nicht zu geben) und anmelden.

So wird das nix für die Windowsnutzer!

Dienstag, 1. Februar 2011

MP3 schneiden

mp3cut -o output.mp3 -t 00:00:30-00:09:20 input.mp3

Das Progrämmchen arbeitet exakter als cutmp3 und ist Teil des Pakets

poc-streamer