Unterschiede zwischen den Revisionen 4 und 37 (über 33 Versionen hinweg)
Revision 4 vom 2013-01-12 20:39:52
Größe: 282
Autor: Robert
Kommentar:
Revision 37 vom 2015-08-12 09:43:11
Größe: 8556
Autor: Robert
Kommentar:
Gelöschter Text ist auf diese Art markiert. Hinzugefügter Text ist auf diese Art markiert.
Zeile 3: Zeile 3:
<<TableOfContents()>>

== Waffenkammer neustrukturieren ==

{{{
root@debstick:~# mount /dev/sda1 /mnt
root@debstick:~# mount /dev/sda5 /mnt/usr/
root@debstick:~# mount /dev/sda3 /mnt/tmp/
root@debstick:~# mount /dev/sda6 /mnt/var/
root@debstick:~# mount /dev/sda7 /mnt/home/

root@debstick:~# df -h
/dev/sda1 251M 222M 16M 94% /mnt
/dev/sda5 9.1G 6.2G 2.5G 72% /mnt/usr
/dev/sda3 2.5G 3.9M 2.4G 1% /mnt/tmp
/dev/sda6 2.7G 1.1G 1.5G 42% /mnt/var
/dev/sda7 132G 118G 7.2G 95% /mnt/home

/dev/sda1 256253 227037 15563 94% /mnt
/dev/sda5 9484844 6452436 2544040 72% /mnt/usr
/dev/sda3 2585516 3960 2430504 1% /mnt/tmp
/dev/sda6 2820244 1121952 1551704 42% /mnt/var
/dev/sda7 138287184 123727236 7512320 95% /mnt/home
}}}

== sshuttle ==

{{{#!sh
 sshuttle -H -D -v -r robert@apfelreich.net:2102 192.168.2.0/24

}}}

== ssmtp ==

=== revaliases ===
{{{#!sh
# sSMTP aliases
#
# Format: local_account:outgoing_address:mailhub
#
# Example: root:your_login@your.domain:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.
root:user@example.com:smtp.example.com:587
robert:user@example.com:smtp.example.com:587

}}}

=== ssmtp.conf ===
{{{
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=user@example.com

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.example.com:587

# Where will the mail seem to come from?
rewriteDomain=example.com

# The full hostname
hostname=host.tld

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES

AuthUser=user@example.com
AuthPass=password

UseTLS=Yes
UseSTARTTLS=Yes
}}}

== Addons ==

=== Iceweasel/Firefox ===

 * DownThemAll
 * Firemacs
 * Flagfox
 * Link Alert
 * Noscript
 * Password Exporter
 * RequestPolicy
 * Tree Style Tab
 * User Agent Switcher

=== Icedove/Thunderbird ===

 * Display Mail User Agent
 * Display Contact Photo
 * Enigmail
 * Extra Folder Columns
 * Lightning/Iceowl
 * Manually Sort Folders
 * Mail Redirect
 * New Mail Attention
 * Timeline
 * Toggle Word Wrap
== 2015-05-02 20:03:47 root@waffenkammer ~ # fdisk -l /dev/sda ==

{{{
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d9460

   Device Boot Start End Blocks Id System
/dev/sda1 * 63 546209 273073+ 83 Linux
/dev/sda2 546210 307194929 153324360 5 Extended
/dev/sda3 307194930 312581807 2693439 83 Linux
/dev/sda5 546273 20081249 9767488+ 83 Linux
/dev/sda6 20081313 25944974 2931831 83 Linux
/dev/sda7 25945038 307194929 140624946 83 Linux

}}}

== SIS-Graphiktreiber ==

[[ https://github.com/gununu/xf86-video-sis-stable ]]


== vimdiff ==

{{{
do - Get changes from other window into the current window.

dp - Put the changes from current window into the other window.

]c - Jump to the next change.

[c - Jump to the previous change.

Ctrl W + w - Switch to the other split window (CTRL-W CTRL-W does the same
thing, in case you let go of the CTRL key a bit later)

}}}

== VirtualBox VRDE Server aktivieren ==
{{{
VBoxManage setproperty vrdeextpack "Oracle VM VirtualBox Extension Pack"
}}}

== VirtualBox "CD" einlegen ==
{{{
VBoxManage storageattach "64ee42b4-a781-4a01-a09e-f8ba6747ed39" --medium additions --storagectl "IDE" --port 1 --device 0 --type dvddrive
}}}

== TLS und SSL im Firefox/Iceweasel ==

about:config
{{{
security.tls.version.max 3
security.tls.version.min 1
security.ssl3.rsa_fips_des_ede3_sha false
}}}
== Aptitude ==

=== Keine recommends und suggests ===

{{{
$ cat /etc/apt/apt.conf.d/50user
APT::Install-Suggests "0";
APT::Install-Recommends "0";
}}}
=== Installierte Pakete nach Quellen ===
{{{
aptitude search '~S ~i ~O "Debian Backports"'
aptitude search '~S ~i ~O "Unofficial Multimedia Packages"'
}}}

== NFS ==

=== Pakete Server ===

{{{
i A libnfsidmap2 - Bibliothek zur Abbildung von NFS-IDs
i A nfs-common - NFS-Dateien, die von Client und Server benutzt werden
i nfs-kernel-server - Unterstützung für den NFS-Kernel-Server
}}}

=== etc fstab Server ===

{{{
/private.data2/income /exports/income none bind,auto,rw 0 0
/private/Filme /exports/Filme none bind,auto,ro 0 0
/private.data2/Fuelme /exports/Fuelme none bind,auto,ro 0 0
}}}

{{{
cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#

/exports 192.168.2.0/24(fsid=0,rw,subtree_check,secure,nohide)

#/var/nfs 192.168.2.44(rw,no_subtree_check) 192.168.2.29(ro,no_subtree_check)
#/private/Filme 192.168.2.0/24(ro,subtree_check)
/exports/Filme 192.168.2.0/24(ro,subtree_check,secure,nohide)
#/private.data2/Fuelme 192.168.2.0/24(ro,subtree_check)
/exports/Fuelme 192.168.2.0/24(ro,subtree_check,secure,nohide)
#/private.data2/income 192.168.2.0/24(rw,subtree_check)

/exports/income 192.168.2.0/24(rw,subtree_check,secure,nohide)

#/private.archive/income 192.168.2.*(rw,subtree_check)
#/private.data/exchange 192.168.2.*(rw,subtree_check)
}}}

{{{
# exportfs
exportfs
/exports 192.168.2.0/24
/exports/Filme 192.168.2.0/24
/exports/Fuelme
  192.168.2.0/24
/exports/income
  192.168.2.0/24

}}}
Zeile 12: Zeile 246:
{{{
update-alternatives --install mencoder /usr/bin/mencoder mencoder /usr/bin/mencoder-mt 20
}}}
{{{
update-alternatives --install /usr/bin/mencoder mencoder /usr/bin/mencoder-mt 20
update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/urxvtcd 40
}}}

== etc network interfaces ==

{{{
 cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
#auto eth0
#iface eth0 inet dhcp
#iface eth0 inet static
#address 192.168.2.53
#netmask 255.255.255.0
#gateway 192.168.2.1
#broadcast 192.168.2.255

#auto wlan0
#iface wlan0 inet dhcp
auto wlan0
iface wlan0 inet static
address 192.168.2.53
netmask 255.255.255.0
gateway 192.168.2.1
broadcast 192.168.2.255
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpa_psk.conf

iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider

}}}

== wpa_supplicant ==
{{{
network={
            ssid="SSID"
            scan_ssid=1
            key_mgmt=WPA-PSK
            psk="passwort"
            }
}}}

== Verschlüsselten Datenträger vergrößern ==

Beste: https://help.ubuntu.com/community/ResizeEncryptedPartitions
http://ubuntuforums.org/showthread.php?t=726724

{{{
fdisk -l /dev/sdb
fdisk /dev/sdb

cryptsetup luksOpen /dev/sdb5 crypt1
mount /dev/mapper/crypt1 /mnt
vgscan --mknodes
vgchange -ay
cryptsetup resize crypt1
pvresize /dev/mapper/crypt1
pvchange -x y /dev/mapper/crypt1
lvresize -l +100%FREE /dev/mapper/debstick-root
pvchange -x n /dev/mapper/crypt1
e2fsck -f /dev/mapper/debstick-root
resize2fs -p /dev/mapper/debstick-root
sync


cryptsetup luksClose /dev/sdb5 crypt1

}}}

Administration

Waffenkammer neustrukturieren

root@debstick:~# mount /dev/sda1 /mnt
root@debstick:~# mount /dev/sda5 /mnt/usr/
root@debstick:~# mount /dev/sda3 /mnt/tmp/
root@debstick:~# mount /dev/sda6 /mnt/var/
root@debstick:~# mount /dev/sda7 /mnt/home/

root@debstick:~# df -h
/dev/sda1       251M  222M   16M  94% /mnt
/dev/sda5       9.1G  6.2G  2.5G  72% /mnt/usr
/dev/sda3       2.5G  3.9M  2.4G   1% /mnt/tmp
/dev/sda6       2.7G  1.1G  1.5G  42% /mnt/var
/dev/sda7       132G  118G  7.2G  95% /mnt/home

/dev/sda1         256253    227037     15563  94% /mnt
/dev/sda5        9484844   6452436   2544040  72% /mnt/usr
/dev/sda3        2585516      3960   2430504   1% /mnt/tmp
/dev/sda6        2820244   1121952   1551704  42% /mnt/var
/dev/sda7      138287184 123727236   7512320  95% /mnt/home

sshuttle

 sshuttle -H -D -v -r robert@apfelreich.net:2102 192.168.2.0/24

ssmtp

revaliases

# sSMTP aliases
# 
# Format:       local_account:outgoing_address:mailhub
#
# Example: root:your_login@your.domain:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.
root:user@example.com:smtp.example.com:587
robert:user@example.com:smtp.example.com:587

ssmtp.conf

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=user@example.com

# The place where the mail goes. The actual machine name is required no 
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.example.com:587

# Where will the mail seem to come from?
rewriteDomain=example.com

# The full hostname
hostname=host.tld

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES

AuthUser=user@example.com
AuthPass=password

UseTLS=Yes
UseSTARTTLS=Yes

Addons

Iceweasel/Firefox

Icedove/Thunderbird

  • Display Mail User Agent
  • Display Contact Photo
  • Enigmail
  • Extra Folder Columns
  • Lightning/Iceowl
  • Manually Sort Folders
  • Mail Redirect
  • New Mail Attention
  • Timeline
  • Toggle Word Wrap

2015-05-02 20:03:47 root@waffenkammer ~ # fdisk -l /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d9460

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63      546209      273073+  83  Linux
/dev/sda2          546210   307194929   153324360    5  Extended
/dev/sda3       307194930   312581807     2693439   83  Linux
/dev/sda5          546273    20081249     9767488+  83  Linux
/dev/sda6        20081313    25944974     2931831   83  Linux
/dev/sda7        25945038   307194929   140624946   83  Linux

SIS-Graphiktreiber

https://github.com/gununu/xf86-video-sis-stable

vimdiff

do - Get changes from other window into the current window.

dp - Put the changes from current window into the other window.

]c - Jump to the next change.

[c - Jump to the previous change.

Ctrl W + w - Switch to the other split window (CTRL-W CTRL-W does the same
thing, in case you let go of the CTRL key a bit later)

VirtualBox VRDE Server aktivieren

VBoxManage setproperty vrdeextpack "Oracle VM VirtualBox Extension Pack"

VirtualBox "CD" einlegen

VBoxManage storageattach "64ee42b4-a781-4a01-a09e-f8ba6747ed39" --medium additions --storagectl "IDE" --port 1 --device 0 --type dvddrive

TLS und SSL im Firefox/Iceweasel

about:config

security.tls.version.max 3
security.tls.version.min 1
security.ssl3.rsa_fips_des_ede3_sha false

Aptitude

Keine recommends und suggests

$ cat /etc/apt/apt.conf.d/50user
APT::Install-Suggests "0";
APT::Install-Recommends "0";

Installierte Pakete nach Quellen

aptitude search '~S ~i ~O "Debian Backports"'
aptitude search '~S ~i ~O "Unofficial Multimedia Packages"'

NFS

Pakete Server

i A libnfsidmap2 - Bibliothek zur Abbildung von NFS-IDs                                                                        
i A nfs-common - NFS-Dateien, die von Client und Server benutzt werden                                                       
i   nfs-kernel-server - Unterstützung für den NFS-Kernel-Server

etc fstab Server

/private.data2/income   /exports/income     none  bind,auto,rw             0             0
/private/Filme   /exports/Filme     none  bind,auto,ro             0             0
/private.data2/Fuelme   /exports/Fuelme     none  bind,auto,ro             0             0

cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#

/exports                192.168.2.0/24(fsid=0,rw,subtree_check,secure,nohide)

#/var/nfs           192.168.2.44(rw,no_subtree_check) 192.168.2.29(ro,no_subtree_check)
#/private/Filme           192.168.2.0/24(ro,subtree_check) 
/exports/Filme           192.168.2.0/24(ro,subtree_check,secure,nohide) 
#/private.data2/Fuelme           192.168.2.0/24(ro,subtree_check)
/exports/Fuelme           192.168.2.0/24(ro,subtree_check,secure,nohide)
#/private.data2/income           192.168.2.0/24(rw,subtree_check)

/exports/income                192.168.2.0/24(rw,subtree_check,secure,nohide)

#/private.archive/income   192.168.2.*(rw,subtree_check) 
#/private.data/exchange   192.168.2.*(rw,subtree_check)

# exportfs
exportfs
/exports        192.168.2.0/24
/exports/Filme  192.168.2.0/24
/exports/Fuelme
                192.168.2.0/24
/exports/income
                192.168.2.0/24

Multiarch

dpkg --add-architecture i386
apt-get update

update-alternatives

update-alternatives --install /usr/bin/mencoder mencoder /usr/bin/mencoder-mt 20
update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/urxvtcd 40

etc network interfaces

 cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
#auto eth0
#iface eth0 inet dhcp
#iface eth0 inet static
#address 192.168.2.53
#netmask 255.255.255.0
#gateway 192.168.2.1
#broadcast 192.168.2.255

#auto wlan0
#iface wlan0 inet dhcp
auto wlan0
iface wlan0 inet static
address 192.168.2.53
netmask 255.255.255.0
gateway 192.168.2.1
broadcast 192.168.2.255
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpa_psk.conf

iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider

wpa_supplicant

network={
            ssid="SSID"
            scan_ssid=1
            key_mgmt=WPA-PSK
            psk="passwort"
            }

Verschlüsselten Datenträger vergrößern

Beste: https://help.ubuntu.com/community/ResizeEncryptedPartitions http://ubuntuforums.org/showthread.php?t=726724

fdisk -l /dev/sdb
fdisk  /dev/sdb

cryptsetup luksOpen /dev/sdb5 crypt1
mount /dev/mapper/crypt1 /mnt
vgscan --mknodes
vgchange -ay
cryptsetup resize crypt1
pvresize /dev/mapper/crypt1
pvchange -x y /dev/mapper/crypt1
lvresize -l +100%FREE /dev/mapper/debstick-root
pvchange -x n /dev/mapper/crypt1
e2fsck -f /dev/mapper/debstick-root
resize2fs -p /dev/mapper/debstick-root
sync


cryptsetup luksClose /dev/sdb5 crypt1

Wikinger: ComputerKram/Administration (zuletzt geändert am 2021-02-05 08:37:40 durch Robert)