<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>http://wiki.nosdigitais.teia.org.br/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=V1z3</id>
	<title>Pontão Nós Digitais - Contribuições do usuário [pt-br]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.nosdigitais.teia.org.br/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=V1z3"/>
	<link rel="alternate" type="text/html" href="http://wiki.nosdigitais.teia.org.br/Especial:Contribui%C3%A7%C3%B5es/V1z3"/>
	<updated>2026-04-21T11:46:40Z</updated>
	<subtitle>Contribuições do usuário</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>http://wiki.nosdigitais.teia.org.br/index.php?title=Ubuntu_-_Configuring_For_Programming&amp;diff=41643</id>
		<title>Ubuntu - Configuring For Programming</title>
		<link rel="alternate" type="text/html" href="http://wiki.nosdigitais.teia.org.br/index.php?title=Ubuntu_-_Configuring_For_Programming&amp;diff=41643"/>
		<updated>2025-08-25T16:16:20Z</updated>

		<summary type="html">&lt;p&gt;V1z3: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Ubuntu-logox45.png|right]]This is a checklist and a set of tips on setting up a complete ubuntu installation suitable for software development and scientific research.  &lt;br /&gt;
&lt;br /&gt;
These instructions were tested on recent Ubuntu (2025), but mostly Ubuntu 15.04 but are almost the same for 12.04, 11.10, down to 11.04.&lt;br /&gt;
&lt;br /&gt;
==Partitioning for Programming==&lt;br /&gt;
&lt;br /&gt;
For programming, I use the following partition guidelines&lt;br /&gt;
* &amp;lt;tt&amp;gt;/&amp;lt;/tt&amp;gt; : from 20 to 100GB (usually a full-fledged Ubuntu install for multimedia development will consume 16GB, from my experience)&lt;br /&gt;
* &amp;lt;tt&amp;gt;/linux2&amp;lt;/tt&amp;gt; : I place another Linux partition here, so that I can have 2 linux distros. The size is the same guidelines as I mentioned above for '/'.&lt;br /&gt;
* &amp;lt;tt&amp;gt;/home&amp;lt;/tt&amp;gt; : your files that are visible to all linux distros and remain untouched between reinstalls.&lt;br /&gt;
* Swap: if you do heavy simulations, double your RAM is a good rule of thumb here; otherwise, you'll do fine with just a couple GB here.&lt;br /&gt;
&lt;br /&gt;
File system: choose ext4, it performs very well on most circumstances.&lt;br /&gt;
&lt;br /&gt;
In the case of a laptop with a small internal SSD and a large slow HD, I've successfully used the following sheme&lt;br /&gt;
* &amp;lt;tt&amp;gt;/&amp;lt;/tt&amp;gt;: goes into the SSD, minus /var&lt;br /&gt;
* &amp;lt;tt&amp;gt;/var&amp;lt;/tt&amp;gt;: goes into the slow HD. 20GB should be more than enough here.&lt;br /&gt;
&lt;br /&gt;
In the case of most modern UEFI firmware (replacing BIOS), you need to make sure there's an EFI partition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Packages ==&lt;br /&gt;
&lt;br /&gt;
Be resourceful. Install most of the stuff you'll ever need so you don't have to worry about it later. After this, your system will consume about 15GB total&lt;br /&gt;
&lt;br /&gt;
 apt-get install kdenlive kino texlive-full blender konqueror konq-plugins  glade gtk-gnutella freemind emacs scilab octave ipython ddd xmaxima gap r-base r-base-dev r-recommended gnuplot imagemagick inkscape gimp digikam compizconfig-settings-manager pitivi python-kiwi apache2 ssh recordmydesktop mplayer gxine vlc ffmpeg puredata puredata-import git-core git-svn git-cvs kubuntu-full amarok cmake cmake-curses-gui autoconf automake libtool ekiga chromium-browser konsole  gitk gitg irssi xfig gv amule amule-emc qbittorrent nicotine gtk-gnutella kubuntu-full kubuntu-desktop vim-gnome mesa-utils dconf-tools sshfs pdftk libmagick++-dev gimp-data-extras gimp-plugin-registry gnome-tweak-tool v4l-utils synaptic libv4l-dev swig tcllib ardour audacity audacious jackd qjackctl unrar unison-gtk php5 libproc-processtable-perl guvcview exuberant-ctags gthumb xzgv&lt;br /&gt;
&lt;br /&gt;
=== Getting back to Ubuntu / Unity (for 13.10 users) ===&lt;br /&gt;
The above commands installs kubuntu-full to get programs and libs from ubuntu. But if you want to go back to unity just do this:&lt;br /&gt;
* edit the file /etc/lightdm/lightdm.conf  &lt;br /&gt;
* change the line user-session to be&lt;br /&gt;
 user-session=ubuntu&lt;br /&gt;
* change the line greeter-session to be&lt;br /&gt;
 greeter-session=unity-greeter &lt;br /&gt;
&lt;br /&gt;
=== Remove the unified menu feature ===&lt;br /&gt;
 apt-get remove indicator-appmenu &lt;br /&gt;
&lt;br /&gt;
=== Clipboard history manager ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;sudo add-apt-repository ppa:diodon-team/stable&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install diodon&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== System usage indicator ===&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:indicator-multiload/stable-daily&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install indicator-multiload&lt;br /&gt;
&lt;br /&gt;
=== Dev libs ===&lt;br /&gt;
Get dev libs indirectly through build-dep:&lt;br /&gt;
&lt;br /&gt;
 apt-get build-dep scilab evince okular firefox empathy kino vlc gxine puredata lmms&lt;br /&gt;
&lt;br /&gt;
=== Dev utilities ===&lt;br /&gt;
==== Apt-file ====&lt;br /&gt;
Apt-file to search for packages containing a specified file (useful for compiling)&lt;br /&gt;
 apt-get install apt-file&lt;br /&gt;
&lt;br /&gt;
sample usage:&lt;br /&gt;
 # one-time: &lt;br /&gt;
 apt-file update    &lt;br /&gt;
 # all other times:&lt;br /&gt;
 apt-file find arquivo_exemplo.h&lt;br /&gt;
&lt;br /&gt;
==== Apt-rdepends ====&lt;br /&gt;
Apt-rdepends to search for packages depending on a specified package (useful for compiling)&lt;br /&gt;
 apt-get install apt-rdepends&lt;br /&gt;
&lt;br /&gt;
sample usage:&lt;br /&gt;
 apt-rdepends --reverse (packagename)&lt;br /&gt;
&lt;br /&gt;
==== Other ====&lt;br /&gt;
No Ubuntu 11.10, Gnome shell:&lt;br /&gt;
 apt-get install gnome-shell&lt;br /&gt;
&lt;br /&gt;
==Other Configs==&lt;br /&gt;
&lt;br /&gt;
* capslock -&amp;gt; additional control&lt;br /&gt;
* nvidia-drivers&lt;br /&gt;
* wish 8.5 (see listamacambira email) - nice tcl/tk GUI&lt;br /&gt;
* Explore o gnome-tweak-tool&lt;br /&gt;
&lt;br /&gt;
You might want to change UID to same as the UID of your other computers or external hard drives (same with GID)&lt;br /&gt;
&lt;br /&gt;
 usermod -u UID username&lt;br /&gt;
 groupmod -g GID username&lt;br /&gt;
&lt;br /&gt;
This will take care of everything inside /home/username, /etc/passwd and the like. Remember to edit /etc/login.defs if your UID is below 1000&lt;br /&gt;
&lt;br /&gt;
== Cuda ==&lt;br /&gt;
&lt;br /&gt;
The following steps makes CUDA (for NVidia cards) work with software such as [[Blender]] [http://blender.stackexchange.com/questions/7485/enabling-gpu-rendering-for-cycles]&lt;br /&gt;
[http://blender.stackexchange.com/questions/31045/cuda-rendering-on-linux-mint-or-ubuntu-variants/31111#31111] &lt;br /&gt;
* Install the proprietary NVIDIA drivers.&lt;br /&gt;
** Go to System Settings -&amp;gt; Software Updates -&amp;gt; Additional Drivers Tab and select the latest stable.&lt;br /&gt;
** Install some cuda-specific packages: &lt;br /&gt;
 sudo apt-get install nvidia-modprobe nvidia-cuda-toolkit&lt;br /&gt;
&lt;br /&gt;
=== Other Instructions ===&lt;br /&gt;
You can try to follow this:&lt;br /&gt;
 http://hdfpga.blogspot.com/2011/05/install-cuda-40-on-ubuntu-1104.html&lt;br /&gt;
[[Image:Ubuntu-logox45.png|right]]&lt;br /&gt;
[[Category:Lab Macambira]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
&lt;br /&gt;
== Automation Script ==&lt;br /&gt;
The latest instructions on this page are automated inside an install script that is shipped as part of the [[Lab Macambira]] utils Git repository:&lt;br /&gt;
&lt;br /&gt;
http://labmacambira.git.sourceforge.net/git/gitweb.cgi?p=labmacambira/utils;a=blob;f=configure-ubuntu-for-programming;hb=HEAD&lt;br /&gt;
&lt;br /&gt;
You can download it using Git (for easily downloading later updates) like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    $ git clone git://labmacambira.git.sourceforge.net/gitroot/labmacambira/utils&lt;br /&gt;
&lt;br /&gt;
Or, if you are a [[Lab Macambira]] comitter or if you have a sourceforge user:&lt;br /&gt;
&lt;br /&gt;
    $ git clone ssh://&amp;lt;usuario&amp;gt;@labmacambira.git.sourceforge.net/gitroot/labmacambira/utils&lt;br /&gt;
&lt;br /&gt;
The above script is pretty much like achieving a developer's distro on top of a raw ubuntu installation.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual do Novato]] for [[Lab Macambira]] n00b guidance&lt;br /&gt;
* [[Mac|Configuring Mac OS X for programming]] open source and beyond&lt;/div&gt;</summary>
		<author><name>V1z3</name></author>
	</entry>
</feed>