Moving from Windows to Linux

Message boards : Number crunching : Moving from Windows to Linux
Message board moderation

To post messages, you must log in.

1 · 2 · 3 · Next

AuthorMessage
Sirius B Project Donor
Volunteer tester
Avatar

Send message
Joined: 26 Dec 00
Posts: 24849
Credit: 3,081,182
RAC: 7
Ireland
Message 651241 - Posted: 30 Sep 2007, 1:08:12 UTC

Hi guys.

I have visited the Q&A section & found it very helpful.

Unfortunately, I am now stuck & cannot see any threads/posts to help.

I have installed Fedora Core (FC1, 1 of the disks of FC6 corrupt) successfully.

Have downloaded & installed 5.18.16 into home/usr/bin/bionc but that's as far as I can get.

I cannot get it to run so that I can installs@h.

Any advice would be most welcome.
ID: 651241 · Report as offensive
Profile KWSN - MajorKong
Volunteer tester
Avatar

Send message
Joined: 5 Jan 00
Posts: 2892
Credit: 1,499,890
RAC: 0
United States
Message 651303 - Posted: 30 Sep 2007, 2:45:32 UTC - in response to Message 651241.  
Last modified: 30 Sep 2007, 2:52:31 UTC

Hi guys.

I have visited the Q&A section & found it very helpful.

Unfortunately, I am now stuck & cannot see any threads/posts to help.

I have installed Fedora Core (FC1, 1 of the disks of FC6 corrupt) successfully.

Have downloaded & installed 5.18.16 into home/usr/bin/bionc but that's as far as I can get.

I cannot get it to run so that I can installs@h.

Any advice would be most welcome.


Ok... It is likely a permissions issue... That is IF the directory you said is the one where you put it.

Basicly, there are two philosophies on where to put BOINC. First is to put it somewhere like /usr/local/bin/boinc/ . This location is used if you installed it from a 'package' from your linux distro (in your case "Fedora", it would be a .rpm file you installed).

The other way of doing it is used when you download the BOINC program from boinc.berkeley.edu...

It is best in this case, in my opinion, to put it under your 'home' directory and run it from there. Somewhere such as /home/your_user_name/

If you follow the directions, you download the boinc program into your home directory. Then when you run it, it creates a subdirectory and installs itself there. Something like /home/your_user_name/BOINC/

In both of the above, replace 'your_user_name' with whatever userid you use to log in.

I use the 2nd method. I have found that the BOINC versions maintained as packages by linux distros are usually somewhat stale, and I like running the latest. Also, I do tend to compile and build it myself from time to time (such as now; I built and installed boinc_5.10.20_i686-pc-linux-gnu.sh (latest project built version for linux/x86 is 5.10.8).

I have mine installed in /home/majorkong/BOINC/ and I use the boincctl init.d script to have the system run it upon boot as user majorkong. The boincctl init.d script is available here http://www.dennett.org/boincctl.

Install instructions for BOINC on linux are available here: http://boinc.berkeley.edu/trac/wiki/ReleaseNotes#Linux.

Hope this helps.

Edit: By the way, if you are totally NEW to linux, and you are not 100% fixated on using Fedora, I might suggest Ubuntu. It is very easy to set up, and is geared towards new(er), less experienced users. On this laptop, when I purged it of the ebul Windoze and installed linux goodness, I tried several different distros. Of the ones that I tried (including my favorite -- Gentoo (NOT for linux beginners!)), Ubuntu was the only one to recognize all the hardware on this laptop correctly and work 'out of the box'. I suppose that there is a reason why Ubuntu is the most popular linux distro at the moment.



ID: 651303 · Report as offensive
Sirius B Project Donor
Volunteer tester
Avatar

Send message
Joined: 26 Dec 00
Posts: 24849
Credit: 3,081,182
RAC: 7
Ireland
Message 651485 - Posted: 30 Sep 2007, 14:46:42 UTC - in response to Message 651303.  

Hi guys.

I have visited the Q&A section & found it very helpful.

Unfortunately, I am now stuck & cannot see any threads/posts to help.

I have installed Fedora Core (FC1, 1 of the disks of FC6 corrupt) successfully.

Have downloaded & installed 5.18.16 into home/usr/bin/bionc but that's as far as I can get.

I cannot get it to run so that I can installs@h.

Any advice would be most welcome.


Ok... It is likely a permissions issue... That is IF the directory you said is the one where you put it.

Basicly, there are two philosophies on where to put BOINC. First is to put it somewhere like /usr/local/bin/boinc/ . This location is used if you installed it from a 'package' from your linux distro (in your case "Fedora", it would be a .rpm file you installed).

The other way of doing it is used when you download the BOINC program from boinc.berkeley.edu...

It is best in this case, in my opinion, to put it under your 'home' directory and run it from there. Somewhere such as /home/your_user_name/

If you follow the directions, you download the boinc program into your home directory. Then when you run it, it creates a subdirectory and installs itself there. Something like /home/your_user_name/BOINC/

In both of the above, replace 'your_user_name' with whatever userid you use to log in.

I use the 2nd method. I have found that the BOINC versions maintained as packages by linux distros are usually somewhat stale, and I like running the latest. Also, I do tend to compile and build it myself from time to time (such as now; I built and installed boinc_5.10.20_i686-pc-linux-gnu.sh (latest project built version for linux/x86 is 5.10.8).

I have mine installed in /home/majorkong/BOINC/ and I use the boincctl init.d script to have the system run it upon boot as user majorkong. The boincctl init.d script is available here http://www.dennett.org/boincctl.

Install instructions for BOINC on linux are available here: http://boinc.berkeley.edu/trac/wiki/ReleaseNotes#Linux.

Hope this helps.

Edit: By the way, if you are totally NEW to linux, and you are not 100% fixated on using Fedora, I might suggest Ubuntu. It is very easy to set up, and is geared towards new(er), less experienced users. On this laptop, when I purged it of the ebul Windoze and installed linux goodness, I tried several different distros. Of the ones that I tried (including my favorite -- Gentoo (NOT for linux beginners!)), Ubuntu was the only one to recognize all the hardware on this laptop correctly and work 'out of the box'. I suppose that there is a reason why Ubuntu is the most popular linux distro at the moment.





Thanks MajorKong, will give it a try.
ID: 651485 · Report as offensive
DJStarfox

Send message
Joined: 23 May 01
Posts: 1066
Credit: 1,226,053
RAC: 2
United States
Message 651538 - Posted: 30 Sep 2007, 16:11:40 UTC - in response to Message 651241.  

Hi guys.

I have visited the Q&A section & found it very helpful.

Unfortunately, I am now stuck & cannot see any threads/posts to help.

I have installed Fedora Core (FC1, 1 of the disks of FC6 corrupt) successfully.

Have downloaded & installed 5.18.16 into home/usr/bin/bionc but that's as far as I can get.

I cannot get it to run so that I can installs@h.

Any advice would be most welcome.


Also, that's a really old version of Fedora. The latest is FC7.
ID: 651538 · Report as offensive
Sirius B Project Donor
Volunteer tester
Avatar

Send message
Joined: 26 Dec 00
Posts: 24849
Credit: 3,081,182
RAC: 7
Ireland
Message 651551 - Posted: 30 Sep 2007, 16:24:43 UTC - in response to Message 651538.  
Last modified: 30 Sep 2007, 16:25:11 UTC


Also, that's a really old version of Fedora. The latest is FC7.



Yes, I know. I got it with the Red Hat Linux Bible (Wily Pub) back in 2004 when experiencing no end of problems with Microsoft, which are still happening today.

Upgraded all machines on network earlier this week & on reinstalling, Microsoft updates stated that all my copies of MS Office (including Office 2007) are not genuine. These are all genuine copies which I purchased & getting fed up of telephoning Microsoft to explain the situation.

It has cost me several hundred pounds in telephone costs over the past few years.

Using FC1 to get familiar with Linux. From what I have seen so far, it looks good & once familiar, it will be bye bye Windoze!!!

Unfortunately for me, I have been using MS O/S since MSDOS 3.3 & I think it will take me some time to get used to Linux.

Mind you, it would be nice if one could just install a package, click on the desktop & create a shortcut, then click on shortcut & program starts, just like Windoze.
ID: 651551 · Report as offensive
OzzFan Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 9 Apr 02
Posts: 15691
Credit: 84,761,841
RAC: 28
United States
Message 651570 - Posted: 30 Sep 2007, 16:43:50 UTC - in response to Message 651551.  

Unfortunately for me, I have been using MS O/S since MSDOS 3.3 & I think it will take me some time to get used to Linux.


You too? God I love and miss DOS!

Mind you, it would be nice if one could just install a package, click on the desktop & create a shortcut, then click on shortcut & program starts, just like Windoze.


Hear, hear! Windows just makes things easy so I can focus on doing more with my time other than configuring my system. I think that's why Linux makes such a great server OS. You configure it once for it's function, lock it down and leave it alone. It is very rock solid.
ID: 651570 · Report as offensive
Sirius B Project Donor
Volunteer tester
Avatar

Send message
Joined: 26 Dec 00
Posts: 24849
Credit: 3,081,182
RAC: 7
Ireland
Message 651594 - Posted: 30 Sep 2007, 17:05:45 UTC - in response to Message 651570.  
Last modified: 30 Sep 2007, 17:08:16 UTC


You too? God I love and miss DOS!

Hear, hear! Windows just makes things easy so I can focus on doing more with my time other than configuring my system. I think that's why Linux makes such a great server OS. You configure it once for it's function, lock it down and leave it alone. It is very rock solid.


Hi Ozzfan, Yes, it was a pita, but problems were resolved easily not like now.

Once DOS 6.22 came out, it made our lives easier. The things I was able to do, not like now.

I am seriously considering having all machines set on basic configurations with applications & files on seperate servers. So any problems crop up on systems, just reformat, reinstall & reattach to net.

What makes it even worse is retailers & suppliers. I spent nearly £4000 (Approx $8000) in London last Saturday. What did I get for that, 3 faulty ram sticks, 1 failed psu, 2 duff m/bs & 1 WD HD that will not operate(formats & partitions ok, but every system I've installed in on comes up with the same error - disk boot failure!

Fortunately, the guys will exchange them, but it means an unexpected trip down.

Ah well, if it was that easy, I wouldn't be able to run a business.

Also, that's a really old version of Fedora. The latest is FC7.


Can it be downloaded?
ID: 651594 · Report as offensive
Claggy
Volunteer tester

Send message
Joined: 5 Jul 99
Posts: 4654
Credit: 47,537,079
RAC: 4
United Kingdom
Message 651613 - Posted: 30 Sep 2007, 17:19:56 UTC - in response to Message 651594.  


You too? God I love and miss DOS!

Hear, hear! Windows just makes things easy so I can focus on doing more with my time other than configuring my system. I think that's why Linux makes such a great server OS. You configure it once for it's function, lock it down and leave it alone. It is very rock solid.


Hi Ozzfan, Yes, it was a pita, but problems were resolved easily not like now.

Once DOS 6.22 came out, it made our lives easier. The things I was able to do, not like now.

I am seriously considering having all machines set on basic configurations with applications & files on seperate servers. So any problems crop up on systems, just reformat, reinstall & reattach to net.

What makes it even worse is retailers & suppliers. I spent nearly £4000 (Approx $8000) in London last Saturday. What did I get for that, 3 faulty ram sticks, 1 failed psu, 2 duff m/bs & 1 WD HD that will not operate(formats & partitions ok, but every system I've installed in on comes up with the same error - disk boot failure!

Fortunately, the guys will exchange them, but it means an unexpected trip down.

Ah well, if it was that easy, I wouldn't be able to run a business.

Also, that's a really old version of Fedora. The latest is FC7.


Can it be downloaded?


What make of Memory?, When i Built my C2D (Asus P5N-E SLI), Kept Crashing in the Bios,
or not Booting from the CD very far, before getting an error or Blue Screen?
Went on Corsair's forum and ended having to put the timing's in to the Bios
manually, no problem now!

Claggy
ID: 651613 · Report as offensive
Sirius B Project Donor
Volunteer tester
Avatar

Send message
Joined: 26 Dec 00
Posts: 24849
Credit: 3,081,182
RAC: 7
Ireland
Message 651622 - Posted: 30 Sep 2007, 17:30:17 UTC - in response to Message 651613.  


What make of Memory?, When i Built my C2D (Asus P5N-E SLI), Kept Crashing in the Bios,
or not Booting from the CD very far, before getting an error or Blue Screen?
Went on Corsair's forum and ended having to put the timing's in to the Bios
manually, no problem now!

Claggy


Kingston PC3200 1gb. When installed, gives BSOD, freezes system, won't shutdown system. When removed, no problems. Supplier already agreed to replace so no problems.

Thanks for info though, may come in useful later.
ID: 651622 · Report as offensive
Profile KWSN - MajorKong
Volunteer tester
Avatar

Send message
Joined: 5 Jan 00
Posts: 2892
Credit: 1,499,890
RAC: 0
United States
Message 651656 - Posted: 30 Sep 2007, 17:50:25 UTC - in response to Message 651594.  



Also, that's a really old version of Fedora. The latest is FC7.


Can it be downloaded?


yes. Fedora 7 (they dropped the word 'core' and the 'FC') can be found here:
http://fedoraproject.org/wiki/Distribution/Download

Oh, and the LATEST is Fedora 8 test 2... :P

ID: 651656 · Report as offensive
Robert Smith
Avatar

Send message
Joined: 15 Jan 01
Posts: 266
Credit: 66,963
RAC: 0
United Kingdom
Message 651687 - Posted: 30 Sep 2007, 18:06:26 UTC

Mind you, it would be nice if one could just install a package, click on the desktop & create a shortcut, then click on shortcut & program starts, just like Windoze.

It's a little bit different to Windows, but not sooper difficult.

http://www.linuxforums.org/forum/redhat-fedora-linux-help/104204-how-create-shortcuts-desktop.html
http://www.youtube.com/watch?v=fQyazefGssc

http://fedoraproject.org/
ID: 651687 · Report as offensive
Profile KWSN - MajorKong
Volunteer tester
Avatar

Send message
Joined: 5 Jan 00
Posts: 2892
Credit: 1,499,890
RAC: 0
United States
Message 651704 - Posted: 30 Sep 2007, 18:14:02 UTC - in response to Message 651570.  
Last modified: 30 Sep 2007, 18:17:36 UTC

Unfortunately for me, I have been using MS O/S since MSDOS 3.3 & I think it will take me some time to get used to Linux.


You too? God I love and miss DOS!


The 'shell' in *nix is VERY much similar to (yet a LOT more powerful than) the DOS command line. A popular one is 'bash'... the 'Bourne Again Shell'..

Mind you, it would be nice if one could just install a package, click on the desktop & create a shortcut, then click on shortcut & program starts, just like Windoze.


You can! I use the GNOME desktop, and have application launchers ('shortcuts' in WinSpeak) on both the 'panel' and the actual 'desktop'. Also have datafiles on the desktop, both actually there and as symbolic links ('shortcuts' in WinSpeak) on the desktop to files located elsewhere.

Sure, the names are different than under Windoze but the functions are the same. Yes, you create them in slightly different ways than under Winblows, but the ways are not harder... just different.

The GNOME desktop is VERY easy to use, and the KDE desktop is even MORE Winblows-like. I haven't really used the xfce4 one though... so, I don't know about that one.

Hear, hear! Windows just makes things easy so I can focus on doing more with my time other than configuring my system. I think that's why Linux makes such a great server OS. You configure it once for it's function, lock it down and leave it alone. It is very rock solid.



Sure, Windoze is easy. So are the more modern distros of linux. Fedora 7 and the latest Ubuntu are pretty much self-configuring. Sure, you gotta know a little bit more about your computer than you do with Winblows, but thats ok too. A little extra knowledge never hurt anyone (at least not since Adam & Eve :P) I've heard good things about Mandriva (used to be Mandrake) and OpenSuSE, but haven't used them. And yes, there are linux distros that the linux newbies should STAY AWAY from.

Start with the latest *stable* Fedora or Ubuntu. As you learn more, if you wish, THEN you can try out more 'difficult' distros (less self-configuration = more control). But the easy 'newbie' distros aren't very much harder than Winblows at ALL. Yes, they do things a little differently, but setup is almost totally automated, and the rest is very easy to figure out.
ID: 651704 · Report as offensive
Sirius B Project Donor
Volunteer tester
Avatar

Send message
Joined: 26 Dec 00
Posts: 24849
Credit: 3,081,182
RAC: 7
Ireland
Message 651726 - Posted: 30 Sep 2007, 18:28:04 UTC - in response to Message 651704.  


You can! I use the GNOME desktop, and have application launchers ('shortcuts' in WinSpeak) on both the 'panel' and the actual 'desktop'. Also have datafiles on the desktop, both actually there and as symbolic links ('shortcuts' in WinSpeak) on the desktop to files located elsewhere.

Sure, the names are different than under Windoze but the functions are the same. Yes, you create them in slightly different ways than under Winblows, but the ways are not harder... just different.

The GNOME desktop is VERY easy to use, and the KDE desktop is even MORE Winblows-like. I haven't really used the xfce4 one though... so, I don't know about that one.

Hear, hear! Windows just makes things easy so I can focus on doing more with my time other than configuring my system. I think that's why Linux makes such a great server OS. You configure it once for it's function, lock it down and leave it alone. It is very rock solid.



Sure, Windoze is easy. So are the more modern distros of linux. Fedora 7 and the latest Ubuntu are pretty much self-configuring. Sure, you gotta know a little bit more about your computer than you do with Winblows, but thats ok too. A little extra knowledge never hurt anyone (at least not since Adam & Eve :P) I've heard good things about Mandriva (used to be Mandrake) and OpenSuSE, but haven't used them. And yes, there are linux distros that the linux newbies should STAY AWAY from.

Start with the latest *stable* Fedora or Ubuntu. As you learn more, if you wish, THEN you can try out more 'difficult' distros (less self-configuration = more control). But the easy 'newbie' distros aren't very much harder than Winblows at ALL. Yes, they do things a little differently, but setup is almost totally automated, and the rest is very easy to figure out.


Thanks MajorKong. Am downloading FC7 on other system. Even with high speed broadband, it's stating 7hrs 39m.

What I have noticed about Linux is that it doesn't hog memory as much as windoze.

I'm d/l'ing the 64bit version & will use it on a standalone system to educate myself. My brother who is an IT specialist uses Linux for his servers, so it looks like I'll be hitting off him more than usual. I only hope he doesn't get too mad at me.

All I want it to do while learning is to use it crunching s@h, so the quicker I figure that one out the better.

Is there a minimum configuration for FC7?

Specs for FC7 system: AMD64 3200, 1gb ram, 250gb hd, 18x DVD-RW, 10/100 LAN.
ID: 651726 · Report as offensive
DJStarfox

Send message
Joined: 23 May 01
Posts: 1066
Credit: 1,226,053
RAC: 2
United States
Message 651731 - Posted: 30 Sep 2007, 18:33:32 UTC - in response to Message 651726.  

Is there a minimum configuration for FC7?

Specs for FC7 system: AMD64 3200, 1gb ram, 250gb hd, 18x DVD-RW, 10/100 LAN.


That's a good enough system. It should run well, without considering what video card you have.
ID: 651731 · Report as offensive
Sirius B Project Donor
Volunteer tester
Avatar

Send message
Joined: 26 Dec 00
Posts: 24849
Credit: 3,081,182
RAC: 7
Ireland
Message 651734 - Posted: 30 Sep 2007, 18:40:07 UTC - in response to Message 651731.  

Is there a minimum configuration for FC7?

Specs for FC7 system: AMD64 3200, 1gb ram, 250gb hd, 18x DVD-RW, 10/100 LAN.


That's a good enough system. It should run well, without considering what video card you have.


Geoforce 7100
ID: 651734 · Report as offensive
Profile KWSN - MajorKong
Volunteer tester
Avatar

Send message
Joined: 5 Jan 00
Posts: 2892
Credit: 1,499,890
RAC: 0
United States
Message 651739 - Posted: 30 Sep 2007, 18:43:34 UTC - in response to Message 651726.  
Last modified: 30 Sep 2007, 19:10:36 UTC


Thanks MajorKong. Am downloading FC7 on other system. Even with high speed broadband, it's stating 7hrs 39m.

What I have noticed about Linux is that it doesn't hog memory as much as windoze.

I'm d/l'ing the 64bit version & will use it on a standalone system to educate myself. My brother who is an IT specialist uses Linux for his servers, so it looks like I'll be hitting off him more than usual. I only hope he doesn't get too mad at me.

All I want it to do while learning is to use it crunching s@h, so the quicker I figure that one out the better.

Is there a minimum configuration for FC7?

Specs for FC7 system: AMD64 3200, 1gb ram, 250gb hd, 18x DVD-RW, 10/100 LAN.


LOL...

You are WAY above the minimum config for FC7.

Hardware requirements for Fedora 7 for x86. X86_64 is directly below.

Basically, A PentiumII400 with 256MB of ram is enough for 32-bit. With ~10GB of hard disk.

I am running Ubuntu on this laptop.

1.3GHz Celeron-M with a 40GB hard drive. While it has 1.25GB of RAM in it now, it ran FINE with only 512MB.

Your system is WAY more than Fedora needs... :P (with the exception of the CPU. Since you wanna use x86_64, they really don't come much slower).

Ok... as to the 64-bit... On S@H's workload (mostly floating point / SSE?), 64-bit does not gain you much at all and is, in fact, slower than 32-bit on some result AngleRanges. In fact, last time I checked, even *IF* you use a 64-bit BOINC client, S@H will send you a 32-bit S@H app. If you wanna go with 64-bit on the S@H app, you gotta use an optimized app. And yes, the 64-bit optimized app is slightly faster for some angle ranges, and slightly slower for other angle ranges... when compared to the *stock* 32-bit app.

Now, other BOINC projects with different workloads (mostly integer) will see a NICE boost from 64-bit, as will some of your 'normal' (non-BOINC) work.
ID: 651739 · Report as offensive
Sirius B Project Donor
Volunteer tester
Avatar

Send message
Joined: 26 Dec 00
Posts: 24849
Credit: 3,081,182
RAC: 7
Ireland
Message 651742 - Posted: 30 Sep 2007, 18:46:11 UTC - in response to Message 651739.  


Thanks MajorKong. Am downloading FC7 on other system. Even with high speed broadband, it's stating 7hrs 39m.

What I have noticed about Linux is that it doesn't hog memory as much as windoze.

I'm d/l'ing the 64bit version & will use it on a standalone system to educate myself. My brother who is an IT specialist uses Linux for his servers, so it looks like I'll be hitting off him more than usual. I only hope he doesn't get too mad at me.

All I want it to do while learning is to use it crunching s@h, so the quicker I figure that one out the better.

Is there a minimum configuration for FC7?

Specs for FC7 system: AMD64 3200, 1gb ram, 250gb hd, 18x DVD-RW, 10/100 LAN.


LOL...

You are WAY above the minimum config for FC7.

[url=http://docs.fedoraproject.org/release-notes/f7/en_US/sn-ArchSpecific.html#sn-ArchSpecific-x86-hw]Hardware requirements for Fedora 7 for x86. X86_64 is directly below.

Basically, A PentiumII400 with 256MB of ram is enough for 32-bit. With ~10GB of hard disk.

I am running Ubuntu on this laptop.

1.3GHz Celeron-M with a 40GB hard drive. While it has 1.25GB of RAM in it now, it ran FINE with only 512MB.

Your system is WAY more than Fedora needs... :P (with the exception of the CPU. Since you wanna use x86_64, they really don't come much slower).



Thank you.
ID: 651742 · Report as offensive
Robert Smith
Avatar

Send message
Joined: 15 Jan 01
Posts: 266
Credit: 66,963
RAC: 0
United Kingdom
Message 651743 - Posted: 30 Sep 2007, 18:51:56 UTC - in response to Message 651739.  
Last modified: 30 Sep 2007, 19:02:04 UTC

Your system is WAY more than Fedora needs... :P (with the exception of the CPU. Since you wanna use x86_64, they really don't come much slower).

Apart from my Sempron... (Which runs x86_64 Mandriva just fine.) :P

I'm using the standard 32bit BOINC client and standard 32bit SETI app.
Was using standard 32bit BOINC client with 64bit opt app previously.

It isn't compulsory to use 64bit BOINC software.
ID: 651743 · Report as offensive
Profile Andy Lee Robinson
Avatar

Send message
Joined: 8 Dec 05
Posts: 630
Credit: 59,973,836
RAC: 0
Hungary
Message 651746 - Posted: 30 Sep 2007, 18:58:23 UTC
Last modified: 30 Sep 2007, 19:00:31 UTC

Linux is just wonderful. I swear by it for its reliability, incredible
flexibility and openness to get in amongst the internals.

It works forever until some hacker comes along and finds an exploit, which
is why you must keep it up to date and make sure you use bombproof passwords!
FC1 would be compromised very quickly if you run an old webmin or phpadmin,
and anyone that could get user access would be able to get root access within
a few minutes on anything up to FC4 I think.
The knowledge that some of these crackers have defies belief! They can
run rings around most sysadmins and remain undetected for months, doing whatever
they like behind the facade they create. Once a machine is hacked, one cannot
trust anything. Install anew, and your data remains intact, if it wasn't mauled.
Backups are just as important on Linux as on Windows, but a lot easier to manage
using tar, instead of Windows proprietary and non-portable offerings.

Anyway, create a user for boinc - adduser boinc
It should not have login rights.
"home/usr/bin/bionc" is not appropriate, and should be /home/boinc
Everything can go in /home/boinc/BOINC
All files owned by user boinc

It is better to run as a service/daemon so you can start and stop it in the
same standard way of other services like httpd, mysqld, ntpd etc.
/etc/init.d/boinc start (stop or restart).

As root, just copy this to /etc/init.d then type
chmod 700 /etc/init.d/boinc
chkconfig --add boinc
chkconfig boinc on
then start with /etc/init.d/boinc start
or
service boinc start

#!/bin/bash
#
# BOINC - start and stop the BOINC client daemon on Unix
#
# chkconfig: 345 72 28
# description: This script starts the local BOINC client as a daemon \\
# For more information about BOINC (the Berkeley Open Infrastructure
# for Network Computing) see http://boinc.ssl.berkeley.edu
#
# Version 1.00  Andrew Haveland-Robinson andy at haveland.com Oct 2005
#
# Source function library.
. /etc/init.d/functions

BOINCUSER=boinc
BOINCDIR=/home/boinc/BOINC
BOINCEXE=/home/boinc/BOINC/boinc_client

# Log and error files (you may like to rotate these occasionally if the
# client doesn't do it itself)
LOGFILE=boinc.log
ERRORLOG=error.log

if [ ! -d $BOINCDIR ]; then
  echo "Cannot find BOINC directory $BOINCDIR "
  exit 7
fi
if [ ! -x "$BOINCEXE" ]; then
  echo "Cannot find an executable for the BOINC client."
  exit 2
fi

RETVAL=0

umask 077

start() {
        cd $BOINCDIR

        if [ -f lockfile ] ; then
            echo -n "Another instance of BOINC is running (lockfile exists)."
            echo_failure
            echo
            exit 4
        fi
        if [ ! -f client_state.xml ] ; then
            echo -n "The BOINC client requires initialization."
            echo_warning
            echo
        fi

        echo -n "Starting BOINC client as a daemon:  "

        su $BOINCUSER -c "$BOINCEXE -redirectio -daemon"
        sleep 1
        PID=`pidof -s -x -o $$ -o $PPID -o %PPID $BOINCEXE`
        if [ $PID ]; then
          touch /var/lock/subsys/boinc
          echo $PID > /var/run/boinc.pid
          echo_success
        else
          echo_failure
        fi

        RETVAL=$?
        return $RETVAL
}
stop() {
        cd $BOINCDIR
        if [ ! -f lockfile -a ! -f /var/lock/subsys/boinc ] ; then
          echo -n "BOINC is not running (no lockfile found)."
          echo_success
        else
            echo -n $"Shutting down boinc: "
            killproc $BOINCEXE
            RETVAL=$?
            echo
            [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/boinc
            [ $RETVAL -eq 0 ] && rm -f /var/run/boinc.pid
            [ $RETVAL -eq 0 ] && rm -f lockfile
            return $RETVAL
        fi
}
rhstatus() {
        status boinc
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  status)
        rhstatus
        ;;
  restart|reload)
        restart
        ;;
  condrestart)
        [ -f /var/lock/subsys/boinc ] && restart || :
        ;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart}"
        exit 1
esac

exit $?


boinc should run as user boinc and keep itself separate from everything else
going on...
ID: 651746 · Report as offensive
Profile Andy Lee Robinson
Avatar

Send message
Joined: 8 Dec 05
Posts: 630
Credit: 59,973,836
RAC: 0
Hungary
Message 651754 - Posted: 30 Sep 2007, 19:03:58 UTC

I haven't tried this, but I would expect that a true migration of machine id
from windows to linux could be achieved by transferring the xml files, and
updating them with linux specific info where required, eg, app_info.xml
and paths.
ID: 651754 · Report as offensive
1 · 2 · 3 · Next

Message boards : Number crunching : Moving from Windows to Linux


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.