Results 1 to 4 of 4

Thread: How to autostart programs in virtual console?

Threaded View

  1. #1
    Join Date
    Mar 2013
    Beans
    13

    How to autostart programs in virtual console?

    Hello world!

    I've got a little problem. I need 2 programs to start automatically in virtual consoles after I start the system.
    Till now all my attepts have failed. I'll try to describe the process in few words and maybe someone could help me do it.


    My enviroment builds like this: (I use compilation with kernel 3.2)
    I do as follow:
    Ubuntu server default installation with server ssh and next:
    Code:
    aptitude install xserver-xorg xserver-xorg-core  xserver-xorg-input-evdev xserver-xorg-video-ati lightdm unity-greeter  openbox roxterm
    echo 'export DISPLAY=:0' >> ~/.bashrc
    aptitude install build-essential dkms unzip
    aptitude build-dep fglrx
    I add auto-login to /etc/lightdm/lightdm.conf

    Code:
    [SeatDefaults]
    greeter-session=unity-greeter
    user-session=openbox
    autologin-user=my_username
    autologin-user-timeout=0
    and
    Code:
    usermod -a -G nopasswdlogin my_username
    next I install Catalyst from AMD site
    Code:
    wget ADM_drivers
    unzip AMD_drivers
    sh AMD_drivers
    amdconfig --adapter=all --initial -f
    reboot
    next openssh server configuration and everything works fine.

    Programs I use work in terminal and now I do this:


    After system starts I run roxterm and with


    Code:
    screen -S name


    I create virtual console and run first of my programs, next "CTRL+A+D". After that I create second session and run second program, "CTRL+A+D" and that"s it.
    Thanks to that I can login through ssh and use screen to check on my programs. But I need those 2 programs run automatically in virtual consoles after I start the system to make my server headness


    Please let me know if you have any solution. Your help will be very apprecieated.
    Last edited by navoye; April 5th, 2013 at 03:01 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •