User Tools

Site Tools


unix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
unix [2009/05/25 18:49]
127.0.0.1 external edit
unix [2021/12/13 13:55] (current)
robm [X11: Client is not authorized to connect to Server]
Line 4: Line 4:
 //**Note:** This are also includes web-related things, such as Apache, which arn't really specific to unix & linux systems// //**Note:** This are also includes web-related things, such as Apache, which arn't really specific to unix & linux systems//
  
 +  * [[unix:lvm_recovery]] --- Recovering my LVM volume stored on my RAID array.
 +  * [[unix:flash]] --- Getting fullscreen performance out of Adobe Flash under Ubuntu
   * [[unix:x|My Perfect X11 setup]] --- Portrait PC monitor with compiz + HDTV without compiz   * [[unix:x|My Perfect X11 setup]] --- Portrait PC monitor with compiz + HDTV without compiz
   * [[unix:xinput|Logitech Marble Mouse scroll-wheel emulation]] --- How to configure a trackball mouse with extra button to pretend it has a scroll-wheel   * [[unix:xinput|Logitech Marble Mouse scroll-wheel emulation]] --- How to configure a trackball mouse with extra button to pretend it has a scroll-wheel
   * [[unix:256colours|Enabling 256 colour text in terminals]] --- Guide on how to get gnome-terminal/PuTTY + GNU screen + Vim to work in 256-colour mode   * [[unix:256colours|Enabling 256 colour text in terminals]] --- Guide on how to get gnome-terminal/PuTTY + GNU screen + Vim to work in 256-colour mode
 +  * [[unix:xbmc|XBMC Media Center (on Ubuntu)]] --- Workarounds and scripts for using XBOX Media Center on Linux
   * [[unix:unison|Using Unison with DokuWiki]]   * [[unix:unison|Using Unison with DokuWiki]]
   * [[unix:Webmastering]] --- My personal tips and experiences with being a webmaster   * [[unix:Webmastering]] --- My personal tips and experiences with being a webmaster
Line 12: Line 15:
   * [[unix:Debian]] --- Notes for my own benefit about how I've installed Debian at home   * [[unix:Debian]] --- Notes for my own benefit about how I've installed Debian at home
   * [[unix:USB Booting]] --- Wanted to reflash my BIOS, without resorting to floppies or CD-ROMs.   * [[unix:USB Booting]] --- Wanted to reflash my BIOS, without resorting to floppies or CD-ROMs.
 +
 +====== Backups ======
 +
 +Use [[https://pypi.org/project/duplicity/]]
  
 ===== Cygwin ===== ===== Cygwin =====
Line 18: Line 25:
   * [[unix:cygwin:xserver]] --- Fixing up the clipboard in the Cygwin/X Xserver.   * [[unix:cygwin:xserver]] --- Fixing up the clipboard in the Cygwin/X Xserver.
  
 +===== Finding directories NOT containing a specific file =====
 +<code bash>
 +(find -mindepth 2 -maxdepth 2 | grep UNWANTED_FILE_NAME | cut -d/ -f2; command ls) | sort | uniq -u
 +</code>
 +
 +This creates to output streams, one from the ''find'' command and one from ''ls'', that are combined, sorted and finally filtered to remove any entries that occurs more than one.
 +
 +The streams are combined by the parenthesis which create a sub-shell.
 +
 +===== Finding directories, without examining .snapshots =====
 +<code bash>
 +find . -type d \( -name .snapshot -prune -o -name .git \)
 +</code>
 +
 +Looking in the current directory, ''.'', find entries of type ''d'' (directories) for which: if the name is ''snapshot'' remove it from consideration, if the name is ''.git'' carry on (to implicitly ''-print'' the entries to STDOUT).
 ===== Renaming ===== ===== Renaming =====
 There is actually a ''rename'' command, which can be used to change extensions thus: There is actually a ''rename'' command, which can be used to change extensions thus:
Line 227: Line 249:
 >as RTS/CTS and involves switching the signal on a couple of the pins >as RTS/CTS and involves switching the signal on a couple of the pins
 >connected to the serial port. >connected to the serial port.
 +
 +To disable flow control add this to your shell's init script (e.g. ''.bashrc''):
 +
 +<code bash>
 +# Disable software flow control (XON / XOFF or ^S / ^Q)
 +stty -ixon
 +</code>
  
 ===== Disabling CapsLock ===== ===== Disabling CapsLock =====
Line 244: Line 273:
 <code>xmodmap ~/.Xmodmap</code> <code>xmodmap ~/.Xmodmap</code>
  
 +===== SSH port-forwarding =====
 +http://www.stearns.org/doc/ssh-techniques-two.current.html
 +
 +===== X11: "Client is not authorized to connect to Server" =====
 +
 +From: https://wiki.tcl-lang.org/page/Client+is+not+authorized+to+connect+to+Server
 +
 +Copy xauth token from somewhere with access:
 +
 +  xauth extract - $DISPLAY
 +
 +and import it to the place that's having trouble:
 +
 + xauth merge -
 +
 +For example, to allow a Docker container access to the X11 display:
 +
 +  xauth extract - $DISPLAY | base64
 +
 +and copy the result to the clipboard, and then in the container shell:
  
 +  base64 -d <<<'BASE64_GOES_HERE' xauth merge -
unix.1243277361.txt.gz · Last modified: 2009/07/04 14:30 (external edit)