Friday, November 21, 2008

What Goes Inside A Wedding Invitation

nwal003 [print server under slugos - cups]

while cups [common unix printing system] almost out-of-the-box for more than half a year to run with under unslung, it was time the software according to slugos to port. the disadvantages of unslung I have already discussed at length, plus I wanted to get away from the heterogeneous mixture, to a uniform standard of my nslu2 devices.
had said beforehand that the difficulty of the implementation of this software is under slugos only lead to the fact that different installation instructions on the internet are available. it helps nothing here for a guide to follow in cups or unslung OpenSlug or debian, but the instructions are observed by all to howto's accordingly. The following is a manual and a list of possible fall as the print server from me was implemented in slugos, instructions with a focus on existing and their key differences to slugos.
cups is [ipkg] as a package in most distributions. But while under a unslung, ipkg install cups' already constitutes the foundation, must be patched first of all [Optware] under slugos. There is no, stable package cups ', but it is also in slugos, Optware feed' find. cups [version 1.3.9-1] can be downloaded here [http://ftp.easysw.com/pub/cups/1.3.9/cups-1.3.9-source.tar.bz2]. to saying that the [dependencies to other packages], package chain 'is considered, it should first undergo a manual ipkg bootstrap werden. ipkg in der grundinstallation bietet ‚considered stable packages’ als feed an. ‚ipkg update’ hält unter /var/lib/ipkg listen der angebotenen packete zur verfügung. will man aber auf optware repositories [ /opt/lib/ipkg/lists/ ] zugreifen muß man eben ipkg patchen. die grundanleitung gibt es hier .
somit können wir von nun an lediglich durch setzten der path-variable steuern ob wir ipkg mit stable oder eben unstable [optware ] feeds ausführen wollen. beginnend mit
#export PATH=/opt/bin:/opt/sbin:$PATH
setzten wir entsprechend ipkg auf optware-feed [ /opt/bin/ipkg wird nun zuerst berücksichtigt]. weiter der anleitung folgend:
#ipkg install cups
#ipkg install cups-doc [ die statischen html-seiten des web-guis ]
die abhängigen packages libjpeg, libpng, libtiff, openssl, zlib, openldap-libs werden ohne zutun automatisch installiert! wir wechseln in das konfigurations-directory /opt/etc/cups und erkennen die entscheidende config-datei cupsd.conf . [diese ist sehr groß gehalten, und für den ersten schnellen erfolg ungeeignet – security probleme, basic authentication und location directiven werden hier zur ersten unüberwindlichen hürde !!] wir erstellen eine minimalistische cupsd.conf:

cupsd.conf

[ !achtung! - It has been found that a default policy moves, if is not equipped, based his character on basic-authentication. you see the very nice if you booting the cups error log.


... I [21/Nov/2008: 10:14:00 +0100] Creating CUPS default administrative policy:
I [21/Nov/2008: 10:14:00 +0100] \u0026lt;policy default>
I [ 21/Nov/2008: 10:14:00 +0100] \u0026lt;Limit Send-Document Send-URI, Cancel-Job Hold-Job Release-Job Restart-Job Purge-Jobs Set-
I [21/Nov/2008: 10 : 14:00 +0100] Order Deny, Allow
I [21/Nov/2008: 10:14:00 +0100] Require user @ OWNER @ SYSTEM
I [21/Nov/2008: 10:14:00 +0100] \u0026lt;/ Limit>
I [21/Nov/2008: 10:14:00 +0100] \u0026lt;Limit Pause-Printer Resume-Printer Set- Printer-Attributes Enable-Disable-Printer Printer
I [21/Nov/2008: 10:14:00 +0100] Order Deny, Allow
I [21/Nov/2008: 10:14:00 +0100] AuthType Default
I [21/Nov/2008: 10:14:00 +0100] Require user @ SYSTEM
I [21/Nov/2008: 10:14:00 +0100] \u0026lt;/ Limit>

we ... want to avoid but this case first and define a policy just fine with AuthType None!]
so is the cupsd.conf configuration completed and we dedicate ourselves to the actual printer driver installation, and definition. the cups supplied with printers.conf in / opt / etc / cups / show a hp990c printer. this is obviously not mine, but I use an HP deskjet F2100. significantly but the device definition is under slugos. We will use / dev/lp0 printer as the default device, although we really do not lp0 - ie, a parallel interface - have. unslung under the same printer to work under / dev/usb/lp0. for the correct implementation of the necessary devices will be another kernel module responsible. [! Oops! ipkg feed is now cross or stable - we remove / opt / bin: / usr / sbin in the path]


# export PATH = / usr / local / bin: / usr / bin: / bin: / usr / local / sbin: / usr / sbin: / sbin
# ipkg install kernel-module-usblp
# depmod-a / lib / modules/2.6.21.7/kernel/drivers/usb/class/usblp.ko

and edit our printers.conf follows:
printers.conf

now we even start writing a script so that everything plays together properly, but instead we use the cups supplied with template / opt/doc/cups/S88cups.
two small adaptations are necessary in this case:

  • replace the printer driver definition
    if
    to see [http://www.nslu2-linux.org/wiki/OpenSlug/InstallCups]

    if ((lsmod
    start and test it with a browser, the web-gui http://nwal003:631 - the cups surface appears.
    but as I print primarily on windows, I'm not going to the web-gui received, it will give only a first impression.
    under windows to install the printer driver, we have not. Ppd file in cups deposited [the printer serves as a kind of raw device]. We define it as a valid TCP network printers and can now run the printer from the pressure-control manager.


Wednesday, November 19, 2008

Airsoft Desert Eagle Extended Mag

nwal002 [mounting samba share using cifs]


after a samba server [nwal001 under slugos] successfully offering its services, and several windows clients in my household already access it, it was the time the shared storage and to the other nslu2-devices to link. My choice was, as for slugos already kernel modules are available to CIFS [Common Internet File System].

  • following additional considerations are to be considered for this
    /etc/init.d/cups.sh
  • common character set which is subject to server-client communication?
    which data are involved and which are subject to this security?


    thus provides installation plan is as follows:
    characterset is the samba-servers [see / etc / samba / smb.conf] defined as follows
    ...
    # charset settings

    unix charset = ISO-8859-1

    ... so should be on the client machine [nwal002] zuminderst this charset as nls [national language support] kernel-module installed. locale and language settings should be set according to the environment.

    # export LANG = de_AT.iso885915


    [bem. is 8859-1 is a subset of 8859-15, which also includes the € sign yet-...] as the locale generated under slugos as such I have already dealt with in this thread
      .
    • the actual carrier-software [cifs] is installed as follows.
    # ipkg install cifs
    # ipkg install cifs-doc

    # ipkg install kernel-module-cifs


    other configurations omitted and we can make our first mount attempt.
    [/ data will be our mount point, and data is our share on the samba server]



    # mkdir / data # mount-t cifs-o username = xxxx, password = xxxx, workgroup = nwal001_smb / / samba_server_ip_address / data / data

    the work group [netbios name] can also be removed from the samba [server] configuration. in case one is lacking both stdout / stderr use, dmesg gives error messages on it accordingly.
    success in the fall, can now automatism in / etc / fstab be introduced in the already the charset is considered, and the mount is performed after a reboot. [Entry in / etc / fstab]
    / / 192.168.0.40/data / data cifs user = xxxx password = xxxx, iocharset = iso8859-1 0 0 on the server side, you can now by means of the connection smbstatus v . check




    note:
    there is the connection via kernel-module [cifsoplockd] is [cifsdnotifyd], [cifsd] a trace using lsmod, depmod-a, modprobe to recommend to the appropriate module.


    Monday, November 17, 2008

    Pati Navidat Descuidos

    90th Birthday

    today would Jeannie Ebner 90th Birthday celebration - 17 November 1918 she was born in Sydney.

    Friday, November 14, 2008

    Transferring Boat Title Ontario

    nwal001 [success with slugos] - part 3


    "slugos from the scratch" - a preparation for samba and nlsu2 twonkymedia server [part 3]


    twonkymedia installation


    the architecture-specific downloads can be found at
    twonkymedia
    . We will install the Twonky server under the user Twonky for the architecture, arm big endian '. [Tinylogin represents the utility is, with which to manage users, groups, etc..]

    # ipkg install tinylogin

    smbstatus -v
    # mkdir / home / Twonky


    # adduser-h / home / Twonky-s / bin / sh chown-g twonkymedia Twonky

      now we übrprüfen whether the existing libraries [gnu c library] den prerequisites gehorchen.
    • #ipkg list_installed [! Always with usage - full qualified path] the first start times # / home / Twonky / twonkymedia.sh start
      # ps-fu Twonky
      # netstat-an the user must read Twonky rights to that directory [or subdirectories] have nothing else to be found.

      device of the automatic start at boot in / etc / init.d create a wrapper script twonkymedia.sh [sudo]
      # / bin / sh case "$ 1" in 'start')
      sudo! - Twonky u / home / Twonky / twonkymedia.sh start
    • ;;
      'stop')
    • sudo-u Twonky / home / Twonky / twonkymedia.sh stop
      ;; 'restart') sudo-u Twonky / home / Twonky / twonkymedia.sh restart
      ;;
      'status') sudo-u Twonky / home / Twonky / twonkymedia.sh status ;;
      esac
      dannach # cd / etc/rc3.d

    • # ln-s .. / init.d / twonkymedia.sh S44twonky


    • # ln-s .. / init.d / twonkymedia.sh K46twonky


    • as twonkymedia - client runs in my bathroom one noxon i-radio

      enjoy:)


    Thursday, November 13, 2008

    Much Will Gamestop Give Me

    nwal001 [success with slugos] - part 2

  • "slugos from the scratch" - a preparation for some samba and nlsu2 twonkymedia server [2 ]


  • the correct time zone set

  • # ipkg install tzdata

    # ipkg install tzdata-europe


    # ln-s / usr / share / zoneinfo / Europe / Vienna / Etc / localtime


    # unset TZ



    locale specific default-moderate
    samba stores files in utf8, so I would also like this format as a specific locale have. [Because of the Austrian character set is shown already in the ISO-8859-1, limited to setting a locale en_US ISO-8859-15 be built]

    # ipkg install glibc-localedata-en-us

    # ipkg install glibc-localedata -de-at + €
    # ipkg install glibc-charmap-iso-8859-15
    # ipkg install glibc-charmap-utf-8
    # mkdir / usr / lib / locale

  • # localedef -i en_AU-f ISO-8859-15 en_AU


  • install additional software packages [crontab, time server, perl]

  • # ipkg install cron
    # ipkg install ntp

    is perl under slugos a chapter in itself and I will write a separate blog about it .


      save some memory. we have a serial terminal connected, as the slug has no serial interface. we can easily kill / sbin / getty. comment out of S: 2345: respawn: / sbin / getty ttyS0 115 200 in / etc / inittab # telinit q


    • samba installation
      adapt and configuration / etc / samba / smb.conf # ipkg install samba
      # ipkg install cifs-doc

    • # ipkg install cifs

      my modified settings to the default template [global]
      workgroup = myWorkGroupName server string = myServerString security = user
      hosts allow = myNetwork [192.168.0 127th], so my whole network 192.168.0 and localhost load printers = no printcap name = / dev / null
      guest account = guest local master = no unix charset = ISO- 8859 1
      ... and then my share definitions [here one example] [p003876] comment =
      p003876's home valid users = p003876 path = / Home/p003876
    • public = no
      writable = yes
    • printable = no
      caution: because security user, the user has both operating systems side [/ etc / passwd] and in the samba [/ usr / bin / smbpasswd] are created.
      in / etc / init.d script control is the samba, which means stop lightgrey;}
      “slugos from the scratch” – vorbereitung einer nlsu2 für samba und twonkymedia server [teil 1]
      unslung war dennoch nicht meine wahl für meine erste slug, denn diese sollte zuminderst mehr als 2 festplatten verwalten können [zumal ein port bereits von einem memory stick, auf dem die root partition liegt, belegt ist]. Meine wahl fiel auf
    • slugos/be
      [nachfolger von openslug], da hier bereits eine unterstützung von usb2.0 hubs im kernel [linux 2.6.21.7] gewährleistet ist. So ergibt sich folgendes hardware-layout für die portzuteilung der nlsu.

    • disk2 port: usb-stick, 8gb, transcend jetflash v10 [r:10mb/s, w: 3MBytes / s] disk1 port: dlink hub dub-h7 / e

    • the installation procedure in detail:
      is starting with #
      upslug2 the firmware
      slugos 4.8-beta release flashed . [Ssh is already part of the firmware]

      after a successful reboot - partitioning the boot-devices [memory stick to port2]
      / dev/sda1 will be the recipients of the rootfs, / dev/sda2 is swap area, / dev/sda3 user data







      disk initialization and rootfs-migration

      # mkfs.ext3 / dev/sda1


      # mkswap / dev/sda2


      # Swapon / dev/sda2


      # mkfs.ext3 / dev/sda3 #


      turnup memstick-i / dev/hda1-t ext3
    • [the memstick option was chosen for the reason to avoid unnecessary logging accesses i / o cause waits by the slow memory stick. ! The / var and / tmp file system is located entirely in the RAM area]


      edit the / etc / fstab

    adapt / etc / hosts and / etc / resolv.conf

    installation udev [automatic mount of usb-devices behind the usb hub] < br/> # ipkg install udev

    [usb hub is attached to port disk1, now I can manage up to seven behind usb devices. 3 available ext3 formatted hdisk be attached.] detrimental to the the automatic mount [device allocation and fs mount point] and their work around arbitrariness, I opt for the use of UUIDs.


    # / lib / udev / vol_id-u DeviceName
    • provides a unique uuid, which is taken into account in the / etc / fstab file. automatic mount products used by sd [bz] [1-9] in $ / prevent etc / udev / mount.blacklist. thus resulting in a rigid mapping of / dev/sdb1, / dev/sdc1 and / dev/sdd1 to the mount points / backup / multimedia and / data. therefore results in the new fstab


    Build Homemade Trailer Ontario

    nwal001 [success with slugos] - part 1


    as I manage my usb hard drive?
    fdisk
    we now have a computer device with a fast 266 MHz processor, and with the existing microcode
    v2.3r63/a5 (ETSI) from linksys can quickly achieve some success, but it Push out as quickly bordering the of kernels. the main reason the search was to go to an alternative firmware but the black-box model from Linksys, the web is to some extent after an-application- versteckt. die festplatten können zwar formatiert werden [partitionen werden nicht unterstützt], die wahl des zugrunde liegenden filesystems wird schon wieder kompliziert [fat, fat32, ntfs, ext2, ext3, raiserfs, etc...]. logische datenträger-verwaltung [raid verbände] werden zur gänze ignoriert. die verwaltung des built-in samba und das dahinterliegende benutzerschema mehr als kompliziert.

  • irgendwann stößt man auf nslu2-linux.org , das forum schlecht hin, wenn es um die slug geht, und schon vollziehe ich mein erstes firmware-flash [
    unslung 6.8 beta ]. Die funktionalität des linksys-kernels bleibt bei diesem microcode vollständig erhalten, die zu erwähnenden are additonal capabilities:
    NTFS volumes are supported
    file systems, ext3 on both usb ports
    a certain support of usb hubs [ubs 1.0] way to install Samba 3
  • software package installation [ipkg]
  • telnet access to slug
    fstab
    due to the internal 32MB memory limit was raised very quickly to ask the how and when the rootfs [that the kernel is based root file system] disk to an external [USB memory stick, hard disk, nfs, can be outsourced, etc.]. the newly flashed firmware unslung already offers remedy. usb stick connected to port2, formatiert [ext3 fs], telnet aktiviert [http://your_slug_ip/Management/telnet.cgi] und schon gelangt man mittels telnet-client als user root [pwd: uNSLUng] auf die box. endlich wird es spannend, unter /sbin liegt ein shell script namens unsling, denn so wird auch der vorgang des auslagerns der rootfs genannt. dem trivialen argument [disk1/2 – wohin soll ausgelagert werden] kann auch ein [-nopw] folgen, das eine mandatory änderung des root passwords im script ablauf verhindert. „/sbin/unsling disk2“ wird in meinem fall ausgeführt, das im memory liegende jffs2 [journalling flash file system version 2] wird an /initrd unter /dev/sda1 gemountet. nach erfolgtem reboot erkennt man zunächst unter http://your_slug_ip a status in the foot-line [unslung to disk2, / dev/sda1] and in the header of the current firmare version [v2.3r63-uNSLUng-6.8-beta]. the obviously new logo unslung obtained already without having ungeslingt to an external device.

  • telnet is enabled again and, after root got on it as the first software package installed ssh. "Ipkg install openssh '- we want in the future no longer need to open the browser and process the only access to the slug via ssh.



  • How Much Time Is Gained Each Day

    nslu2 firmware aspects [vs linksys. unslung]




    in the meantime I rely already on the stability and reliability three of these small devices. initially as a cheap nas to manage my data thought Push out pretty quickly to the limits of the out-of-the-box firmware from linksys. too many enticing software packages in alternative firmware kernels propagates, especially as a 24x7 business-much cheaper than cutting a fat server. with a power consumption of just 50-20 watts [depending on the connected printer ~ peripherals, hard drives, usb devices, etc.] the use of a box just costs ~ 35 € per year. The following are the technical success stories of the devices.
  • Removing Ignition Kill Alarm

    Network Storage Link for USB 2.0 Disk Drives [NSLU2]



    body, html, div {scrollbar-face-color: black; scrollbar-highlight-color: black; scrollbar-shadow-color: light gray;
    scrollbar-3dlight-color: black; scrollbar-arrow-color: lightgrey; scrollbar-shadow-color: black; scrollbar-base-color: black; scrollbar-track-color: lightgrey;} uuid
    I trust principle not any guis that are served with a few check boxes, and you've got an energy-saving plan!? [Start - Settings - Control Panel - Power options - ...]! no, I want my art to control when and how to go to sleep my htpc. The following Perl script that runs every 5 minutes under the control of the vista task scheduler is doing just that.
    the script there are simply here to download [click on graphic!]

    perl script [s3_now.txt] should be renamed to [s3_now.pl]



    part 1 of the script initialization of the script, win32:: mutex is loaded to a certain option is kept open other scripts to run in parallel. tlist.exe to check that run processes, ehrec.exe [runs a picture], ehshell.exe [vmc shell active], and of course a shutdown command. there is the unc-share \\ \\ nwal001 \\ ... so here override parameter. nwal001 is a linksys with nslu OpenSlug os.


    • part 2 of the script [logic]
    • line 44: is a mutex named 'backup_active' set [! Another script, which backs up files and long runs should not be left to sleep of course], line 49: here is controlled manually, if for some reason, no sleep is desired, and if they [row 55] Please do not sleep, but shut down [shutdown / r / f]. otherwise as usual once a netstat command to see if a deposed client [xbox360] is perhaps connected.


    part 3 of the script [logic]

    no client connected [else branch line 80] examine whether other factors apply, so no hibernation laufen soll, wie z.b. - läuft vielleicht mce local, oder wird gerade aufgenommen? trifft dies alles nicht zu, bitte schlafen gehen! [zeile 98 mit shutdown.exe /h /f !...]

    teil 4 des scriptes [subroutine]

    hier wird lediglich ein rotierendes log file initialisiert [log4perl], wohin stdout bzw. stderr wandern und housekeeping gewährleistet ist.



    hier script downloader

    denkbar einfach, doch letzten endes entscheide nur ich, wann der rechner wirklich schlafen geht, ausserdem ist dieses script beliebig erweiterbar!