Saturday, August 31, 2013
Friday, August 30, 2013
CUDA 5.5 on optimus laptop with ubuntu 12.04 LTS
Install a pristine Ubunto distro (check
tutorials)
Get make and gcc
4 sudo apt-get install
build-essential
Check version
7 gcc –version
Check nvidia card present
8 lspci | grep -i nvidia
Stop X server
9 sudo service kdm stop
Remove current nvidia drivers
19 sudo apt-get --purge remove
nvidia-current
Get xorg tools
20 sudo apt-add-repository
ppa:xorg-edgers/ppa
21 sudo apt-get update
Get bumblebee
22 sudo apt-get install
bumblebee-nvidia nvidia-319 nvidia-settings-319
23 sudo apt-add-repository
ppa:bumblebee/stable
24 sudo apt-get update
25 sudo apt-get install bumblebee
virtualgl linux-headers-generic
Remove nvidia-current which came with
bumblebee
28 sudo apt-get --purge remove
nvidia-current
Install nvidia-319 (automatically gave
me 325 after all...)
29 sudo apt-get install nvidia-319
nividia-settings-319
Modify /etc/bumblebee/bumblebee.conf to
replace “nvidia-current” with “nvidia-325”
sudo nano
/etc/bumblebee/bumblebee.conf
Make changes valid
36 sudo reboot
Check success:
40 optirun nvidia-settings -c :8
41 locate xorg.conf
Install CUDA toolkit
43 sudo service kdm stop
44 cd Downloads/
45 l
Here, tell cuda NOT to install the
driver
46 sudo sh cuda_5.5.22_linux_64.run
Add paths to .bashrc
48 nano .bashrc
Validate:
49 sudo reboot
Check how it works (did not install
OpenGL et al., I dont use them)
50 cd NVIDIA_CUDA-5.5_Samples/
54 cd 1_Utilities/
56 cd deviceQuery
58 make
64 optirun ./deviceQuery
How to change the default GCC compiler in Ubuntu?
As @Tommy suggested, you should use
It assigns values to every software of a family, so that it defines the order in which the applications will be called.
It is used to maintain different versions of the same software on a system. In your case, you will be able to use several declinations of
To figure out the current priorities of gcc, type in the command pointed out by @tripleee's comment:
To set your alternatives, you should have something like this (assuming you
Finally, you can also use the interactive interface of
--edit 2 --
Now, to fix the CXX environment variable systemwide, you need to put the line indicated by @DipSwitch's in your
update-alternatives
.It assigns values to every software of a family, so that it defines the order in which the applications will be called.
It is used to maintain different versions of the same software on a system. In your case, you will be able to use several declinations of
gcc
, and one will be favoured.To figure out the current priorities of gcc, type in the command pointed out by @tripleee's comment:
update-alternatives --query gcc
Now, note the priority attributed to gcc-4.4
because you'll need to give a higher one to gcc-3.3
.To set your alternatives, you should have something like this (assuming you
gcc
installation is located at /usr/bin/gcc-3.3
, and gcc-4.4
's priority is less than 50):update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-3.3 50
--edit--Finally, you can also use the interactive interface of
update-alternatives
to easily switch between versions. Type update-alternatives --config gcc
to be asked to choose the gcc version you want to use among those installed.--edit 2 --
Now, to fix the CXX environment variable systemwide, you need to put the line indicated by @DipSwitch's in your
.bashrc
file (this will apply the change only for your user, which is safer in my opinion):echo 'export CXX=/usr/bin/gcc-3.3' >> ~/.bashrc
http://stackoverflow.com/questions/7832892/how-to-change-the-default-gcc-compiler-in-ubuntu
Brother printer on Ubuntu Linux
Brother support page
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/evaluation.html
for HL-2240D you need "Printer Driver (lpr driver and cupswrapper driver)"
Lpr driver instructions
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_prn3.html
- complete prerequisites
- install
-configure
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/evaluation.html
for HL-2240D you need "Printer Driver (lpr driver and cupswrapper driver)"
Lpr driver instructions
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_prn3.html
- complete prerequisites
- install
-configure
Thursday, August 29, 2013
Dual boot - Win 8 does not boot after unsuccessful EasyBCD run
If the Windows partition is still intact, but the bootloader is confused, do the following:
- acquire the CD or USB stick with Win 8 recovery tools, any Win 8 PC can create one, but the machine must be 32-bit or 64-bit like the "broken" one.
- boot from this media drive (maybe you need to modify bios boot priority first)
- reach the command prompt
- execute :
-The program will conclude if it finds an installed windows partition. Follow instructions in the prompt.
http://superuser.com/questions/451277/missing-boot-files-in-windows-8
- acquire the CD or USB stick with Win 8 recovery tools, any Win 8 PC can create one, but the machine must be 32-bit or 64-bit like the "broken" one.
- boot from this media drive (maybe you need to modify bios boot priority first)
- reach the command prompt
- execute :
bootrec /rebuildbcd
-The program will conclude if it finds an installed windows partition. Follow instructions in the prompt.
http://superuser.com/questions/451277/missing-boot-files-in-windows-8
Wednesday, August 14, 2013
Unix: move odd or even numbered files
$ mkdir odd; mv *[13579].fileextension odd
Source: http://superuser.com/questions/587495/osx-unix-move-odd-or-even-numbered-files
Subscribe to:
Posts (Atom)