Ubuntu 16.04 – auto mount smb share

Create a file where your smb credentials are stored. e.g.

touch /etc/samba/user
sudo gedit /etc/samba/user

Enter your credentials like this:

username=samba_user
password=samba_user_password

create the directory where you want your smb share should be mounted

sudo mkdir /media/smb_share

edit your fstab to auto-mount your smb share

sudo gedit /etc/fstab

add a line like this:

//myserver_ip_address/folderToShare/  /media/smb_share/  cifs  credentials=/etc/samba/user,noexec  0 0

Unfortunately the mount will fail, you have to install cifs-utils

sudo apt-get install cifs-utils

After that you can try the following command which should mount your smb share. If you don’t install cifs-utils, this command should fail.

sudo mount /media/smb_share

Brother DCP-9022CDW – Toner zurücksetzen

Ihr Brother DCP-9020CDW arbeitet mit dem Toner TN-241 nud TN-245. Nach einem Toner Wechsel müssen Sie diesen manuell zurücksetzen. In der folgenden Anleitung erfahren Sie, wie Sie den Toner Reset ausführen.

  • Falls das Gerätedisplay einen Fehler anzeigt, löschen Sie diesen zunächst mit der „Cancel“ Taste, um ins Hauptmenü zu gelangen.
  • Drücken Sie nun die „Fax“ oder „Kopie“ Taste, um das Nummernfeld sichtbar zu machen. Merken Sie sich jetzt genau, wo sich auf dem Nummernfeld die Sterntaste „*“ befindet.
  • Kehren Sie mit dem „Home“ Button ins Hauptmenü zurück.
  • Öffnen Sie nun die Frontklappe Ihres Brother DCP-9020 CDW.
  • Drücken Sie jetzt die Stelle, wo sich die Sterntaste befand, 5 Sekunden lang, um das Reset-Menü sichtbar zu machen.
  • Suchen Sie im Menü den Toner für den Reset aus und bestätigen Sie diesen umgehend.
  • Im Display erscheint nun die Meldung „Asugeführt“ oder „Accepted“.

Nun können Sie die Klappe wieder schließen. Der Toner Reset ist damit beendet.

 

Quelle: http://www.tonerpartner.de/dcp-9020-cdw-toner-reset/

Die fett markierten zeigen das Standard-Setup

 

K.TNR-STD Schwarz / Standard Capacity
K.TNR-HC Schwarz / High Capacity
K.TNR-S.HC Schwarz / Super High Capacity
C.TNR-STD Cyan / Standard Capacity
C.TNR-HC Cyan / High Capacity
C.TNR-S.HC Cyan / Super High Capacity
M.TNR-STD Magenta / Standard Capacity
M.TNR-HC Magenta / High Capacity
M.TNR-S.HC Magenta / Super High Capacity
Y.TNR-STD Gelb / Standard Capacity
Y.TNR-HC Gelb / High Capacity
Y.TNR-S.HC Gelb / Super High Capacity

 

BananaPI + Raspbian + fhem + 7″ Touch panel

Last week i installed fhem and the 7″ Touch panel from www.pollin.de on my BananaPI running the Beta 1 Raspbian with Kernel.

Here’s the setup:

First you have to put the Raspbian Image (downloaded from bananapi.com the Raspbian beta 1 with Kernel 3.19-rc5) on your 8GB SD card (recommended, 4GB also works). You can do this with the Win32DiskImager.

After that, prepare your BananaPi, plug in the hdmi cable and prepare the touchpanel for the first run like in this youtube video.

Start the BananaPI and it should display some startup-code out-of-the-box.

I modified the the config.txt (/boot/config.txt) like this:

framebuffer_width=1024
framebuffer_height=600

hdmi_force_hotplug=1
hdmi_cvt=1024 600 60 3 0 0 0

hdmi_group=2
hdmi_mode=87

Like described here and in this video. But in fact, that did not work, because the gpu does not provide this resolution. It will remain on 1360×768

Install the touch feature:

Here is the original How-To: http://forum.lemaker.org/thread-3517-1-2-_tutorial_7_inch_touch_display.html

sudo apt-get update
sudo apt-get install libx11-dev libxext-dev libxi-dev x11proto-input-dev
wget http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-0.7.5.tar.gz
tar -zxf xinput_calibrator-0.7.5.tar.gz
cd xinput_calibrator-0.7.5
./configure
make
sudo make install

call the configuration software

xinput_calibrator

The touchpanel is now calibrated but it won’t keep the settings across the reboot. Here is how to fix it :
The software should indicate you some details in the console window. You should see a part like this one :

Section "InputClass"
     Identifier    "calibration"
     MatchProduct    "eGalax Inc. USB TouchController"
     Option    "Calibration"    "121 1917 317 1741"
EndSection

Create a 01-input.conf file :

sudo nano /usr/share/X11/xorg.conf.d/01-input.conf

Copy paste the previous settings in the file, save and exit.
Your panel should remain calibrated across reboots.
Touch panel only has a single click (obviously), so we have to emulate the right click with a long pressure.
Open the previously created file and copy paste these settings somewhere between Section „InputClass“ and EndSection :

sudo nano /usr/share/X11/xorg.conf.d/01-input.conf
#copy the following text:
Option "EmulateThirdButton" "1"
Option "EmulateThirdButtonTimeout" "750"
Option "EmulateThirdButtonThreshold" "30"

Modify parameters as desired.

Virtual Keyboard

There are a few Virtual keyboard software projects, you are free to test a different one.

sudo apt-get install florence
# use german country code:
setxkbmap de

Install fhem

See: https://debian.fhem.de/

Import repository gpg key:

sudo apt-get install apt-transport-https
wget -qO - https://debian.fhem.de/archive.key | apt-key add -
#If line above does not work (certificate or gpg error), try this:
wget --no-check-certificate -qO - https://debian.fhem.de/archive.key | apt-key add -
#If it stil not works, execute this line before line above again
echo 'Acquire::https::debian.fhem.de::Verify-Peer "false";' > /etc/apt/apt.conf.d/30nohttps

No you can access fhem via your browser:
Web: :8083
WebPhone: 8084
WebTablet: 8085

Fix ghost double click on Logitech’s G500 mouse

My Logitech G500 sometimes did double-clicks instead of single-clicks. Problem was a little copper plate inside the mouse. If you want to fix it, too, watch the video or look at the diy page:

http://www.overclockers.com/mouse-clicking-troubles-diy-repair/


Closer look to copper refitting: https://www.youtube.com/watch?v=AbIuWNYP-kk

LS 2015 – aktuelle Mods

Inspector
http://www.modhoster.de/mods/inspector–6

Showtime 15
http://www.farming-simulator.com/mod.php?lang=de&mod_id=5787&title=fs2015

Besser lenken
http://www.modhoster.de/mods/besser-lenken-mit-der-tastatur–2

Ponsse Buffalo Hackschnitzler Mod
http://www.modhoster.de/mods/ponsse-buffalo-hackschnitzler

Brantner DPW 18000 – Auflieger
http://www.farming-simulator.com/mod.php?mod_id=580

Fliegl VFW 10600 – Güllefass
http://www.farming-simulator.com/mod.php?lang=de&mod_id=432&title=fs2015

Kuhn VB 2190 – Ballenpresse
http://www.farming-simulator.com/mod.php?lang=de&title=fs2015&mod_id=431

Kuhn Sitera 3000 – Sähmaschine
http://www.farming-simulator.com/mod.php?lang=de&mod_id=430&title=fs2015

Fliegl Roller Grubber

http://www.farming-simulator.com/mod.php?lang=de&mod_id=3765&title=fs2015

Platzierbare Hallen
http://www.farming-simulator.com/mod.php?lang=de&mod_id=3499&title=fs2015

Ford Pickup
http://www.modhoster.de/mods/ford-pickup

BGA Extension
http://www.modhoster.de/mods/bgaextension–2
Nicht vollständig…

Fahrsilo Extension
http://www.modhoster.de/mods/fahrsiloextension–2

Ballenablage
http://www.modhoster.de/mods/balestorage

Arcusin Autostack Rundballen

http://www.modhoster.de/mods/arcusin-autostack-rb-13-15–2

Raw-Format

aaa_ROS_Krone_Emsland.zip
aaa_ROS_Lager.zip
aaa_ROS_Obst_und_Beeren.zip
AnimationMapTrigger.zip
Balestorage.zip
BrantnerDPW18000.zip
DeutzFahrTTV430.zip
Ford_Pickup.zip
FS15_Flieglroller.zip
FS15_flieglVFW10600.zip
FS15_KroneBigM500.zip
FS15_kuhnSitera3000.zip
FS15_kuhnVB2190.zip
Inspector_V24.zip
placeableHalls.zip
PonsseBuffalo_Chipper.zip
scaniaR730forest_v1.zip
showtime15v2.zip
zzzKeyboardSteer.zip
ZZZ_complexBGA.zip
ZZZ_driveControl.zip
ZZZ_improvedSilageBunker.zip
arcusinAutostackRB13_15.zip

BananaPI route audio over HDMI

Default, audio comes over audio jack, but i wanted to route over hdmi, because i have an AV-Receiver with a high-quality audio engine which should do the transfer from digital to analog signal.
Successfully tested it with Lubuntu 3.1.1 and Bananian.

First, install pulseaudio
apt-get install pulseaudio

Configure your /etc/pulse/default.pa. Add the following line at the end:
load-module module-hal-detect
It enables pulseaudio to route sound to hdmi.

At the end, edit your /boot/uEnv.txt and switch from hdmi.audio 0 to 1:
disp.screen0_output_mode=EDID:1280x720p50 hdmi.audio=EDID:1
How to get there?

#if /mnt doesn't exist, create it by
mkdir /mnt
#type the following, to see, where boot partition is mounted:
blkid
#you should see something like /dev/mmcblk0p1. Now mount it:
mount /dev/mmcblk0p1 /mnt
#now you can edit uEnv.txt by
gedit /mnt/uEnv.txt

Compile kernel on BananaPI

Requires SD Card with >=4GB:

    apt-get install git build-essential libncurses5-dev u-boot-tools uboot-mkimage
    cd ~
    git clone https://github.com/LeMaker/linux-bananapi.git --depth 1
    cd linux-bananapi
    make sun7i_defconfig
    make menuconfig
    make -j2 uImage modules
    make modules_install
    mount /dev/mmcblk0p1 /boot
    cp arch/arm/boot/uImage /boot
    reboot