SLIM equivalent of gdmflexiserver (newLoginCommand)

If using SLIM, is there a way to log in as user2 while user1 is already logged in? With kdm, I do "kdmctl reserve", with gdm it's "gdmflexiserver", what's the command with SLIM?

meh, just installed gdm lightdm. It works.
Last edited by unhammer (2013-03-18 15:05:30)

Similar Messages

  • Power Mac G4 – need more speed!

    Hi
    Regarding: G4 100/BUS 400mhz AGP.
    It now has 80GB @ 7200 hard-drive with existing 10GB @ 7200, 1.5Ghz 7455 processor and 1.5GB RAM – some might say an unnecessary expensive – but I now have a significant increase in speed.
    1. Can anyone suggest anything that I haven't considered for speed increase?
    2. Is there any way I can convert this mac to run SATA drives rather than ATA/IDEs?
    I am also hoping to replace my bulky 17" display with a slim equivalent combining good resolution with great colour/print representation. Catch is, my budget: £200. Any thoughts on this?
    Can anyone help?
    Stu

    i have a similar setup, and asked a similar question recently...lots of helpful people around here...
    http://discussions.apple.com/thread.jspa?threadID=831456&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=832907&tstart=0
    i've opted to add a sata card (Firmtek-SeriTek) and a pair of 250GB WD Caviar SE16's (striped/RAID0) to expand my capacity and (hopefully) performance (the card + the 2 drives was approx $200 USD)
    -i also added an updated video card (ATI Radeon 8500) a little while back, but that was so i could run quartz-extreme/openGL software, not necessarily for performance - i wouldnt have changed it otherwise.

  • 1-new slim imac, 1-new vista machine, 1-new airport extreme

    so I've been searching around the threads here and it seems like everyone's problems deal with like not seeing a wireless connection or not being able to print or not being able to file share and you would think that my situation was pretty common; if there is another thread about this please direct me and I apologize if I'm repeating a recent topic.
    ok, so i'm setting up a small little network for my aunt, she has a brand new 20" imac slim, two vista machines and one xp laptop. i advised her of getting an airport extreme to share internet. the imac sees and connects to the airpot fine but with vista it does not. vista can clearly see the basestation but won't let me connect to it. i've used a simple WEP key to connect to the base station and basically used defaults for my setting, yes, i am using an "Equivalent Key" for the vista machines but vista just keeps telling me it is unable to connect due to an unknown error.
    I've also tried to connect to the basestation with my little cousin's nintendo ds lites and it tells me that it "does not support this type of network security". i mean i just have WEP turned on, are there other settings on the basestation that i need to change? i'm new to the basestation i usually work with the airport express, the setting and stuff are different.
    any ideas?
    any and every post is much appreciated.

    i reset the basestation and and installed the airport utility on the vista machine and through the vista machine set up the basestation. i still can not connect to the basestation if any sort of encryption is turned on but if the basestation is open then the vista pc connects fine. since it looks like wireless encryption isn't an option; is there a way that i can just keep the connection open and just use a MAC filter?
    if they had cable internet it wouldn't be a bandwidth problem, but my aunt and uncle live in a somewhat rural area and they have to have satellite internet which means their download cap is around 17GB per month. if their neighbor knows and steals their bandwidth they'll hit 17GB in no time.
    the basestation has the latest firmware and both imac and vista machines have airport utility installed but i still don't understand why i can't turn on wireless security and still have the vista machine connect.
    i've tried using every encryption type possible and nothing will let the vista machine jump online; even the airport utility (on the vista machine) won't see the basestation when i turn on any sort wireless security.
    thanks cloth542000 for your reply, does anyone have any ideas on what i should do?

  • How to change from SLIM to KDM?

    Hello,
    I'm using the MATE desktop, OpenBox as window manager and SLIM for login.
    I'm starting to feel tired of not being able to change between various desktops without closing the main one, I mean, with OpenSUSE Ctrl+Alt+F1 to F6 are terminal ttys (it is so with Arch+SLIM too), Ctrl+Alt+F7 to F12 are graphical ttys, you can change between any of them and log in as any user you want without closing the F7 tty, or closing it, or doing whatever you want. This was petty cool in order to kill some broken task that hanged the screen or in order to do whatever.
    May I don't know how to do it with SLIM, but anytime I do Crtl+Alt+F9, for example, I just got a blank screen with an hyphen blinking. With OpenSUSE I got a graphical login screen.
    More:
    I've got installed OpenBox, MATE and enlightenment. It is suppose me to be able to change between them pressing F1, and in fact SLIM changes where says "session: XXXX" between them at the login screen, but whatever I choose SLIM ALWAYS log me in MATE. I've got to change it manually in ~/.xinitrc and logout and login again every time I want to change between sessions. I cannot do it directly at the login screen.
    Sometimes after login out and login in several times SLIM hangs and I have to reboot.
    I think all these problems comes from slim, and since with OpenSUSE, that use kdm, I had no problem I want to try kdm as login manager, but I haven't seen any guide to do it if you've got a login manager already installed. I've seen it just if it is the first system installatio. And I'm a little scared of breaking my login and spend too much time fixing it.
    How can I change from SLIM to KDM without pain?

    WOW, I had to install kdebase-workspace and it installed as dependency a functional kde system . And... I was able to choose between all the other desktops but MATE, so... kdm and all that it installed with it's already uninstalled
    But with kdm I was able to open an enlightenment session in tty 8 without closing kde in tty 7...
    ewaller wrote:Install kdm.
    Disable the slim service using systemctl
    Enable the kdm service using systemctl
    No need to uninstall slim.  Hang on to it until everything is working
    Thank you ewaller, it worked perfectly
    Scimmia wrote:Well changing to kdm is as simple as using systemctl to disable slim and enable kdm.That won't get you graphical logins on tty8+, though.
    So, how can I do it with slim?
    Raynman wrote:Do you really need a GUI to kill a program?
    No, I don't, it was just an example.
    Sounds like your xinitrc isn't quite right, check the wiki page for slim.
    I'm tired of reviewing my xinitrc in order to make slim let me choose my desktop. I think the F1 to change the session is experimental. I will open other thread in order to get some help or in order to help SLIM to solve this problem.
    And you could try LightDM instead (because KDM probably pulls in some KDE crap). It comes with dm-tool (and a replacement for gdmflexiserver) to start a new session on another tty.
    Sounds good. I'll try to make slim work perfectly and if I don't get it to work as perfectly I want I'll try other login managers.

  • Slim AC Power Adaptor for W700?

    Is there such a thing as a slim AC Power Adaptor for the W700?  I know the W500 has one, but is there an equivalent out there on the market for the W700?
    Thanks.

    The 230W adaptor for W701 is quite slim and it's perhaps compatible with W700.

  • Mid-2010 Mac Mini, dead optical drive: Are any slim Firewire DVD burners compatible?

    The optical drive on my Mac Mini seems to have died prematurely, as the OEM drives are known to do. Estimated cost of replacing the internal component: $170. And it would be the exact same model Apple optical drive, not a more robust one.
    Now very reluctantly thinking of adding yet another peripheral. USB ports are pretty well filled but I don't use the Firewire port for anything.
    Trouble is, since Apple discontinued Firewire, the manufacturers of Mac-compatible optical drives aren't making Firewire models any more.
    There are a few recent Firewire DVD burners from PC peripheral manufacturers, such as Acer, Aopen, Dell, Pioneer, Sony (Amazon reviews say it's restricted to burning Sony media) in a small "slim" form factor.
    Anyone have information about their compatibility with Firewire 800 on mid-2010 Mac mini, Mac OS 10.10.1 Yosemite?

    There are some steps involved which may translate to tedium,
    as noted in the repair guide for the Mid 2010 Mini from iFixit.
    •Mac Mini - Mid 2010 Repair Guide - iFixit:
    https://www.ifixit.com/Device/Mac_Mini_Mid_2010
    At about Step 25, of an overall rated Difficult process, you can
    see the Optical Drive, and likely be at a point to install replace-
    ment, then reverse the process; paying heed to advice given.
    •Mac Mini - Model A1347 - Optical Drive Replacement - iFixit:
    https://www.ifixit.com/Guide/Mac+mini+Model+A1347+Optical+Drive+Replacement/3167
    At least you can get into this computer. Be sure to have a spare
    optical drive cable and other possible items that may get broken
    in the process. Oh there also is a PRAM battery in this computer
    that may or may not need replacement while it is open...
    If at one point, if several parts were to be replaced at one time, a
    visit to a service technician becomes very cost effective. Find one
    that will install the parts you may get from third-party sources. If
    you know someone at a college computer lab, they may be able
    to perform the swap, test their work, and be done, in short order.
    Or, chose to use an external inexpensive 'superdrive' equivalent.
    I'd heard the LG brand was among some that work, and can also
    be used to boot the computer from System DVD or utility discs...
    It is a USB drive, can burn DVD/CD media, and is not costly.
    The ability to swap out the defective optical drive, and replace it
    with an SSD or second storage drive, may be a way to go; but
    it also would be at least as tedious as optical drive replacement.
    This may add value to the device, in a resale situation later.
    That would use the 'drive doubler' idea referred to at macsales.
    In the above main guide, is a primer on how to swap out the optical
    drive and replace it with a second hard disk drive or solid state drive.
    Similar to what the OWC site says, but they have a good kit, too.
    Good luck & happy computing!

  • Any Experience with LaCie Slim DVD burner?

    Hi~
    i'd like to buy this external Slim LaCie's dvd burner...
    but while reading the techSpec lines, i realized that , apparently, it does not require an extra power source, though it is via FireWire...
    so i'd like to know how it works on PowerBooks or any other older Macs...
    thanks for ur comments...

    Whilst I do not have direct experience of the DVD burner you have mentioned, I use both external desktop and portable burners.
    The portable variety, like the LaCie, can be host-powered when connecting via FireWire though the drive may also come with a power adapter. Usually they include a copy Roxio Toast to do the burning. Whilst portable burners are not going to be as quick as desktop models, it should still be reasonably quick.
    If you want ultimatee speed at the lowest price then a desktop model is better - you can probably buy several desktop burners for the price of one portable equivalent.
    15" 1.25GHz/12" 1GHz PBs, PPC Mac minis, 12" iBooks G3/G4,   Mac OS X (10.4.5)   Cube, TAMs, iPods 2G/4G, iPs, AEBS, AX

  • Equivalent of MS Access First Function in SQL for Group By

    We previously had an Access database performing operations. We are now converting it over to SQL. There are queries in Access that use the "First" function to insert data, which I have not been able to find the equivalent to in SQL. Below is an
    example showing the data used, the SQL syntax and the results that it would produce.
    tbl_Data
    FirstN LastN CustNum TDate SalesPer
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/12/2014 Alan Brown
    Sally Jones 22222 5/10/2014 Ben Doers
    Jim Smith 11111 5/12/2014 Jim Johnson
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Results to be inserted into tbl_Main
    FName LName CustID TransDate SalesPerson
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/10/2014 Ben Doers
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Below is the SQL that will produce this
    INSERT INTO tbl_Main ( FName, LName, CustID, TransDate, SalesPerson)
    SELECT td.FirstN, td.LastN, td.CustNum, First(td.TDate) As SellDate, First(td.SalesPer) As SP
    FROM tbl_Data td
    GROUP BY td.FirstN, td.LastN, td.Cust;
    If anyone could assist me in an alternative that I could use in SQL to yield the same results, I'd appreciate it.

    tbl_Data
    FirstN LastN CustNum TDate SalesPer
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/12/2014 Alan Brown
    Sally Jones 22222 5/10/2014 Ben Doers
    Jim Smith 11111 5/12/2014 Jim Johnson
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Results to be inserted into tbl_Main
    FName LName CustID TransDate SalesPerson
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/10/2014 Ben Doers
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Below is the SQL that will produce this
    INSERT INTO tbl_Main ( FName, LName, CustID, TransDate, SalesPerson)
    SELECT td.FirstN, td.LastN, td.CustNum, First(td.TDate) As SellDate, First(td.SalesPer) As SP
    FROM tbl_Data td
    GROUP BY td.FirstN, td.LastN, td.Cust;
    As an aside that query is not correct in Access -  because you did not specify an ORDER BY the resultset has no particular order so you could get either row for Jim or Sally.
    It's a bit of a tricky one as it may on the surface appear that the resultset is always returned in a consistent order but this is not guaranteed (not in Access and certainly not in SQL server)

  • SLiM only starts twice then exits to tty1

    Hi... i've installed arch yesterday following this guide https://wiki.archlinux.org/index.php/Beginners'_Guide i
    After that i started to set up a new desktop using openbox and slim.
    Basically everything works fine... except that after exiting openbox 2 times slim won't start and i end at tty1.
    systemctl status slim... after boot
    slim.service - SLiM Simple Login Manager
    Loaded: loaded (/usr/lib/systemd/system/slim.service; enabled)
    Active: active (running) since Di 2013-03-19 19:05:10 CET; 1min 10s ago
    Main PID: 241 (slim)
    CGroup: name=systemd:/system/slim.service
    └─264 /usr/bin/X -nolisten tcp vt07 -auth /var/run/slim.auth
    ‣ 241 /usr/bin/slim -nodaemon
    ... after 1st "openbox logout"
    slim.service - SLiM Simple Login Manager
    Loaded: loaded (/usr/lib/systemd/system/slim.service; enabled)
    Active: active (running) since Di 2013-03-19 19:05:10 CET; 1min 50s ago
    Main PID: 241 (slim)
    CGroup: name=systemd:/system/slim.service
    ...after 2nt logout on tty1
    slim.service - SLiM Simple Login Manager
    Loaded: loaded (/usr/lib/systemd/system/slim.service; enabled)
    Active: failed (Result: exit-code) since Di 2013-03-19 19:07:04 CET; 23s ago
    Process: 241 ExecStart=/usr/bin/slim -nodaemon (code=exited, status=1/FAILURE)
    /var/log/slim.log
    slim: waiting for X server to begin accepting connections.
    slim: waiting for X server to shut down
    slim: waiting for X server to begin accepting connections.
    systemctl list-units
    UNIT LOAD ACTIVE SUB DESCRIPTION
    proc-sys...t_misc.automount loaded active running Arbitrary Executable File Formats File System Automount Point
    sys-devi...-sda-sda1.device loaded active plugged IC25N080ATMR04-0
    sys-devi...-sda-sda2.device loaded active plugged IC25N080ATMR04-0
    sys-devi...-sda-sda3.device loaded active plugged IC25N080ATMR04-0
    sys-devi...-sda-sda4.device loaded active plugged IC25N080ATMR04-0
    sys-devi...block-sda.device loaded active plugged IC25N080ATMR04-0
    sys-devi...block-sr0.device loaded active plugged _NEC_DVD+_-RW_ND-6500A
    sys-devi...und-card0.device loaded active plugged /sys/devices/pci0000:00/0000:00:02.7/sound/card0
    sys-devi...et-enp0s4.device loaded active plugged /sys/devices/pci0000:00/0000:00:04.0/net/enp0s4
    sys-devi...et-wlp2s0.device loaded active plugged /sys/devices/pci0000:00/0000:00:09.0/0000:02:00.0/net/wlp2s0
    sys-devi...tty-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
    sys-devi...tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
    sys-devi...tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
    sys-devi...tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
    sys-module-configfs.device loaded active plugged /sys/module/configfs
    sys-subs...es-enp0s4.device loaded active plugged /sys/subsystem/net/devices/enp0s4
    sys-subs...es-wlp2s0.device loaded active plugged /sys/subsystem/net/devices/wlp2s0
    -.mount loaded active mounted /
    boot.mount loaded active mounted /boot
    dev-hugepages.mount loaded active mounted Huge Pages File System
    dev-mqueue.mount loaded active mounted POSIX Message Queue File System
    home.mount loaded active mounted /home
    proc-sys...infmt_misc.mount loaded active mounted Arbitrary Executable File Formats File System
    sys-kernel-config.mount loaded active mounted Configuration File System
    sys-kernel-debug.mount loaded active mounted Debug File System
    tmp.mount loaded active mounted Temporary Directory
    systemd-...ord-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
    systemd-...ssword-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
    dbus.service loaded active running D-Bus System Message Bus
    [email protected] loaded active running Getty on tty1
    net-auto-wireless.service loaded active running Provides automatic netcfg wireless connection
    ntpd.service loaded active running Network Time Service
    slim.service loaded failed failed SLiM Simple Login Manager
    systemd-binfmt.service loaded active exited Set Up Additional Binary Formats
    systemd-journald.service loaded active running Journal Service
    systemd-logind.service loaded active running Login Service
    systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
    systemd-sysctl.service loaded active exited Apply Kernel Variables
    systemd-...es-setup.service loaded active exited Recreate Volatile Files and Directories
    systemd-...-trigger.service loaded active exited udev Coldplug all Devices
    systemd-udevd.service loaded active running udev Kernel Device Manager
    systemd-...sessions.service loaded active exited Permit User Sessions
    systemd-...le-setup.service loaded active exited Setup Virtual Console
    dbus.socket loaded active running D-Bus System Message Bus Socket
    dmeventd.socket loaded active listening Device-mapper event daemon FIFOs
    lvmetad.socket loaded active listening LVM2 metadata daemon socket
    systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
    systemd-journald.socket loaded active running Journal Socket
    systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
    systemd-...d-control.socket loaded active listening udev Control Socket
    systemd-udevd-kernel.socket loaded active running udev Kernel Socket
    dev-sda2.swap loaded active active /dev/sda2
    basic.target loaded active active Basic System
    cryptsetup.target loaded active active Encrypted Volumes
    getty.target loaded active active Login Prompts
    graphical.target loaded active active Graphical Interface
    local-fs-pre.target loaded active active Local File Systems (Pre)
    local-fs.target loaded active active Local File Systems
    multi-user.target loaded active active Multi-User
    network.target loaded active active Network
    remote-fs.target loaded active active Remote File Systems
    sockets.target loaded active active Sockets
    sound.target loaded active active Sound Card
    swap.target loaded active active Swap
    sysinit.target loaded active active System Initialization
    systemd-...iles-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
    /etc/slim.conf
    # Path, X server and arguments (if needed)
    # Note: -xauth $authfile is automatically appended
    default_path /bin:/usr/bin:/usr/local/bin
    default_xserver /usr/bin/X
    xserver_arguments -nolisten tcp vt07
    # Commands for halt, login, etc.
    halt_cmd /sbin/shutdown -h now
    reboot_cmd /sbin/shutdown -r now
    console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
    #suspend_cmd /usr/sbin/suspend
    # Full path to the xauth binary
    xauth_path /usr/bin/xauth
    # Xauth file for server
    authfile /var/run/slim.auth
    # Activate numlock when slim starts. Valid values: on|off
    # numlock on
    # Hide the mouse cursor (note: does not work with some WMs).
    # Valid values: true|false
    # hidecursor false
    # This command is executed after a succesful login.
    # you can place the %session and %theme variables
    # to handle launching of specific commands in .xinitrc
    # depending of chosen session and slim theme
    # NOTE: if your system does not have bash you need
    # to adjust the command according to your preferred shell,
    # i.e. for freebsd use:
    # login_cmd exec /bin/sh - ~/.xinitrc %session
    login_cmd exec /bin/bash -login ~/.xinitrc %session
    # Commands executed when starting and exiting a session.
    # They can be used for registering a X11 session with
    # sessreg. You can use the %user variable
    # sessionstart_cmd some command
    # sessionstop_cmd some command
    # Start in daemon mode. Valid values: yes | no
    # Note that this can be overriden by the command line
    # options "-d" and "-nodaemon"
    # daemon yes
    # Available sessions (first one is the default).
    # The current chosen session name is replaced in the login_cmd
    # above, so your login command can handle different sessions.
    # see the xinitrc.sample file shipped with slim sources
    # sessions xfce4,icewm-session,wmaker,blackbox
    # Executed when pressing F11 (requires imagemagick)
    screenshot_cmd import -window root /slim.png
    # welcome message. Available variables: %host, %domain
    welcome_msg Welcome to %host
    # Session message. Prepended to the session name when pressing F1
    # session_msg Session:
    # shutdown / reboot messages
    shutdown_msg The system is halting...
    reboot_msg The system is rebooting...
    # default user, leave blank or remove this line
    # for avoid pre-loading the username.
    # default_user simone
    # Focus the password field on start when default_user is set
    # Set to "yes" to enable this feature
    # focus_password no
    # Automatically login the default user (without entering
    # the password. Set to "yes" to enable this feature
    #auto_login no
    # current theme, use comma separated list to specify a set to
    # randomly choose from
    current_theme default
    # Lock file
    lockfile /var/run/lock/slim.lock
    # Log file
    logfile /var/log/slim.log
    When i run "systemctl start slim" on tty1 slim starts again and after exiting openbox twice i'm back on tty1.
    ...But when i run "slim" on tty1 slim starts and i can exit openbox as often as i want.
    Any ideas ?
    Edit:
    Running /usr/bin/slim from tty1 gives me this logfile.
    /var/log/slim.log
    slim: waiting for X server to begin accepting connections.
    slim: waiting for X server to shut down
    slim: waiting for X server to begin accepting connections.
    slim: waiting for X server to shut down
    slim: waiting for X server to begin accepting connections.
    Somehow the second "slim: waiting for X server to shut down" does not happen when running "systemctl start slim"
    Last edited by Synth (2013-03-19 19:39:10)

    Ok, I was able to workaround parts of the bug:
    I changed slim.conf and and set daemon = true (so slim runs as a daemon). Furthermore changed the slim.service file for systemd:
    [Service]
    Type = forking
    PIDFile = /var/lock/slim.lock
    ExecStart=/usr/bin/slim
    Now I can log in and out as often as I want. Seems to work. However, nm-applet only shows up in odd numbers of logins:
    1st login --> nm-applet is shown
    2nd login --> nm-applet is not shown (but running --> htop)
    3rd login --> nm-applet is shown
    4th login --> nm-applet is not shown (but running --> htop)
    ...and so on...
    I search the web, it seems to be a problem with dbus and the order how the services get started. Don't know if that is true...any ideas from anyone?

  • [SOLVED] New slim, can't shutdown|reboot|suspend anymore

    Hi!
    I just upgraded slim, and i notice that i cannot suspend, shutdown and reboot anymore.
    And to mount usb drive, i am asked for my password.
    After the upgrade i changed /etc/slim.conf,pacnew to suit my needs and then sudo mv /etc/slim.conf.pacnew /etc/slim.conf .
    My .xinitrc is the same, so, where is the problem?
    here there are my slim.conf:
    # Path, X server and arguments (if needed)
    # Note: -xauth $authfile is automatically appended
    default_path /bin:/usr/bin:/usr/local/bin
    default_xserver /usr/bin/X
    xserver_arguments -nolisten tcp vt07
    # Commands for halt, login, etc.
    halt_cmd /sbin/shutdown -h now
    reboot_cmd /sbin/shutdown -r now
    console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
    #suspend_cmd /usr/sbin/suspend
    # Full path to the xauth binary
    xauth_path /usr/bin/xauth
    # Xauth file for server
    authfile /var/run/slim.auth
    # Activate numlock when slim starts. Valid values: on|off
    # numlock on
    # Hide the mouse cursor (note: does not work with some WMs).
    # Valid values: true|false
    # hidecursor false
    # This command is executed after a succesful login.
    # you can place the %session and %theme variables
    # to handle launching of specific commands in .xinitrc
    # depending of chosen session and slim theme
    # NOTE: if your system does not have bash you need
    # to adjust the command according to your preferred shell,
    # i.e. for freebsd use:
    # login_cmd exec /bin/sh - ~/.xinitrc %session
    login_cmd exec /bin/bash -login ~/.xinitrc %session
    # Commands executed when starting and exiting a session.
    # They can be used for registering a X11 session with
    # sessreg. You can use the %user variable
    # sessionstart_cmd some command
    # sessionstop_cmd some command
    # Start in daemon mode. Valid values: yes | no
    # Note that this can be overriden by the command line
    # options "-d" and "-nodaemon"
    # daemon yes
    # Available sessions (first one is the default).
    # The current chosen session name is replaced in the login_cmd
    # above, so your login command can handle different sessions.
    # see the xinitrc.sample file shipped with slim sources
    sessions xfce4,icewm-session,wmaker,blackbox
    # Executed when pressing F11 (requires imagemagick)
    screenshot_cmd import -window root /slim.png
    # welcome message. Available variables: %host, %domain
    welcome_msg Welcome to %host
    # Session message. Prepended to the session name when pressing F1
    # session_msg Session:
    # shutdown / reboot messages
    shutdown_msg The system is halting...
    reboot_msg The system is rebooting...
    # default user, leave blank or remove this line
    # for avoid pre-loading the username.
    default_user federico
    # Focus the password field on start when default_user is set
    # Set to "yes" to enable this feature
    #focus_password no
    # Automatically login the default user (without entering
    # the password. Set to "yes" to enable this feature
    auto_login yes
    # current theme, use comma separated list to specify a set to
    # randomly choose from
    current_theme default
    # Lock file
    lockfile /var/lock/slim.lock
    # Log file
    logfile /var/log/slim.log
    and my .xinitrc:
    #!/bin/bash
    export BROWSER=chromium
    export DE=xfce
    exec ck-launch-session dbus-launch startxfce4
    Thanks!
    Last edited by nierro (2012-05-08 18:42:44)

    From later in this thread:
    Solution
    Ok, do:
    ck-list-sessions
    There were two sessions for myself.  So, the new slim is starting your exec line already with a console kit session.  This is new behavior.  It didn't before.
    So, I modified my exec line to remove "ck-launch-session" in .xinitrc to:
    exec dbus-launch --exit-with-session startxfce4
    Reverted the changes I made to the shutdown/restart policy and rebooted.  Shutdown, restart, mounting USB drive: they all work again now.
    Edit: from even later on in this thread, just:
    exec startxfce4
    As your .xinitrc exec line should be sufficient for practically anyone.  "startxfce4" does the dbus-launch itself.
    Original post here:
    Changed in my /etc/slim.conf:
    default_path        /bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
    Same issue, in Action buttons Shutdown and Restart grayed out.
    in .xinitrc, launch line:
    exec ck-launch-session startxfce4
    Launch line was:
    exec ck-launch-session dbus-launch --exit-with-session startxfce4
    But, same issue with that launch line.  Was googling and I found results saying dbus-launch is contained within startxfce4.
    Last edited by headkase (2012-05-09 02:23:48)

  • Is there a logic:match equivalent for JSTL?

    In a search page I execute a query which returns an array of objects (All objects are of the same object type and are cast to Object[]) and each object has many attributes. I tried using <logic:iterate>, but I was never successful in having it display any results. I believe this had something to do with the entire array being passed via session scope instead of just one record and me not specifying it properly with <logic:iterate>. I was able to successfully use <c:forEach> and it worked right away. I stuck with using that because of its "just works" ability in addition to using a lot of other JSTL code. However, one of the attributes that is being printed out needs to be parsed and is of the form "Yxxx". <logic:match> covers this very nicely, but when I specify it in the below code it is not able to find my variable in any scope.
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
        <logic:match parameter='${myResults}' property='pin' value='Y'>
            <c:out value="Preeti"/>
        </logic:match>
    </c:forEach>I have done several google searches, but I haven't found a JSTL equivalent for <logic:match>. If there is one could someone please tell me what it is? In addition, although <logic:match> is great I still need to print out a substring of that attribute. Could someone tell me how to do that? If this is not possible could someone please tell me if its possible to use <logic:iterate> with an array of objects like I was attempting to do initially so that I could use <logic:match> at least?
    Thanks to all of you for your time.

    Yes you can use the logic:iterate tag. I think you have to specify the type of the exposed variable though. I prefer the forEach loop.
    I think you are using the wrong attribute in the logic:match tag. You should be using the "name" attribute rather than "parameter"
    Parameter attribute refers you to a request parameter, and I pretty sure you don't want that.
    So given the collection of objects in the session attribute "result"
    This should loop through them all, and see if they start with the letter 'Y'
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
        <logic:match name='myResults' property='pin' value='Y'>
            <c:out value="Preeti"/>
        </logic:match>
    </c:forEach>As for the latter bit, are you using a JSP2 container and JSTL1.1? It would appear so seeing as you are trying to use EL expressions in the logic:match tag.
    If so, you could make use of the JSTL function library:
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
       <c:if test='${fn:startsWith(myResults.pin, "Y")}'>
          <c:out value="${fn:substring(myResults.pin, 1, -1)}"/>
        </c:if>
    </c:forEach>And I've just spotted a very cool function in there: substringAfter
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
          <c:out value='${fn:substringAfter(myResults.pin, 'Y')}'/>
    </c:forEach>Cheers,
    evnafets

  • What is equivalent of JInternalFrame in JavaFX 2.0?

    what is equivalent of JInternalFrame in JavaFX 2.0?
    Actually I want to use pure javaFX 2.0 to view report created in iReport 5.0.0.
    I have used java.swing code, and now I want to use pure javaFX 2.0.
    My code in swing is as follows
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package reports;
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.util.HashMap;
    import net.sf.jasperreports.engine.JRException;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.view.JRViewer;
    * @author TANVIR AHMED
    public class ReportsViewer extends javax.swing.JInternalFrame {
    * Creates new form MyiReportViewer
    private ReportsViewer()
    super("Report Viewer",true,true,true,true);
    initComponents();
    setBounds(10,10,600,500);
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    public ReportsViewer(String fileName)
    this(fileName,null);
    public ReportsViewer(String fileName,HashMap parameter)
    this();
    try
    /* load the required JDBC driver and create the connection
    here JDBC Type Four Driver for MySQL is used*/
    //Class.forName("com.mysql.jdbc.Driver");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "invoice", "item");
    //Connection con=DriverManager.getConnection("jdbc:mysql://localhost/inventory","root","karim");
    /*(Here the parameter file should be in .jasper extension
    i.e., the compiled report)*/
    JasperPrint print = JasperFillManager.fillReport(
    fileName, parameter, con);
    JRViewer viewer=new JRViewer(print);
    Container c=getContentPane();
    c.setLayout(new BorderLayout());
    c.add(viewer);
    catch(SQLException sqle)
    sqle.printStackTrace();
    catch(JRException jre)
    jre.printStackTrace();
    * This method is called from within the constructor to initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is always
    * regenerated by the Form Editor.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 394, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 290, Short.MAX_VALUE)
    pack();
    }// </editor-fold>
    // Variables declaration - do not modify
    // End of variables declaration
    and
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package reports;
    import java.beans.PropertyVetoException;
    * @author TANVIR AHMED
    public class MainUI extends javax.swing.JFrame {
    * Creates new form MainUI
    public MainUI() {
    super("REPORTS");
    initComponents();
    setSize(java.awt.Toolkit.getDefaultToolkit().getScreenSize());
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    jMenuItem1 = new javax.swing.JMenuItem();
    desktopPane = new javax.swing.JDesktopPane();
    salesTaxInv = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();
    supplyRegister = new javax.swing.JButton();
    PartyLedger = new javax.swing.JButton();
    menuBar = new javax.swing.JMenuBar();
    jMenuItem1.setText("jMenuItem1");
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    desktopPane.setBackground(new java.awt.Color(255, 204, 0));
    desktopPane.setBorder(new javax.swing.border.MatteBorder(null));
    desktopPane.setForeground(new java.awt.Color(255, 0, 102));
    desktopPane.setAutoscrolls(true);
    desktopPane.setFont(new java.awt.Font("Bookman Old Style", 0, 14)); // NOI18N
    desktopPane.setPreferredSize(new java.awt.Dimension(1024, 768));
    salesTaxInv.setBackground(new java.awt.Color(255, 255, 255));
    salesTaxInv.setFont(new java.awt.Font("Bookman Old Style", 1, 18)); // NOI18N
    salesTaxInv.setForeground(new java.awt.Color(204, 0, 0));
    salesTaxInv.setText("Sales Tax Invoice");
    salesTaxInv.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    salesTaxInvActionPerformed(evt);
    salesTaxInv.setBounds(20, 53, 200, 31);
    desktopPane.add(salesTaxInv, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLabel1.setFont(new java.awt.Font("Bookman Old Style", 0, 24)); // NOI18N
    jLabel1.setForeground(new java.awt.Color(50, 72, 255));
    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel1.setText("Invoice System Reports");
    jLabel1.setBounds(0, -1, 1024, 50);
    desktopPane.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    supplyRegister.setFont(new java.awt.Font("Bookman Old Style", 1, 18)); // NOI18N
    supplyRegister.setForeground(new java.awt.Color(204, 0, 0));
    supplyRegister.setText("Supply Register");
    supplyRegister.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    supplyRegisterActionPerformed(evt);
    supplyRegister.setBounds(20, 100, 200, 30);
    desktopPane.add(supplyRegister, javax.swing.JLayeredPane.DEFAULT_LAYER);
    PartyLedger.setFont(new java.awt.Font("Bookman Old Style", 1, 18)); // NOI18N
    PartyLedger.setForeground(new java.awt.Color(204, 0, 0));
    PartyLedger.setText("Party Ledger");
    PartyLedger.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    PartyLedgerActionPerformed(evt);
    PartyLedger.setBounds(20, 140, 200, 30);
    desktopPane.add(PartyLedger, javax.swing.JLayeredPane.DEFAULT_LAYER);
    setJMenuBar(menuBar);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(desktopPane, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    pack();
    }// </editor-fold>
    private void salesTaxInvActionPerformed(java.awt.event.ActionEvent evt) {                                           
    try
    ReportsViewer myiReportViewer = new ReportsViewer("reports/INV.jasper");
    myiReportViewer.setBounds(0, 0, desktopPane.getWidth(), desktopPane.getHeight());
    myiReportViewer.setVisible(true);
    desktopPane.add(myiReportViewer);
    myiReportViewer.setSelected(true);
    catch (PropertyVetoException pve)
    pve.printStackTrace();
    private void supplyRegisterActionPerformed(java.awt.event.ActionEvent evt) {                                              
    try
    ReportsViewer myiReportViewer = new ReportsViewer("reports/supplyRegister.jasper");
    myiReportViewer.setBounds(0, 0, desktopPane.getWidth(), desktopPane.getHeight());
    myiReportViewer.setVisible(true);
    desktopPane.add(myiReportViewer);
    myiReportViewer.setSelected(true);
    catch (PropertyVetoException pve)
    pve.printStackTrace();
    private void PartyLedgerActionPerformed(java.awt.event.ActionEvent evt) {                                           
    try
    ReportsViewer myiReportViewer = new ReportsViewer("reports/CustomerLedger.jasper");
    myiReportViewer.setBounds(0, 0, desktopPane.getWidth(), desktopPane.getHeight());
    myiReportViewer.setVisible(true);
    desktopPane.add(myiReportViewer);
    myiReportViewer.setSelected(true);
    catch (PropertyVetoException pve)
    pve.printStackTrace();
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new MainUI().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton PartyLedger;
    private javax.swing.JDesktopPane desktopPane;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JButton salesTaxInv;
    private javax.swing.JButton supplyRegister;
    // End of variables declaration
    Best Regards

    Dear Sir,
    I am using the swing code and running the jasper report with the above code.
    Realy!
    I start the thread with this code
    @FXML
    private void mainUiButtonAction(ActionEvent event) {
    try{
    new MainUI().setVisible(true);
    catch(Exception ex){                 
    }

  • Is there an equivalent statement in Java for this PL/SQL stmt?

    Hi,
    I want to know if there is an equivalent statement
    in java for this PL/SQL statement:
    IF strTok IN('COM-1','COM-2','COM-3') Then
    /* Do Something */
    End If;
    I tried using : // This is giving me errors..
    if (strTok.equals(("COM-1") || ("COM-2") || ("COM-3") ) )
    /* Do Something */
    The above Java code is giving me errors.
    Any Help to reduce the number of steps for comparison
    is appreciated.
    thanks in adv
    Sharath

    Something like
    if (strTok.equals("COM-1") ||
        strTok.equals("COM-2") ||
        strTok.equals("COM-3") )Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Create a table in SQL with datatype equivalent to LongBlob

    I have a mySQL or phpMyadmin table (nor sure) (with longblob fields) that I want to convert to SQL Server.
    Here is a link to a Rar with two files, the 'ORIGINAL CODE.sql' is the original code sample and the 'NEW_SQL_CODE.sql' is the code I am writing in SQL to create a database.
    Click to download the two files.
    I fail to make the insert in the 'NEW_SQL_CODE.sql', it says (translated from spanish) something like "The binary data will be truncated"
    INSERT INTO inmuebles_fotos (ci_inm, pos, foto, mini, comentario, inet, impr_cartel, impr_visita) VALUES
    (6, 0, 0xffd8ffe000104a46494600010100000100010...etc...
    I don’t know how if I have defined the wrong data type (image) equivalent to the MySQL LongBlob. All I want to do is to make that insert in SQL and save that image as jpg if possible. I don't know if it's not posible in SQL and can only
    be done in MySQL.
    Thanks for any help.

    The original table is not mine; I am just trying to save the images as .jpg in hard drive.
    Here is the original table I have that has 500Mb in pictures, in the sample there is only 1 picture:
    CREATE TABLE IF NOT EXISTS `inmuebles_fotos` (
    `ci_inm` int(10) unsigned DEFAULT NULL,
    `pos` smallint(6) DEFAULT NULL,
    `foto` longblob,
    `mini` longblob,
    `comentario` varchar(100) DEFAULT NULL,
    `inet` tinyint(3) unsigned DEFAULT '0',
    `impr_cartel` smallint(6) DEFAULT '0',
    `impr_visita` smallint(6) DEFAULT '0'
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    And here is the equivalent table in SQL that I am trying to create to import al registers so I can save the pictures from SQL Server that is what we use here.
    CREATE TABLE [dbo].[inmuebles_fotos2](
    [ci_inm] [int] NULL,
    [pos] [int] NULL,
    [foto] [image] NULL,
    [mini] [image] NULL,
    [comentario] [varchar](1) NULL,
    [inet] [int] NULL,
    [impr_cartel] [int] NULL,
    [impr_visita] [int] NULL
    Sorry for the trouble, I am trying everything I get my hands on until I get to save those images in “0x1234567890ABCDE…….” Format.
    I'll try anything you sugest me but I have only use SQL Server so that's why I'm trying this road first.
    Thanks for your help.

  • Best app to give equivalent of microsoft office

    I use a PC with office and need to find the equivalent to use on MacBook which is the best please?

    How about?
    http://www.microsoft.com/MAC

Maybe you are looking for