Nxl67002 - AndLinux: Difference between revisions
Jump to navigation
Jump to search
(29 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
== Introduction == |
== Introduction == |
||
This page is dedicated to the configuration settings of [http://www.andlinux.org AndLinux] on my [[Configuration NXP Dell Latitude D620|Dell Latitude D620]]. |
This page is dedicated to the configuration settings of [http://www.andlinux.org AndLinux] on my [[Configuration NXP Dell Latitude D620|Dell Latitude D620]]. |
||
'''Note''': This configuration has been ported to [[Configuration NXP Dell Latitude E6500|NXL67002]]. |
|||
== Configuration files == |
== Configuration files == |
||
Line 6: | Line 7: | ||
== Installed Applications == |
== Installed Applications == |
||
{| class="install_log" |
|||
* [<tt>2009-10-16</tt>] - '''dlocate''' (<tt>dlocate</tt>) |
|||
|- |
|||
* [<tt>2009-10-16</tt>] - '''apt-file''' (<tt>apt-file</tt>) |
|||
|[2009-10-16]||'''dlocate''' (<tt>dlocate</tt>)|| |
|||
|- |
|||
* [<tt>2009-10-16</tt>] - '''IMAP Courier''' (<tt>courier-imap courier-doc courier-imap-ssl</tt>) |
|||
|[2009-10-16]||'''apt-file''' (<tt>apt-file</tt>)|| |
|||
|- |
|||
* [<tt>2009-10-16</tt>] - '''Screen''' (<tt>screen</tt>) |
|||
|[2009-10-16]||'''ReiserFS User-Tools''' (<tt>reiserfsprogs</tt>)|| |
|||
|- |
|||
* [<tt>2009-10-16</tt>] - '''Mencoder''' (<tt>mencoder</tt>) - provides mplayer |
|||
|[2009-10-16]||'''IMAP Courier''' (<tt>courier-imap courier-doc courier-imap-ssl</tt>)|| |
|||
|- |
|||
* [<tt>2009-10-17</tt>] - '''autossh''' (<tt>autossh</tt>) |
|||
|[2009-10-16]||'''Socat''' (<tt>socat</tt>)|| |
|||
|- |
|||
|[2009-10-16]||'''Screen''' (<tt>screen</tt>)|| |
|||
|- |
|||
|[2009-10-16]||'''Recode''' (<tt>recode</tt>)|| |
|||
|- |
|||
|[2009-10-16]||'''Mencoder''' (<tt>mencoder</tt>)||provides mplayer |
|||
|- |
|||
|[2009-10-16]||'''imapsync''' (<tt>imapsync</tt>)|| |
|||
|- |
|||
|[2009-10-17]||'''autossh''' (<tt>autossh</tt>)|| |
|||
|- |
|||
|[2009-10-17]||'''[tcp]traceroute''' (<tt>traceroute tcptraceroute</tt>)|| |
|||
|- |
|||
|[2009-10-29]||'''Courier-POP3''' (<tt>courier-pop courier-pop-ssl</tt>)|| |
|||
|- |
|||
|[2009-10-29]||'''Courier-MTA''' (<tt>courier-mta courier-mta-ssl</tt>)|| |
|||
|- |
|||
|[2009-11-03]||'''Connect-Proxy''' (<tt>connect-proxy</tt>)|| |
|||
|- |
|||
|[2009-11-15]||'''Privoxy''' (<tt>privoxy</tt>)|| |
|||
|- |
|||
|[2009-11-15]||'''Cntlm''' (<tt>cntlm</tt>)|| |
|||
|- |
|||
|[2009-11-17]||'''Patch''' (<tt>patch</tt>)|| |
|||
|- |
|||
|[2009-12-10]||'''Sage 4.2.1'''|| i686 32-bit build, from [http://www.sagemath.org/download-linux.html here] - See [[Sage]] |
|||
|- |
|||
|[2010-02-25]||'''JackSum''' (<tt>jacksum</tt>)||Ccomputes checksums, CRCs, and message digests... |
|||
|- |
|||
|[2010-03-24]||'''PHPMyAdmin''' (<tt>phpmyadmin</tt>)||Install ''phpmyadmin'' database |
|||
|} |
|||
Installed after port to '''NXL67002''': |
|||
{| class="install_log" |
|||
|- |
|||
|[2010-11-24]||'''Exuberant CTAGs''' (<tt>exuberant-ctags</tt>)|| |
|||
|- |
|||
|[2010-11-24]||'''Color Diff''' (<tt>colordiff</tt>)|| |
|||
|- |
|||
|[2010-12-06]||'''C/C++ documentation''' (<tt>manpages-posix-dev stl-manual</tt>)||Make SGI doc available at http://localhost/sgi : |
|||
<source lang="bash">ln -s /usr/share/doc/stl-manual/html /var/www/sgi</source> |
|||
|} |
|||
Previous installed applications (by uninstall date): |
|||
{| class="install_log" |
|||
|- |
|||
|[2009-11-15]||'''ProxyChains''' (<tt>proxychains</tt>)|| |
|||
|- |
|||
|[2009-11-15]||'''TinyProxy''' (<tt>tinyproxy</tt>)|| |
|||
|} |
|||
== Simple Settings == |
== Simple Settings == |
||
Line 26: | Line 78: | ||
sudo cp /usr/share/keymaps/i386/azerty/be-latin1.kmap.gz /etc/console |
sudo cp /usr/share/keymaps/i386/azerty/be-latin1.kmap.gz /etc/console |
||
</source></div> |
</source></div> |
||
* [<tt>2009-11-09</tt>] - cron script for automatic '''backup''' of wikis on Noekeon's (see [[{{PAGENAME}} - Files|config files]]. |
|||
* [<tt>2009-11-16</tt>] - script for automatic setup of network environment (proxy, ssh...) (see [[{{PAGENAME}} - Files|config files]]. |
|||
== Detailed System Settings == |
== Detailed System Settings == |
||
Line 55: | Line 109: | ||
sudo mkreiserfs -l "DATA" /dev/cobd2 |
sudo mkreiserfs -l "DATA" /dev/cobd2 |
||
</source></div> |
</source></div> |
||
:* File system structure: |
:* File system structure (showing '''<font color="darkcyan">links</font>''' and '''<font color=gray>mount points</font>'''): |
||
<div style="padding-left:4em;"> |
<div style="padding-left:4em;"> |
||
'''<u>/</u>''': <font color="gray"># /dev/cobd0</font> |
|||
'''<u>/</u>''': |
|||
drwxr-xr-x |
drwxr-xr-x root root <font color="blue">windows</font>/ |
||
lrwxrwxrwx |
lrwxrwxrwx root root <font color="darkcyan">data</font> -> <font color="blue">/mnt/data</font>/ |
||
lrwxrwxrwx root root <font color="darkcyan">sage</font> -> <font color="blue">/mnt/data/sage-4.2.1</font>/ |
|||
'''<u>/home/altran</u>''': |
|||
lrwxrwxrwx altran altran <font color="darkcyan">Maildir</font> -> <font color="blue">/data/altran/Maildir</font>/ |
|||
'''<u>/home/beq06659</u>''': |
|||
lrwxrwxrwx beq06659 beq06659 <font color="darkcyan">Maildir</font> -> <font color="blue">/data/beq06659/Maildir</font>/ |
|||
lrwxrwxrwx beq06659 beq06659 <font color="darkcyan">backup</font> -> <font color="blue">/data/beq06659/backup</font>/ |
|||
'''<u>/mnt</u>''': |
'''<u>/mnt</u>''': |
||
drwxr-xr-x |
drwxr-xr-x root root <font color="blue">and</font>/ <font color="gray"># cofs31</font> |
||
drwxr-xr-x |
drwxr-xr-x root root <font color="blue">data</font>/ <font color="gray"># /dev/cobd2</font> |
||
drwxr-xr-x |
drwxr-xr-x root root <font color="blue">winc</font>/ <font color="gray"># cofs0</font> |
||
drwxr-xr-x |
drwxr-xr-x root root <font color="blue">wind</font>/ <font color="gray"># cofs1</font> |
||
'''<u>/windows</u>''': |
'''<u>/windows</u>''': |
||
lrwxrwxrwx |
lrwxrwxrwx root root <font color="darkcyan">c</font> -> <font color="blue">/mnt/winc</font>/ |
||
lrwxrwxrwx |
lrwxrwxrwx root root <font color="darkcyan">d</font> -> <font color="blue">/mnt/wind</font>/ |
||
'''<u>/data</u>''': |
'''<u>/data</u>''': |
||
drwxr-xr-x |
drwxr-xr-x altran altran <font color="blue">altran</font>/ |
||
drwxr-xr-x beq06659 beq06659 <font color="blue">beq06659</font>/ |
|||
drwxr-xr-x beq06659 beq06659 <font color="blue">sage-4.2.1</font>/ |
|||
drwxr-xr-x www-data root <font color="blue">www</font>/ |
|||
'''<u>/var</u>''': |
|||
lrwxrwxrwx root root <font color="darkcyan">www</font> -> <font color="blue">/data/www</font>/ |
|||
</div> |
</div> |
||
Line 75: | Line 140: | ||
* Added to '''/etc/hosts''': <code>172.19.100.1 gryphon</code> |
* Added to '''/etc/hosts''': <code>172.19.100.1 gryphon</code> |
||
* Added domain prefix for home and nxp'' to '''/etc/resolv.conf''': <code>search be-leu01.nxp.com wbi.nxp.com diamond.nxp.com hell</code> |
* Added domain prefix for home and nxp'' to '''/etc/resolv.conf''': <code>search be-leu01.nxp.com wbi.nxp.com diamond.nxp.com hell</code> |
||
* '''Proxy''' configuration - network '''nxp''': |
|||
** '''sshproxy''' → connect to NXP proxy with '''sshtunnel''' (with NTLM auth. if needed); forward IMAP/SMTP ports; opens a SOCKS5 proxy |
|||
** '''privoxy''' → forward to ssh SOCKS5 proxy. provide http proxy server. |
|||
** '''apt-get''', '''wget''', '''browsers'''... → through privoxy (env. set in /etc/bash.bashrc, /etc/profile, /etc/environment) |
|||
** '''ftp''' → direct connection (no solution...) |
|||
* '''Proxy''' configuration - network '''home''': |
|||
** '''sshproxy''' → direct connection; forward IMAP/SMTP ports; opens a SOCKS5 proxy (useless). |
|||
** '''privoxy''' → direct connection. provide http proxy server. |
|||
** '''apt-get''', '''wget''', '''browsers'''... → through privoxy (env. set in /etc/bash.bashrc, /etc/profile, /etc/environment) |
|||
** '''ftp''' → direct connection |
|||
=== Users / Groups === |
=== Users / Groups === |
||
Line 103: | Line 178: | ||
ln -s /data/beq06659/Maildir ~/Maildir |
ln -s /data/beq06659/Maildir ~/Maildir |
||
</source></div> |
</source></div> |
||
=== LAMP === |
|||
<source lang="bash"> |
|||
sudo apt-get install apache2 php5 mysql-server mysql-client php5-mysql |
|||
# ... Defined password for MySQL root user |
|||
sudo vi /etc/apache2/apache2.conf |
|||
# ... Added lines: |
|||
# #MIP CUSTOM |
|||
# ServerName "andlinux" |
|||
# ... Restart apache server to activate php module... |
|||
sudo /etc/init.d/apache restart |
|||
# Move www root dir to /data disk |
|||
sudo mv /var/www /data |
|||
sudo ln -s /f /data/www /var/www |
|||
</source> |
|||
* Apache configuration file is at '''/etc/apache2/apache2.conf''' |
|||
* By default, Apache root http directory is '''/var/www''' |
|||
=== SSH === |
=== SSH === |
||
* Installed '''[[SSH#SSH-Tunnel|SSH-Tunnel]]''' |
* Installed '''[[SSH#SSH-Tunnel|SSH-Tunnel]]''' |
||
* Files recovered from other installation (ssh-tunnel v2.26 + patch): |
* Files recovered from other installation (ssh-tunnel v2.26 + patch): |
||
{{pl2|<source lang="bash" enclose="prevalid"> |
|||
sudo cp .../ssh-tunnel.pl /usr/local/bin |
|||
sudo cp .../ssh.pl /usr/local/bin |
|||
sudo chmod a+x /usr/local/bin |
|||
</source>}} |
|||
* User '''beq06659''' - configuration file in directory '''~/.ssh''': |
* User '''beq06659''' - configuration file in directory '''~/.ssh''': |
||
** <tt>id_rsa</tt> || <tt>id_rsa.pub</tt> || <tt>authorized_keys</tt> || <tt>config</tt> || <tt>config-home</tt> || <tt>config-nxp</tt> || <tt>config-home</tt> |
** <tt>id_rsa</tt> || <tt>id_rsa.pub</tt> || <tt>authorized_keys</tt> || <tt>config</tt> || <tt>config-home</tt> || <tt>config-nxp</tt> || <tt>config-home</tt> |
||
Line 116: | Line 213: | ||
== Windows Host Settings == |
== Windows Host Settings == |
||
* See Windows configuration file [[{{PAGENAME}} - Files#Windows_Host_files|here]] |
* See Windows configuration file [[{{PAGENAME}} - Files#Windows_Host_files|here]] |
||
* '''host''' file entry for hostname '''andlinux''' (in <tt>c:\windows\system32\drivers\etc\hosts</tt>): |
|||
{{pl2|<pre>192.168.11.150 andlinux</pre>}} |
|||
* Network - TAP interface |
* Network - TAP interface |
||
** Name: ''TAP-Colinux'' (must be sync'ed with name defined in [[{{PAGENAME}} - Files#settings.txt|settings.txt]] |
** Name: ''TAP-Colinux'' (must be sync'ed with name defined in [[{{PAGENAME}} - Files#settings.txt|settings.txt]]) |
||
** IP Address: '''192.168.11.1''' |
** IP Address: '''192.168.11.1''' |
||
** Mask: '''255.255.255.0''' |
** Mask: '''255.255.255.0''' |
||
Line 125: | Line 224: | ||
* Interesting packages: |
* Interesting packages: |
||
** MIME decoding: <tt>mime-codecs</tt> (from ''dapper'' universe), <tt>mimedecode</tt> |
** MIME decoding: <tt>mime-codecs</tt> (from ''dapper'' universe), <tt>mimedecode</tt> |
||
* Proxy settings |
|||
** Use '''cntlm''' to enable FTP through SSH SOCKS5 proxy when behind a corporate proxy. |
|||
* Pending: <tt>apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.0.40 for ServerName</tt> (during Apache install) |
Latest revision as of 11:22, 26 April 2013
Introduction
This page is dedicated to the configuration settings of AndLinux on my Dell Latitude D620. Note: This configuration has been ported to NXL67002.
Configuration files
All configuration files can be found here.
Installed Applications
[2009-10-16] | dlocate (dlocate) | |
[2009-10-16] | apt-file (apt-file) | |
[2009-10-16] | ReiserFS User-Tools (reiserfsprogs) | |
[2009-10-16] | IMAP Courier (courier-imap courier-doc courier-imap-ssl) | |
[2009-10-16] | Socat (socat) | |
[2009-10-16] | Screen (screen) | |
[2009-10-16] | Recode (recode) | |
[2009-10-16] | Mencoder (mencoder) | provides mplayer |
[2009-10-16] | imapsync (imapsync) | |
[2009-10-17] | autossh (autossh) | |
[2009-10-17] | [tcp]traceroute (traceroute tcptraceroute) | |
[2009-10-29] | Courier-POP3 (courier-pop courier-pop-ssl) | |
[2009-10-29] | Courier-MTA (courier-mta courier-mta-ssl) | |
[2009-11-03] | Connect-Proxy (connect-proxy) | |
[2009-11-15] | Privoxy (privoxy) | |
[2009-11-15] | Cntlm (cntlm) | |
[2009-11-17] | Patch (patch) | |
[2009-12-10] | Sage 4.2.1 | i686 32-bit build, from here - See Sage |
[2010-02-25] | JackSum (jacksum) | Ccomputes checksums, CRCs, and message digests... |
[2010-03-24] | PHPMyAdmin (phpmyadmin) | Install phpmyadmin database |
Installed after port to NXL67002:
[2010-11-24] | Exuberant CTAGs (exuberant-ctags) | |
[2010-11-24] | Color Diff (colordiff) | |
[2010-12-06] | C/C++ documentation (manpages-posix-dev stl-manual) | Make SGI doc available at http://localhost/sgi :
ln -s /usr/share/doc/stl-manual/html /var/www/sgi
|
Previous installed applications (by uninstall date):
[2009-11-15] | ProxyChains (proxychains) | |
[2009-11-15] | TinyProxy (tinyproxy) |
Simple Settings
- [2009-10-14] - Added
cofs1=D:\
to settings.txt - [2009-10-15] - Added /usr/local/bin/be (quick switching to be keyboard layout)
- [2009-10-16] - Set time locale (
sudo ln -fs /usr/share/zoneinfo/Europe/Brussels /etc/localtime
) - [2009-10-16] - Select be layout at boottime (see "/etc/init.d/keymap.sh")
sudo ln -fs /usr/share/keymaps/i386/azerty/be2-latin1.kmap.gz /etc/console/boottime.kmap.gz
sudo cp /usr/share/keymaps/i386/azerty/be-latin1.kmap.gz /etc/console
- [2009-11-09] - cron script for automatic backup of wikis on Noekeon's (see config files.
- [2009-11-16] - script for automatic setup of network environment (proxy, ssh...) (see config files.
Detailed System Settings
1st Install
- Install on [2009-10-14]
- AndLinux Beta 2 - minimal / XFCE version
- CoLinux kernel 0.7.4 (stable version)
- Memory 384MB
- Install XMing (use primary screen resolution)
- Enable sound
- run andLinux automatically as a NT service + use Windows shortcuts
- User andlinux
- User CoFS (will have issue with special character but at least I don't have to use my beq06659 account and password)
- Share C:\
- Reboot
sudo apt-get update
File System
- On windows host,
- Device cobd2: file data.reiserfs.10GB.fs (10GB - see [1]):
fsutil file createnew data.reiserfs.10GB.dvi 10737418240
- On andlinux,
- Mounting Windows partition (giving RW access to user in group samba) (see /etc/fstab)
- Format /dev/cobd2 as reiserfs 3.6, and mount it as /mnt/data (see /etc/fstab):
sudo mkreiserfs -l "DATA" /dev/cobd2
- File system structure (showing links and mount points):
/: # /dev/cobd0 drwxr-xr-x root root windows/ lrwxrwxrwx root root data -> /mnt/data/ lrwxrwxrwx root root sage -> /mnt/data/sage-4.2.1/ /home/altran: lrwxrwxrwx altran altran Maildir -> /data/altran/Maildir/ /home/beq06659: lrwxrwxrwx beq06659 beq06659 Maildir -> /data/beq06659/Maildir/ lrwxrwxrwx beq06659 beq06659 backup -> /data/beq06659/backup/ /mnt: drwxr-xr-x root root and/ # cofs31 drwxr-xr-x root root data/ # /dev/cobd2 drwxr-xr-x root root winc/ # cofs0 drwxr-xr-x root root wind/ # cofs1 /windows: lrwxrwxrwx root root c -> /mnt/winc/ lrwxrwxrwx root root d -> /mnt/wind/ /data: drwxr-xr-x altran altran altran/ drwxr-xr-x beq06659 beq06659 beq06659/ drwxr-xr-x beq06659 beq06659 sage-4.2.1/ drwxr-xr-x www-data root www/ /var: lrwxrwxrwx root root www -> /data/www/
Network
- Added to /etc/hosts:
172.19.100.1 gryphon
- Added domain prefix for home and nxp to /etc/resolv.conf:
search be-leu01.nxp.com wbi.nxp.com diamond.nxp.com hell
- Proxy configuration - network nxp:
- sshproxy → connect to NXP proxy with sshtunnel (with NTLM auth. if needed); forward IMAP/SMTP ports; opens a SOCKS5 proxy
- privoxy → forward to ssh SOCKS5 proxy. provide http proxy server.
- apt-get, wget, browsers... → through privoxy (env. set in /etc/bash.bashrc, /etc/profile, /etc/environment)
- ftp → direct connection (no solution...)
- Proxy configuration - network home:
- sshproxy → direct connection; forward IMAP/SMTP ports; opens a SOCKS5 proxy (useless).
- privoxy → direct connection. provide http proxy server.
- apt-get, wget, browsers... → through privoxy (env. set in /etc/bash.bashrc, /etc/profile, /etc/environment)
- ftp → direct connection
Users / Groups
- User andlinux (shell
/bin/bash
), group andlinux, admin, lpadmin, samba (for sudo, CUPS, samba RW). - User beq06659 (shell
/bin/bash
), group beq06659, admin, lpadmin, samba (for sudo, CUPS, samba RW).- Recovered files: ~/.bashrc || ~/.basshrc || ~/.dircolors.cfg || ~/.inputrc || ~/.vimrc || ~/bin/
- Group samba (gid 124)
Sudoers
Defaults env_reset root ALL=(ALL) ALL %admin ALL=(ALL) ALL ALL ALL=(ALL) NOPASSWD: /bin/loadkeys # For my script /usr/local/bin/be
Detailed Application Settings
Courier IMAP
- Install instructions here
- Create directories for web-based administration
- SSL Certificate: /etc/courier/pop3d.pem, /etc/courier/imapd.pem
- Postfix configuration: local only
- System mail name: andlinux
- User beq06659 - Create Maildir directory in /data/beq06659:
maildirmake /data/beq06659/Maildir
ln -s /data/beq06659/Maildir ~/Maildir
LAMP
sudo apt-get install apache2 php5 mysql-server mysql-client php5-mysql
# ... Defined password for MySQL root user
sudo vi /etc/apache2/apache2.conf
# ... Added lines:
# #MIP CUSTOM
# ServerName "andlinux"
# ... Restart apache server to activate php module...
sudo /etc/init.d/apache restart
# Move www root dir to /data disk
sudo mv /var/www /data
sudo ln -s /f /data/www /var/www
- Apache configuration file is at /etc/apache2/apache2.conf
- By default, Apache root http directory is /var/www
SSH
- Installed SSH-Tunnel
- Files recovered from other installation (ssh-tunnel v2.26 + patch):
sudo cp .../ssh-tunnel.pl /usr/local/bin
sudo cp .../ssh.pl /usr/local/bin
sudo chmod a+x /usr/local/bin
- User beq06659 - configuration file in directory ~/.ssh:
- id_rsa || id_rsa.pub || authorized_keys || config || config-home || config-nxp || config-home
- clbanner.txt || proxy.conf (for ssh-tunnel)
Windows Host Settings
- See Windows configuration file here
- host file entry for hostname andlinux (in c:\windows\system32\drivers\etc\hosts):
192.168.11.150 andlinux
- Network - TAP interface
- Name: TAP-Colinux (must be sync'ed with name defined in settings.txt)
- IP Address: 192.168.11.1
- Mask: 255.255.255.0
- DNS: none specified
To Do
- Interesting packages:
- MIME decoding: mime-codecs (from dapper universe), mimedecode
- Proxy settings
- Use cntlm to enable FTP through SSH SOCKS5 proxy when behind a corporate proxy.
- Pending: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.0.40 for ServerName (during Apache install)