I am trying to autostart a music player when my Lubuntu boots but I can't seem to get it to work. I am fairly new to Linux systems and have searched the internet for hours but I am out of ideas. This is a .desktop file I made:  [Desktop Entry] Name=Script Exec=/home/t/script.sh Icon=home/t/script.sh Terminal=true Type=Application X-KeepTerminal=true StartupNotify=false   When I manually start it it works perfectly. I've added this file in:   /.config/autostart /etc/xdg/autostart /usr/share/applications   At: /.config/lxsession/Lubuntu I added the line  @/home/t/dtest.desktop   I also added the directory to rc.local
2027
How can I make an application automatically start when I have logged in?
74458
I have an Acer Aspire One netbook with an Intel Atom CPU and 1GB of RAM. I've been using Ubuntu and a few other distros on it with no problem for two years now. I have used both Ubuntu/Lubuntu/Xubuntu 14.04, 14.10, 15.04 and 15.10 flawlessly, with casual distro changes (Arch Linux, openSUSE, Linux Mint, elementaryOS, Debian). No problems at all. But today I decided to move back to Xubuntu, so I grabbed the &quot;mini&quot; installation ISO from ubuntu.com, wiped out the Debian Jessie partition and installed the system there. After the installation was completed, I installed the &quot;xubuntu-core&quot; metapackage and rebooted. But the system got to a &quot;Started Update UTMP about System Runlevel Changes.&quot; message and sits there, with a blinking cursor. I could access other TTYs by pressing Ctrl+Alt+Fx and even startxfce4 (as root), but that issue was really annoying me. So I downloaded a Lubuntu 16.04 ISO from lubuntu.net and went to install it. As I didn't have a DVD or USB drive available, I put it in a backup partition and booted the Lubuntu installation media with GRUB2, using set root=(hd0,msdos4) loopback loop /lubuntu-16.04-desktop-i386.iso linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/lubuntu-16.04-desktop-i386.iso config noprompt noeject initrd (loop)/casper/initrd.lz boot  But it also got stuck in the exact same message. The difference is that now I can't change TTY, but I think it's because it's a live media. Some people suggested it may be a graphics driver problem, but I'm not sure. I also saw a similar problem with some Mageia folks. Can someone help me?
47865
I'm trying to simulate a media key press using a custom shortcut.  So far, I've been able to achieve the simulation I need using the command:  xdotool key XF86AudioPlay   It works perfectly, it pauses or starts the music player every time it is run.  The problem comes when trying to run it as a shortcut.  First I tried to run an alias with a custom shortcut, but it did not work.  As explained on :     The commands run by keyboard bindings are not parsed via a shell. Your best bet is to create a directory bin in your homedir.   Next I created the suggested script and named it simplay:  #!/bin/sh xdotool key XF86AudioPlay   It is located inside a bin folder which is part of the PATH, this works fine and can be run from any location.  When trying to create the Custom Shortcut, I was unable to get it to execute, the configuration is the following:  Name: test Command: simplay  Shortcut: Ctrl+Alt+R   After searching a bit more I found another way to execute the shortcut:  gnome-terminal -e simplay   I tried it on a terminal and noticed that when executing it it would rapidly open a new terminal window, execute the child process, pausing the music and immediately close the window.  I changed the command on the shortcut and when hitting it I noticed the same behavior opening a terminal and immediately being closed but this time the child process did not pause the music, which makes me think that the script has been called on all my previous attempts but it is somehow not being able to execute.  How can I solve this problem according to your knowledge?
20404
At the risk of posting a duplicate question: How can I run a local script (as the current user) when I log out? I read (and tried) among others:   (Marton's version), which did perfectly nothing, used on a simple script creating a file, absolute paths to the script (being executable) and the file. , which must be outdated; it made me remove the file from command line to be able to use my system again. I also looked into , without succes.  I believe I must be doing something wrong here, but cannot find out what is my blind spot. Context Looking for an elegant solution (workaround) to , presumably the result of a bug, I made a script that, depending on the argument, either takes a snapshot of the current desktop icon arrangement, or arranges the icons, according to the last snapshot. The script works fine, but is really no candidate to run as a background script. The script therefore should run on logout to get the arrangement, obviously run by the current user.
35159
I have found a guide for that but doesn't sure if it will work or it is safe to use. The guide:  I am asking if is these introductions safe and will work? If not, is there any other solutions for that? I am using Ubuntu 20.04 LTS Thank you.
108787
I recently installed Xubuntu 11.10 and am completely updated. Software sources used include proposed as well as backports (in case that means anything).   My issue is that the Ubuntu software center autostarts on login. I've already checked my startup apps in 'session and startup' through the settings manager and it isn't set there. Is this just a 'deal with it' situation like Unity in Ubuntu? Or is there some glaringly obvious setting that I'm missing? Been considering installing 10.04 and just upgrading features a la carte to avoid 11.10 bugs. Any ideas?  Oh and there is no check in the save session box. USC is closed when I shut down anyway.
102689
Where is my Ubuntu desktop? Its booting and going always default to terminal screen, if i press Ctrl+Alt+F7 still in terminal Ctrl+Alt+F1 still in terminal.    No GUI, how do I recover it?  EDIT:  sun@e700gent:/etc/X11$ sudo apt-get install --reinstall ubuntu-desktop [sudo] password for sun:  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer required:   libcdio-paranoia1 packagekit-backend-aptcc gdebi-core libxrandr-ltsq2 linux-headers-3.5.0-23-generic linux-headers-3.5.0-23 libcdio-cdda1 libllvm3.1 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 209 not upgraded. Need to get 0 B/4,016 B of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 230006 files and directories currently installed.) Preparing to replace ubuntu-desktop 1.267.1 (using .../ubuntu-desktop_1.267.1_amd64.deb) ... Unpacking replacement ubuntu-desktop ... Setting up ubuntu-desktop (1.267.1) ...  sun@e700gent:~$ unity --reset WARNING: no DISPLAY variable set, setting it to :0  (process:2541): GConf-WARNING **: Client failed to connect to the D-BUS daemon: //bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.  WARNING: environment is incorrect: No D-BUS daemon running  Did you just try to reset in a tty? unity-panel-service: no process found compiz (core) - Fatal: Couldn't open display :0     sun@e700gent:~$ sudo startx [sudo] password for sun:    X.Org X Server 1.11.3 Release Date: 2011-12-16 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.42-37-generic x86_64 Ubuntu Current Operating System: Linux e700gent 3.5.0-36-generic #57~precise1-Ubuntu SMP Thu Jun 20 18:21:09 UTC 2013 x86_64 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.5.0-36-generic.efi.signed root=UUID=68af0547-17ed-4a85-8369-244d57223f91 ro quiet splash vt.handoff=7 Build Date: 11 April 2013  01:05:39PM xorg-server 2:1.11.4-0ubuntu10.13 (For technical support please see http://www.ubuntu.com/support)  Current version of pixman: 0.24.4     Before reporting problems, check http://wiki.x.org     to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting,     (++) from command line, (!!) notice, (II) informational,     (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jul 16 17:37:57 2013 (==) Using system config directory "/usr/share/X11/xorg.conf.d"  Fatal server error: no screens found  Please consult the The X.Org Foundation support       at http://wiki.x.org  for help.  Please also check the log file at "/var/log/Xorg.0.log" for additional information.   ddxSigGiveUp: Closing log Server terminated with error (1). Closing log file.   EDIT:  It seems like solving this problem is like rocket science, its unfixed. Instead of wasting time debugging it, i finally re-install the ubuntu.
24998
I would like to know how to write the Exec command of a .desktop file to open a new terminal and execute a shell script in it. The shell script is working and accessible by all users. When launching the script from the terminal everything works, but it doesn't when trying to launch the script from a .desktop file.  Here are some combinations I have already tried:  Exec=gnome-terminal -x sh -c 'echo hello' Exec=sh -c 'gnome-terminal echo hello' Exec=sh -c 'echo hello' Exec=echo hello   The .desktop terminal option is set to true.
82009
I'm using 10.10 and I need to run a script in order to get a windows-like international keyboard layout - basically, it changes how dead keys work.  (Original script from this page  )  Since I can't seem to manage to get it going from boot, I have to run a custom script to launch any application.    The script:  export GTK_IM_MODULE=xim  setxkbmap us intl   xmodmap -e 'keycode 48 = dead_acute dead_diaeresis dead_acute dead_diaeresis acute diaeresis'  application_name   So if I put abiword in the application_name, it runs abiword respecting the keyboard script.    Ideally, the original script would start at boot and then any applications I use would function with it - just like what happens if I run it first in Terminal (without the app_name line) and then run apps from it.  I tried to make the script run from boot by adding it to /etc/rc.local but to no avail. Tried to add it to init.d but that also didn't work.  If anyone can help, I'd be most grateful.
61027
I need to start a GUI application [Lotus Symphony] on a workspace different from the currently used one. [ex.: there are 4 workspaces on a GNOME desktop.]  Q: How do I do this?   p.s.: It's needed because Lotus Symphony's first start after a reboot is very, very slow, but after it's been used once, it starts very quickly. I think it caches itself. That's why I want to start it at every boot on a different workspace, so it will be fast later if I need to use it.
36903
How can I make a Click-once deployed app run a startup?  The best option I found by searching was to set the Publisher on the app to Startup, so the Start menu shortcut would be placed in the Startup folder, but that seems like a huge hack and I would like there to be a Start menu icon people can find.  What options do I have?
26488
I know there are Login Items under Users &amp; Groups and /Library/LaunchAgents and /Library/LaunchDaemons under Library, System/Library and Users/FooUser/Library. And then there's right click on Dock icon -> Options -> Open at Login.  What other methods are there for apps to auto-start? The reason why I'm asking is because the Spotify App (downloaded from ) keeps starting up whenever I restart my Mac, even though I made sure there is no corresponding entry in any of the above mentioned places.
81888
I'm using Lubuntu for a while now, but found a couple of details that I wanted to view with Unity (that's another story).  Ok, the thing is: I've tried on a VM with Lubuntu to install Unity (sudo apt-get install unity) When the installation is over. I selected in the Lubuntu login Unity/Unity2D but did not work.  Right now I'm installing ubuntu-desktop, I am presuming that will work, but also it will change my login for example.  Is there a way to do a "clean" installation of Unity but not make major changes on my Lubuntu?  I would prefer Gnome-Shell instead of Unity.
113632
I wanted a daemon to start on boot so I added a line to /etc/rc.local that ended in "&amp;"  I did that so it would run in the background.  The daemon is loaded and working fine but when the daemon is running you can press keys that do other important things.  When I am finally logged in I wanted to resume process or send it a terminal (tty2) so I can do a couple of things.  I'm new to linux and not sure how to do this.  I do a ps -aux |grep uox to work out which PID it is. But not sure how to resume.
75193
After upgrading to Ubuntu 14.04 LTS, I find the Unity destkop in vnc4server never works as it did under Ubuntu 12.04 LTS.  Here is my ~/.vnc/xstartup for vnc4server:  #!/bin/sh  xrdb $HOME/.Xresources xsetroot -solid grey  /usr/bin/gnome-session &amp;   That works fine starting Unity desktop on Ubuntu 12.04 LTS, but unfortunately on 14.04 LTS only a gray screen is seen in vncviewer.  I searched a little and find  shows the way to start legacy gnome desktop (gnome-fallback) in vnc on 14.04, but what I want is the solution for a normal Unity desktop in vnc.  Has anyone successfully run Unity desktop in a vnc session (vnc4server, or any other vnc server) on Ubuntu 14.04 LTS?
6351
I need to run a bash script at boot-time as superuser in Xubuntu. I don't know where to start. I have to do something described in a Arch Linux guide. That guide says exactly:     Add following at the end of the file : /etc/rc.sysinit   # Do my action /etc/rc.d/do_my_action  /bin/dmesg &gt;| /var/log/dmesg.log   But I do not have /etc/rc.sysinit and /etc/rc.d/ in Xubuntu. I'm sure there are equivalent ones, right?
54495
We are trying to have a simple drive mapping script start up for ALL users on a Mac Mini. What's the simplest way of going by doing this? I've tried creating a .plist in Lingon and adding it to the Library LauncherDaemons and LauncherAgents folders, but it's not starting up. Any ideas? Is there a way to do this in the Terminal? The script by itself works fine and works if we add it to the Startup Items in System Preferences, but we want this to be automatic and for all users.  Thanks.