Editing Overview on modifying the Synology Server, bootstrap, ipkg etc
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 71: | Line 71: | ||
[http://ipkg.nslu2-linux.org/feeds/optware/ds101/cross/unstable/ds101-bootstrap_1.0-4_armeb.xsh http://ipkg.nslu2-linux.org/feeds/optware/ds101/cross/unstable/ds101-bootstrap_1.0-4_armeb.xsh] which uses [http://ipkg.nslu2-linux.org/feeds/optware/ds101/cross/unstable/ http://ipkg.nslu2-linux.org/feeds/optware/ds101/cross/unstable/] as its feed. | [http://ipkg.nslu2-linux.org/feeds/optware/ds101/cross/unstable/ds101-bootstrap_1.0-4_armeb.xsh http://ipkg.nslu2-linux.org/feeds/optware/ds101/cross/unstable/ds101-bootstrap_1.0-4_armeb.xsh] which uses [http://ipkg.nslu2-linux.org/feeds/optware/ds101/cross/unstable/ http://ipkg.nslu2-linux.org/feeds/optware/ds101/cross/unstable/] as its feed. | ||
For Intel Atom | For Intel Atom D410 x86 Processor | ||
[http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh] which uses [http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/ http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/] as its feed. | [http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh] which uses [http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/ http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/] as its feed. | ||
Line 87: | Line 87: | ||
For Marvel Kirkwood mv6281 ARM models | For Marvel Kirkwood mv6281 ARM models | ||
[http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh] which uses [http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/] as its feed. | [http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh] which uses [http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/] as its feed. | ||
The steps to install the bootstrap (provided as .xsh files) are below, you should replace the text in '''bold''' with the relevant text for your CPU's bootstrap file (listed above). | The steps to install the bootstrap (provided as .xsh files) are below, you should replace the text in '''bold''' with the relevant text for your CPU's bootstrap file (listed above). | ||
Line 99: | Line 93: | ||
#Change to a directory such as "/volume1/@tmp", i.e. enter the command "cd /volume1/@tmp" | #Change to a directory such as "/volume1/@tmp", i.e. enter the command "cd /volume1/@tmp" | ||
#Get the NAS to download the bootstrap, e.g. if you have an mv5281 ARM model enter the command "wget '''<nowiki>http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/syno-x07-bootstrap_1.2-7_arm.xsh</nowiki>'''", alternatively download the bootstrap to your PC and then copy it to a shared folder on the NAS | #Get the NAS to download the bootstrap, e.g. if you have an mv5281 ARM model enter the command "wget '''<nowiki>http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/syno-x07-bootstrap_1.2-7_arm.xsh</nowiki>'''", alternatively download the bootstrap to your PC and then copy it to a shared folder on the NAS | ||
#Now run the .xsh script, e.g. if you have an mv5281 ARM model and used the bootstrap above enter the command "sh '''syno-x07-bootstrap_1.2-7_arm.xsh'''" | #Now run the .xsh script, e.g. if you have an mv5281 ARM model and used the bootstrap above enter the command "sh '''syno-x07-bootstrap_1.2-7_arm.xsh'''" | ||
#After the script has finished you can delete the script file, e.g. for mv5281 ARM users using the bootstrap above enter the command "rm '''syno-x07-bootstrap_1.2-7_arm.xsh'''" | #After the script has finished you can delete the script file, e.g. for mv5281 ARM users using the bootstrap above enter the command "rm '''syno-x07-bootstrap_1.2-7_arm.xsh'''" | ||
#Reboot the NAS and login again to the [[Modifications|Command Line Interface]] as user "root" | #Reboot the NAS and login again to the [[Modifications|Command Line Interface]] as user "root" | ||
#Update the ipkg list of available packages using the command "ipkg update" | #Update the ipkg list of available packages using the command "ipkg update" | ||
#Upgrade any ipkg installed packages to the latest versions using the command "ipkg upgrade" | #Upgrade any ipkg installed packages to the latest versions using the command "ipkg upgrade" | ||
#Finished, you can now install ipkg packages using the command "ipkg install xxxx" where xxxx is the name of the package. You can list all the available packages using the command "ipkg list". As this is a long list you can filter it using the command "ipkg list | grep xxxx" where xxxx is the text you want to search for. Alternatively, you view one page at a time using the "more" pipe, e.g. "ipkg list | more" | #Finished, you can now install ipkg packages using the command "ipkg install xxxx" where xxxx is the name of the package. You can list all the available packages using the command "ipkg list". As this is a long list you can filter it using the command "ipkg list | grep xxxx" where xxxx is the text you want to search for. Alternatively, you view one page at a time using the "more" pipe, e.g. "ipkg list | more" | ||
Line 118: | Line 107: | ||
====Toolchain==== | ====Toolchain==== | ||
A Toolchain is a | A Toolchain is a developers plugin that allows programmers to compile programs for target systems, in our case the Synology Servers. | ||
You can now compile source code applications directly on the Synology Server. First install '''ipkg''' using the [ [[Overview_on_modifying_the_Synology_Server%2C_bootstrap%2C_ipkg_etc#Bootstrap|Bootstrap]] ]. Now you can log into the command line and install all the tools necessary to perform local builds in one step: <pre>cs407> ipkg install optware-devel</pre> When performing local builds remember that by default '''./configure''' will set up the build to install to '''/usr/bin''' etc whereas it is sensible to make it install into the '''/opt''' root. Generally you can just get away with doing this: <pre>cs407> ./configure --prefix=/opt</pre>however, unfortunately, other command switches and flags may be needed (see ./configure --help). | You can now compile source code applications directly on the Synology Server. First install '''ipkg''' using the [ [[Overview_on_modifying_the_Synology_Server%2C_bootstrap%2C_ipkg_etc#Bootstrap|Bootstrap]] ]. Now you can log into the command line and install all the tools necessary to perform local builds in one step: <pre>cs407> ipkg install optware-devel</pre> When performing local builds remember that by default '''./configure''' will set up the build to install to '''/usr/bin''' etc whereas it is sensible to make it install into the '''/opt''' root. Generally you can just get away with doing this: <pre>cs407> ./configure --prefix=/opt</pre>however, unfortunately, other command switches and flags may be needed (see ./configure --help). | ||
Line 126: | Line 115: | ||
==Other usefull sources of info== | ==Other usefull sources of info== | ||
This Synology Wiki area and the Synology forum are your main sources, however, other very usefull areas are: | This Synology Wiki area and the Synology forum are your main sources, however, other very usefull areas are: | ||
*[http://www.nslu2-linux.org NSLU2-LINUX] | *[http://www.nslu2-linux.org NSLU2-LINUX] | ||
*[http://synology.nas-central.org/index.php/Main_Page NAS-Central] | *[http://synology.nas-central.org/index.php/Main_Page NAS-Central] | ||
Line 132: | Line 120: | ||
*[http://www.freeos.com/articles/3102 An overview of the Linux filesystem] | *[http://www.freeos.com/articles/3102 An overview of the Linux filesystem] | ||
*[http://www.justlinux.com/nhf/Filesystems/Directory_Navigation.html An overview of the Linux Directory Structure] | *[http://www.justlinux.com/nhf/Filesystems/Directory_Navigation.html An overview of the Linux Directory Structure] | ||