====== Package Managment ====== The DSM is not shipped with a package management. If you want to add functionality such as 'vim' or 'sudo', then install the 'ipkg' package manager first.\\ \\ This guide was written for DSM 4.3, but it also applies identically to DSM 5.1. ===== ipkg ===== The following bootstrap files need to be run for the different versions of DSM hardware. Check the CPU version if in doubt as root: # cat /proc/cpuinfo ^ Hardware ^ CPU ^ Bootstrap ^ Original ^ Remarks ^ | [[http://www.synology.com/en-global/products/overview/DS3612xs|DS3612xs]] | [[http://ark.intel.com/products/53422|Intel Core i3]] CPU | {{:dsm43:syno-i686-bootstrap_1.2-7_i686.xsh|Bootstrap-i686}} | [[http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/stable/syno-i686-bootstrap_1.2-7_i686.xsh|Bootstrap-i686]] | also applies to DSM 4.3 VMs | | [[http://www.synology.com/en-global/products/overview/DS212+|DS212+]] | [[http://www.marvell.com/embedded-processors/kirkwood/|Marvel 6282]] CPU | {{:dsm43:syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh|Bootstrap-mv6282}} | [[http://web.archive.org/web/20121005035819/http://wizjos.endofinternet.net/synology/archief/syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh|Bootstrap-mv6282]] | special original download [[http://forum.synology.com/enu/viewtopic.php?f=40&t=73934|instructions]] | | [[http://www.synology.com/en-global/products/overview/DS213+|DS213+]] | [[http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=P1022|Freescale QorIQ P1022]] CPU | {{:dsm43:syno-e500-bootstrap_1.2-7_powerpc.xsh|Bootstrap-p1022}} | [[http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/stable/syno-e500-bootstrap_1.2-7_powerpc.xsh|Bootstrap-p1022]] | see also [[http://en.wikipedia.org/wiki/PowerPC_e500|PowerPC e500]] | Copy the file to the DSM or get it directly from the command line, then make it executable and run it. The example below is for the i3 bootstrap, replace the file name accordingly: # wget http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh # chmod +x syno-i686-bootstrap_1.2-7_i686.xsh # ./syno-i686-bootstrap_1.2-7_i686.xsh Reboot the VM or NAS. Change the path of your user and root as described in [[dsm43:config|Configuration]]. To install apps, run the following: ipkg update ipkg install Also refer to [[http://forum.synology.com/wiki/index.php/What_kind_of_CPU_does_my_NAS_have|Synology CPU Table]] and [[http://forum.synology.com/wiki/index.php/Overview_on_modifying_the_Synology_Server,_bootstrap,_ipkg_etc|Overview on modifying the Synology Server, bootstrap, ipkg etc]]. Other resources: * [[http://www.synology-wiki.de/index.php/IPKG|IPKG]] * [[ftp://ftp.osuosl.org/pub/nslu2/feeds/optware/|FTP Download Mirror]] ===== apps ===== ==== sudo ==== # ipkg install sudo After installation, run //visudo// and uncomment the line starting with '%sudo' which defines rights for members of the sudo group. Then add the sudo group to /etc/group. # visudo %sudo ALL=(ALL) ALL # vi /etc/group sudo:x:27: Change the shell prompt of your user and root as described in [[dsm43:config|Configuration]]. ==== vim ==== # ipkg install vim To fix the broken arrow keys in insert mode in vim, change the vim default config as follows: $ vi ~/.vimrc set nocompatible Or better, set the system wide configuration file vimrc, or copy the example vim config file. First, find where the system wide config file is located: $ vim :echo $VIM For DSM 4.3 / ipkg, the location is /opt/share/vim, the example config file is located in the same directory: # cp /opt/share/vim/vimrc_example.vim /opt/share/vim/vimrc For Debian Wheezy, the location is /usr/share/vim pointing to /etc/vim, the example config file is located in /usr/share/vim/vim73: # cp /usr/share/vim/vim73/vimrc_example.vim /usr/share/vim/vimrc Instead of copying the configuration file template, you can also just add syntax highlighting to /etc/vim/vimrc: if has("syntax") syntax on endif Other Vim resources: * [[http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html|Graphical vi-vim Cheat Sheet and Tutorial]] * [[http://vimdoc.sourceforge.net/htmldoc/help.html|Vim documentation: help]] * [[http://vim.wikia.com/wiki/Fix_broken_arrow_key_navigation_in_insert_mode|Fix broken arrow key navigation in insert mode]] * [[http://stackoverflow.com/questions/164847/what-is-in-your-vimrc|What is in your .vimrc?]] * [[http://vim.wikia.com/wiki/Open_vimrc_file|Open vimrc file]] ==== lftp ==== # ipkg install lftp