Posted on 2017/10/19 17:43
Filed Under Embedded/최적화 및 팁

DNS server, DNS service  

below are the commands u can execute and also more u can play

windsh [windsh]
NAME
windsh [windsh] - The Tornado Shell 

ROUTINES

agentModeShow( ) - show the agent mode (*) (WindSh)
b( ) - set or display breakpoints (WindSh)
bd( ) - delete a breakpoint (WindSh)
bdall( ) - delete all breakpoints (WindSh)
bh( ) - set a hardware breakpoint (WindSh)
bootChange( ) - change the boot line (WindSh)
browse( ) - send a message to the browser asking it to browse an
address (*) (WindSh)
c( ) - continue from a breakpoint (WindSh)
cd( ) - change the default directory (WindSh) 
checkStack( ) - print a summary of each task's stack usage (WindSh)
classShow( ) - show information about a class of objects (*) (WindSh)
cplusCtors( ) - call static constructors (C++) (WindSh)
cplusDtors( ) - call static destructors (C++) (WindSh)
cplusStratShow( ) - show C++ static constructors calling strategy (*) (WindSh)
cplusXtorSet( ) - change C++ static constructor calling strategy (C++) (WindSh)
cret( ) - continue until the current subroutine returns (WindSh)
d( ) - display memory (WindSh)
devs( ) - list all system-known devices (WindSh)
h( ) - display or set the size of shell history (WindSh)
help( ) - print a synopsis of selected routines (WindSh)
hostShow( ) - display the host table (WindSh)
i( ) - print a summary of each task's TCB, task by task (WindSh)
iStrict( ) - print a summary of all task TCBs, as an atomic snapshot (*) (WindSh)
icmpstatShow( ) - display statistics for ICMP (WindSh)
ifShow( ) - display the attached network interfaces (WindSh)
inetstatShow( ) - display all active connections for Internet protocol sockets (WindSh)
intVecShow( ) - display the interrupt vector table (WindSh)
iosDevShow( ) - display the list of devices in the system (WindSh)
iosDrvShow( ) - display a list of system drivers (WindSh)
iosFdShow( ) - display a list of file descriptor names in the system (WindSh)
ipstatShow( ) - display IP statistics (WindSh)
l( ) - disassemble and display a specified number of instructions (WindSh)
ld( ) - load an object module into memory (WindSh)
lkAddr( ) - list symbols whose values are near a specified value (WindSh)
lkup( ) - list symbols (WindSh)
ls( ) - list the contents of a directory (WindSh)
m( ) - modify memory (WindSh)
memPartShow( ) - show partition blocks and statistics (WindSh)
memShow( ) - show system memory partition blocks and statistics (WindSh)
moduleIdFigure( ) - figure out module ID, given name or number (*) (WindSh)
moduleShow( ) - show the current status for all the loaded modules (WindSh)
mqPxShow( ) - show information about a POSIX message queue (*) (WindSh)
mRegs( ) - modify registers (WindSh)
msgQShow( ) - show information about a message queue (WindSh)
period( ) - spawn a task to call a function periodically (WindSh)
printErrno( ) - print the definition of a specified error status value (WindSh)
printLogo( ) - display the Tornado logo (WindSh)
pwd( ) - display the current default directory (WindSh)
quit( ) - shut down WindSh (*) (WindSh)
reboot( ) - reset network devices and transfer control to boot ROMs (WindSh)
repeat( ) - spawn a task to call a function repeatedly (WindSh)
routestatShow( ) - display routing statistics (WindSh)
s( ) - single-step a task (WindSh)
semPxShow( ) - show information about a POSIX semaphore (*) (WindSh)
semShow( ) - show information about a semaphore (WindSh)
shellHistory( ) - display or set the size of shell history (WindSh)
shellPromptSet( ) - change the shell prompt (WindSh)
show( ) - display information on a specified object (WindSh)
smMemPartShow( ) - show user's shared memory system partition blocks and statistics (*) (WindSh)
smMemShow( ) - show the shared memory system partition blocks and statistics (WindSh)
so( ) - single-step, but step over a subroutine (WindSh)
sp( ) - spawn a task with default parameters (WindSh)
sps( ) - spawn a task with default parameters, and leave it suspended (*) (WindSh)
sysResume( ) - reset the agent to tasking mode (*) (WindSh)
sysStatusShow( ) - show system context status (*) (WindSh)
sysSuspend( ) - set the agent to external mode and suspend the system (*) (WindSh)
taskCreateHookShow( ) - show the list of task create routines (WindSh)
taskDeleteHookShow( ) - show the list of task delete routines (WindSh)
taskIdDefault( ) - set the default task ID (WindSh)
taskIdFigure( ) - figure out the task ID of a specified task (*) (WindSh)
taskRegsShow( ) - display the contents of a task's registers (WindSh)
taskShow( ) - display task information from TCBs (WindSh)
taskSwitchHookShow( ) - show the list of task switch routines (WindSh)
taskWaitShow( ) - show information about the object a task is pended on (*) (WindSh)
tcpstatShow( ) - display all statistics for the TCP protocol (WindSh)
td( ) - delete a task (WindSh)
tftpInfoShow( ) - get TFTP status information (WindSh)
ti( ) - display complete information from a task's TCB (WindSh)
tr( ) - resume a task (WindSh)
ts( ) - suspend a task (WindSh)
tt( ) - display a stack trace of a task (WindSh)
tw( ) - print info about the object the given task is pending on (*) (WindSh)
udpstatShow( ) - display statistics for the UDP protocol (WindSh)
unld( ) - unload an object module by specifying a file name or module ID (WindSh)
version( ) - print VxWorks version information (WindSh)
w( ) - print a summary of each task's pending information, task by task (*) (WindSh)
wdShow( ) - show information about a watchdog (WindSh)

for more details inside your tornado installation, go to
docs->tornado->tools->windsh.html
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2017/10/19 17:43 2017/10/19 17:43
TAG :

Posted on 2017/08/17 23:12
Filed Under Programming/Database

DNS server, DNS service  

mysql 데이터베이스 생성 및 사용자 추가 
<mysql 접속>

# mysql -u root -p
root 패스워드 치고 접속


<데이터베이스 목록 확인>

mysql> show databases;
+--------------------+
| Database                |
+--------------------+
| information_schema |
| mysql                     |
+--------------------+
2 rows in set (0.00 sec)


<test 데이터베이스 생성>

mysql> create database test;


<데이터 생성되었는지 확인>

mysql> show databases;
+--------------------+
| Database                |
+--------------------+
| information_schema |
| mysql                     |
| test                        |
+--------------------+
3 rows in set (0.00 sec)


<사용자 추가하고 생성한 데이터베이스 사용 권한 주기>

grant all privileges on test.* to testuser@localhost identified by 'testuser 계정의 패스워드 입력' with grant option;


<testuser 사용자 생성되었는지 확인>

mysql> use mysql;
mysql> select * from user;     <- 이건 전체 유저 확인
mysql> select * from user where user='testuser';     <- 이건 testuser 계정 확인
<DataBase 삭제 >

mysql> drop database test;


<testuser 사용자 삭제>

mysql> delete from user where user='testuser';
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2017/08/17 23:12 2017/08/17 23:12

Posted on 2017/08/15 21:02
Filed Under Programming/Tools

DNS server, DNS service  

Synology NAS에서의 작업 
1. 제어판에서 SSH 활성화
2. 제어판에서 "사용자 홈 서비스 활성화"
3. 제어판에서 git을 사용할 사용자의 homes 권한은 "읽기/쓰기" 권한을 부여
4. 패키지 센터에서 "Git Server"을 다운로드.
5. "Git Server"을 실행후, git 을 사용할 사용자에게 권한을 부여
Synology NAS - SSH로 접속 후, root 로그인 

cd..
cd volumes1/homes/gituser (Git 사용자)
mkdir project.git   (Git 프로젝트 폴더)
cd project.git
git init --bare --shared
git update-server-info
cd..
chown -R gituser:users project.git (권한을 Git 유저에게 부여)
ls -al (권한이 제대로 옮겨졌는지 확인)

이후 원격지에서 Synology NAS GIT 서버에 리포지토리로 추가하는 방법.

mkdir project.git (원격지의 Git 프로젝트(리포지토리)생성)
cd project.git
git init
git remote add origin ssh://gituser@시놀로지IP:포트/volume1/homes/gituser/project.git (Git 폴더)
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2017/08/15 21:02 2017/08/15 21:02

About

by CoCo

Notice

Counter

· Total
: 817576
· Today
: 90
· Yesterday
: 147