Brother printere på linux

Brother generisk cups wrapper

Ubuntu
HL-2140
http://support.brother.com/g/b/downloadend.aspx?c=dk&lang=da&prod=hl2140_all&os=128&dlid=dlf005859_000&flang=4&type3=561
HL-2240
http://support.brother.com/g/b/downloadhowto.aspx?c=dk&lang=da&prod=hl2240d_all&os=128&dlid=dlf101125_000&flang=4&type3=10033

Arch Linux
https://aur.archlinux.org/packages/brother-brgenml1

Brother på openprinting.org

http://openprinting.org/printers/manufacturer/Brother

HL-2040

http://openprinting.org/printer/Brother/Brother-HL-2040

HL-2140

http://openprinting.org/printer/Brother/Brother-HL-2140

HL-2240

http://openprinting.org/printer/Brother/Brother-HL-2240

HL-2240D

http://openprinting.org/printer/Brother/Brother-HL-2240D

Diverse support sider

HL-2140 Ubuntu

http://ubuntuforums.org/showthread.php?t=2231405

HL-2240

https://njh.eu/printer

HL-2240 Ubuntu

http://www.howtogeek.com/forum/topic/installation-of-brother-hl-2240-printer-in-ubuntu-1204

HL-2240 toner continue mode

http://support.brother.com/g/b/faqend.aspx?c=us_ot&lang=en&prod=hl2240_us_eu&faqid=faq00002828_001

Arch Linux – reflector util

Opsætning af mirrorlist

# pacman -Syu reflector

15 hurtigste mirrors af 30 senest synkroniserede
Sorteret efter download hastighed
Gemt til /etc/pacman.d/mirrorlist

# reflector --verbose -l 30 -f 15 --sort rate --save /etc/pacman.d/mirrorlist

Windows til Hyper-V

Overfør din windows til virtuel maskine.

Windows opsættes til RDP (Remote Desktop Protocol) på dansk Fjernskrivebord.
Vær sikker på at du har ret til login på Fjernskrivebord.

Flyt data væk fra C:
Det kan være sekundær disk, flytbar disk, cloud, netværk …

Skift størrelse på C: til maks 127GB.
Ved fysisk disk med mere end 127GB kan det være nødvendigt at defragmentere den frie plads før det er muligt at skifte størrelse på C:.

Windows XP bruges fx. http://www.aomeitech.com/download.html

Windows 7, 8.x, 10 bruges Diskhåndtering.

Efter størrelsesændring kan det være en fordel men ikke nødvendigt at konsolidere den frie plads med SDelete, et gratis Microsoft program.

Hvis du bruger SSD diske skal du ikke bruge SDelete da dette slider unødigt på hukommelseskredsene.

https://technet.microsoft.com/en-us/sysinternals/sdelete.aspx

Nu bruges et andet gratis Microsoft program Disk2vhd.

https://technet.microsoft.com/en-us/sysinternals/ee656415.aspx

Dette program kloner computer fra dit C: drev til et format der kan bruges med Microsoft HyperV eller VirtualPC.

Husk at gemme den virtuelle disk som VHDX – det udvidede HyperV format.

Disk2vhd kan gemme den på den computer der klones men kan med fordel gemmes på et eksternt medie fx. en flytbar harddisk, USB eller netværkslager. Husk at der skal være mindst 127GB ledig plads da dette er den maksimale størrelse for den virtuelle harddisk.

HyperV til VirtualBox

Linux: XDMCP summary

XDMCP

locally – and locally only

Installer XDM

Archlinux

# pacman -S xorg-xdm

Ubuntu

# apt-get install xdm

When installing select xdm as default login manager

Edit as root

# nano /etc/X11/xdm/Xaccess
## remove remark (#) from the line reading
#*        #any host can get a login window

# nano /etc/X11/xdm/Xservers
##add remark (#) for the line - probably last - reading
:0 local ..(rest omitted)

# nano /etc/X11/xdm/xdm-config
## add remark (!) for the line - probably last - reading
DisplayManager.requestPort:    0

Arch: sshd – authorized_keys

Debugging: No supported authentication methods available

# systemctl stop sshd && systemctl disable sshd
# /usr/bin/sshd -d

If you want to use your public keyfile from puttygen in the ssh-authorized_keys file you are looking for trouble.

[root@tsa]# /usr/bin/sshd -d
debug1: sshd version OpenSSH_6.7, OpenSSL 1.0.1l 15 Jan 2015
...
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.    
Failed publickey for root from 192.168.1.100 port 49393 ssh2: RSA f3:d4:90:c1:95:4d:b5:ce:9e:db:56:4a:84:79:15:43
Received disconnect from 192.168.1.100: 14: No supported authentication methods available [preauth]
...
debug1: do_cleanup
debug1: Killing privsep child 9921

Here is the reason

# cat .ssh/authorized_keys
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20150125"
AAAAB3NzaC1yc2EAAAABJQAAAQEAsKx3JfVH3D9aMdKTlwmsG6osXs3WN/aGXcAD
zKw0Wy8Bbou+/VWwXL+TR0IGIFoTSN6KYpw0K4bUCQWopdWlQAbV4+roe7gHcxzm
HLLPQDQvqAt7FZsv5u666/DDzpGbwwGniOARdBPEyWhVkKx1r5DE6jyDVNBgSDWh
eAXicW43ytbIZHx+xMcCb6zQ2U08UiOw8oUW6N2mUKJ/Shgk19WM4DqsHl8Yq8P5
61g109b2OdLJQw4MoKdjvJZFkf+g170goUo/mT8HesEYlEIHSpliwWLmb+kqv0lI
neYanV9cxiqKmeFxs4UgomCURobxGx3p2iNtaCHmRNTJHvIeSQ==
---- END SSH2 PUBLIC KEY ----

This is a no-go – not usable – authorized_keys does not contain LF. Copy/paste from inside puttygen to ssh-authorized_keys

# cat .ssh/autorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAsKx3JfVH3D9aMdKTlwmsG6osXs3WN/aGXcADzKw0Wy8Bbou+/VWwXL+TR0IGIFoTSN6KYpw0K4bUCQWopdWlQAbV4+roe7gHcxzmHLLPQDQvqAt7FZsv5u666/DDzpGbwwGniOARdBPEyWhVkKx1r5DE6jyDVNBgSDWheAXicW43ytbIZHx+xMcCb6zQ2U08UiOw8oUW6N2mUKJ/Shgk19WM4DqsHl8Yq8P561g109b2OdLJQw4MoKdjvJZFkf+g170goUo/mT8HesEYlEIHSpliwWLmb+kqv0lIneYanV9cxiqKmeFxs4UgomCURobxGx3p2iNtaCHmRNTJHvIeSQ== rsa-key-20150125

Output from /usr/bin/sshd -d

[root@tsa]# /usr/bin/sshd -d
debug1: sshd version OpenSSH_6.7, OpenSSL 1.0.1l 15 Jan 2015
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
...
debug1: trying public key file /root/.ssh/authorized_keys
debug1: fd 4 clearing O_NONBLOCK
debug1: matching key found: file /root/.ssh/authorized_keys, line 1 RSA f3:d4:90:c1:95:4d:b5:ce:9e:db:56:4a:84:79:15:43
...
debug1: trying public key file /root/.ssh/authorized_keys
debug1: fd 4 clearing O_NONBLOCK
debug1: matching key found: file /root/.ssh/authorized_keys, line 1 RSA f3:d4:90:c1:95:4d:b5:ce:9e:db:56:4a:84:79:15:43
debug1: restore_uid: 0/0
Accepted publickey for root from 192.168.1.100 port 49421 ssh2: RSA f3:d4:90:c1:95:4d:b5:ce:9e:db:56:4a:84:79:15:43
debug1: monitor_child_preauth: root has been authenticated by privileged process
...
Starting session: shell on pts/1 for fh from 192.168.1.100 port 49421
...
Closing connection to 192.168.1.100 port 49421

That’s better

# systemctl start sshd && systemctl enable sshd

Synology: Preserve your path

After DSM update ipkg/opkg stops working.

Always remember > Trust is good – verification is better

EDIT: apply to /root/.profile as well

Use your favorite ssh-client to connect to your diskstation as root

# ssh root@your-ds
# cp /etc/profile /etc/profile.org
# vi /etc/profile

If you mess up in vi Esc:q! and start again

Find the line reading

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin

Place the cursor under the first slash ‘/’ and press i to insert text.

Modify path according to your environment ipkg or opkg

PATH=opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin

PATH=/Apps/opt/bin:/Apps/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin

Press Esc to go back to command mode and then press uppercase Z twice to save and close vi.

For good measure – verify the changes you made

# cat /etc/profile

Activate the path modification by sourcing profile

# source /etc/profile

During the next DSM update your profile will probably be replaced by the update process and to prevent that you can make the file readonly by doing

# chmod 0444 /etc/profile[/code]

Bash: persistent path

Bash: preserving path

Edit ~/.profile

#ruby gems
#remember - : = security-breach
export PATH=$PATH:~/.gem/ruby/2.2.0/bin
#node_gyp fordrer python2
export PYTHON=/usr/bin/python2

Source your profile to use immidiately

source ~/.profile

Logout / Login to verify your path

echo $PATH
echo $PYTHON

Arch: My preferred packages

My preferred packages

archlinux

base 
base-devel

boot

gptfdisk
syslinux

workstation

xf86-video-intel
xorg-server 
xorg-server-utils 
xorg-xinit 
xorg-apps 
xorg-twm 
xorg-xclock 
xterm
xorg-xdm
xorg-server-xephyr
xfce4 
xfce4-goodies 
xfce4-settings
lightdm
firefox
chromium
abs
xfce4-whiskermenu-plugin
yajl   

Xorg :0 -configure

Keyring opdate

haveged
systemctl start haveged
systemctl enable haveged

pacman-key --init

antergos.mirrorlist
kopier /etc/pacman.d/mirrorlist => antergos.mirrorlist
edit antergos.mirrorlist

Server = http://mirrors.antergos.com/$repo/$arch

edit /etc/pacman.conf

[antergos]
SigLevel = TrustAll
Include = /etc/pacman.d/antergos.mirrorlist

antergos packages

numix-themes
numix-frost-themes
numix-icon-theme
numix-icon-theme-square

synaptics touch thinkpad labtop

xf86-input-synaptics

frosting

Indstillinger => Udseende => Numix Frost (Light)
Indstillinger => Udseende => Ikoner => Numix-Square
Indstillinger => Vindueshåndtering => Stil => Numix Frost (Light)
Skrivebordsbaggrund => noget andet end xfce-musen :)

download

mozilla firefox developer edition
oracle java
jetbrains webstorm
syntevo smartgit
aur package-query
aur yaourt

build and install package-query

makepkg -i

build and install yaourt

makepkg -i

install pacmatic

yaourt pacmatic

install virtualbox

pacmatic virtualbox virtualbox-guest-iso