dejanstrbac / x220

x220 configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.: X220 Configuration :.

OpenBSD

Installation

Remove Ericsson F5521GW for install. Other run out of the box.

Encrypt home

dd if=/dev/urandom of=home.img bs=1M count=460800
vnconfig -k vnd0 home.img
disklabel -E vnd0
newfs vnd0a

man vnconfig pour ajouter dans fstab :) puis dans rc.local :

echo "Mounting encrypted volumes:"
mount /dev/vnd0c
fsck -p /dev/vnd0a
mount /home

NetBSD

Sound

mixerctl -w outputs.master++

XEN

dd if=/dev/zero of=/home/xen/domains/mail.ifup.sh/disk-10G.os.img bs=1M count=1 seek=10K

name        = 'mail.ifup.sh'

vcpus       = '2'
memory      = '2048'

#kernel      = "/root/kernel-domU//netbsd-INSTALL_XEN3_DOMU"  
kernel      = "/root/kernel-domU//netbsd_XEN3_DOMU"
root        = 'xbd0'
disk        = [ 'file:/home/xen/domains/mail.ifup.sh/disk.os.img,xvda2,w',
                'file:/home/xen/domains/mail.ifup.sh/disk.data.img,xvda3,w',]
#vfb        = [ 'type=vnc,vncdisplay=1,vncpasswd='',vnclisten=0.0.0.0' ] 
vif         = [ 'bridge=br0' ]
vif         = [ 'bridge=br1' ]

on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'

HSDPA

echo "ucom0:dv=/dev/ttyU1:br#460800:pa=none:dc:" >> /etc/remote

cat /etc/ppp/options noauth

spof$ sudo cat /etc/ppp/peers/bt

# $NetBSD: cosmote3G,v 1.1 2010/08/07 20:47:27 christos Exp $
# Script to connect to Cosmote-3G's service.
# This gets to the point of connected, but never gets to negotiate LCP.
# I see nothing from the modem. It is here for reference.
#
#kdebug 100
#debug 10000
/dev/ttyU1 460800
holdoff 10
noipv6
#-vj
#idle 600
demand
#active-filter-out "icmp or (udp and not udp port route) or (tcp and not tcp port ntp)"
#active-filter-in "icmp or (udp and not udp port route) or (tcp and not tcp port ntp)"
#pass-filter-in "tcp or (udp and not udp port route) or icmp"
#pass-filter-out "tcp or (udp and not udp port route) or icmp"
#netmask 0xffffff00
ipcp-accept-local
lcp-echo-failure 0
lcp-echo-interval 0
mtu 296
defaultroute
crtscts
modem
lock
connect /etc/ppp/peers/bt.chat
noauth
user ""
password ""
usepeerdns

cat /etc/ppp/peers/bt.chat

#!/bin/sh
#chat -t 100 -v ''      'ATZ' \
#      'OK'             'AT+CPIN=XXXX'

# Although the modem says ok, it takes a few seconds to negotiate the
# pin.
sleep 10

chat -t 100 -v ''       'AT+CGDCONT=1,"IP","a2bouygtel.com"' \
      'OK'              'ATDT*99***1#' \
      TIMEOUT           120 \
      'CONNECT'         '\c'

# 'AT+CPMS?'
# '+CPMS: "ME",0,100,"ME",0,100,"ME",0,100'
# Hardware handshake
#      'OK'             'AT&F &D2 &C1"
# No answer no timeout
#      'OK'             'ATS7=60 S30=0 S0=0"
# Report signal quality.
#      'OK'             'AT+CSQ'

NixOS

http://nixos.org/

About

x220 configuration


Languages

Language:Shell 59.4%Language:Haskell 24.1%Language:Nix 16.5%