-
Set startup program
Is there any way to set a program to start as soon as the computer boots up?
This is a PC gutted and slashed to the bone that will sit in an attic and serve as a cheap network projector. It's actually starting to look quite implressiveI want TightReciever (a wine program) to start as soon as the computer turns on so we will only need a mouse and keyboard in emergencies.
This thing is actually starting to look quite impressive... I'll post some pics as soon as it's done.
-
If you put it in ~/.kde/Autostart and have KDE starting on boot that will work. Create a one-line script
#!/bin/bash
wine /path/to/tightreciever # you can use the Unix or windows path I think
If you're using a different desktop environment, it may have something corresponding. I presume you are using _a_ desktop environment, based on what TightReciever/TightProjector do.
-
I don't know much about writing scrips but it looks like # is for comments. What does #!/bin/bash mean?
-
Senior Member
registered user

Originally Posted by
RedWagon
I don't know much about writing scrips but it looks like # is for comments. What does #!/bin/bash mean?
# is a comment
#! also known as the 'sha-bang', at the head of a script tells your system that this file is a set of commands to be fed to the command interpreter indicated, being in this case 'bash' but could even be perl (#!/usr/bin/perl) ,tcl (#!/usr/bin/tcl) or something else.
-

Originally Posted by
maxIT
Yes, # is for comments, EXCEPT in the case of the #!, which is as described.
Also, I forgot to mention
You need to do
$ chmod ugo+rx your_script.sh
to make it executable. (Note the .sh file extension is entirely optional, but useful)
Similar Threads
-
By mami_hacky in forum General Support
Replies: 0
Last Post: 10-18-2006, 10:09 AM
-
By apessos in forum Hdd Install / Debian / Apt
Replies: 5
Last Post: 02-13-2005, 07:44 AM
-
By Mustang64 in forum General Support
Replies: 1
Last Post: 06-26-2004, 09:36 PM
-
By Bothersome in forum General Support
Replies: 7
Last Post: 05-30-2004, 05:57 PM
-
By bhavin in forum Customising & Remastering
Replies: 3
Last Post: 05-21-2004, 04:25 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1299.99

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$179.99

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series
$375.00

IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU
$999.99

Compaq ProLiant 1500R 5/100 rack server, Series 3155, with IBM 2.1GB HD, VINTAGE
$295.00

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES
$110.30

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)
$150.00

DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR
$1100.00

Lot of 3 IBM 00JY196 ServeRAID M1210 PCI Express SAS SATA Storage Controller
$68.99