Author Topic: Run at bootup  (Read 1308 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
Re: Run at bootup
« Reply #15 on: March 28, 2012, 01:50:56 am »
The Nautilus file manager is what you were looking at when you hit Ctrl+H .. the equivalent of "Windows Explorer" in Windows ;)

I'm sorry, it's all these new words for things that I don't understand;
Nautilus file manager = Windows Explorer
ans others...
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 #16 on: March 28, 2012, 01:59:32 am »
The accepted extension for a shell script is .sh .. though it's not 100% necessary.

to run it ..

First you'll have to make it executable .. so lets say it's called myscript.sh and is in your Home directory ..
Code: [Select]
chmod +x ~/myscript.sh

Now, unless it is somewhere in the $PATH (which if it's in you Home directory it ISN'T) you'll have to run it with the FULL path .. as in:
Quote
/home/<username>/myscript.sh

or, you could "cd" to the directory, and prefix the script name with "./" .. as in:
Code: [Select]
cd ~
./myscript.sh
« Last Edit: March 28, 2012, 02:03:32 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 #17 on: March 28, 2012, 02:21:11 am »
The accepted extension for a shell script is .sh .. though it's not 100% necessary.

to run it ..

First you'll have to make it executable .. so lets say it's called myscript.sh and is in your Home directory ..
Code: [Select]
chmod +x ~/myscript.sh

I've done that bit, just needed to do chmod +x MultipleWinOpe n.sh  (No error came up)
now how do I run it?
if it was in the last post, I could not understand it properly
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 #18 on: March 28, 2012, 02:25:51 am »
It depends where it is .. you need to run it with the FULL path included .. so if your username is pooky and the script is in your Home directory it can be run with:
Code: [Select]
/home/pooky/MultipleWinOpen.sh
« Last Edit: March 28, 2012, 02:28:23 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 #19 on: March 28, 2012, 02:26:12 am »
I clicked on the actual file itself and it ran but didn’t actually do anything?
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 #20 on: March 28, 2012, 02:31:18 am »
This is the script;
(click to show/hide)
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 #21 on: March 28, 2012, 02:34:52 am »
I *did* say it would need modification .. that script was only intended as a starting point, NOT as a working shell script .. if you read it, it clearly states that "as written" it is intended to be run with nautilus-scripts-manager.

I only pointed it out as proof that it wasn't "easy", and as a possible starting point for your own script.

[EDIT]

The first thing I've noticed is the directories you've added

Quote
~/Win-Storage
~/Win-MyDocs
~/Win-Video

those are NOT the paths to your mount points ???

And run the script from the command line (not by clicking) .. it may show errors that could help with debugging.
« Last Edit: March 28, 2012, 02:40:04 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 #22 on: March 28, 2012, 02:39:18 am »
Then it's on ice as I haven’t got a clue about scripts.
I'll just have to open them manually


re: your last post, if that's the case then if I put the full pathname in, it <should> work
« Last Edit: March 28, 2012, 02:44:58 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 #23 on: March 28, 2012, 02:59:49 am »
I cant even get anywhere in moving to the correct directory in Terminal ?@#% Grrrrr
Cant remember how to do it???, it looks like its even on another drive and not 'Home' drive ???

I need to get the books as looking through PDF's is crap.
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 #24 on: March 28, 2012, 03:13:46 am »
Quote
re: your last post, if that's the case then if I put the full pathname in, it <should> work

Erm, NO it wouldn't work "as is" directly from the CLI, that script is a nautilus script, so needs to be handled by the nautilus-scripts-manager

As I said, it was intended to show it wasn't "straight forward", and as a *possible* starting point for a shell script that could be run at bootup .. it was NOT intended as a working solution.
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 #25 on: March 28, 2012, 03:37:28 am »
Think I'll tackle it in maybe 15-20 years when I've got as much experience with this OS as I have with Windows.
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 #26 on: April 01, 2012, 04:42:44 am »
This isn't very helpful to you, but I've just discovered that opening the pcmanfm file manager (as used in PeppermintOS) with multiple tabs from the command line is VERY easy.

Heh .. I've found something that Peppermint can do by default that Ubuntu can't :)
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 #27 on: April 01, 2012, 03:11:41 pm »
Hey, <maybe> they can/have put that in 12.04?  :)
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 #28 on: April 01, 2012, 07:13:32 pm »
Not in 12.04's default file manager (Nautilus) .. but there's nothing stopping you installing/using pcmanfm as the file manager.
WARNING: You are logged into reality as 'root'

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

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal