Monthly Archives: September 2016

Samsung NP300E5A

Intel Core i5-2450M 2.50 GHz
4 GB RAM
Intel HD Graphics 3000
NVIDIA GeForce GT 520MX
Display/Screen: LTN156AT19-001

$ sudo inxi -Fzxn
System:    Host: NP300E4A Kernel: 4.15.0-42-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.9 (Gtk 3.22.30-1ubuntu1) Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: SAMSUNG product: 300E4A/300E5A/300E7A v: 0.1 serial: <filter>
           Mobo: SAMSUNG model: 300E4A/300E5A/300E7A v: FAB1 serial: <filter>
           UEFI: Phoenix v: 02QA date: 11/11/2011
Battery    BAT1: charge: 47.7 Wh 100.0% condition: 47.7/48.8 Wh (98%) model: SAMSUNG status: Full
           hidpp__0: charge: N/A condition: NA/NA Wh
           model: Logitech Wireless Mobile Mouse MX Anywhere 2S status: Discharging
CPU:       Dual core Intel Core i5-2450M (-MT-MCP-) arch: Sandy Bridge rev.7 cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9978
           clock speeds: max: 3100 MHz 1: 798 MHz 2: 798 MHz 3: 798 MHz 4: 798 MHz
Graphics:  Card-1: Intel 2nd Generation Core Processor Family Integrated Graphics Controller bus-ID: 00:02.0
           Card-2: NVIDIA GF119M [GeForce GT 520MX] bus-ID: 01:00.0
           Display Server: X.Org 1.19.6 drivers: modesetting,nouveau (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.07hz, 1024x768@60.00hz
           OpenGL: renderer: Mesa DRI Intel Sandybridge Mobile version: 3.3 Mesa 18.0.5 Direct Render: Yes
Audio:     Card Intel 6 Series/C200 Series Family High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.15.0-42-generic
Network:   Card-1: Intel Centrino Wireless-N 130 driver: iwlwifi bus-ID: 02:00.0
           IF: wlp2s0 state: up mac: <filter>
           Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: 2000 bus-ID: 03:00.0
           IF: enp3s0 state: down mac: <filter>
Drives:    HDD Total Size: 240.1GB (3.6% used)
           ID-1: /dev/sda model: WDC_WDS240G2G0A size: 240.1GB temp: 40C
Partition: ID-1: / size: 58G used: 7.2G (14%) fs: ext4 dev: /dev/sda4
           ID-2: swap-1 size: 1.07GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 65.0C mobo: 29.8C gpu: 60.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 226 Uptime: 14 min Memory: 1324.6/3858.0MB Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (sudo) inxi: 2.3.56 
$ hciconfig --all
hci0:	Type: Primary  Bus: USB
	BD Address: DC:A9:71:90:19:A5  ACL MTU: 310:10  SCO MTU: 64:8
	UP RUNNING PSCAN ISCAN 
	RX bytes:685 acl:0 sco:0 events:52 errors:0
	TX bytes:5303 acl:0 sco:0 commands:53 errors:0
	Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x59 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF PARK 
	Link mode: SLAVE ACCEPT 
	Name: 'NP300E4A'
	Class: 0x1c010c
	Service Classes: Rendering, Capturing, Object Transfer
	Device Class: Computer, Laptop
	HCI Version: 3.0 (0x5)  Revision: 0x1b07
	LMP Version: 3.0 (0x5)  Subversion: 0xfc00
	Manufacturer: Intel Corp. (2)

$ rfkill list
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no

$ lspci -nnk | grep -i net -A2
02:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 130 [8086:0896] (rev 34)
	Subsystem: Intel Corporation Centrino Wireless-N 130 BGN [8086:5005]
	Kernel driver in use: iwlwifi
--
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
	Subsystem: Samsung Electronics Co Ltd RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [144d:c606]
	Kernel driver in use: r8169
	Kernel modules: r8169

NodeMCU (ESP8266) with Arduino IDE

Additional Board Manager URL: http://arduino.esp8266.com/stable/package_esp8266com_index.json

/home/andreas/.arduino15/packages/esp8266/hardware/esp8266/2.3.0
/home/andreas/Arduino/

EspExceptionDecoder

github: EspExceptionDecoder

LED Blinky

void setup() {
    pinMode(D4, OUTPUT);
    
    Serial.begin(9600);
}

void loop() {
    Serial.println("HIGH");
    digitalWrite(D4, HIGH);
    delay(1000);
    
    Serial.println("LOW");
    digitalWrite(D4, LOW);
    delay(1000);
}

RFID

ESP8266-MFRC522
Arduino RFID Library for MFRC522
Mifare MFRC522 RFID Reader/Writer
Installing Additional Arduino Libraries

Firmware Version: 0x11 = (unknown)
Card UID: 82 8B C9 55
Card SAK: 08
PICC type: MIFARE 1KB
Sector Block   0  1  2  3   4  5  6  7   8  9 10 11  12 13 14 15  AccessBits
  15     63   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         62   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         61   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         60   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
  14     59   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         58   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         57   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         56   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
  13     55   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         54   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         53   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         52   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
  12     51   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         50   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         49   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         48   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
  11     47   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         46   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         45   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         44   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
  10     43   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         42   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         41   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         40   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
   9     39   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         38   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         37   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         36   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
   8     35   00 00 00 00  00 00 FF 07  80 69 FF FF  FF FF FF FF  [ 0 0 1 ] 
         34   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         33   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  [ 0 0 0 ] 
         32   00
Soft WDT reset

ctx: cont 
sp: 3ffef130 end: 3ffef3e0 offset: 01b0

>>>stack>>>
3ffef2e0:  3ffef316 00000006 00000006 40203746  
3ffef2f0:  00000000 00000000 40230314 40203b69  
3ffef300:  3ffef317 00000007 00000007 40202f71  
3ffef310:  00000000 00000000 00000000 00000000  
3ffef320:  00004937 00120100 3ffe84a9 3ffef3a0  
3ffef330:  00000000 00000000 0000001c 00000004  
3ffef340:  00000000 00000000 3ffee2a8 3ffee2a8  
3ffef350:  3ffef3a0 0000004b 3ffee394 402035ec  
3ffef360:  3ffee2a8 00000010 3ffee394 3ffef3a0  
3ffef370:  3ffee2a8 00000007 3ffee2a8 402031bc  
3ffef380:  3ffe84a8 3ffee394 3ffee394 3ffee3b8  
3ffef390:  3ffee394 3ffee2a8 3ffee2a8 40203354  
3ffef3a0:  ffffffff 3ffeffff 3ffee394 40203638  
3ffef3b0:  3ffe8425 3ffee394 3ffee2a8 40201c64  
3ffef3c0:  3fffdad0 00000000 3ffee3b0 40203910  
3ffef3d0:  feefeffe feefeffe 3ffee3c0 40100114  
<<<stack<<<

EspExceptionDecoder
===================

Decoding 11 results
0x40203746: Print::print(unsigned long, int) at /home/andreas/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/Print.cpp line 84
0x40230314: rijndaelKeySetupEnc at ?? line ?
0x40203b69: Print::print(__FlashStringHelper const*) at /home/andreas/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/Print.cpp line 84
0x40202f71: MFRC522::PICC_DumpMifareClassicSectorToSerial(MFRC522::Uid*, MFRC522::MIFARE_Key*, unsigned char) at /home/andreas/Arduino/libraries/MFRC522/MFRC522.cpp line 35
0x402035ec: Print::println() at /home/andreas/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/Print.cpp line 84
0x402031bc: MFRC522::PICC_DumpMifareClassicToSerial(MFRC522::Uid*, MFRC522::PICC_Type, MFRC522::MIFARE_Key*) at /home/andreas/Arduino/libraries/MFRC522/MFRC522.cpp line 35
0x40203354: MFRC522::PICC_DumpToSerial(MFRC522::Uid*) at /home/andreas/Arduino/libraries/MFRC522/MFRC522.cpp line 35
0x40203638: Print::println(char const*) at /home/andreas/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/Print.cpp line 84
0x40201c64: loop at /home/andreas/Arduino/esp8266_rfid/esp8266_rfid.ino line 45
0x40203910: loop_wrapper at /home/andreas/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/core_esp8266_main.cpp line 56
0x40100114: cont_norm at /home/andreas/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/cont.S line 109

Use a delay in MFRC522.cpp

[...]
/**
 * Dumps memory contents of a sector of a MIFARE Classic PICC.
 * Uses PCD_Authenticate(), MIFARE_Read() and PCD_StopCrypto1.
 * Always uses PICC_CMD_MF_AUTH_KEY_A because only Key A can always read the sector trailer access bits.
 */
void MFRC522::PICC_DumpMifareClassicSectorToSerial([...]) {
  [...]

    Serial.println();
    //delay(50);
  }
  
  return;
} // End PICC_DumpMifareClassicSectorToSerial()
[...]

Soft WDT reset

WDT fires if setup() takes more than 1 sec #34
cores/esp8266/Esp.h
cores/esp8266/cont.S

NodeMCU (ESP8266) Soft WDT reset
Automatic reboot after wdt reset #1017
SoftwareSerial: wdt reset #1426
Uploads and runs ok, but does not run after power cycle #1074

TLS / WiFiClientSecure

Making an ESP8266 Web-Accessible
Slack Integration using Arduino IDE and ESP8266 Adafruit Feather HUZZAH
Secure Sensor Streaming over HTTPS to Azure IoT Hub
IoT Security: Connecting Your ESP8266 to Adafruit IO with SSL/TLS
Python 2.7: TLS/SSL wrapper for socket objects
Python 3.3: TLS/SSL wrapper for socket objects
Fedora Documentation: Transport Layer Security
Fedora Documentation: Implementing TLS Clients With Python

/home/andreas/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/debug.h
Before:
#ifndef DEBUGV
#define DEBUGV(...)
#endif

After:
#ifndef DEBUGV
#define DEBUGV(...) ets_printf(__VA_ARGS__)
#endif

Sketch:
void setup() {
    Serial.begin(115200);
    Serial.setDebugOutput(1);
}
connected with BACHI.NET, channel 6
dhcp client start...
ip:10.0.0.84,mask:255.0.0.0,gw:10.0.0.1
WiFi connected
IP address: 
10.0.0.84
Card UID: D9 F8 D0 B5
:ref 1
please start sntp first !
:wr
:sent 72
:ww
:rn 1460
:rd 5, 1460, 0
:rdi 1460, 5
:rd 74, 1460, 5
:rdi 1455, 74
:rd 5, 1460, 79
:rdi 1381, 5
:rd 1376, 1460, 84
:rdi 1376, 1376
:c0 1376, 1460
:rn 543
:rd 524, 543, 0
:rdi 543, 524
:rd 5, 543, 524
:rdi 19, 5
:rd 14, 543, 529
:rdi 14, 14
:c0 14, 543
:wr
:sent 887
:ww
:wr
:sent 267
:ww
:wr
:sent 267
:ww
:wr
:sent 6
:ww
:wr
:sent 69
:ww
:rn 75
:rd 5, 75, 0
:rdi 75, 5
:rd 1, 75, 5
:rdi 70, 1
:rd 5, 75, 6
:rdi 69, 5
:rd 64, 75, 11
:rdi 64, 64
:c0 64, 75
connection successfully
Verify certificate...

verify!!!
domain name: '10.0.0.89'
CN: 'Server', no match
certificate doesn't match

verify!!!
domain name: 'Server'
CN: 'Server', no match
certificate doesn't match

:wr
:sent 53
:rn 53
:ww
:wr
:sent 53
:rch 53, 53
:ww
:ur 1
:close
:del
DEBUGV(":abort\r\n");
DEBUGV(":close\r\n");
DEBUGV(":tc err %d\r\n", err);
DEBUGV(":ref %d\r\n", _refcnt);
DEBUGV(":ur %d\r\n", _refcnt);
DEBUGV(":del\r\n");
DEBUGV(":rd %d, %d, %d\r\n", size, _rx_buf->tot_len, _rx_buf_offset);
DEBUGV(":rdi %d, %d\r\n", buf_size, copy_size);
DEBUGV(":pd %d, %d, %d\r\n", size, _rx_buf->tot_len, _rx_buf_offset);
DEBUGV(":rpi %d, %d\r\n", buf_size, copy_size);
DEBUGV(":wr !_pcb\r\n");
DEBUGV(":wr !ERR_OK\r\n");
DEBUGV(":wr\r\n");
DEBUGV(":ww\r\n");
DEBUGV(":sent %d\r\n", len);
DEBUGV(":c0 %d, %d\r\n", size, _rx_buf->tot_len);
DEBUGV(":c %d, %d, %d\r\n", size, _rx_buf->len, _rx_buf->tot_len);
DEBUGV(":rcl\r\n");
DEBUGV(":rch %d, %d\r\n", _rx_buf->tot_len, pb->tot_len);
DEBUGV(":rn %d\r\n", pb->tot_len);
DEBUGV(":er %d %d %d\r\n", err, _size_sent, _send_waiting);

Dell3100cn mit Windows 10

Der Original Treiber von Dell funktioniert nicht mehr.
Ein Mini-PCL6 Treiber wurde von Windows 10 zur verfügung gestellt, ist aber eingestellt worden.

Remove Ports
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers

prndl001.inf_amd64_593394dcf97bc66f.zip (Backup)

C:\Windows\System32\DriverStore\FileRepository\prndl001.inf_amd64_593394dcf97bc66f\prndl001.inf
C:\Windows\System32\DriverStore\FileRepository\prndl001.inf_amd64_593394dcf97bc66f\Amd64\DLUXG001.DLL
[Version]
Signature="$Windows NT$"
Provider="Microsoft"
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
CatalogFile=prndl001.cat
DriverVer=06/21/2006,6.1.7233.0

[Manufacturer]
"Dell"=Dell,NTamd64

[Dell.NTamd64]
"Dell 3100cn PCL6"                                            = MS_DLUXCN02.GPD,DellLaser_Printer_3187EE,Dell_3100cn_PCL6 ; Hardware ID

[MS_DLUXCN02.GPD]
CopyFiles=COMMON,@DLUXCN02.GPD
DataFile=DLUXCN02.GPD
CoreDriverSections="{D20EA372-DD35-4950-9ED8-A6335AFE79F0},TTFSUB.OEM,UNIDRV.OEM,UNIDRV_DATA","{D20EA372-DD35-4950-9ED8-A6335AFE79F2},PCLXL.OEM"

Kompatibilität von Microsoft Windows 10 mit Dell Druckern => kein offizieller Support mehr!

C:\Windows\System32\spool\drivers\x64\3\DLUXG001.DLL
dell_pcl6_mini_printer_driver

Common UNIX Printing Service (CUPS)

CUPS: Common UNIX Printing System (Presentation)

  • Applications will produce output in PostScript
  • Create a raster file from the PostScript (ps2raster, usually using Ghostscript in the background)
  • Create a printer-language file from the raster data (raster2xxx, using the raster driver of the target printer)
  • Send the printer-language file to the printer

/usr/bin
/usr/bin/cupstestdsc
/usr/bin/cupstestppd
/usr/bin/lpstat
/usr/bin/cancel
/usr/bin/lp
/usr/bin/lpoptions

/usr/sbin/cupsctl
/usr/sbin/lpmove
/usr/sbin/cupsaccept
/usr/sbin/lpadmin
/usr/sbin/cupsaddsmb
/usr/sbin/lpinfo

/usr/sbin/cupsreject
/usr/sbin/cupsenable
/usr/sbin/accept
/usr/sbin/reject
/usr/sbin/cupsdisable
/usr/lib/cups/filter/gstopxl (POSIX shell script => use Ghostscript)
/usr/lib/cups/filter/foomatic-rip (ELF 64-bit LSB executable)
/usr/bin/foomatic-rip => /usr/lib/cups/filter/foomatic-rip
/usr/lib/cups/filter/rastertopclx (ELF 64-bit LSB executable)

Ghostscript ist ein freier Interpreter und Raster Image Processor (RIP) der Seitenbeschreibungssprachen PostScript (PS) und Portable Document Format (PDF).

Ghostscript => kann als Raster Image Processor (RIP) benutzt werden
Raster Image Processor (RIP)
Foomatic
Printer Command Language (PCL)
PostScript (PS)
Portable Document Format (PDF)

OpenPrinting FAQ
Print Settings with CUPS

OpenSuSE

Concepts printing
CUPS in a Nutshell
Printing from Windows to Linux
Print Settings with CUPS

cups_overview
pstoraster
CUPS-block-diagram.svg

colord

colord = color daemon

architecture-plan
cups-plan

LoRa Node

Semtech SX1276 – 137 MHz to 1020 MHz Low Power Long Range Transceiver
SX1276/77/78/79 – 137 MHz to 1020 MHz Low Power Long Range Transceiver (PDF)

Orange

YouTube: LoRa-Arduino quickstart project – introduction
LoRa-Arduino quickstart projectSemtech SX1276, 137 MHz to 1020 MHz Low Power Long Range Transceiver

RFM95 LoRa Funkmodule Erfahrungswerte (2015)
Was ist “LoRa”(TM) ?

kilobyte
ESP32 ESP-WROOM-32 Module
RAK811 – 868Mhz LoRa LoRaWAN Module (SX1276 LoRa Transceiver and a STM32L1 Processor)

Getting Started With the RAK811 LoRa Node
Using the RAK811 LoRa module with Arduino

LoRaWAN GPS Rhino Tracker
LoRa Nexus board
Upgraded LoRaWAN Node
LoRa mini
Mini-Lora – Arduino Mini Lora Battery/Sensors Board

Terminal Emulator: Wrong Locale

Ubuntu Locale
archlinux: systemd

$ systemctl --failed
$ systemctl --all
$ systemctl list-unit-files

FAQ

1. check which locales are supported:
$ locale -a

2. add the locales you want (for example ru):
$ sudo locale-gen ru_RU
$ sudo locale-gen ru_RU.UTF-8

3. run this update comand
$ sudo update-locale 

or

$ sudo dpkg-reconfigure locales
$ sudo dpkg-reconfigure tzdata
$ systemctl status
<E2><97><8F> ubuntu1
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Wed 2016-08-31 15:23:26 CEST; 21h ago
   CGroup: /
           <E2><94><9C><E2><94><80>1 /sbin/init
           <E2><94><9C><E2><94><80>system.slice
[...]

# cat /etc/default/locale 
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"

# cat /etc/environment 
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

$ locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_CH.UTF-8
LC_TIME=de_CH.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_CH.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_CH.UTF-8
LC_NAME=de_CH.UTF-8
LC_ADDRESS=de_CH.UTF-8
LC_TELEPHONE=de_CH.UTF-8
LC_MEASUREMENT=de_CH.UTF-8
LC_IDENTIFICATION=de_CH.UTF-8
LC_ALL=

# for y in $(locale | cut -d '=' -f 2| sort |uniq );do locale-gen $y; done
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales...
  de_CH.UTF-8... done
Generation complete.
Generating locales...
  en_US.UTF-8... done
Generation complete.

# dpkg-reconfigure locales
Generating locales...
  de_CH.UTF-8... done
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.

# systemctl status
● ubuntu1
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Mit 2016-08-31 15:23:26 CEST; 21h ago
   CGroup: /
           ├─1 /sbin/init
           ├─system.slice