요즘은 머하고 사냐...여기 동진이 집이다..수원에 왔다네...
민창이랑 저녁 먹고 동진이 집에 왔는데 홈시어터랑 80인치 스크린이랑 장난 아니다..ㅋㅋ
돈 잘버나봐..ㅎ
광주 내려간지도 어언 2개월이 넘어가는구만..쩝
울집도 이사했다는데 아직 위치도 몰라..헐..
간만에 인터넷 들어와 봤다가 생각나서 흔적 남긴다..
잘 지내고 나중에 올라오면 꼭 연락해라..술한잔 허게..ㅋㅋ

'XE수다떨기글' 카테고리의 다른 글

윤도현 홈페이지 놀러오세요~~ 가입들...  (0) 2012.05.03
형님 저 머리 했어요. 한번 보세요....  (0) 2010.08.24
일본 아줌마  (0) 2010.04.20
파도타기  (0) 2009.12.14
.....  (0) 2009.12.14
Posted by 까 치
,
Starting the Synergy SERVER on boot up.

Sample configuration  file
section: screens
        youngseok7_lee:
        magpie-desktop:
                super = meta
end

section: links
        youngseok7_lee:
                left = magpie-desktop
        magpie-desktop:
                right = youngseok7_lee
end

section: options
        switchDelay = 0
end



Make a directory in /etc to store the configuration:

Code:
sudo mkdir /etc/synergy
Setup my synergy server configuration file:
Code:
sudo gedit /etc/synergy/synergy.conf
To make the server run when gdm runs, but before anyone has logged in:

edit /etc/gdm/Init/Default:
Code:
sudo gedit /etc/gdm/Init/Default
Added the following lines in the middle of the file BEFORE the "sysmodmap=/etc/X11/Xmodmap" line:

Code:
SYNERGYS=`gdmwhich synergys`
if [ x$SYNERGYS != x ] ; then
$SYNERGYS --config /etc/synergy/synergy.conf
fi
The only problem with that is once you log in it kills off the server, so you need to make it start again for you.

edited /etc/gdm/Init/Default:
Code:
sudo gedit /etc/gdm/PreSession/Default
Added the following lines in the middle of the file BEFORE the "XSETROOT=`gdmwhich xsetroot`" line:
Code:
SYNERGYS=`gdmwhich synergys`
if [ x$SYNERGYS != x ] ; then
$SYNERGYS --config /etc/synergy/synergy.conf
fi
Log out and back in again.

The synergy server should now startup and run whenever your gdm session does.




Starting the Synergy CLIENT on boot up.
These instructions should work for running the synergy client on your UBUNTU machine to connect to a locally networked computer running the synergy server. (I've not actually tried them myself.)
Let us know how you get on.

NOTE:
The <address of server machine> will probably be an ip address that looks something like 192.168.0.1 (DON'T put in the exact string <address of server machine>)

To make the client run when gdm runs, but before anyone has logged in:

edit /etc/gdm/Init/Default:
Code:
sudo gedit /etc/gdm/Init/Default
Added the following lines in the middle of the file BEFORE the "sysmodmap=/etc/X11/Xmodmap" line:

Code:
SYNERGYC=`gdmwhich synergyc`
if [ x$SYNERGYC != x ] ; then
$SYNERGYC <address of server machine>
fi
The only problem with that is once you log in it kills off the client, so you need to make it start again for you.

edited /etc/gdm/Init/Default:
Code:
sudo gedit /etc/gdm/PreSession/Default
Added the following lines in the middle of the file BEFORE the "XSETROOT=`gdmwhich xsetroot`" line:
Code:
SYNERGYC=`gdmwhich synergyc`
if [ x$SYNERGYC != x ] ; then
$SYNERGYC <address of server machine>
fi
Log out and back in again.

The synergy client should now startup and run whenever your gdm session does.

NOTE:
The <address of server machine> will probably be an ip address that looks something like 192.168.0.1 (DON'T put in the exact string <address of server machine>)

'Development > 기타' 카테고리의 다른 글

Window7에서 아이콘이 깨질때  (0) 2012.06.17
유용한 C program  (0) 2012.06.17
Mulplication without using '*' operator  (0) 2010.12.21
Mobile XE 설정하기  (0) 2010.08.24
[GPS]GPS모듈 구현중  (0) 2009.12.14
Posted by 까 치
,


//C Program for Multiplication without Using Multiply Operator *
#include<stdio.h>
#include<conio.h>
void main()
{
int n,m,s=0;
clrscr();
printf(“nEnter the values”);
scanf(“%d%d”,&n,&m);
while(m!=0)
{
s=s+n;
m–;
}
printf(“Result = %d”,s);
getch();

}


By http://mycfiles.wordpress.com

'Development > 기타' 카테고리의 다른 글

유용한 C program  (0) 2012.06.17
Ubuntu 에서 Synergy 사용하기  (0) 2011.01.01
Mobile XE 설정하기  (0) 2010.08.24
[GPS]GPS모듈 구현중  (0) 2009.12.14
static 용어의 개념 및 성질  (0) 2009.10.25
Posted by 까 치
,