![]() ![]() The SSD drive can be your main hard drive or an external one (possibly on a fast USB connections). Speed is essential to have quick feedback during our test and compilations cycles. Software development requires reading and writing hundred of files. SSD drives are an impressive speed improvement. Note: I like Nimbus on Ubuntu Unity user interface. The script will invoke NetBeans with the appropriate options. – map the cachedir to a /tmp/ subdir, by creating a NetBeans invocation script as the following: #!/bin/shĮxport OPTIONS=" -cachedir $RAMDISK -laf Nimbus " This will “map” the /tmp dir into RAM up to 2GByte (see tip #3). – mount the /tmp to a tmpfs type filesystem, by adding the following line in the /etc/fstab tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=2048M 0 0 With at least 4 GByte RAM, we can map the cache dir to a temporary RAM on disk using Ubuntu native ram filesystem. Part of this information, mainly related to projects is considered to be a cache (= it can be recreated if deleted) the cache can be located in a separated dir with the command line –cachedir. NetBeans saves configuration, user preferences and project files status in the NetBeans user dir which is located in $HOME/.netbeans/. Reserve at least 1.5GByte free space on the /tmp. ![]() ![]() The /tmp dir is usually small when it is mounted on a dedicated partition. While doing this update, NetBeans saves big temporary dirs under /tmp and the update fails if /tmp has no space available. NetBeans use /tmp for temporary operations like, for example, updating Central Maven repository information. If /opt is now user writable, execute the following command sudo chmod 777 /opt I suggest to use /opt as the main installation dir. NetBeans needs to update files in its own installation directory during software updates. Get installation files from the main sources and install them manually in a common dir like /opt.Ģ. Dependencies force you to install not needed or incompatible software.It should not be used to install the tools you need for development, NetBeans included. These tips can be applied to other Linux distributions.Īpt-get is the Ubuntu/Debian tool to download and install programs from the repositories. Nevertheless few tips can make our developer life easier. Ubuntu Linux is a very nice software development platform and NetBeans fit very well in it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |