All posts by linuxheadz

IT Linux Consultant

Fedora 25 and Brother MFC-1910W

The main problem for Fedora 25 and Brother MFC-1910W is a permission problem, as normal user you can’t connect to scanner via xsane so a udev rule is the answer ūüôā

 

Download and install the drivers  from brother site :

linux-brprinter-installer-2.1.1-1.gz

After the installation vi /etc/udev/rules.d/40-brother-libsane-type1.rules

#
# udev rules sample for Brother MFP
# version 1.0.0-1
#
# Copyright (C) 2012 Brother. Industries, Ltd.
#
# copy to /etc/udev/rules.d or /lib/udev/rules.d
#

ACTION!=”add”, GOTO=”brother_mfp_end”

SUBSYSTEM==”usb”, GOTO=”brother_mfp_udev_1″
SUBSYSTEM!=”usb_device”, GOTO=”brother_mfp_end”
LABEL=”brother_mfp_udev_1″

SYSFS{idVendor}==”04f9″, GOTO=”brother_mfp_udev_2″
ATTRS{idVendor}==”04f9″, GOTO=”brother_mfp_udev_2″
GOTO=”brother_mfp_end”
LABEL=”brother_mfp_udev_2″

# ATTRS{bInterfaceNumber}==”01″, GOTO=”brother_mfp_udev_3″
# ATTRS{bInterfaceNumber}==”02″, GOTO=”brother_mfp_udev_3″
# ATTRS{bInterfaceNumber}==”03″, GOTO=”brother_mfp_udev_3″
# GOTO=”brother_mfp_end”
# LABEL=”brother_mfp_udev_3″

ATTRS{bInterfaceClass}!=”0ff”, GOTO=”brother_mfp_end”
ATTRS{bInterfaceSubClass}!=”0ff”, GOTO=”brother_mfp_end”
ATTRS{bInterfaceProtocol}!=”0ff”, GOTO=”brother_mfp_end”

MODE=”0666″
GROUP=”scanner”
ENV{libsane_matched}=”yes”
SYMLINK+=”scanner-%k”

LABEL=”brother_mfp_end”

reboot the system and all should works smoothly

Advertisements

WII Convert Wia to ISO

wiimms-tools

 

Download the latest version of WIT: Wiimms ISO Tools at :

http://wit.wiimm.de/download.html#os-cygwin

Go to the windows command line into wit bin directory

Convert Wia to ISO

wit COPY /cygdrive/j/WII/iso/WIA/”Barbie as The Island Princess [RBVE52].wia” –iso –dest E:/ –psel DATA,UPDATE,CHANNEL –section –long –progress

COPY Wia to WDF Device

wwt ADD –auto /cygdrive/j/WII/iso/WIA/Barbie as The Island Princess [RBVE52].wia –psel DATA,UPDATE,CHANNEL –section –progress

VSFTPD Ftp Server

yum -y install vsftpd

The following configuration is used to allow anonymous users to access to the ftp and disables the localusers

vi /etc/vsftpd.conf

local_enable=NO
anonymous_enable=YES
write_enable=NO

anon_root=/var/ftp

chkconfig vsftpd on
/etc/init.d/vsftpd restart

Data privacy ( LUKS )

3-lukscryptsetup luksFormat /dev/vdb1 ( insert password )
cryptsetup luksOpen /dev/vdb1 crypdisk

now you can format the device pointing the dev mapper :

mkfs -t ext4 /dev/mapper/vdb1

mkdir /secret ; mount /dev/mapper/cryptdisk /secret

vi /etc/passfile

<password>

adding the config to crypttab :

cryptdisk /dev/mapper/vdb1   /etc/passfile

adding the config to fstab :

/dev/mapper/vdb1     /secret      ext4    defaults 0 0