|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Operating Systems > Linux, Unix | |
Commands at boot in Xubuntu
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
Using more Linux everyday
Join Date: Jul 2007
Location: University of Virginia
Posts: 1,511
Rep: 168
![]() ![]() Unique Rep: 135
Trader Rating: 2
|
So hopefully this will be my last thread on Xubuntu for a while, as this is the last thing that's bothering me that won't work. I need help running a couple commands at startup. It was easy in openSUSE as I just added them to boot.local, but I'm having trouble here.
I made my own script, called myscript.sh. I think copied it to /etc/init.d with the sudo cp command, and then made it executable with chmod +x. I then updated rc.d with the script running defaults. After doing all of these things (which is what i THOUGHT was supposed to be done,) the commands aren't being carried out. I just want to run the compiz --replace and emerald --replace at boot so I don't have to do it every time. Thanks in advance for any help. Hopefully I can get this solved so I can stop asking questions .
__________________
|
|||||||||||||
|
|
|
|
#2 (permalink) | |||||||||||||
|
Multi-Quote King
|
Try looking around in your home folder. There are a bunch of hidden folders there, and I think there are some startup folders there. If the startup/"Autostart" folder isn't in ~, then maybe it's in ~/<.DE folder>, where <.DE folder> corresponds to whatever DE you're using (maybe it's .kde, .gnome, whatever).
I know it's in there somewhere; I just can't remember exactly where. Snoop around and you'll find it.
__________________
"But you would be amazed by how many people think that the only reason to have a computer is to play games, and that playing games is all that anyone with a computer does." - dangerousHobo "Linux is everywhere, it is all around us, even now in this very room. You can see it when you look out your window, or you turn on your television. You can feel it when you go to work, when you go to church, when you pay your taxes. " - mbp"I have used a mac before. And they still don't have right click I mean come on." - aakar Blah, blah, can't hear you
|
|||||||||||||
|
|
|
|
#3 (permalink) | |||||||||||||
|
Using more Linux everyday
Join Date: Jul 2007
Location: University of Virginia
Posts: 1,511
Rep: 168
![]() ![]() Unique Rep: 135
Trader Rating: 2
|
I can't find what you're talking about anywhere. There's hardly anything at all in my .kde folder. I'm not sure what to do here. I followed the directions for the init.d folder, and just can't seem to get anything to work. This shouldn't be difficult, I'm just missing something dumb. Hopefully someone will be able to shed some light on the situation.
__________________
|
|||||||||||||
|
|
|
|
#4 (permalink) | |||||||||||
|
Linux Lobbyist
|
init.d is not the place where you would put the script. Thats for things before X starts, compiz related things are after. I don't use xfce myself but it seems that you need to put the script in ~/.config/autostart. More info can be found here.
|
|||||||||||
|
|
|
|
#5 (permalink) | ||||||||||||||
|
Using more Linux everyday
Join Date: Jul 2007
Location: University of Virginia
Posts: 1,511
Rep: 168
![]() ![]() Unique Rep: 135
Trader Rating: 2
|
Quote:
__________________
|
||||||||||||||
|
|
|
|
#6 (permalink) | |||||||||||||
|
Perfección
|
You could simply add those commands to your Autostart Applications (I think that's what it's called) list. It should be somewhere in the control panel thing. Just make a new entry with the commands you want, and they will be executed upon start-up.
__________________
Honos et Potestas
|
|||||||||||||
|
|
|
|
#7 (permalink) | |||||||||||||
|
Using more Linux everyday
Join Date: Jul 2007
Location: University of Virginia
Posts: 1,511
Rep: 168
![]() ![]() Unique Rep: 135
Trader Rating: 2
|
Yeah, I was clearly overthinking this issue, haha. I'm glad it got solved though
. You can always count on OCN.
__________________
|
|||||||||||||
|
|
|
|
#8 (permalink) | ||||||||||||||
|
Multi-Quote King
|
Quote:
I assume you already know how to search hidden folders, be it in the GUI or Terminal, then.
__________________
"But you would be amazed by how many people think that the only reason to have a computer is to play games, and that playing games is all that anyone with a computer does." - dangerousHobo "Linux is everywhere, it is all around us, even now in this very room. You can see it when you look out your window, or you turn on your television. You can feel it when you go to work, when you go to church, when you pay your taxes. " - mbp"I have used a mac before. And they still don't have right click I mean come on." - aakar Blah, blah, can't hear you
|
||||||||||||||
|
|
|
|
#9 (permalink) | ||||||||||||||
|
Using more Linux everyday
Join Date: Jul 2007
Location: University of Virginia
Posts: 1,511
Rep: 168
![]() ![]() Unique Rep: 135
Trader Rating: 2
|
Quote:
. It turns out though, that it can be changed through the GUI. There is an autostart program section in the settings manager that one can add custom commands to. Seems there's always an easier way to do things than I originally thought.
__________________
|
||||||||||||||
|
|
|
|
#10 (permalink) | ||||||||||||||
|
Multi-Quote King
|
Quote:
Glad it all works out in the end, though.
__________________
"But you would be amazed by how many people think that the only reason to have a computer is to play games, and that playing games is all that anyone with a computer does." - dangerousHobo "Linux is everywhere, it is all around us, even now in this very room. You can see it when you look out your window, or you turn on your television. You can feel it when you go to work, when you go to church, when you pay your taxes. " - mbp"I have used a mac before. And they still don't have right click I mean come on." - aakar Blah, blah, can't hear you
|
||||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|