I'll be making a pdf file of this once i get it finished but here is what i have so far.
1. Basic commands
A. To go to a directory, command:
- Code: Select all
cd /directory name
B. To make a directory, command:
- Code: Select all
mkdir /directory name
C. To delete a file, command:
- Code: Select all
rm file name
D. To delete directory and its content, command:
- Code: Select all
rm -r directory name
E. To copy a file or files, command:
- Code: Select all
cp /directory name/file
F. For more than one file, command:
- Code: Select all
cp /directory name/*.* /destination directory
G. To install program, command:
- Code: Select all
ipkg install file name
H. To remove a program, command:
- Code: Select all
ipkg remove file name
I. To reboot the Synology box, command:
- Code: Select all
/sbin/reboot
J. To stop a program, command:
- Code: Select all
killall program name
2. Make sure you backup any files that you change, which is part of the system files.
If you make changes to any of these files they will go back to system defaults when you do a firmware update.
A. .profile location:
- Code: Select all
cd /root
B. Ipkg.conf location:
- Code: Select all
cd /opt/etc
C. Crontab location:
- Code: Select all
cd /etc
D. Httpd.conf location:
- Code: Select all
cd /usr/syno/apache/conf
These are some of the files I know for a fact will go back to system default, when you update the firmware.
3. Gaining telnet access
A. Download enable telnet patch to your desktop, from:
http://www.synology.com/enu/support/download.php#Patches
B. Open up your web browser and login to you Synology box web admin account.
C. Click on system on the left then click on the firmware update tab on the far right.
D. Click on the browse button and locate the enable telnet patch you downloaded, then click ok button. Wait for the patch to install and reboot. Do not turn off your system for any reason during this operation.
4. Installing bootstrap for the armmarvell models
A. Download the bootstrap file to your Synology box public folder, from:
http://www.maartendamen.com/node/12
B. Open a dos prompt, using windows command prompt or any program that will set a command dos prompt like putty.
C. Login as root, meaning admin name is root then type in your Synology box admin password.
D. Go to the directory of the bootstrap file, type:
- Code: Select all
cd /volume1/public
E. Install bootstrap file, type:
- Code: Select all
sh ds_armmarvell-bootstrap_1.0.xsh
F. After bootstrap install, type:
- Code: Select all
ipkg update
G. After you install the bootstrap you will want to update the ipkg.conf file with the new ipkg package feed, which will allow you to install more programs.
H. The best way to do this is to use vi editor which is part of linux, type
- Code: Select all
vi ipkg.conf
- Code: Select all
src packages http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/
If you don’t know how to use vi edit all the commands are down below.
I. Now do an
- Code: Select all
ipkg update
Linux VI Editor
VI Commands:
i insert mode, (ESC to exit insert mode) allows text to be entered on the screen
a Append to right mode
/word Move to the occurrence of "word"
n Locate the next occurrence
w Advance to the next word
e Advance to the next end of a word
b Move to the previous word
3b Move backward 3 words
dd delete line
3dd delete 3 lines
D Delete remainder of a line
dw Delete word
x Delete character
o Open space for new line below the cursor line
O Open a line above the cursor
CTRL-w Move back a word in append mode
u Undo last
U Undo all changes to current line
. In command mode, repeat the last text changing the command on the current line
:w newfilename save the file to newfilename from the command mode
:wq save and quit
:q! quit without saving
r replace then typa a character ot be replaced with r then return to break up a line
J join 2 lines
s substitute (sentence) typed text over a character, ESC when done
cw change word
c change part of a line from the cursor to the end of the line
cc substitute new text for aline, ESC when done
h move the cursor back one space
H move the cursor to the highest line on the screen
L move the cursor to the lowest line on the screen
M position the cursor at the midpoint on the screen
G last line in the file
0 (zero) Move the cursor to the beginning of the line it is on
view filename Open a file for viewing only
set number Turn on line numbers
set nonumber Turn off line numbers
Options:
number
autoindent (ai ctrl-d to move to the left
showmatch match brackets and parenthesis
tabstop=4
wrapmargine(wm) when line is wrapped (80-value)
:2 copy 4 Place a copy of line 2 after line 4.
:1,4 copy 7 (lines 1-4)
:n Access the next file for editing








