Nxl67002 - AndLinux - Files: Difference between revisions

From miki
Jump to navigation Jump to search
 
(7 intermediate revisions by one other user not shown)
Line 18: Line 18:
cofs0=C:\
cofs0=C:\
cofs1=D:\
cofs1=D:\
</pre>
}}

=== hosts ===
{{hiddenSourceFile|c:\windows\system32\drivers\etc\|hosts|<pre class="hosts">
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

192.168.11.150 andlinux
</pre>
</pre>
}}
}}


== AndLinux files ==
== AndLinux files ==
<small>Last generated on '''Tue Nov 17 01:07:38 CET 2009''' with script '''/home/beq06659/bin/wiki_config_template.sh''' on host '''andLinux'''</small>
<small>Generated with script '''/home/beq06659/bin/generate_wiki_config_file_page.sh''' on host '''andLinux'''</small>


=== Directory /etc ===
=== Directory /etc ===
Line 41: Line 67:
}} }}
}} }}
=== Directory /etc/privoxy ===
=== Directory /etc/privoxy ===
'''set-network-config''' - This file must be '''chmod +755'''. Also the following line must be added to <tt>/etc/sudoers</tt>:
'''set-network-config''' - This file must be '''chmod 755'''. Also the following line must be added to <tt>/etc/sudoers</tt>:
:<code> ALL ALL=(ALL) NOPASSWD: /etc/privoxy/set-network-config </code>
:<code> ALL ALL=(ALL) NOPASSWD: /etc/privoxy/set-network-config </code>
{{pl2|{{hiddenSourceFile|/etc/privoxy/|set-network-config|<source lang=bash class="set-network-config">
{{pl2|{{hiddenSourceFile|/etc/privoxy/|set-network-config|<source lang=bash class="set-network-config">
Line 413: Line 439:
# Configuration file for dircolors, a utility to help you set the
# Configuration file for dircolors, a utility to help you set the
# LS_COLORS environment variable used by GNU ls with the --color option.
# LS_COLORS environment variable used by GNU ls with the --color option.
# Copyright (C) 1996, 1999-2008
# Free Software Foundation, Inc.
# Copying and distribution of this file, with or without modification,
# are permitted provided the copyright notice and this notice are preserved.
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# slackware version of dircolors) are recognized but ignored.
# slackware version of dircolors) are recognized but ignored.
# Below, there should be one TERM entry for each termtype that is colorizable
# Below, there should be one TERM entry for each termtype that is colorizable
TERM linux
TERM Eterm
TERM linux-c
TERM ansi
TERM mach-color
TERM color-xterm
TERM console
TERM con132x25
TERM con132x25
TERM con132x30
TERM con132x30
Line 430: Line 459:
TERM con80x50
TERM con80x50
TERM con80x60
TERM con80x60
TERM cons25
TERM console
TERM cygwin
TERM cygwin
TERM dtterm
TERM dtterm
TERM eterm-color
TERM gnome
TERM gnome-256color
TERM konsole
TERM kterm
TERM linux
TERM linux-c
TERM mach-color
TERM mlterm
TERM mlterm
TERM putty
TERM putty
TERM xterm
TERM xterm-color
TERM xterm-debian
TERM rxvt
TERM rxvt
TERM rxvt-cygwin
TERM rxvt-cygwin-native
TERM rxvt-unicode
TERM rxvt-unicode
TERM screen
TERM screen
TERM screen-256color
TERM screen-bce
TERM screen-bce
TERM screen-w
TERM screen-w
TERM screen.linux
TERM vt100
TERM vt100
TERM Eterm
TERM xterm
TERM xterm-16color
TERM xterm-256color
TERM xterm-88color
TERM xterm-color
TERM xterm-debian
# Below are the color init strings for the basic file types. A color init
# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# string consists of one or more of the following numeric codes:
Line 462: Line 507:
BLK 40;33;01 # block device driver
BLK 40;33;01 # block device driver
CHR 40;33;01 # character device driver
CHR 40;33;01 # character device driver
ORPHAN 40;31;01 # symlink to nonexistent file
ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file
SETUID 37;41 # file that is setuid (u+s)
SETUID 37;41 # file that is setuid (u+s)
SETGID 30;43 # file that is setgid (g+s)
SETGID 30;43 # file that is setgid (g+s)
STICKY_OTHER_WRITABLE 01;37;42 # dir that is sticky and other-writable (+t,o+w)
STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
OTHER_WRITABLE 01;37;43 # dir that is other-writable (o+w) and not sticky
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
STICKY 01;37;44 # dir with the sticky bit set (+t) and not other-writable
STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
# This is for files with execute permission:
# This is for files with execute permission:
EXEC 32
EXEC 32;04
# List any file extensions like '.gz' or '.tar' that you would like ls
# List any file extensions like '.gz' or '.tar' that you would like ls
# to colorize below. Put the extension, a space, and the color init string.
# to colorize below. Put the extension, a space, and the color init string.
# (and any comments you want to add after a '#')
# (and any comments you want to add after a '#')
# If you use DOS-style suffixes, you may want to uncomment the following:
# If you use DOS-style suffixes, you may want to uncomment the following:
#.cmd 32 # executables (bright green)
#.cmd 01;32 # executables (bright green)
#.exe 32
#.exe 01;32
#.com 32
#.com 01;32
#.btm 32
#.btm 01;32
#.bat 32
#.bat 01;32
# Or if you want to colorize scripts even if they do not have the
.tar 01;31 # archives or compressed (bright red)
# executable bit actually set.
#.sh 01;32
#.csh 01;32
# archives or compressed (bright red)
.tar 01;31
.tgz 01;31
.tgz 01;31
.svgz 01;31
.arj 01;31
.arj 01;31
.taz 01;31
.taz 01;31
.lzh 01;31
.lzh 01;31
.lzma 01;31
.zip 01;31
.zip 01;31
.z 01;31
.z 01;31
.Z 01;31
.Z 01;31
.dz 01;31
.gz 01;31
.gz 01;31
.bz2 01;31
.bz2 01;31
.bz 01;31
.tbz2 01;31
.tz 01;31
.deb 01;31
.deb 01;31
.rpm 01;31
.rpm 01;31
.jar 01;31
.jar 01;31
.rar 01;31
.ace 01;31
.zoo 01;31
.cpio 01;31
.7z 01;31
.rz 01;31
# image formats
# image formats
.jpg 35
.jpg 35
Line 506: Line 568:
.tiff 35
.tiff 35
.png 35
.png 35
.svg 35
.mng 35
.pcx 35
.mov 35
.mov 35
.mpg 35
.mpg 35
.mpeg 35
.mpeg 35
.m2v 35
.mkv 35
.ogm 35
.mp4 35
.m4v 35
.mp4v 35
.vob 35
.qt 35
.nuv 35
.wmv 35
.asf 35
.rm 35
.rmvb 35
.flc 35
.avi 35
.avi 35
.fli 35
.fli 35
Line 515: Line 594:
.xcf 35
.xcf 35
.xwd 35
.xwd 35
.yuv 35
# audio formats
# audio formats
.aac 00;36
.flac 35
.au 00;36
.mp3 35
.flac 00;36
.mpc 35
.mid 00;36
.ogg 35
.midi 00;36
.wav 35
.mka 00;36
.mp3 00;36
.mpc 00;36
.ogg 00;36
.ra 00;36
.wav 00;36
</source>
</source>
}} }}
}} }}
Line 626: Line 712:
vnoremap h m
vnoremap h m
set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab
set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab
"set autoindent
set autoindent
set smartindent
"set smartindent
"set cindent
"set cindent
"set cinkeys=0{,0},:,0#,!,!^F
"set cinkeys=0{,0},:,0#,!,!^F


inoremap <expr> <C-L> pumvisible() \|\| &omnifunc == '' ?
\ "\<lt>C-n>" :
\ "\<lt>C-x>\<lt>C-o><c-r>=pumvisible() ?" .
\ "\"\\<lt>c-n>\\<lt>c-p>\\<lt>c-n>\" :" .
\ "\" \\<lt>bs>\\<lt>C-n>\"\<CR>"

"Press Ctrl-Space instead of ESC (because Shift-Space only work in GUI).
"See http://vim.wikia.com/wiki/Avoid_the_escape_key
"- nnoremap causes Ctrl-Space to cancel any prefix keys
nnoremap <nul> <Esc>
"- vnoremap causes Ctrl-Space to cancel any selection (gV is required to prevent automatic reselection)
vnoremap <nul> <Esc>gV
"- onoremap causes Ctrl-Space to cancel any operator pending commands (like y)
onoremap <nul> <Esc>
"- inoremap causes Ctrl-Space to exit insert mode and `^ restore cursor position (cursor does not move left)
inoremap <nul> <Esc>`^

" function! CleverTab()
" if pumvisible()
" return "\<C-N>"
" endif
" let line=strpart( getline('.'), 0, col('.')-1 )
" if !(line =~ '^.*[a-zA-Z0-1_]$') "completion only if last char is a word char
" return "\<Tab>"
" elseif exists('&omnifunc') && &omnifunc != ''
" return "\<C-X>\<C-O>"
" else
" return "\<C-N>"
" endif
" endfunction
" inoremap <expr> <Tab> CleverTab()
</source>
</source>
}} }}
}} }}
Line 766: Line 883:
'''config-home-nxp_direct''' - symlinked to <tt>config-default</tt>
'''config-home-nxp_direct''' - symlinked to <tt>config-default</tt>


=== Directory /home/beq06659/etc ===
'''backup_definition'''
{{pl2|{{hiddenSourceFile|/home/beq06659/etc/|backup_definition|<source lang=text class="backup_definition">
BACKUPPREFIX=wiki
BACKUPID=www.noekeon.org_miki
BACKUPEXT=sql.gz
BACKUPCMD="ssh noekeon '~daemenj/private/backup_wiki ~daemenj/kiwi.noekeon.org/miki/LocalSettings.php'"

BACKUPPREFIX=wiki
BACKUPID=www.noekeon.org_miki
BACKUPEXT=tar.gz
BACKUPCMD="ssh noekeon 'cd ~daemenj/kiwi.noekeon.org; /usr/bin/nice -n 19 tar -cz miki/'"

BACKUPPREFIX=wiki
BACKUPID=www.noekeon.org_crypto
BACKUPEXT=sql.gz
BACKUPCMD="ssh noekeon '~daemenj/private/backup_wiki ~daemenj/kiwi.noekeon.org/crypto/LocalSettings.php'"

BACKUPPREFIX=wiki
BACKUPID=www.noekeon.org_crypto
BACKUPEXT=tar.gz
BACKUPCMD="ssh noekeon 'cd ~daemenj/kiwi.noekeon.org; /usr/bin/nice -n 19 tar -cz crypto/'"

</source>
}} }}
'''crontab''' - Install this file with
:<code>crontab -u beq06659 ~/etc/crontab</code>
{{pl2|{{hiddenSourceFile|/home/beq06659/etc/|crontab|<source lang=bash class="crontab">
# Crontab for user beq06659
#
# Install this crontab with
#
# crontab -u beq06659 crontab
#
# Use /bin/bash to run commands, instead of the default /bin/sh
SHELL=/bin/bash
# Define variable USER because we need it in our job scripts
USER=beq06659
# Mail any output to 'beq06659', no matter whose crontab this is
MAILTO=beq06659
#
#
# m h dom mon dow command (dow=0|7 is sunday)
37 * * * * ~beq06659/bin/backup_main ~beq06659/etc/backup_definition

</source>
}} }}
=== Directory /home/beq06659/bin ===
=== Directory /home/beq06659/bin ===
'''backup_main''' - This file must be '''chmod 700'''.
'''backup_main''' - This file must be '''chmod 700'''.
Line 850: Line 920:
echo " BACKUPCMD=\"... some command generating the backup data to standard output ... \""
echo " BACKUPCMD=\"... some command generating the backup data to standard output ... \""
exit 1
exit 1
fi

if [ "$2" == "--force" ]; then
FORCE_DAILY=1
fi
fi


Line 857: Line 931:
echo "Creating backup file '${FNAMENEW}'..."
echo "Creating backup file '${FNAMENEW}'..."
cp $FNAMEDAILY ${FNAMENEW}
cp $FNAMEDAILY ${FNAMENEW}
NEXTWEEKLY=$((NEXTWEEKLY+1)) # This will overflow but 201001 > 200954 so it's ok
NEXTWEEKLY=$((THISWEEK+1)) # This will overflow but 201001 > 200954 so it's ok
}
}


Line 865: Line 939:
echo "Creating backup file '${FNAMENEW}'..."
echo "Creating backup file '${FNAMENEW}'..."
cp $FNAMEDAILY ${FNAMENEW}
cp $FNAMEDAILY ${FNAMENEW}
NEXTMONTHLY=$((NEXTMONTHLY+1)) # This will overflow but 201001 > 200913 so it's ok
NEXTMONTHLY=$((THISMONTH+1)) # This will overflow but 201001 > 200913 so it's ok
}
}


Line 873: Line 947:
echo "Creating backup file '${FNAMENEW}'..."
echo "Creating backup file '${FNAMENEW}'..."
cp $FNAMEDAILY ${FNAMENEW}
cp $FNAMEDAILY ${FNAMENEW}
NEXTYEARLY=$((NEXTYEARLY+1))
NEXTYEARLY=$((THISYEAR+1))
}
}


Line 904: Line 978:
THISYEAR=$(date '+%Y')
THISYEAR=$(date '+%Y')


#========================================================
#Read our resource file if it exists, or create a new one...
# Read resource file
#========================================================
if [ -a $BACKUPRC ]
if [ -a $BACKUPRC ]
then
then
Line 910: Line 986:
. $BACKUPRC
. $BACKUPRC
else
else
# Resource file doesn't exist, let's use default value
NEXTDAILY=$THISDAY # Next daily is this day by default
NEXTDAILY=$THISDAY # Next daily is this day by default
NEXTWEEKLY=$THISWEEK # Next weekly is this week by default
NEXTWEEKLY=$THISWEEK # Next weekly is this week by default
Line 917: Line 994:


#We exit immediately if script was already run today...
#We exit immediately if script was already run today...
[ $THISDAY -ge $NEXTDAILY ] || return 0
[ $THISDAY -ge $NEXTDAILY -o -n "$FORCE_DAILY" ] || return 0


#========================================================
# DAILY backup
#========================================================
echo "Creating backup for:"
echo "Creating backup for:"
echo " BACKUPPREFIX=$BACKUPPREFIX"
echo " BACKUPPREFIX=$BACKUPPREFIX"
Line 938: Line 1,018:
echo "Creating the daily backup file '$FNAMEDAILY'..."
echo "Creating the daily backup file '$FNAMEDAILY'..."
eval $BACKUPCMD > "$FNAMEDAILY"
eval $BACKUPCMD > "$FNAMEDAILY"
if ! [ $? -eq 0 -a -s "$FNAMEDAILY" ]; then
NEXTDAILY=$((NEXTDAILY+1)) # This will overflow but 2010001 > 2009367 so it's ok
echo "... Backup failed! Exiting..."
rm "$FNAMEDAILY"
return 1
fi
NEXTDAILY=$((THISDAY+1)) # This will overflow but 2010001 > 2009367 so it's ok
#========================================================
# WEEKLY / MONTHLY / YEARLY backups
#========================================================
#Now, depending on current date, we'll create weekly, monthly or yearly backups...
#Now, depending on current date, we'll create weekly, monthly or yearly backups...
[ $THISWEEK -ge $NEXTWEEKLY ] && makeweekly
[ $THISWEEK -ge $NEXTWEEKLY ] && makeweekly
Line 971: Line 1,059:
fi
fi
done 3< $BACKUP_DEF_FILE
done 3< $BACKUP_DEF_FILE

</source>
}} }}
'''generate_wiki_config_file_page.sh''' - This file must be '''chmod 700'''.
{{pl2|{{hiddenSourceFile|/home/beq06659/bin/|generate_wiki_config_file_page.sh|<source lang=bash class="generate_wiki_config_file_page.sh">
#! /bin/bash

function wikify_directory()
{
DIRECTORY="$1"
cd $DIRECTORY
echo "=== Directory $DIRECTORY ==="
}

function wikify_config_stdin()
{
local FILE="$1"
local TAGTYPE=source
local LANG="$2"
local DESCRIPTION="$3"
if [ -n "$DESCRIPTION" ]; then
echo -e "'''$FILE''' - $DESCRIPTION"
else
echo "'''$FILE'''"
fi
if [ -n "$LANG" ]; then
echo "{{pl2|{{hiddenSourceFile|$DIRECTORY/|$FILE|<$TAGTYPE lang="$LANG" class=\"$FILE\">"
else
echo "{{pl2|{{hiddenSourceFile|$DIRECTORY/|$FILE|<$TAGTYPE class=\"$FILE\">"
fi
cat
echo "</$TAGTYPE>"
echo "}} }}"
}

function wikify_config_file()
{
cat $DIRECTORY/"$1" | wikify_config_stdin "$1" "$2" "$3"
}

echo "== AndLinux files =="
#echo "<small>Last generated on '''$(date)''' with script '''$0''' on host '''$HOSTNAME'''</small>"
echo "<small>Generated with script '''$0''' on host '''$HOSTNAME'''</small>"
echo

wikify_directory /etc
wikify_config_file fstab text



wikify_directory /etc/privoxy
wikify_config_file set-network-config bash "This file must be '''chmod 755'''. Also the following line must be added to <tt>/etc/sudoers</tt>:
:<code> ALL ALL=(ALL) NOPASSWD: /etc/privoxy/set-network-config </code>"
diff -u config.original config-home | wikify_config_stdin config-home.patch diff
diff -u config-home config-nxp | wikify_config_stdin config-nxp.patch diff
echo "'''config-nxp_auth''' - symlinked to <tt>config-nxp</tt>"
echo
diff -u config-nxp config-nxp_direct | wikify_config_stdin config-nxp_direct.patch diff



wikify_directory /usr/local/bin
wikify_config_file be bash "This script would ideally require to add the following line to <tt>/etc/sudoers</tt>:
:<code>ALL ALL=(ALL) NOPASSWD: /bin/loadkeys</code>"
wikify_config_file ssh-agent-refresh.sh bash



wikify_directory ~
wikify_config_file .bashrc bash "Everything before <tt>#### CUSTOMIZATION</tt> is the original file."
wikify_config_file .dircolors.cfg text
wikify_config_file .inputrc bash
wikify_config_file .profile bash
wikify_config_file .vimrc text



wikify_directory ~/.ssh
wikify_config_file config-home text
wikify_config_file config-nxp text
echo "'''config-nxp_auth''' - symlinked to <tt>config-nxp</tt>"
echo
echo "'''config-nxp_direct''' - symlinked to <tt>config-nxp</tt>"
echo
wikify_config_file proxy.conf-default text
echo "'''proxy.conf-home''' - symlinked to <tt>proxy.conf-default</tt>"
echo
echo "'''proxy.conf-nxp''' - symlinked to <tt>proxy.conf-default</tt>"
echo
wikify_config_file proxy.conf-nxp_auth text
echo "'''config-home-nxp_direct''' - symlinked to <tt>config-default</tt>"
echo


wikify_directory ~/bin
wikify_config_file backup_main bash "This file must be '''chmod 700'''."
wikify_config_file generate_wiki_config_file_page.sh bash "This file must be '''chmod 700'''."
wikify_config_file restore_wiki.sh bash "This file must be '''chmod 700'''."
wikify_config_file set-network.sh bash "This file must be '''chmod 700'''."
wikify_config_file sshproxy bash "This file must be '''chmod 700'''."
wikify_config_file startup.sh bash "This file must be '''chmod 700'''."


wikify_directory ~/etc
wikify_config_file backup_definition text
wikify_config_file crontab bash "Install this file with
:<code>crontab -u beq06659 ~/etc/crontab</code>"
</source>
}} }}
'''restore_wiki.sh''' - This file must be '''chmod 700'''.
{{pl2|{{hiddenSourceFile|/home/beq06659/bin/|restore_wiki.sh|<source lang=bash class="restore_wiki.sh">
#! /bin/bash


function restore_wiki()
{
WIKI_DIR=$1

#
# Restore the wiki backup locally - miki
#
HTML_ROOT=/data/www
SQL_BACKUP=$(ls ~/backup/*-www.noekeon.org_$WIKI_DIR.daily.sql.gz | tail -n 1)
TAR_BACKUP=$(ls ~/backup/*-www.noekeon.org_$WIKI_DIR.daily.tar.gz | tail -n 1)
WIKI_SETTINGS_FNAME="$HTML_ROOT/$WIKI_DIR/LocalSettings.php"

[ -a "$SQL_BACKUP" ] || return 1
[ -a "$TAR_BACKUP" ] || return 1

echo "Restoring TAR backup $TAR_BACKUP..."
echo
sudo rm -r "$HTML_ROOT/$WIKI_DIR"
cd "$HTML_ROOT"
sudo tar -xvzf "$TAR_BACKUP" >/dev/null

sudo chown $USER "$HTML_ROOT/$WIKI_DIR"
sudo chown $USER $WIKI_SETTINGS_FNAME
sed -i -r 's/(wgDBserver.*").*(")/\1localhost\2/' $WIKI_SETTINGS_FNAME

wgDBname=$(<"$WIKI_SETTINGS_FNAME" perl -lne 'print for /wgDBname.*"(.*)"/')
wgDBuser=$(<"$WIKI_SETTINGS_FNAME" perl -lne 'print for /wgDBuser.*"(.*)"/')
wgDBpassword=$(<"$WIKI_SETTINGS_FNAME" perl -lne 'print for /wgDBpassword.*"(.*)"/')

echo "Restoring SQL backup $SQL_BACKUP..."
echo
gunzip < "$SQL_BACKUP" | mysql -u "$wgDBuser" -p"$wgDBpassword" "$wgDBname"

sudo chown -R www-data "$WIKI_DIR"
sudo chgrp -R www-data "$WIKI_DIR"
}

restore_wiki miki
restore_wiki crypto


</source>
</source>
Line 991: Line 1,234:
exit 255
exit 255
fi
fi

#First we need to restore the ssh-agent context, if any
eval $(/usr/local/bin/ssh-agent-refresh.sh) > /dev/null


# Now let's reconfigure as needed...
# Now let's reconfigure as needed...
Line 998: Line 1,244:


~/bin/sshproxy stop
~/bin/sshproxy stop
sleep 1
ln -sf $SSH_CONFIG_FILE ~/.ssh/config
ln -sf $SSH_CONFIG_FILE ~/.ssh/config
sudo /etc/privoxy/set-network-config "$NETWORK"
sudo /etc/privoxy/set-network-config "$NETWORK"
~/bin/sshproxy start
~/bin/sshproxy start

</source>
</source>
}} }}
}} }}
Line 1,178: Line 1,424:
#~/bin/sshproxy stop >/dev/null
#~/bin/sshproxy stop >/dev/null
#~/bin/sshproxy start
#~/bin/sshproxy start

</source>
}} }}
=== Directory /home/beq06659/etc ===
'''backup_definition'''
{{pl2|{{hiddenSourceFile|/home/beq06659/etc/|backup_definition|<source lang=text class="backup_definition">
BACKUPPREFIX=wiki
BACKUPID=www.noekeon.org_miki
BACKUPEXT=sql.gz
BACKUPCMD="ssh noekeon '~daemenj/private/backup_wiki ~daemenj/kiwi.noekeon.org/miki/LocalSettings.php'"

BACKUPPREFIX=wiki
BACKUPID=www.noekeon.org_miki
BACKUPEXT=tar.gz
BACKUPCMD="ssh noekeon 'cd ~daemenj/kiwi.noekeon.org; /usr/bin/nice -n 19 tar -cz miki/'"

BACKUPPREFIX=wiki
BACKUPID=www.noekeon.org_crypto
BACKUPEXT=sql.gz
BACKUPCMD="ssh noekeon '~daemenj/private/backup_wiki ~daemenj/kiwi.noekeon.org/crypto/LocalSettings.php'"

BACKUPPREFIX=wiki
BACKUPID=www.noekeon.org_crypto
BACKUPEXT=tar.gz
BACKUPCMD="ssh noekeon 'cd ~daemenj/kiwi.noekeon.org; /usr/bin/nice -n 19 tar -cz crypto/'"
</source>
}} }}
'''crontab''' - Install this file with
:<code>crontab -u beq06659 ~/etc/crontab</code>
{{pl2|{{hiddenSourceFile|/home/beq06659/etc/|crontab|<source lang=bash class="crontab">
# Crontab for user beq06659
#
# Install this crontab with
#
# crontab -u beq06659 crontab
#
# Use /bin/bash to run commands, instead of the default /bin/sh
SHELL=/bin/bash
# Define variable USER because we need it in our job scripts
USER=beq06659
# Mail any output to 'beq06659', no matter whose crontab this is
MAILTO=beq06659
#
#
# m h dom mon dow command (dow=0|7 is sunday)
37 * * * * ~beq06659/bin/backup_main ~beq06659/etc/backup_definition


</source>
</source>

Latest revision as of 11:21, 26 April 2013

These are the configuration files on Configuration NXP Dell Latitude D620 - AndLinux.

Windows Host files

settings.txt

hosts

AndLinux files

Generated with script /home/beq06659/bin/generate_wiki_config_file_page.sh on host andLinux

Directory /etc

fstab

Directory /etc/privoxy

set-network-config - This file must be chmod 755. Also the following line must be added to /etc/sudoers:

ALL ALL=(ALL) NOPASSWD: /etc/privoxy/set-network-config

config-home.patch

config-nxp.patch

config-nxp_auth - symlinked to config-nxp

config-nxp_direct.patch

Directory /usr/local/bin

be - This script would ideally require to add the following line to /etc/sudoers:

ALL ALL=(ALL) NOPASSWD: /bin/loadkeys

ssh-agent-refresh.sh

Directory /home/beq06659

.bashrc - Everything before #### CUSTOMIZATION is the original file.

.dircolors.cfg

.inputrc

.profile

.vimrc

Directory /home/beq06659/.ssh

config-home

config-nxp

config-nxp_auth - symlinked to config-nxp

config-nxp_direct - symlinked to config-nxp

proxy.conf-default

proxy.conf-home - symlinked to proxy.conf-default

proxy.conf-nxp - symlinked to proxy.conf-default

proxy.conf-nxp_auth

config-home-nxp_direct - symlinked to config-default

Directory /home/beq06659/bin

backup_main - This file must be chmod 700.

generate_wiki_config_file_page.sh - This file must be chmod 700.

restore_wiki.sh - This file must be chmod 700.

set-network.sh - This file must be chmod 700.

sshproxy - This file must be chmod 700.

startup.sh - This file must be chmod 700.

Directory /home/beq06659/etc

backup_definition

crontab - Install this file with

crontab -u beq06659 ~/etc/crontab