User:Ax/Debian: Difference between revisions

From beggabaur
Jump to navigation Jump to search
(Created page with "= 32bit Anwendungen auf amd64 = === OpenGL === <Jester01> for 32 bit compat, you need /usr/lib32/fglrx/fglrx-libGL.so.1.2 <Jester01> and symlinks to that from appropriate pl...")
 
No edit summary
Line 16: Line 16:


  apt-file
  apt-file
APT::Install-Recommends "false";  # into /etc/apt/apt.conf




Line 23: Line 25:
  $ aptitude search "~dlocales ~dlibrary"
  $ aptitude search "~dlocales ~dlibrary"
http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/ch02s03.html
http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/ch02s03.html
=== Paketliste speichern ===
https://wiki.ubuntuusers.de/Paketverwaltung/Tipps/#Paketlisten
### Sichern:
$ dpkg --get-selections | awk '!/deinstall|purge|hold/ {print $1}' > datei1  ## Paketliste
$ apt-mark showauto > datei2                                                ## Paketstatus "auto"
$ apt-mark showmanual > datei3                                              ## Paketstatus "manuell"
$ find /etc/apt/sources.list* -type f -name '*.list' -exec bash -c 'echo -e "\n## $1 "; \
    grep "^[[:space:]]*[^#[:space:]]" ${1}' _ {} \; > datei4                  ## sources list
# cp -R /etc/apt/trusted.gpg* verz1                                          ## Schlüssel sichern
### Wiederherstellen
# sources.list aus datei4 übernehmen
# apt-key add verz1*                                                        ## Schlüssel einspielen
# aptitude update
# xargs -a "datei1" aptitude install                                  ## Pakete installieren
# xargs -a "datei2" apt-mark auto                              ## Paketstatus "auto" einspielen
# xargs -a "datei3" apt-mark manual                          ## Paketstatus "manuell" einspielen




Line 51: Line 72:
:<yeti> apt-get build-deps bitlbee  # zieht alle dependenzen von bitlbee 1.2.x rein
:<yeti> apt-get build-deps bitlbee  # zieht alle dependenzen von bitlbee 1.2.x rein
:<yeti> und dann frech die bitlbee-debianischen-quellen aus sid kompilieren
:<yeti> und dann frech die bitlbee-debianischen-quellen aus sid kompilieren
= [http://devuan.org/ Devuan] =
To update to Devuan Jessie from Debian Wheezy:
Alter /etc/apt/sources.list:
deb http://packages.devuan.org/merged jessie main contrib non-free
deb-src http://packages.devuan.org/merged jessie main contrib non-free
aptitude update
aptitude install devuan-keyring
aptitude update
aptitude upgrade $Kernel $Bootloader
# Konfigure $Kernel and $Bootloader and reboot
aptitude dist-upgrade





Revision as of 01:40, 3 March 2016

32bit Anwendungen auf amd64

OpenGL

<Jester01> for 32 bit compat, you need /usr/lib32/fglrx/fglrx-libGL.so.1.2
<Jester01> and symlinks to that from appropriate places
<Jester01> such as /usr/lib32/libGL.so.1.2


apt

/etc/apt/sources.list
deb http://ftp.de.debian.org/debian-backports/ squeeze-backports main
deb http://www.getgnash.org/debs/debian squeeze main
aptitude update
debdelta-upgrade
aptitude [dist-] full-upgrade
apt-file
APT::Install-Recommends "false";  # into /etc/apt/apt.conf


aptitude search

$ aptitude search "~nlocales ~dlibrary"
$ aptitude search "~dlocales, ~dlibrary"  
$ aptitude search "~dlocales ~dlibrary"

http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/ch02s03.html


Paketliste speichern

https://wiki.ubuntuusers.de/Paketverwaltung/Tipps/#Paketlisten

### Sichern:
$ dpkg --get-selections | awk '!/deinstall|purge|hold/ {print $1}' > datei1  ## Paketliste
$ apt-mark showauto > datei2                                                 ## Paketstatus "auto"
$ apt-mark showmanual > datei3                                               ## Paketstatus "manuell"
$ find /etc/apt/sources.list* -type f -name '*.list' -exec bash -c 'echo -e "\n## $1 "; \
   grep "^space:*[^#[:space:]]" ${1}' _ {} \; > datei4                  ## sources list
# cp -R /etc/apt/trusted.gpg* verz1                                          ## Schlüssel sichern
### Wiederherstellen
# sources.list aus datei4 übernehmen
# apt-key add verz1*                                                         ## Schlüssel einspielen
# aptitude update
# xargs -a "datei1" aptitude install                                  ## Pakete installieren
# xargs -a "datei2" apt-mark auto                               ## Paketstatus "auto" einspielen
# xargs -a "datei3" apt-mark manual                           ## Paketstatus "manuell" einspielen


Testing Repo unter Stable verwenden

http://web.archive.org/web/20101113053904/http://jaqque.sbih.org/kplug/apt-pinning.html

Die Testing-Repos in die sources.list unter denen von Stable eintragen.

Die Prioritäten in /etc/apt/preferences eintragen:

Package: *
Pin: release n=wheezy
Pin-Priority: 900

Package: *
Pin: release a=testing
Pin-Priority: 800
<Stummi> shecki, also laut manpage addressierst du mit a= den archivenamen (stable, testing, unstable) und mit n= den codenamen (wheezy, jessie, sid)

Danach aptitude update ausführen.

Pakete installieren
aptitude install <package>/testing installiert das Paket aus Testing aber versucht die Abhängigkeiten mittels Stable aufzulösen.
aptitude -t testing install <package> installiert das Testing-Paket und löst die Abhängigkeiten auch aus Testing auf.


Hinterkopf
aptitude -t squeeze-backports install
<yeti> apt-get build-deps bitlbee # zieht alle dependenzen von bitlbee 1.2.x rein
<yeti> und dann frech die bitlbee-debianischen-quellen aus sid kompilieren


Devuan

To update to Devuan Jessie from Debian Wheezy:

Alter /etc/apt/sources.list:

deb http://packages.devuan.org/merged jessie main contrib non-free
deb-src http://packages.devuan.org/merged jessie main contrib non-free
aptitude update
aptitude install devuan-keyring
aptitude update
aptitude upgrade $Kernel $Bootloader
# Konfigure $Kernel and $Bootloader and reboot
aptitude dist-upgrade


Fremdprogramme

Siehe auch Installieren.

Organisation

Wegen Versionsverwaltung in /usr/local/apps/<programm>-<version>/. Die Binaries von /usr/local/bin/ aus verlinken. Ansonsten als prefix /usr/local/ verwenden. Ausnahmen:

Wine: /usr/local/wine/bin/ in $PATH aufnehmen, wobei wine ein link zur zu verwendenden Version ist.
qemu?


Kernel

http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-building

Treiber/module finden: http://kmuto.jp/debian/hcl/

Vor dem Kernelbauen/-installieren den fglrx entfernen!

(make clean)   # Achtung, löscht auch .config!
make [def|localmod|old]config
make [g|menu|n|x]config
# Achtung: make [-j 2] deb-pkg  --> fakeroot: invalid option -- 'u' 
make-kpkg -j 2 --initrd --revision 1 [--append_to_version -rt0] kernel_image kernel_headers kernel_source
su -c "dpkg -i ../linux-image-2.6.37-0.1-*.deb"
su -c "dpkg -i ../linux-headers-2.6.37-0.1-*.deb"
(su -c "dpkg -i ../linux-source-2.6.37-0.1-*.deb"
 su -c "tar xjf /usr/src/linux-source-2.6.37-0.1-*.deb -C /usr/src/")


update-initramfs -u -k all   # initrd neu bauen


Konfig allg.

dpkg-reconfigure hddtemp
dpkg-reconfigure keyboard-configuration  # /etc/default/keyboard; ctrl-alt-backspace
dpkg-reconfigure locales
dpkg-reconfigure popularity-contest
dpkg-reconfigure sysv-rv
# update-alternatives --config x-www-browser
# update-rc.d


Datenträger und Dateisysteme

MagicRescue
dupemap - Creates a database of file checksums and uses it to eliminate duplicates
magicrescue -r $rezept -d $zielverzeichnis /dev/sda10

ext2/3/4

nur ext2
Undelete: e2undel, Paket e2undel
2/3/4
tune2fs -l /dev/sda6
Undelete: extundelete http://extundelete.sourceforge.net/
e2fsck
http://thread.gmane.org/gmane.linux.documentation/611/focus=14973


ntfs

ntfs-3g: http://de.gentoo-wiki.com/wiki/NTFS-3G

Benutzer der Gruppe "disk" hinzufügen.
# chmod u+s /usr/bin/ntfs-3g
# chown [user]:[group] /mountpoint

/etc/fstab:

/dev/[device]   /mountpoint   [ntfs-3g|auto]   uid=1000,gid=1000,user,noauto   0   0 

Undelete: ntfsundelete, Paket ntfsprogs


UUID

$ /sbin/blkid
zum Anzeigen der UUIDs der vorhandenen Datenträger

http://www.griessler.org/devicename-vs-uuid-wie-spreche-ich-massenspeicher-an.php


reiserfs

Paket testdisk: [file:///usr/share/doc/testdisk/html/reiserfs_file_undelete_howto.html]


Prozessteuerung

$ taskset -c 1 blablaaufcore1
$ taskset -c 2,3 blablaaufcore2und3


VNC

Serverseitig: x11vnc; Clientseitig: xtightvncviewer

Für eine Verbindung ohne ssh:

ssh -f -l [USERNAME] [SERVER] 'x11vnc -display :0 &'
xtightvncviewer [SERVER]:0

Sichere Verbindung:

xterm -e ssh -t -L 5900:localhost:5900 [USERNAME]@[SERVER] 'x11vnc -localhost -display :0' &
xtightvncviewer -encodings "copyrect tight zrle hextile" localhost:0

Script: startVNC.sh

Weiteres Stichwort: rdp, remote desktop protocol, z.B. xrdp (Server) und freerdp (Client):


X-Server

KMS

append = "radeon.modeset=0"
append = "nomodeset rdblacklist=radeon"

ODER

$ sed s|options radeon modeset=1|options radeon modeset=0| -i /etc/modprobe.d/radeon-kms.conf


mehrere Server

Berechtigung für normale Benutzer: die Datei /etc/X11/Xwrapper.config bearbeiten:

allowed_users=anybody

Vor dem Starten eines Servers den Display Manager ausschalten:

/etc/init.d/[x|k|g|w]dm stop

Server starten:

X :3 [-depth 16] [-ac] [-once -terminate] [-retro]
':3' ist das zu verwendende Display
-ac "disables host-based access control mechanisms. ... Use with extreme caution."
-depth 16 setzt 16 bit Farbtiefe

Ein Programm auf dem neuen Server starten:

DISPLAY=:3 xterm
X :1 -once -terminate & sleep 5; DISPLAY=:1 xterm


Lösungen

su kann display :0.0 nicht öffnen

  • temporär: als user: xhost +local:root
  • permanent: folgende Zeile in /home/[user]/.bashrc eintragen:
export XAUTHORITY=/home/[user]/.Xauthority


Monitor

xrandr --dpi 86
$ xrdb ~/.Xdefaults  # Standardkonfiguration neu lesen. [2]
$ xrdb -edit Datei   # Einstellungen auslesen und in Datei schreiben.
$ xdpyinfo | grep '\(resolution\|dimension\)'
      HEIGHT=num
              the height of the root window in pixels.
      WIDTH=num
              the width of the root window in pixels.
      PLANES=num
              the number of bit planes (the depth) of the root window.
      X_RESOLUTION=num
              the x resolution of the screen in pixels per meter.
      Y_RESOLUTION=num
              the y resolution of the screen in pixels per meter.


Screensaver/PowerManagement

$ xset s off; xset dpms 0 0 0
Section “ServerFlags”
        Option      "BlankTime"   "0"   # Screensaver
        Option      "StandbyTime" "0"
        Option      "SuspendTime" "0"
        Option      "OffTime"     "7"
EndSection


startx

$ startx -- -config Datei


Tastatur

xev           # keycode herausfinden
xmodmap -pk   # Zuordnung ausgeben (print keymap)

Komma des Zehnerblocks (keypad) zu Punkt:

xmodmap -e "keycode  91 = KP_Delete period KP_Delete period"

In ~/.Xmodmap einstellungen speichern. Beispiel:

remove Lock      = Caps_Lock
add Shift = Caps_Lock
keycode 113 = Mode_switch
keycode 116 = 0x00E9 0x00C9
keycode 117 = 0x00E5 0x00C5


xorg.conf

Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

? RgbPath "/etc/X11/rgb"

   ModulePath     "/usr/lib/xorg/modules"
   FontPath       "/usr/share/fonts/X11/misc"
   FontPath       "/usr/share/fonts/X11/cyrillic"
   FontPath       "/usr/share/fonts/X11/100dpi/:unscaled"
   FontPath       "/usr/share/fonts/X11/75dpi/:unscaled"
   FontPath       "/usr/share/fonts/X11/Type1"
   FontPath       "/usr/share/fonts/X11/100dpi"
   FontPath       "/usr/share/fonts/X11/75dpi"
   FontPath       "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
   Load           "extmod"
   Load           "dbe"
   Load           "dri2"
   Load           "glx"
   Load           "record"
   Load           "xtrap"
   Load           "GLcore"
   Load           "dbe"
   Load           "dri"
EndSection

Section "InputDevice"
   Identifier     "Keyboard0"
   Driver         "kbd"
EndSection
Section "InputDevice"
   Identifier     "Mouse0"
   Driver         "mouse"
   Option         "Protocol" "auto"
   Option         "Device" "/dev/input/mice"
   Option         "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
   Identifier     "Monitor0"
   VendorName     "iiyama"
   ModelName      "ProLite E481S"
   HorizSync       31.0 - 80.0
   VertRefresh     55.0 - 75.0
   Option         "PreferredMode" "1024x768"
   DisplaySize     376.2 301.1      # In millimeters, ProLite E481S
   Option         "DPI" "86 x 86"   # ProLite E481S
EndSection

Section "Monitor"
   Identifier     "Monitor0"
   VendorName     "qemu"
   ModelName      "for cirrus"
   HorizSync       43.0 - 85.0
   VertRefresh     31.5 - 68.3
   Option         "PreferredMode" "1024x768"
EndSection

Section "Device"
   Identifier     "Device0"
   Driver         "cirrus"
   VendorName     "Cirrus Logic"
   BoardName      "GD 5446"
   BusID          "PCI:0:2:0"
EndSection

Section "Screen"
   Identifier     "Screen0"
   Device         "Device0"
   Monitor        "Monitor0"
   DefaultDepth    24
   Option         "TwinView" "0"
   Option         "TwinViewXineramaInfoOrder" "CRT-0"
   SubSection     "Display"
       Depth       24
   EndSubSection
EndSection


Links

[1] https://wiki.archlinux.org/index.php/Xorg [2] https://wiki.archlinux.de/title/Xdefaults


Xfce4

Menu

Das Grundgerüst findet man in /etc/xdg/menus/xfce-applications.menu. Die einzelnen Einträge werden in /usr/share/applications/*.desktop definiert. Benutzerbezogene Konfigurationen in ~/.config/menus/xfce-applications.menu bzw. ~/.local/share/applications/*.desktop überschreiben diese Einträge.

http://wiki.xfce.org/howto/customize-menu

Als GUI kann Alacarte, lxmed verwendet werden.


Stichwortsammlung

tasksel --help