Results 31 to 40 of 100

Thread: Ubuntu instruction

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #13
    Past Administrator
    Fire$torm's Avatar
    Join Date
    October 13th, 2010
    Location
    In the Big City
    Posts
    7,938

    Re: Ubuntu instruction

    Okay, new VM. Here is what I've done so far.

    Note: All commands are run from root, ex. root@Sys1:

    mkdir /home/dilbert/BOINC
    cp /home/dilbert/downloads/boinc* /home/dilbert/BOINC
    chmod 750 boinc_7*
    bash boinc*.sh
    mv /home/dilbert/BOINC/BOINC/* /home/dilbert/BOINC
    rmdir /home/dilbert/BOINC/BOINC
    apt-get -y update
    apt-get -y install openssh-server+
    apt-get -y install gdebi+
    apt-get -y install libwxgtk2.8-0+
    apt-get -y install libXss1+
    apt-get -y install freeglut3+

    Note: I did not run cpufrequtils+ as this is a VM and governor does not exist in a VM.

    mv boinc /etc/init.d/
    update-rc.d boinc defaults 90 01
    usermod -G `id -nG | sed 's/ /,/g'`,dilbert
    echo "%ALL=NOPASSWD: ALL"
    read ans
    visudo
    cd ..

    And the following lines is where I ran into a problem.....

    v64bit=`egrep "flags(.*) lm " /proc/cpuinfo`
    [ -n "$v64bit" ] &&{
    apt-get -y install ia32-libs+
    BOINC/boinc_7*x86_64-pc*; }
    [ -n "$v64bit" ] || BOINC/boinc_7*i686-pc*

    So after coping/pasting all to a single line and then using bash errors I played with spacing between parts....

    So is the following correct? I did not get a bash error but it didn't seem to do anything

    v64bit=`egrep "flags(.*) lm " /proc/cpuinfo`[ -n "$v64bit" ] &&{sudo apt-get -y install ia32-libs+BOINC/boinc_7*x86_64-pc*; }
    Last edited by Fire$torm; 02-23-13 at 09:52 PM.


    Future Maker? Teensy 3.6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •