Author Topic: Run at bootup  (Read 1307 times)

0 Members and 1 Guest are viewing this topic.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1191
  • Karma: 0
  • Gender: Male
  • Struggling Windows convert
    • View Profile
    • Awards
Run at bootup
« on: March 27, 2012, 07:33:10 pm »
I was just trying to get Firefox to run at boot-up but I cant get it to work.
Also, I already have Thunderbird to run at boot-up but it's not in this list;

I cant remember how I did it, so would like some help in how to do it.
I don’t know if it's done the same way but I want certain drive windows to open on boot-up too, how is that done too?
Also, are there any IMPORTANT items I should have run at boot-up too?
Ubuntu 12.04 64bit|M3A76-CM|BIOS 2002|AMD Athlon64 X2 5200+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|3.0GB Single-Channel DDR2 @ 387MHz (5-5-5-18)|PEAK 138508AGPK DVB-T Digital TV Hybrid PCI Card|T~bird|Firefox|MATE

Offline SeZo

  • Hero Member
  • *****
  • Posts: 715
  • Karma: 29
  • Gender: Male
    • View Profile
    • Awards
Re: Run at bootup
« Reply #1 on: March 27, 2012, 08:37:19 pm »
Try this:

a) Open File Manager (Nautilus)
b) View->Show Hidden Files
c) Browse to “home/.config/autostart” folder
d) Drag Icon/App from Application Menu onto autostart folder

or

You can also type this command in the terminal:
Code: [Select]
gnome-session-properties
« Last Edit: March 27, 2012, 08:49:13 pm by SeZo »

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1191
  • Karma: 0
  • Gender: Male
  • Struggling Windows convert
    • View Profile
    • Awards
Re: Run at bootup
« Reply #2 on: March 27, 2012, 09:20:06 pm »
Try this:

a) Open File Manager (Nautilus)
b) View->Show Hidden Files
c) Browse to “home/.config/autostart” folder
d) Drag Icon/App from Application Menu onto autostart folder

How and where is Nautilus file manager?
Used CTRL + H instead to see whats in  “home/.config/autostart”


Quote
You can also type this command in the terminal:
Code: [Select]
gnome-session-properties

ERROR - No Protocol Specified.

« Last Edit: March 27, 2012, 09:23:59 pm by pooky2483 »
Ubuntu 12.04 64bit|M3A76-CM|BIOS 2002|AMD Athlon64 X2 5200+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|3.0GB Single-Channel DDR2 @ 387MHz (5-5-5-18)|PEAK 138508AGPK DVB-T Digital TV Hybrid PCI Card|T~bird|Firefox|MATE

Offline SeZo

  • Hero Member
  • *****
  • Posts: 715
  • Karma: 29
  • Gender: Male
    • View Profile
    • Awards
Re: Run at bootup
« Reply #3 on: March 27, 2012, 09:32:52 pm »
Quote
How and where is Nautilus file manager?

Nautilus is the default GNOME file manager.  :)

Sorry about the "gnome-session-properties" perhaps it is not available in GNOME Classic

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 8839
  • Karma: 235
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Run at bootup
« Reply #4 on: March 27, 2012, 09:43:41 pm »
The Nautilus file manager is what you were looking at when you hit Ctrl+H .. the equivalent of "Windows Explorer" in Windows ;)

but I'd use the "Startup Applications" (that you have pictured) to autostart stuff.

If it can be done from the commandline (which is pretty much anything) it can be done with "Startup Applications"

just "Add" an item -

Name: Firefox
Comment: Web Browser
Command: firefox

or for one of your drives/partitions

Name: Win-Video
Comment: open Winvideo
Command: nautilus /media/Win-Video   (or whatever the path is)

You *may* find the command for nautilus to open a specific directory needs to be inside quotation marks, as in -

Name: Win-Video
Comment: open Winvideo
Command: "nautilus /media/Win-Video"

I can't remember, and I'm not currently sat at an Ubuntu PC .. rather Peppermint which doesn't have "Startup Applications", so needs .desktop files adding to the autostart directory.
« Last Edit: March 27, 2012, 09:58:22 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1191
  • Karma: 0
  • Gender: Male
  • Struggling Windows convert
    • View Profile
    • Awards
Re: Run at bootup
« Reply #5 on: March 28, 2012, 12:10:08 am »
just "Add" an item -

Name: Firefox
Comment: Web Browser
Command: firefox

or for one of your drives/partitions

Name: Win-Video
Comment: open Winvideo
Command: nautilus /media/Win-Video   (or whatever the path is)

You *may* find the command for nautilus to open a specific directory needs to be inside quotation marks, as in -

Name: Win-Video
Comment: open Winvideo
Command: "nautilus /media/Win-Video"


The one to open the web browser didn’t work!
Not tried the second one to open a window but the first one worked, the one without the quotes.
Also, how can I get it to do this at boot-up

Do I write it as something like this;
Command: nautilus /media/Win-Video /media/WinStorage

Ubuntu 12.04 64bit|M3A76-CM|BIOS 2002|AMD Athlon64 X2 5200+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|3.0GB Single-Channel DDR2 @ 387MHz (5-5-5-18)|PEAK 138508AGPK DVB-T Digital TV Hybrid PCI Card|T~bird|Firefox|MATE

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 8839
  • Karma: 235
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Run at bootup
« Reply #6 on: March 28, 2012, 12:12:56 am »
No .. open the "Statrtup Applications" dialog, like you have pictured in the first posting in this topic .. click "Add" and enter what I said.

are you saying if you enter:
Code: [Select]
firefox
in a terminal it doesn't start firefox ?
« Last Edit: March 28, 2012, 12:25:34 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1191
  • Karma: 0
  • Gender: Male
  • Struggling Windows convert
    • View Profile
    • Awards
Re: Run at bootup
« Reply #7 on: March 28, 2012, 12:27:35 am »
I have done
it worked for opening a drive to view the contents, what I want in the end is more than 1 drive opened in the same window (as pictured in the jpg in previous post)

What I was on about with this;
Command: nautilus /media/Win-Video /media/WinStorage
was IS IT POSSIBLE, NOT I have done it. And How is it possible?
Ubuntu 12.04 64bit|M3A76-CM|BIOS 2002|AMD Athlon64 X2 5200+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|3.0GB Single-Channel DDR2 @ 387MHz (5-5-5-18)|PEAK 138508AGPK DVB-T Digital TV Hybrid PCI Card|T~bird|Firefox|MATE

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1191
  • Karma: 0
  • Gender: Male
  • Struggling Windows convert
    • View Profile
    • Awards
Re: Run at bootup
« Reply #8 on: March 28, 2012, 12:30:21 am »
No .. open the "Statrtup Applications" dialog, like you have pictured in the first posting in this topic .. click "Add" and enter what I said.

are you saying if you enter:
Code: [Select]
firefox
in a terminal it doesn't start firefox ?

Nope, I want it to automatically open on start-up like Thunderbird does
Ubuntu 12.04 64bit|M3A76-CM|BIOS 2002|AMD Athlon64 X2 5200+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|3.0GB Single-Channel DDR2 @ 387MHz (5-5-5-18)|PEAK 138508AGPK DVB-T Digital TV Hybrid PCI Card|T~bird|Firefox|MATE

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 8839
  • Karma: 235
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Run at bootup
« Reply #9 on: March 28, 2012, 12:45:11 am »
Quote
Nope, I want it to automatically open on start-up like Thunderbird does


Well add it in "Startup Applications" then as a new item, with the the Command: line reading -
Code: [Select]
firefox
(all lower case)
and make sure it's ticked.

As for opening nautilus with multiple tabs .. this cannot be done from the command line, so it cannot "easily" be achieved.

I say "easily" because it would be possible to write a script that actually opens nautilus then does the necessary keystrokes to open the tabs .. there is a script (that you'd need to modify) here:
http://paste.ubuntu.com/566869/
then I suppose you could run the script from "Startup Applications"

Source:
http://askubuntu.com/questions/26042/can-a-single-nautilus-window-be-started-with-multiple-tabs
« Last Edit: March 28, 2012, 01:02:11 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1191
  • Karma: 0
  • Gender: Male
  • Struggling Windows convert
    • View Profile
    • Awards
Re: Run at bootup
« Reply #10 on: March 28, 2012, 12:53:26 am »
It worked, I put 'firefox' in the wrong box earlier  ::)

I'm going to tackle the script now.
Ubuntu 12.04 64bit|M3A76-CM|BIOS 2002|AMD Athlon64 X2 5200+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|3.0GB Single-Channel DDR2 @ 387MHz (5-5-5-18)|PEAK 138508AGPK DVB-T Digital TV Hybrid PCI Card|T~bird|Firefox|MATE

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 8839
  • Karma: 235
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Run at bootup
« Reply #11 on: March 28, 2012, 12:59:45 am »
The other option (as SeZo said) would have been to copy the firefox.deskto p file from /usr/share/applications to ~/.config/autostart .. as in:
Code: [Select]
cp -v /usr/share/applications/firefox.desktop ~/.config/autostart/

Good luck with the script.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1191
  • Karma: 0
  • Gender: Male
  • Struggling Windows convert
    • View Profile
    • Awards
Re: Run at bootup
« Reply #12 on: March 28, 2012, 01:13:48 am »
The other option (as SeZo said) would have been to copy the firefox.deskto p file from /usr/share/applications to ~/.config/autostart .. as in:
Code: [Select]
cp -v /usr/share/applications/firefox.desktop ~/.config/autostart/

Good luck with the script.

I didn’t do that as I didn’t understand what he was on about?
Ubuntu 12.04 64bit|M3A76-CM|BIOS 2002|AMD Athlon64 X2 5200+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|3.0GB Single-Channel DDR2 @ 387MHz (5-5-5-18)|PEAK 138508AGPK DVB-T Digital TV Hybrid PCI Card|T~bird|Firefox|MATE

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1191
  • Karma: 0
  • Gender: Male
  • Struggling Windows convert
    • View Profile
    • Awards
Re: Run at bootup
« Reply #13 on: March 28, 2012, 01:25:38 am »
1st attempt at the script failed  :(

Does it need to be saved with a file extension? .txt?
« Last Edit: March 28, 2012, 01:29:35 am by pooky2483 »
Ubuntu 12.04 64bit|M3A76-CM|BIOS 2002|AMD Athlon64 X2 5200+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|3.0GB Single-Channel DDR2 @ 387MHz (5-5-5-18)|PEAK 138508AGPK DVB-T Digital TV Hybrid PCI Card|T~bird|Firefox|MATE

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1191
  • Karma: 0
  • Gender: Male
  • Struggling Windows convert
    • View Profile
    • Awards
Re: Run at bootup
« Reply #14 on: March 28, 2012, 01:46:03 am »
Sorry to be a pain, how do I run a script without having it run at boot-up?
And, does it need to be given a file extension, txt or anything or just a name, e.g. MultipleWinOpe n
Also, does it matter where the script is?
Ubuntu 12.04 64bit|M3A76-CM|BIOS 2002|AMD Athlon64 X2 5200+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|3.0GB Single-Channel DDR2 @ 387MHz (5-5-5-18)|PEAK 138508AGPK DVB-T Digital TV Hybrid PCI Card|T~bird|Firefox|MATE

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal