gbrainy - a brain teaser game
- Read more about gbrainy - a brain teaser game
- Log in to post comments
#!/bin/bash
sudo apt-get install gbrainy
#!/bin/bash
sudo apt-get install gbrainy
# create usb disk
cp /usr/lib/syslinux/vesamenu.c32 /mnt
cp /usr/lib/syslinux/memdisk /mnt
# tinycorelinux
wget ftp://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/tinycore_2.1.iso -P /tmp
mount /tmp/tinycore_2.1.iso /mnt/ -o loop
cp /mnt/boot/bzImage /mnt/boot/tinycore.gz /media/USB_MINI/boot/tinycore/
# netinstall
mount mini.iso /mnt/ -o loop
cp /mnt/initrd.gz /mnt/linux /media/USB_MINI/boot/netinstall/
# syslinux.cfg
default boot/vesamenu.c32
timeout 100
menu title Multi Boot USB
LABEL Localboot
localboot 0x80
LABEL Ubuntu
KERNEL /c
Create new Macro
Extras > Makros > Makros verwalten > Makro...
Meine Makros > Standard > Neu
# open a external application (v1)
Sub Main
item = ThisComponent.getCurrentSelection.String
If len(item) > 0 then
rem msgbox "Selection: " & item
item = UCase(item)
oService = createUnoService("com.sun.star.system.SystemShellExecute")
oService.execute("/media/programme/starter/scripts/Lager.sh", "item_id=" & item, 0)
EndIf
End Sub
# open a external application (v2)
Sub Main
selectedRow = ThisComponent.CurrentSelection.getRangeAddress.StartRow
itemId = ThisComp
# oracle 18xe
lxc launch images:oracle/7 oracle7
# new version:
https://raw.githubusercontent.com/panticz/installit/master/install.oracle-xe.sh
# fix
W: GPG error: https://oss.oracle.com unstable Release: The following signatures were invalid: KEYEXPIRED 1378511808 KEYEXPIRED 1378511808 KEYEXPIRED 1378511808
# add oracle repository
wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | apt-key add -
cat < /etc/apt/sources.list.d/oracle.list
deb http://oss.oracle.com/debian unstable main non-free
EOF
# update repository
apt-get update
# install oracle
apt-get i
#!/bin/bash
MAX_HEIGHT=150
DENSITY=72
TARGET=/tmp/nl_$(date -I)
SOURCE=/media/bilder/300dpi
# create target directory
[ -d ${TARGET} ] || mkdir ${TARGET}
# convert images
for i in $@; do
IMG=${i}.jpg
convert "${SOURCE}/${IMG}" -resize "x${MAX_HEIGHT}" -density "${DENSITY}x${DENSITY}" -sharpen "0x1" "${TARGET}/${IMG}"
echo "${IMG}: $?"
done
# save partition / disk to image
dd if=/dev/hda bs=16065b | gzip -9 > hda_backup.dd.gz
# restore partition / disk from image
gunzip -dc hda_backup.dd.gz | dd of=/dev/hda bs=16065b
# copy over network
netcat -l -p 1234 | dd of=/dev/hdc bs=16065b
dd if=/dev/hda bs=16065b | netcat TARGET_IP 1234
# backup mbr
dd if=/dev/hda of=mbr.img bs=512 count=1
# restore mbr (better will by bs=446)
dd if=bs.img of=/dev/hda bs=512 count=1
# view all manual selections
for PACKAGE in $(debconf-show --listowners); do
echo ${PACKAGE}
debconf-show ${PACKAGE} | grep "*"
done
apt-get install debconf-utils
# replace with tabulator key
for i in $(debconf-show ${PACKAGE} | grep "*" | cut -d" " -f2 | cut -d":" -f1); do
debconf-get-selections | egrep "$i";
done
debconf-get-selections | grep -v "#"
debconf-show ddclient | grep '*'
apt-get install debconf-utils
sudo debconf-set-selections
# show installed packages
debconf-show --listowners
debconf-show mysql-server-5.0 | grep "*" | cut -
# install
sudo apt-get install -y stress
stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 600s
# rsync only files matching pattern
rsync -avz --include "*_small.jpg" --exclude "*.jpg" dir1/ dir2/
rsync -avz --include "*/" --include "*.jpg" --exclude "*" dir1/ dir2/
rsync -avz --include "*/" --include "**.svn**" --exclude "*" just-checked-out/ old-and-modified/
# rsync over ssh
rsync -are ssh root@192.168.1.2:/data/bilder /mnt/
# test
apt-get install live-helper cdebootstrap
cat <> /usr/share/cdebootstrap/suites
Suite: hardy
Config: generic-ubuntu
Keyring: ubuntu-archive-keyring.gpg
EOF
# sed
/usr/bin/lh_chroot_sources
${LH_DISTRIBUTION}/updates
${LH_DISTRIBUTION}-updates
mkdir ~/live && cd ~/live
lh_build