How to start dhclient with systemd at startup? [SOLVED]

I have eth0 connected to DHCP server and want to use dhclient instead of dhcpcd. How can I start dhclient with systemd? Is there something similar to
systemctl enable dhcpcd@eth0
Last edited by mpelikan (2012-12-18 13:43:28)

dhcpcd comes in package with completed systemd unit (/usr/lib/systemd/system/dhcpcd.service and /usr/lib/systemd/system/[email protected]) by package developer, but dhclient doesn't.
mpelikan, you should write your own systemd unit for dhclient for yourself using
1) dhcpcd units as example
2) wiki page https://wiki.archlinux.org/index.php/Sy … vice_files
3) man page for dhclient to get the right options
Also I'm sure I saw somewhere an example of dhclient unit but I can't find it now. Anyway, it was not working out-of-box in Arch.
I've done this previously but then I've realized disadvantages of dhclient (so I've removed it).
Firstly, I didn't like how it's working in daemon-mode after some testing.
Secondly, it depends on deprecated net-tools.
You should try dhcpcd. If it doesn't work, you can make it work by editing configuration files / kernel options (like switching off IPv6 if you think you have an issues with it) or adding some parameters.

Similar Messages

  • HOW TO START OFF WITH J2ME

    Hi ,
    i'am a beginner.i'am in the initial stages of my carrer in mobile industry.
    i'am well versed in java.
    i want to learn J2ME.i'am unable to know the starting point.
    Anyone, please guide me how to start off with learning J2ME.
    desperately waiting for a reply..
    Thanx,

    this forum is for web services, but not j2me. several suggestions:
    1. go to j2me forum
    2. download a j2me wireless toolkit
    3. read articles about j2me on this site

  • How to start working with iReport?

    Hi All,
    I'm just decide to use iReport for create report on Web but I don't know
    How to start working with iReport , What program I should to install , How
    to config any system files and set property .
    Please advice me for work with IReport.
    Thank you

    Hi,
    best hint to give is to start interviewing the product owner
    http://ireport.sourceforge.net/cap3.html
    Note that this is an open source project. Once you know which libraries you need, create a project in JDeveloper and double click on the project node. There is a Library node that allows you to import libraries to be used in your code.
    Under Tools --> Manage Libraries you can configure JSP tag libraries if required
    Frank

  • How to start weblogic with jdk1.4.0

    anybody can tell how to start weblogic with jdk1.4.0 correctly?

    "jacky" <[email protected]> wrote in message news:<[email protected]>...
    anybody can tell how to start weblogic with jdk1.4.0 correctly?Take a look at:
    http://www.genuitec.com/products/JDK14_WLS61.pdf

  • How to start workin with WebLogic 11g

    Hi!.
    can anyone out there guide me with how to start working with Weblogic..
    i have made a jsp page but cant deploy it.. actually i know how to on Weblogic 8 but not on this version of the S/W...
    Please give a detailed guiding about where to paste the jsp , servelets ant other pages in my folder because i cant find out where i have to paste the files to deploy them... and i cant find the weblogic builder...
    Please..

    Developing and deploying of web applications/ Enterprise applications remains the same as in wls 81.
    Please refer the following doc for deployment : http://download.oracle.com/docs/cd/E12839_01/web.1111/e13702/understanding.htm#i1051084
    For developing web application pls refer : http://download.oracle.com/docs/cd/E12839_01/web.1111/e13712/basics.htm#i153628
    Hope this helps.

  • How to run a command automaticly on starting up with systemd

    Hi,
    I'm using a laptop with two video card, an ATI 3400 and a intel integrated video card.
    Several months ago, I use rc.local to disable the ATI 3400 with the command below:
    mount -t debugfs debugfs /sys/kernel/debug
    echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
    What should I do to enable these commands with systemd?
    Thank You!

    brain0 wrote:
    yumtaoist wrote:
    nomorewindows wrote:Make a .service file and make sure that systemd calls it.
    I have write a video.service file like below
    [Unit]
    Description=Disable the Discrete Graphics
    Requires=sys-kernel-debug.mount
    After=sys-kernel-debug.mount
    [Service]
    Type=oneshot
    ExecStart=echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
    And the result of "systemctl is-enabled video.service" is static
    However, this just does not work. I'm not familiar with systemd.
    Buy the way, thank you!
    First of all, put this into /etc/systemd/system/. Then add an install section to this unit:
    [Install]
    WantedBy=multi-user.target
    or
    [Install]
    WantedBy=basic.target
    (No idea which one is better). Then run:
    # systemctl daemon-reload
    # systemctl enable video.service
    Last edited by brain0 (2012-10-27 20:09:25)

  • [SOLVED] How to start JACK with KDE 4? (and which JACK should I use?)

    Hi again
    I'm using KDE 4, and I've just installed JACK again, and since I can't find any decent documentation on this, I'm having a bit of a problem.
    Currently I have jack from [extra] installed, rather than jack2. When I try starting jack as the ArchWiki suggests, i.e. by typing "jackd -d alsa", I get the following error:
    $ jackd -d alsa
    jackd 0.120.1
    Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
    jackd comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    could not open driver .so '/usr/lib/jack/jack_firewire.so': libffado.so.2: cannot open shared object file: No such file or directory
    JACK compiled with System V SHM support.
    loading driver ..
    creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
    control device hw:0
    the playback device "hw:0" is already in use. Please stop the application using it and run JACK again
    cannot load driver module alsa
    I've also tried jack2 from [community], and after starting it with "jack_control start", I get this...
    $ jack_control start
    --- start
    DBus exception: org.jackaudio.Error.Generic: Failed to start server
    So how do I start it? I'm guessing jack doesn't want to start because some other KDE application grabbed alsa before jackd (but I've been wrong before), and I don't have the slightest idea what jack2 is about with that "generic" error. If anyone would help me shed some light on this, I'd appreciate it a lot.
    Thanks in advance!
    Last edited by Wintershade (2011-03-26 19:22:08)

    @schivmeister thanks that one worked
    Yes, it was knotify4. So now this part works. I've switched to jack2 and it works flawlessly when starting it with jackd
    So this part is solved... now, would you be so kind (if you know) as to point me to some tutorials or howtos (or proper documentation, cos I can't find much of that either) on how to connect various ALSA channels with JACK?
    Basically, I want to route my PCM channel and the Mic channel into Capture 1 (or one to Capture 1 and other to Capture 2), since my Intel HDA audio card doesn't have the "Mix" or "What-U-Hear" or whatever as an available capture source. Any leads on that? (or do I have to open another thread for it?)
    TIA

  • How to start of with Oracle HCM fusion applications to gain good grasp on the technology

    I have been working in Siebel for a long time and I am currently moving to Oracle Fusion HCM application.I would like to know the best way to start up with it and I would also like to know the possible way to go about it so that having 7years of experience I can justify my knowledge in this technology and skill.Could anyone please guide me as to how to go about it.What are the things i should start from and how should i go about it,what forums to follow,what online tutorials to look at.
    Thanks and Regards

    Hi.
    There are loads of resources out there, but with so many it can be hard to know where to begin. Obviously we cover just Customization-Integration related areas not the whole stack. I don't have anything specific to your Siebel background, however hopefully these "top pick" recommendations will help you. My personal advice is to pick one topic or technical component at a time, because trying to learn everything at once quickly becomes overwhelming.
    1) Chapter 2 of my book, now a few years old, gives a Technical Overview of the stack. Get it for free here: http://www.oracle.com/technetwork/articles/managing-fusion-apps-418611.pdf
    2) Oracle Learning Library is a good resource for demos and well-crafted content on many topics. Use the search to find Fusion Apps content: https://apexapps.oracle.com/pls/apex/f?p=44785:2:0::NO:::
    3) Whilst it might seem predictable, our online help is the intended content for getting started. This was overhauled recently and the new layout really helps. Both the product docs and the help portal content is very well written by our experts. Getting Started with Oracle Fusion Applications Lifecycle Management Release 9
    4) The MyOracleSupport site has quite a few bits of content on technology component usage inside Fusion Apps. Look for the "Information Centers" for applications technology or BI for example where you'll find lost of top content listed by category.
    I am also working on some "resource roadmaps" - a tool to give people to all key resources for a topic in a quick and visual way. Keep an eye on our blog for more here.
    Kind regards
    Richard
    FA Developer Relations.

  • How to start working with BPEL[SOLVED]-but someone still can help me :)

    Hello Everyone,
    I'm Fizzz, I'm totally new to BPEL. I don't know where to start and how to start.
    Right now I'm Working with JDeveloper 11g R1. I didn't go further yet but Now i have to create some BPEL Process that can be integrated to my Web Application. There are some transaction to be Approved or Canceled from BPEL and if Transaction is Approved then i need to Update that Transaction to Peoplesoft's Database. I have 1 week to learn it. and then i need to start my work.
    But i really don't know where to start? What do i need? And how to proceed?
    Can Anybody suggest me the steps that i can follow to get Start with BPEL and done with Peoplesoft connectivity?
    I would really appreciate your help.
    Thanks,
    Fizzz...
    Edited by: Fizzz on Nov 24, 2009 5:14 PM

    Thanks user11082822 and Vivek..
    Your Oracle Doc links are really very helpful. i would definitely go through these docs to get familiar with BPEL, But i have only one week to understand this part of technology.
    So would request for any Live Example or How to's for Sample BPEL app creation and integration part of that. I would definitely read these document but i need some fast overview on these processes practically.
    Can you please suggest me such things.
    Thank you very much to both of you for your very quick and very helpful effort. :)
    Fizzz...

  • How to start working with a Development Component

    Hi Guys,
    Till now I was working with the local development of WD. I was the only one working so I created a local project and use to deploy to the J2EE Engine.
    Now we have got the full NWDI (Netweaver Dev Infrastructure).
    I want to know exactly how to start working and creating Projects now that the work is not local. I may need to use 1 DC inside another.
    A Development Component is to be created in the CMS and Checked into DTR. From the DTR I check in into my workspace. This is all i know
    Can someone tell me exact steps of how to start the work.
    Thanks for your support

    Hello,
    I believe you have already setup NWDI correctly and its running fine.
    So here is link of a step by step guide.
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/2656405aff1e24e10000000a1550b0/content.htm
    If you want to migrate your existing WD Projects to DC Projects, here is a link for "how to" do the same.
    http://help.sap.com/saphelp_nw04/helpdata/en/9e/1c200ac164cf4a942f2dacdf3359e9/frameset.htm
    If you want to create an external utility library containing some jar files which you want to use in your DC, follow this excellent blog by Valery.
    /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
    Hope this is good enough for you to start with.
    Regards,
    Shubham

  • How to start working with fresh hyperion essbase 11.1.2.2

    Hi Experts,
    I have installed and configured hyperion 11.1.2.2 with below component
    1.Essbase
    2.HFM
    3.HFR
    4.Weblogic
    5.Oracle HTTP Server
    Now I want to start working with hyperion Essbase but not getting a proper way to start from where, its totally different from 11.1.3 which I used previously,
    So please help me which services to start with sequence and how to login into Essbsae console/studio to create new database with steps
    Thanks in advance

    If you want to use the standalone clients then you will need to install them separately, all the clients are available in the clients package which can be downloaded.
    It is also possible to use the EAS web console but the port you connect will depend on how you have configured the system, for example
    EAS deployed to own managed server - http://<servername>:10080/easconsole/console.html
    EAS deployed to one managed server - http://<servername>:9000/easconsole/console.html
    or you can use the http server port 19000, 9000 depending on the http server deployed.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Getting sasc-ng to work properly with systemd service files [SOLVED]

    This thread is intended for getting the following AUR packages to work with each other with systemd service scripts:
    https://aur.archlinux.org/packages/open-sasc-ng-dkms/
    https://aur.archlinux.org/packages/open-sasc-ng/
    https://aur.archlinux.org/packages/oscam-svn/   (this is a related package as it must properly execute prior to sasc-ng)
    So my server is now on a fresh Arch install with systemd. All is well (& very fast) except I cannot get sasc-ng to function with systemd service init files. Prior to systemd the system worked fine with the rc initscripts & was very stable with the following setup:
    rc.local
    /etc/rc.d/oscam start
    sleep 15
    /etc/rc.d/sasc-ng start
    sleep 4
    /etc/rc.d/mythbackend start
    /etc/conf.d/sasc-ng.conf
    SASCNG_ARGS="-j 0:3 -j 1:4 -j 2:5" -b 16M --sid-allpid --sid-nocache --cam-budget"
    DVBLOOPBACK_ARGS="num_adapters=3"
    LOGDIR="/home/mythtv/logs/"
    CAMDIR="/etc/camdir"
    /etc/camdir/cardclient.conf
    camd35:localhost:15050:1/0000/0000:mythtv:mythtv
    I'll leave out the oscam stuff as that loads fine and doesn't appear to be a part of the problem
    I've tried this with the systemd service file that comes with the open-sasc-ng-dkms package and when it was not sucessful I tried a bunch of variants including using "Type=simple" ect. "Type=Forked" seems to be only option that actually tries to start the processes. I also "hardcoded" the service files for the 2 sasc-ng components to find a few issues with the EnvironmentFile variables. The log variable has been removed for now as this seems to cause a fatal error but the rest of the variables load fine now. I also tested spliting up the DVB loopback module from the sasc-ng binary but this also gives similar results as the following script stands now. Running them manually with systemctl start commands doesn't make a difference but that is not surprising. The service file I'm fiddling with now which I feel has the best potential become working is:
    sasc-ng.service
    [Unit]
    Description=Sasc-ng
    After=oscam.service
    [Service]
    Type=forking
    EnvironmentFile=/etc/conf.d/sasc-ng
    ExecStartPre=/sbin/modprobe dvbloopback $DVBLOOPBACK_ARGS
    TimeoutSec=2
    ExecStart=/usr/sbin/sasc-ng -D $SASCNG_ARGS --cam-dir=$CAMDIR
    TimeoutSec=4
    [Install]
    WantedBy=multi-user.target
    Mythbackend always runs fine (even without DTV via sasc-ng) with the following mythbackend.service:
    [Unit]
    Description=MythTV_backend
    After=sasc-ng.service
    [Service]
    Type=simple
    Environment=MYTHCONFDIR=/etc/conf.d/mythbackend
    Environment=HOME=/usr/share/mythtv
    User=mythtv
    ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv
    [Install]
    WantedBy=multi-user.target
    oscam.service taken mostly from AUR package also seems fine. I added the TimeoutSec=15 to give time for oscam to load the SC and client protocol before moving on or else sasc-ng fails
    Unit]
    Description=An Open Source Conditional Access Module software
    After=network.target
    [Service]
    Type=forking
    EnvironmentFile=/etc/conf.d/oscam
    ExecStart=/usr/bin/oscam $OSCAM_ARGS
    TimeoutSec=15
    [Install]
    WantedBy=multi-user.target
    Below is the output of the systemctl status commands. Despite the noise in the sasc-ng binary status, it is the loopback module that is " inactive (dead)" and there are no virtual DVB devices being created:
    [mythtv@server ~]$ sudo systemctl status oscam.service
    oscam.service - An Open Source Conditional Access Module software
    Loaded: loaded (/usr/lib/systemd/system/oscam.service; enabled)
    Active: active (running) since Tue, 2012-11-27 21:10:17 CET; 1min 7s ago
    Process: 338 ExecStart=/usr/bin/oscam $OSCAM_ARGS (code=exited, status=0/SUCCESS)
    Main PID: 377 (oscam)
    CGroup: name=systemd:/system/oscam.service
    ├ 377 /usr/bin/oscam -b -c /etc/oscam
    └ 378 /usr/bin/oscam -b -c /etc/oscam
    Nov 27 21:10:17 server systemd[1]: Started An Open Source Conditional Acces...e.
    [mythtv@server ~]$ sudo systemctl status loopback.service
    loopback.service - Sasc-ng DVB Loopback Module
    Loaded: loaded (/etc/systemd/system/loopback.service; enabled)
    Active: inactive (dead) since Tue, 2012-11-27 21:10:28 CET; 1min 27s ago
    Process: 907 ExecStart=/sbin/modprobe dvbloopback num_adapters=3 (code=exited, status=0/SUCCESS)
    CGroup: name=systemd:/system/loopback.service
    Nov 27 21:10:28 server systemd[1]: Started Sasc-ng DVB Loopback Module.
    [mythtv@server ~]$ sudo systemctl status sasc-ng.service
    sasc-ng.service - Sasc-ng
    Loaded: loaded (/etc/systemd/system/sasc-ng.service; enabled)
    Active: failed (Result: exit-code) since Tue, 2012-11-27 21:10:47 CET; 1min 45s ago
    Process: 913 ExecStart=/usr/sbin/sasc-ng -D -j 0:3 -j 1:4 -j 2:5" -b 16M --sid-allpid --sid-nocache --cam-budget --cam-dir=/etc/camdir -l /home/mythtv/logs/sasc-ng.log (code=exited, status=0/SUCCESS)
    Main PID: 921 (code=exited, status=255)
    CGroup: name=systemd:/system/sasc-ng.service
    Nov 27 21:10:39 server sasc-ng[921]: [921] [general.error] failed open /etc...ry
    Nov 27 21:10:40 server sasc-ng[921]: [921] [general.error] failed open /etc...ry
    Nov 27 21:10:40 server sasc-ng[921]: [921] [general.error] failed open /etc...ry
    Nov 27 21:10:40 server sasc-ng[921]: [921] [general.info] loading cardclien...nf
    Nov 27 21:10:42 server sasc-ng[921]: [1062] Netwatcher thread started (pid=...6)
    Nov 27 21:10:42 server sasc-ng[921]: [921] [general.error] no keys loaded f...m!
    Nov 27 21:10:46 server sasc-ng[921]: [1098] SC housekeeper thread started (...2)
    Nov 27 21:10:47 server sasc-ng[921]: [1062] Netwatcher thread ended (pid=92...6)
    Nov 27 21:10:47 server systemd[1]: sasc-ng.service: main process exited, co.../a
    Nov 27 21:10:47 server systemd[1]: Unit sasc-ng.service entered failed state
    [mythtv@server ~]$ sudo systemctl status sasc-ng.service
    sasc-ng.service - Sasc-ng
    Loaded: loaded (/etc/systemd/system/sasc-ng.service; enabled)
    Active: failed (Result: exit-code) since Tue, 2012-11-27 21:10:47 CET; 2min 9s ago
    Process: 913 ExecStart=/usr/sbin/sasc-ng -D -j 0:3 -j 1:4 -j 2:5" -b 16M --sid-allpid --sid-nocache --cam-budget --cam-dir=/etc/camdir -l /home/mythtv/logs/sasc-ng.log (code=exited, status=0/SUCCESS)
    Main PID: 921 (code=exited, status=255)
    CGroup: name=systemd:/system/sasc-ng.service
    Nov 27 21:10:39 server sasc-ng[921]: [921] [general.error] failed open /etc/camdir/smartcard.conf: No such file or directory
    Nov 27 21:10:40 server sasc-ng[921]: [921] [general.error] failed open /etc/camdir/cardslot.conf: No such file or directory
    Nov 27 21:10:40 server sasc-ng[921]: [921] [general.error] failed open /etc/camdir/SoftCam.Key: No such file or directory
    Nov 27 21:10:40 server sasc-ng[921]: [921] [general.info] loading cardclient config from /etc/camdir/cardclient.conf
    Nov 27 21:10:42 server sasc-ng[921]: [1062] Netwatcher thread started (pid=921, tid=140074379712256)
    Nov 27 21:10:42 server sasc-ng[921]: [921] [general.error] no keys loaded for softcam!
    Nov 27 21:10:46 server sasc-ng[921]: [1098] SC housekeeper thread started (pid=921, tid=140074371319552)
    Nov 27 21:10:47 server sasc-ng[921]: [1062] Netwatcher thread ended (pid=921, tid=140074379712256)
    Nov 27 21:10:47 server systemd[1]: sasc-ng.service: main process exited, code=exited, status=255/n/a
    Nov 27 21:10:47 server systemd[1]: Unit sasc-ng.service entered failed state
    [mythtv@server ~]$
    Any ideas?
    Last edited by wdirksen (2012-12-10 19:54:43)

    After some head scratching it seems to be all good now. Considering there have been no replies to this I've come to wonder if I might be the only one with this issue. I could get it working somewhat using service files but never ideal, ex. sasc-ng only using a few of the entitlements from oscam because it started too quick etc. Anyway this might help a few and I'm hoping the linux savvy who find what I'm writing here painfully newbie like or flawed will reply and educate me a bit if what's provided here needs some sharpening up:
    1) Systemd was confusing the sasc-ng binary shorthand arguments with Linux init arguments and a few were misinterpreted if they were not nested into the environment specifiers. So the -l (log) was causing problems and -b (buffer) wasn't loading. To be safe I'm using only the sasc-ng longhand specifiers from now on (two "--" and more verbose) so that they can never be confused even if safely nested in an environment parameter. That means that /etc/conf.d/sasc-ng will also need to be changed to reflect this. I also decided to simplify the LOGFILE parameter to include the whole argument syntax.
    2) Oscam.service needs to be initiated with oneshot and RemainAfterExit=yes to make sure the delay (15 seconds in my config) gets counted out before sasc-ng initiates.
    [EDIT 12/12/2012: Initially I had a second TimeoutSec=2 after ExecStart in sasc-ng.service but this had no function. Turns out that it almost always does work without this delay but not always with my setup. Adding TimeoutSec=2 to mythbackend.service prior to ExecStart command does function and makes things init more consistant]
    sasc-ng.service
    [Unit]
    Description=Sasc-ng
    After=oscam.service
    [Service]
    Type=simple
    EnvironmentFile=/etc/conf.d/sasc-ng
    ExecStartPre=/sbin/modprobe dvbloopback $DVBLOOPBACK_ARGS
    TimeoutSec=2
    ExecStart=/usr/sbin/sasc-ng $SASCNG_ARGS --cam-dir $CAMDIR --log $LOGFILE
    [Install]
    WantedBy=multi-user.target
    /etc/conf.d/sasc-ng
    SASCNG_ARGS="--join 0:3 --join 1:4 --join 2:5 --buffer 16M --sid-allpid --sid-nocache --cam-budget"
    DVBLOOPBACK_ARGS="num_adapters=3"
    LOGFILE="/home/mythtv/logs/sasc-ng.log"
    CAMDIR="/etc/camdir"
    oscam.service
    [Unit]
    Description=An Open Source Conditional Access Module software
    After=network.target
    [Service]
    Type=oneshot
    EnvironmentFile=/etc/conf.d/oscam
    ExecStart=/usr/bin/oscam $OSCAM_ARGS
    TimeoutSec=15
    RemainAfterExit=yes
    [Install]
    WantedBy=multi-user.target
    mythbackend.service
    [Unit]
    Description=MythTV_backend
    After=sasc-ng.service
    [Service]
    Type=simple
    TimeoutSec=2
    Environment=MYTHCONFDIR=/etc/conf.d/mythbackend
    Environment=HOME=/usr/share/mythtv
    User=mythtv
    ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv
    [Install]
    WantedBy=multi-user.target
    I will make the related changes to the open-sasc-ng AUR package which I currently maintain
    Last edited by wdirksen (2012-12-23 14:40:43)

  • How can I start Jack with systemd?

    Hello everyone,
    I switched to systemd and removed initscripts and sysvinit a while ago. I am using my computers for audio production, and I need both jack and pulseaudio.
    I followed the directions in the wiki for JACK: A GUI-Based Setup and Pulseaudio will run through Jack -- as long as Jack starts first. Qjackctl is autostarted with KDE, but Pulseaudio starts up first. Therefore, once Jack starts, it disconnects Pulseaudio so only Jack programs output audio. The wiki recommends adding "sudo -u uname jack_start" to /etc/rc.local. However, I have already switched away from initscripts.
    I tried to write a service file to start Jack:
    [Unit]
    Description=JACK
    [Service]
    ExecStart=/usr/bin/jack_control start
    [Install]
    WantedBy=multi-user.target
    But that clearly didn't work:
    Nov 23 12:01:58 silverstone jack_control[280]: Traceback (most recent call last):
    Nov 23 12:01:58 silverstone jack_control[280]: File "/usr/bin/jack_control", line 336, in <module>
    Nov 23 12:01:58 silverstone jack_control[280]: main()
    Nov 23 12:01:58 silverstone jack_control[280]: File "/usr/bin/jack_control", line 132, in main
    Nov 23 12:01:58 silverstone jack_control[280]: bus = dbus.SessionBus()
    Nov 23 12:01:58 silverstone jack_control[280]: File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 211, in __new__
    Nov 23 12:01:58 silverstone jack_control[280]: mainloop=mainloop)
    Nov 23 12:01:58 silverstone jack_control[280]: File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 100, in __new__
    Nov 23 12:01:58 silverstone jack_control[280]: bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
    Nov 23 12:01:58 silverstone jack_control[280]: File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 122, in __new__
    Nov 23 12:01:58 silverstone jack_control[280]: bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
    Nov 23 12:01:58 silverstone jack_control[280]: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
    Nov 23 12:01:58 silverstone systemd[1]: jack.service: main process exited, code=exited, status=1/FAILURE
    Nov 23 12:01:58 silverstone systemd[1]: Unit jack.service entered failed state
    Nov 23 12:02:00 silverstone pulseaudio[337]: [pulseaudio] module-jack-sink.c: JACK error >Cannot connect to server socket err = No such file or directory<
    Nov 23 12:02:00 silverstone pulseaudio[337]: [pulseaudio] module-jack-sink.c: JACK error >Cannot connect to server socket<
    Nov 23 12:02:01 silverstone pulseaudio[337]: [pulseaudio] module-jack-sink.c: JACK error >Cannot use real-time scheduling (RR/5)(1: Operation not permitted)<
    Nov 23 12:02:01 silverstone pulseaudio[337]: [pulseaudio] module-jack-sink.c: JACK error >JackClient::AcquireSelfRealTime error<
    Nov 23 12:02:01 silverstone pulseaudio[337]: [pulseaudio] module-jack-source.c: JACK error >Cannot use real-time scheduling (RR/5)(1: Operation not permitted)<
    Nov 23 12:02:01 silverstone pulseaudio[337]: [pulseaudio] module-jack-source.c: JACK error >JackClient::AcquireSelfRealTime error<
    Nov 23 12:02:01 silverstone pulseaudio[337]: [pulseaudio] main.c: Source jack_in does not exist.
    Can anyone help me write a service file to start Jack?
    Thanks,
    Nicholas

    Thanks for the hint tomk! From what I can understand systemd was starting Jack as root, but since Jack is pretty much a single-user program, it needs to be started by the user intending to use it. So it was throwing errors because I have no display set for root (I don't even know how to do that).
    This explains why the wiki used sudo to start Jack. So I changed the service file to:
    [Unit]
    Description=JACK
    [Service]
    ExecStart=/usr/bin/sudo -u lion /usr/bin/jack_control start
    [Install]
    WantedBy=multi-user.target
    lion is my username. There is no jack_start, I have to use jack_control start.
    And it gives me:
    Nov 23 22:21:35 silverstone sudo[289]: root : TTY=unknown ; PWD=/ ; USER=lion ; COMMAND=/usr/bin/jack_control start
    Nov 23 22:21:36 silverstone sudo[289]: File "/usr/bin/jack_control", line 336, in <module>
    Nov 23 22:21:36 silverstone sudo[289]: File "/usr/bin/jack_control", line 132, in main
    Nov 23 22:21:36 silverstone systemd[1]: jack.service: main process exited, code=exited, status=1/FAILURE
    Nov 23 22:21:36 silverstone systemd[1]: Unit jack.service entered failed state
    Nov 23 22:21:38 silverstone pulseaudio[353]: [pulseaudio] module-jack-sink.c: JACK error >Cannot connect to server socket err = No such file or directory<
    Nov 23 22:21:38 silverstone pulseaudio[353]: [pulseaudio] module-jack-sink.c: JACK error >Cannot connect to server socket<
    Nov 23 22:21:39 silverstone pulseaudio[353]: [pulseaudio] module-jack-sink.c: JACK error >Cannot use real-time scheduling (RR/5)(1: Operation not permitted)<
    Nov 23 22:21:39 silverstone pulseaudio[353]: [pulseaudio] module-jack-sink.c: JACK error >JackClient::AcquireSelfRealTime error<
    Nov 23 22:21:39 silverstone pulseaudio[353]: [pulseaudio] module-jack-source.c: JACK error >Cannot use real-time scheduling (RR/5)(1: Operation not permitted)<
    Nov 23 22:21:39 silverstone pulseaudio[353]: [pulseaudio] module-jack-source.c: JACK error >JackClient::AcquireSelfRealTime error<
    Nov 23 22:21:39 silverstone pulseaudio[353]: [pulseaudio] main.c: Source jack_in does not exist.
    However, the audio setup seems to be working fine. The only other idea I have is that Jack is becoming a dbus socket and makes systemd think it failed. But Pulseaudio is also claiming that it can't connect to jack., so I don't know whether it's working or not.
    I saw a way to set up a .service file for dbus sockets but it required the dbus name of the program, which I don't know how to find.

  • How to start weblogic 8.1 at startup in Linux?

    hello,
    i am having weblogic 8.1 for Linux.
    Our client wants that this server(weblogic) should start when machine is bootup
    so no need for manually starting .
    please tell me detailedway of how to do this and all commands in detail as i am
    novice to Linux
    waiting for your reply.
    Thanks.
    sejal

    You can do that without going in the BIOS(UEFI).  At the Start screen, type System Settings and hit Enter.  There is a Boot Options tab there where you can make your boot choice. However, for when you do need to get in the BIOS in Windows 8.x, Shutdown the computer while holding down the Shift key.  Then, on Startup, hold down or rapidly tap F2 while hitting the Power  button.
    Yes, you do have a Recovery partition on your HDD and you were advised to make recovery media when first using your machine for even further protection in the future. It's up to you whether you wish to make even further images.  I do and I use Macrium also.
    You need to spend some time with your User's Guide particularly starting on page 46 "Recovery of The Internal Storage Drive".
    C.B.
    Toshiba Sat. C75D-B7260 Win 8.1 64 Bit--Toshiba Sat. L775D-S7132 Win 7 HP SP1 64 Bit and Win 10 PRO Technical Preview--Toshiba Sat. L305-S5921 Win Vista SP2 32 Bit

  • How to replace Consolekit with systemd-loginctl

    Is systemd's new multiseat ready to replace consolekit?
    And if, how can I achieve that?
    My Background:
    - I use systemd as my init system
    - login into a getty
    - which create a new X session with startx through a login script
    I have had a hard time before I had the right setup to supervise everything with *ck-launch-session* and  *dbus-launch* (order matters).
    And sometimes without a reason, something breaks and I'm not allowed to mount USB drives or shutdown as a user without a reboot.
    Last edited by Mic92 (2012-06-01 13:36:59)

    I do have a session:
    ┌─[jente @ lappy ~] 21:48:14
    └─■ loginctl
    SESSION UID USER SEAT
    1 1000 jente seat0
    1 sessions listed.
    I start Udiskie through .xinitrc, like so:
    if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    eval `dbus-launch --sh-syntax --exit-with-session`
    fi
    exec bash -c "udiskie & $HOME/.bin/dwm_start"
    With .bin/dwm_start:
    #!/bin/bash
    while true; do
    dwm >/dev/null 2>&1
    done
    EDIT: Here's udiskie's output when I plug in my external HD:
    attempting to mount device /org/freedesktop/UDisks/devices/sdb2 (ext4:[])
    failed to mount device /org/freedesktop/UDisks/devices/sdb2: org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized
    attempting to mount device /org/freedesktop/UDisks/devices/sdb1 (ntfs:[])
    failed to mount device /org/freedesktop/UDisks/devices/sdb1: org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized
    EDIT2:
    Changing my .xinitrc to the following didn't help either:
    udiskie &
    exec $HOME/.bin/dwm_start
    Also, I found out I have to enter my root password to shutdown/reboot, whereas I didn't have to before.
    Last edited by Unia (2012-09-05 19:55:23)

Maybe you are looking for