Skip to content

Add Cups-printer Windows 7

14.11.2021 19:18:56
start \\<servername>\<printername>

Enter username and password for cups-host

How to disable Framebuffer

02.11.2021 10:11:47

  • Modifying the Grub menu:
    1. Open the Grub menu file (IE. /boot/grub/menu.lst) in a text editor.
    2. One of the following options should disable frame buffering:
      • vga=normal
      • nofb
      • nomodeset
      • video=vesafb:off
      • i915.modeset=0
    3. You would specify one (or more) of the above on the ‚kernel‘ line of the Grub menu file. You can specify them all instead of trying each individual one.
  • Disabling the KMS (Kernel Mode Setting):
    1. For Debian Wheezy systems with an AMD/ATI video chipset and driver, you can disable the KMS (Kernel Mode Setting), and thus the frame buffer. First, open the /etc/modprobe.d/radeon-kms.conf file in a text editor.
    2. Add the following line to the file:
      • options radeon modeset=0
    3. Save the file and exit from the text editor.
    4. Reboot the system for the change to take effect.
      • (Note: For nVidia based cards, add „nomodeset“ to the kernel command line (in /etc/grub.d/10_linux), as the first solution above suggests.)

Flatten Directories

27.02.2021 20:35:18
find aaa -type f -exec sh -c 'new=$(echo "{}" | tr "/" "-" | tr " " "_"); mv "{}" "$new"' \;

mp3blaster mit ubuntu

22.10.2019 23:25:15

$> padsp mp3blaster
redirect OSS audio devices to PulseAudio

resize root partition in DietPi

10.03.2019 01:23:55
systemctl unmask dietpi-fs_partition_resize.service
systemctl enable dietpi-fs_partition_resize.service
reboot

disable Ubuntu/Linux DNS cache

08.01.2019 09:28:23
systemctl disable systemd-resolved
systemctl stop systemd-resolved

/etc/resolv.conf
nameserver 192.168.0.x
nameserver 192.168.0.y
search mydomain.com

/etc/NetworkManager/NetworkManager.conf
dns=none

cygwin with Windows XP

23.09.2018 23:11:03
32-bit: ftp://www.fruitbat.org/pub/cygwin/setup/snapshots/setup-x86-2.874.exe
64-bit: ftp://www.fruitbat.org/pub/cygwin/setup/snapshots/setup-x86_64-2.874.exe

Run setup*.exe with the -X option, using the following mirror:

32-bit: ftp://www.fruitbat.org/pub/cygwin/circa/2016/08/30/104223
64-bit: ftp://www.fruitbat.org/pub/cygwin/circa/64bit/2016/08/30/104235

EPSON L355 Network scanning

13.09.2018 23:38:28

# /etc/sane.d/dll.conf – Configuration file for the SANE dynamic backend loader
net
epkowa

# epkowa.conf — sample configuration for the EPKOWA SANE backend
usb
scsi
net X.X.X.10
# net autodiscovery

Prevent cUrl from overwriting

23.08.2018 11:44:54

If size does match and server is capable of resume:

curl -C - ...

pastebin shell

19.03.2018 15:47:27


paste() { a=$(cat); curl -X POST -s -d "$a" https://pastebin.****.de/documents | awk -F '"' '{print "https://pastebin.****.de/"$4}'; }

Celectronic Thermoprinter Ubuntu

20.12.2017 23:51:19

Charset: CP437

Device: /dev/usb/lpX
printer config: parallel:/dev/usb/lpX, Generic text-only printer
(if not in /dev: modify /etc/modprobe.d/blacklist.conf)

blacklist usblp

might work in cups:

echo "Hallo Welt"! | iconv -f UTF-8 -t 437 | lp -d thermo -

else (todos from tofrodos package for converting linefeeds)

cat t.txt | todos | iconv -f UTF-8 -t 437 > /dev/usb/lp0


start screen if not in screen

22.05.2017 14:53:26

.bashrc:

if [ -z "$STY" ]; then
exec screen -dR
fi

Realtek 8723be Ubuntu

13.11.2016 23:23:31

/etc/modprobe.d/rtl8723be.conf
options rtl8723be fwlps=0 ips=0 msi=0

Xserver screenshot everywhere

09.05.2016 23:07:18

import -window root filename.jpg

Linux und RTL8723BE Wireless Adapter

09.04.2016 11:44:06

Verbesserte Stabilität der Verbindung

/etc/modprobe.d/rtl8723be.conf

options rtl8723be fwlps=N ips=N swenc=1

Raid 0 mit 2 USB-Sticks

14.10.2015 08:10:27

Die USB-Sticks sind sdb und sdc und nicht gemounted:


parted /dev/sdb "rm 1"
parted /dev/sdc "rm 1"

parted /dev/sdb "mklabel msdos"
parted /dev/sdc "mklabel msdos"

parted /dev/sdb "mkpart primary ext4 1M -1"
parted /dev/sdc "mkpart primary ext4 1M -1"

parted /dev/sdb "set 1 raid on"
parted /dev/sdc "set 1 raid on"

(apt-get install mdadm)

mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb1 /dev/sdc1

mkfs -t ext4 /dev/md0

mdadm --detail /dev/md0

/etc/fstab:

/dev/md0 /data ext4 defaults 0 0

Show progress of dd (or any piped datastream): pv

30.09.2015 08:40:22

Zum Beispiel:

dd if=/dev/urandom | pv | dd of=/dev/sda

Syntax: pv [OPTION] [DATEI]…


Verbindet DATEI(en) oder den Standard-Eingabe-Kanal mit dem
Standard-Ausgabe-Kanal und misst den Datenstrom.

-p, --progress Fortschritts-Anzeige
-t, --timer zeige die verstrichene Zeit an
-e, --eta zeige die erwartete Zeit bis zum Ende an
-r, --rate zeige die Datentransferrate an
-a, --average-rate show data transfer average rate counter
-b, --bytes zeige die Anzahl von Bytes, die transferiert worden
sind
-f, --force Ausgabe auch dann erzwingen, wenn der
Fehlerausgabe-Kanal kein Terminal ist
-n, --numeric Ausgabe von Prozent-Angaben statt visueller
Darstellung
-q, --quiet sämtliche Transferinformationen unterdrücken
-c, --cursor benutze Escape-Sequenzen zur Cursor-Positionierung
-W, --wait keine Ausgabe bevor das erste Byte übertragen
wurde
-s, --size SIZE setze erwartete Daten-Länge auf SIZE Byte
-l, --line-mode count lines instead of bytes
-i, --interval SEC aktualisiere Ausgabe nach SEC Sekunden Intervall
-w, --width WIDTH setze Terminal-Breite auf WIDTH Zeichen
-H, --height HEIGHT setze Terminal-Breite auf WIDTH Zeichen
-N, --name NAME setze den NAMEn für visuelle Darstellung

-L, --rate-limit RATE beschränke die Transferrate auf RATE Byte pro
Sekunde
-B, --buffer-size BYTES use a buffer size of BYTES
-R, --remote PID update settings of process PID

-h, --help zeige diese Hilfe und beende
-V, --version zeige Versionsinformationen und beende

Schnellere Maus unter Ubuntu 14.04

18.07.2014 21:37:58

xset m 30/12 0

-> startup apps!

Ubuntu und der IP2200

13.07.2014 13:35:21

$ sudo add-apt-repository ppa:michael-gruz/canon-trunk
$ sudo apt-get update

How to install the libtiff4 library on 32 bit Ubuntu 14.04 and Linux Mint 17 systems:

$ wget http://cz.archive.ubuntu.com/ubuntu/pool/universe/t/tiff3/libtiff4_3.9.7-2ubuntu1_i386.deb
$ sudo dpkg -i libtiff4_3.9.7-2ubuntu1_i386.deb
$ sudo apt-get install -f

How to install the libtiff4 library on 64 bit Ubuntu 14.04 and Linux Mint 17 systems:

$ wget http://cz.archive.ubuntu.com/ubuntu/pool/universe/t/tiff3/libtiff4_3.9.7-2ubuntu1_amd64.deb
$ sudo dpkg -i libtiff4_3.9.7-2ubuntu1_amd64.deb
$ sudo apt-get install -f

And the Printer

$ sudo apt-get install cnijfilter-ip2200series

cronfiles in cron.d

30.10.2013 22:43:31

Alle Dateien in /etc/cron.d benötigen ein newline /n am Zeilenende.

ubuntu server mit static ip eth0 und wlan0

25.10.2013 01:17:51

Edit: /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.0.7
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.5
dns-search leitzahl.de
metric 1

auto wlan0
iface wlan0 inet static
address 192.168.0.9
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.5
dns-search leitzahl.de
wpa-psk ........
wpa-driver wext
wpa-key-mgmt WPA-PSK
wpa-proto WPA2
wpa-ssid radithor.de
metric 2

/etc/resolv.conf ist ein link, rm!

Edit: /etc/resolv.conf

nameserver 192.168.0.8
nameserver 192.168.0.9

Und weg mit dem dhcp-client falls nötig:

aptitude remove dhcp3-client dhcp3-common

postfix smarthost mit authentifizierung

24.10.2013 13:39:18

In /etc/postfix/main.cf hinzufügen

relayhost = smtp.server.com
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous

Datei /etc/postfix/smtp_auth hinzufügen:

smtp.server.com senduser:supersecret

Erstelle lookup-table /etc/postfix/smtp_auth.db :

postmap /etc/postfix/smtp_auth

Postfix reloaden:

sudo service postfix reload

Drucken mit EPSON LQ-100 unter Linux

13.10.2013 23:08:15

Konvertiere UTF-8 in den beliebten DOS-Zeichensatz für diesen Nadeldrucker:

cat text.txt | iconv -f utf8 -t 850 | lpr -p

alpine soll sich bitte das IMAP Passwort merken

13.10.2013 23:02:25

touch ~/.pine-passfile

Beim der nächsten Passworteingabe wird gefragt, ob es gesichert werden soll. Wenn alpine mit --with-passfile compiliert wurde.

Normale Scrollbars für Ubuntu unity

22.09.2013 12:29:00

Weg mit den furchtbaren overlay-scrollern von unity:
me@localhost$ gsettings set com.canonical.desktop.interface scrollbar-mode normal