Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › HowTo: Linux Folding @ Startup + Hidden
New Posts  All Forums:Forum Nav:

HowTo: Linux Folding @ Startup + Hidden

post #1 of 4
Thread Starter 
I found that Folding was a bit of a pain. There were two commands that it took to start Folding, and I would usually close the window by accident. I would then need to type in those two commands again. It was painful.

My solution, to start folding at startup, and make the window hidden, so I will not accidentally close it. To do this make a new bash script called startup.sh. Put the following in startup.sh
Code:
cat > startup.sh << EOF
#!/bin/bash
cd /path/to/foldingdir
./FAH504-Linux.exe
EOF
Use some common sense with the name and location of your folding directory. Now in terminal cd to the dir where you placed your startup.sh. Now we make it executable by typing:
Code:
chmod +x startup.sh
Now, add startup.sh to your startup items. In Ubuntu:
Top Panel Menu > Preferences > Sessions > Click Add.
Browse to select the file "startup.sh", which you have just created.

Hope this helps the folding effort!
post #2 of 4
Cool, but i usually just put the folding terminal on another desktop so i dont close it

Ive got used to typing it, mine isnt anything long.

cd /folding
./fah6 -smp


I might try this sometime though.
Back to AMD
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X6 1055T ASUS M4A89TD PRO GTX 260 G.SKILL ECO 2x2GB 
Hard DriveOSMonitorKeyboard
WD 500GB Win7 19" BenQ LCD Microsoft 
PowerCaseMouse
700W OCZ Cooler Master Elite Logitech G5 
  hide details  
Reply
Back to AMD
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X6 1055T ASUS M4A89TD PRO GTX 260 G.SKILL ECO 2x2GB 
Hard DriveOSMonitorKeyboard
WD 500GB Win7 19" BenQ LCD Microsoft 
PowerCaseMouse
700W OCZ Cooler Master Elite Logitech G5 
  hide details  
Reply
post #3 of 4
Quote:
Originally Posted by Dethredic View Post
Code:
cat > startup.sh << EOF
#!/bin/bash
cd /path/to/foldingdir
./FAH504-Linux.exe
EOF
What exactly does cat > startup.sh <<EOF do?

And what does EOF at the end do?

I've tried making a script before which was exactly like yours without the top and bottom lines. The damned thing made a mess in my home folder and threw windows and crap all over my desktop. It's like it started over again, making new configuration files and everything.
post #4 of 4
EOF=End of File
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › HowTo: Linux Folding @ Startup + Hidden