Nxl67002 - AndLinux - Files: Difference between revisions

From miki
Jump to navigation Jump to search
Line 22: Line 22:


== 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>


=== Directory /etc ===
=== Directory /etc ===
'''fstab'''
{{hiddenSourceFile|/etc/|fstab|<pre class="fstab">
{{pl2|{{hiddenSourceFile|/etc/|fstab|<source lang=text class="fstab">
# /etc/fstab: static file system information.
# /etc/fstab: static file system information.
#
#
Line 35: Line 37:
0 /mnt/winc cofs defaults,gid=samba,dmask=0775,fmask=0775 0 0
0 /mnt/winc cofs defaults,gid=samba,dmask=0775,fmask=0775 0 0
1 /mnt/wind cofs defaults,gid=samba,dmask=0775,fmask=0775 0 0
1 /mnt/wind cofs defaults,gid=samba,dmask=0775,fmask=0775 0 0
</pre>
}}


</source>
}} }}
=== 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>
<pre>
ALL ALL=(ALL) NOPASSWD: /etc/privoxy/set-network-config
{{pl2|{{hiddenSourceFile|/etc/privoxy/|set-network-config|<source lang=bash class="set-network-config">
</pre>

{{hiddenSourceFile|/etc/privoxy/|set-network-config|<source lang="bash" class="set-network-config">
#! /bin/bash
#! /bin/bash


Line 56: Line 55:
ln -sf "$TARGET_FILE" /etc/privoxy/config
ln -sf "$TARGET_FILE" /etc/privoxy/config
/etc/init.d/privoxy restart
/etc/init.d/privoxy restart
</source>
}}


</source>
{{hiddenSourceFile|/etc/privoxy/|config-home.patch|<source lang="diff" class="config-home.patch">
}} }}
'''config-home.patch'''
{{pl2|{{hiddenSourceFile|/etc/privoxy/|config-home.patch|<source lang=diff class="config-home.patch">
--- config.original 2009-11-15 00:50:28.000000000 +0100
--- config.original 2009-11-15 00:50:28.000000000 +0100
+++ config-home 2009-11-17 00:01:48.000000000 +0100
+++ config-home 2009-11-17 00:01:48.000000000 +0100
Line 72: Line 72:
# 4.2. toggle
# 4.2. toggle
</source>
</source>
}}
}} }}
'''config-nxp.patch'''

{{hiddenSourceFile|/etc/privoxy/|config-nxp.patch|<source lang="diff" class="config-nxp.patch">
{{pl2|{{hiddenSourceFile|/etc/privoxy/|config-nxp.patch|<source lang=diff class="config-nxp.patch">
--- config-home 2009-11-17 00:01:48.000000000 +0100
--- config-home 2009-11-17 00:01:48.000000000 +0100
+++ config-nxp 2009-11-15 02:34:20.000000000 +0100
+++ config-nxp 2009-11-15 02:34:20.000000000 +0100
Line 92: Line 92:
#
#
</source>
</source>
}}
}} }}
'''config-nxp_auth''' - symlinked to <tt>config-nxp</tt>


{{hiddenSourceFile|/etc/privoxy/|config-nxp_direct.patch|<source lang="diff" class="config-nxp_direct.patch">
'''config-nxp_direct.patch'''
{{pl2|{{hiddenSourceFile|/etc/privoxy/|config-nxp_direct.patch|<source lang=diff class="config-nxp_direct.patch">
--- config-nxp 2009-11-15 02:34:20.000000000 +0100
--- config-nxp 2009-11-15 02:34:20.000000000 +0100
+++ config-nxp_direct 2009-11-16 16:14:23.000000000 +0100
+++ config-nxp_direct 2009-11-16 16:14:23.000000000 +0100
Line 107: Line 109:
forward 127.*.*.*/ .
forward 127.*.*.*/ .
</source>
</source>
}}
}} }}

=== Directory /usr/local/bin ===
=== Directory /usr/local/bin ===
'''be''' - This script would ideally require to add the following line to <tt>/etc/sudoers</tt>:
'''be''' - This script would ideally require to add the following line to <tt>/etc/sudoers</tt>:
:<code>ALL ALL=(ALL) NOPASSWD: /bin/loadkeys</code>
:<code>ALL ALL=(ALL) NOPASSWD: /bin/loadkeys</code>
{{pl2|{{hiddenSourceFile|/usr/local/bin/|be|<source lang=bash class="be">

{{hiddenSourceFile|/usr/local/bin/|be|<source lang="bash" class="be">
#!/bin/bash
#!/bin/bash


sudo loadkeys /usr/share/keymaps/i386/azerty/be2-latin1.kmap.gz
sudo loadkeys /usr/share/keymaps/i386/azerty/be2-latin1.kmap.gz

</source>
</source>
}}
}} }}
'''ssh-agent-refresh.sh'''

{{hiddenSourceFile|/usr/local/bin/|ssh-agent-refresh.sh|<source lang="bash" class="ssh-agent-refresh.sh">
{{pl2|{{hiddenSourceFile|/usr/local/bin/|ssh-agent-refresh.sh|<source lang=bash class="ssh-agent-refresh.sh">
#!/bin/bash
#!/bin/bash
#
#
Line 198: Line 199:


exit 0
exit 0
</source>
}}


</source>
=== directory ~ ===
}} }}
=== Directory /home/beq06659 ===
'''.bashrc''' - Everything before <tt>#### CUSTOMIZATION</tt> is the original file.
'''.bashrc''' - Everything before <tt>#### CUSTOMIZATION</tt> is the original file.
{{hiddenSourceFile|~/|.bashrc|<source lang="bash" class=".bashrc">
{{pl2|{{hiddenSourceFile|/home/beq06659/|.bashrc|<source lang=bash class=".bashrc">
# ~/.bashrc: executed by bash(1) for non-login shells.
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
Line 405: Line 406:
PS1='\[\e]0;\w\a\]\n\[\e[0m\e[35m\]\u@\h \[\e[0m\e[33m\]\w\[\e[0m\]\n\$ '
PS1='\[\e]0;\w\a\]\n\[\e[0m\e[35m\]\u@\h \[\e[0m\e[33m\]\w\[\e[0m\]\n\$ '
export PS1
export PS1
</source>
}}


</source>
{{hiddenSourceFile|~/|.dircolors.cfg|<pre class=".dircolors.cfg">
}} }}
'''.dircolors.cfg'''
{{pl2|{{hiddenSourceFile|/home/beq06659/|.dircolors.cfg|<source lang=text class=".dircolors.cfg">
# 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.
Line 519: Line 521:
.ogg 35
.ogg 35
.wav 35
.wav 35
</pre>
</source>
}}
}} }}
'''.inputrc'''

{{hiddenSourceFile|~/|.inputrc|<source lang="bash" class=".inputrc">
{{pl2|{{hiddenSourceFile|/home/beq06659/|.inputrc|<source lang=bash class=".inputrc">
#
#
# MIP CUSTOM BINDING STARTS HERE
# MIP CUSTOM BINDING STARTS HERE
Line 575: Line 577:
"\e ":dynamic-complete-history #Esc-space
"\e ":dynamic-complete-history #Esc-space
</source>
</source>
}}
}} }}
'''.profile'''

{{hiddenSourceFile|~/|.profile|<source lang="bash" class=".profile">
{{pl2|{{hiddenSourceFile|/home/beq06659/|.profile|<source lang=bash class=".profile">
# ~/.profile: executed by the command interpreter for login shells.
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
Line 604: Line 606:
##############
##############
eval `ssh-agent-refresh.sh` >/dev/null
eval `ssh-agent-refresh.sh` >/dev/null
</source>
}}


</source>
{{hiddenSourceFile|~/|.vimrc|<source lang="bash" class=".vimrc">
}} }}
'''.vimrc'''
{{pl2|{{hiddenSourceFile|/home/beq06659/|.vimrc|<source lang=text class=".vimrc">
syntax enable
syntax enable
set bg=light
set bg=light
Line 627: Line 630:
"set cindent
"set cindent
"set cinkeys=0{,0},:,0#,!,!^F
"set cinkeys=0{,0},:,0#,!,!^F
</source>
}}


</source>
=== Directory ~/.ssh ===
}} }}
{{hiddenSourceFile|~/.ssh/|config-home|<pre class="config-home">
=== Directory /home/beq06659/.ssh ===
'''config-home'''
{{pl2|{{hiddenSourceFile|/home/beq06659/.ssh/|config-home|<source lang=text class="config-home">
# ~/.ssh/config-home
# ~/.ssh/config-home


Line 657: Line 661:
ProxyCommand none
ProxyCommand none
ServerAliveInterval 15
ServerAliveInterval 15
</pre>
}}


</source>
{{hiddenSourceFile|~/.ssh/|config-nxp|<pre class="config-nxp">
}} }}
'''config-nxp'''
{{pl2|{{hiddenSourceFile|/home/beq06659/.ssh/|config-nxp|<source lang=text class="config-nxp">
# ~/.ssh/config-nxp
# ~/.ssh/config-nxp


Line 686: Line 691:
ProxyCommand /usr/local/bin/ssh-tunnel.pl -q - - %h %p
ProxyCommand /usr/local/bin/ssh-tunnel.pl -q - - %h %p
ServerAliveInterval 15
ServerAliveInterval 15
</pre>
}}


</source>
{{hiddenSourceFile|~/.ssh/|proxy.conf-default|<pre class="proxy.conf-default">
}} }}
'''config-nxp_auth''' - symlinked to <tt>config-nxp</tt>

'''config-nxp_direct''' - symlinked to <tt>config-nxp</tt>

'''proxy.conf-default'''
{{pl2|{{hiddenSourceFile|/home/beq06659/.ssh/|proxy.conf-default|<source lang=text class="proxy.conf-default">
# SSH Tunnel configuration file.
# SSH Tunnel configuration file.


Line 716: Line 726:
#proxy is a synonym - but not portable because it might only work at Leuven...
#proxy is a synonym - but not portable because it might only work at Leuven...
10.0.2.2/32 emea.nics.nxp.com:8080 -C ~/.ssh/clbanner.txt
10.0.2.2/32 emea.nics.nxp.com:8080 -C ~/.ssh/clbanner.txt
</pre>
}}


</source>
{{hiddenSourceFile|~/.ssh/|proxy.conf-nxp_auth|<pre class="proxy.conf-nxp_auth">
}} }}
'''proxy.conf-home''' - symlinked to <tt>proxy.conf-default</tt>

'''proxy.conf-nxp''' - symlinked to <tt>proxy.conf-default</tt>

'''proxy.conf-nxp_auth'''
{{pl2|{{hiddenSourceFile|/home/beq06659/.ssh/|proxy.conf-nxp_auth|<source lang=text class="proxy.conf-nxp_auth">
# SSH Tunnel configuration file.
# SSH Tunnel configuration file.


Line 746: Line 761:
#proxy is a synonym - but not portable because it might only work at Leuven...
#proxy is a synonym - but not portable because it might only work at Leuven...
10.0.2.2/32 emea.nics.nxp.com:8080 -C ~/.ssh/clbanner.txt -u=beq06659 -p=****************
10.0.2.2/32 emea.nics.nxp.com:8080 -C ~/.ssh/clbanner.txt -u=beq06659 -p=****************
</pre>
}}


</source>
=== Directory ~/etc ===
}} }}
{{hiddenSourceFile|~/etc/|backup_definition|<source lang="bash" class="backup_definition">
'''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
BACKUPPREFIX=wiki
BACKUPID=www.noekeon.org_miki
BACKUPID=www.noekeon.org_miki
Line 770: Line 788:
BACKUPEXT=tar.gz
BACKUPEXT=tar.gz
BACKUPCMD="ssh noekeon 'cd ~daemenj/kiwi.noekeon.org; /usr/bin/nice -n 19 tar -cz crypto/'"
BACKUPCMD="ssh noekeon 'cd ~daemenj/kiwi.noekeon.org; /usr/bin/nice -n 19 tar -cz crypto/'"
</source>
}}


</source>

}} }}
'''crontab''' - Install this file with <source lang="bash">crontab -u beq06659 ~/etc/crontab</source>
'''crontab''' - Install this file with
{{hiddenSourceFile|~/etc/|crontab|<source lang="bash" class="crontab">
:<code>crontab -u beq06659 ~/etc/crontab</code>
{{pl2|{{hiddenSourceFile|/home/beq06659/etc/|crontab|<source lang=bash class="crontab">
# Crontab for user beq06659
# Crontab for user beq06659
#
#
Line 792: Line 810:
# m h dom mon dow command (dow=0|7 is sunday)
# m h dom mon dow command (dow=0|7 is sunday)
37 * * * * ~beq06659/bin/backup_main ~beq06659/etc/backup_definition
37 * * * * ~beq06659/bin/backup_main ~beq06659/etc/backup_definition
</source>
}}


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


Line 953: Line 971:
fi
fi
done 3< $BACKUP_DEF_FILE
done 3< $BACKUP_DEF_FILE
</source>
}}


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


Line 983: Line 1,001:
sudo /etc/privoxy/set-network-config "$NETWORK"
sudo /etc/privoxy/set-network-config "$NETWORK"
~/bin/sshproxy start
~/bin/sshproxy start
</source>
}}


</source>
'''sshproxy''' - This file must be '''chmod +700'''.
}} }}
{{hiddenSourceFile|~/bin/|sshproxy|<source lang="bash" class="sshproxy">
'''sshproxy''' - This file must be '''chmod 700'''.
{{pl2|{{hiddenSourceFile|/home/beq06659/bin/|sshproxy|<source lang=bash class="sshproxy">
#! /bin/sh
#! /bin/sh
#
#
Line 1,144: Line 1,162:


exit $RETVAL
exit $RETVAL
</source>
}}


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


Line 1,160: Line 1,178:
#~/bin/sshproxy stop >/dev/null
#~/bin/sshproxy stop >/dev/null
#~/bin/sshproxy start
#~/bin/sshproxy start

</source>
</source>
}}
}} }}

Revision as of 00:09, 17 November 2009

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

Windows Host files

settings.txt

AndLinux files

Last generated on Tue Nov 17 01:07:38 CET 2009 with script /home/beq06659/bin/wiki_config_template.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/etc

backup_definition

crontab - Install this file with

crontab -u beq06659 ~/etc/crontab

Directory /home/beq06659/bin

backup_main - 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.