2012年4月19日木曜日
Linuxにて、ライブラリ位置を新規にOSへ認識させる方法
(1)/etc/ld.so.confに新規ライブラリが保存されているディレクトリを追加する。
(2)/sbin/ldconfigを実行する。
2012年4月17日火曜日
SIGCHLDのシグナル処理
SIGCHLDを取りこぼさないために、下記のようなハンドラ処理を行う。
void handler_sigchld(int signo)
{
while(true)
{
int status;
int pid = waitpid(-1,&status,WNOHANG);
if (pid == 0)
{
break;
}
}
}
void handler_sigchld(int signo)
{
while(true)
{
int status;
int pid = waitpid(-1,&status,WNOHANG);
if (pid == 0)
{
break;
}
}
}
2012年4月15日日曜日
grubの再インストール方法(ubuntu)
(1)LiveCDで起動
(2)F6を2回押し、起動オプションを表示
(3)オプション選択ダイアログが表示されている場合は[ESC]で閉じる
(4)矢印キー等を使い"boot=capter"部分を"root=/dev/sda2"(sda2部分は適宜変更)
に変更
(5)[return]キーを押下してubuntuを起動
(6)sudo grub-install /dev/sda
(2)F6を2回押し、起動オプションを表示
(3)オプション選択ダイアログが表示されている場合は[ESC]で閉じる
(4)矢印キー等を使い"boot=capter"部分を"root=/dev/sda2"(sda2部分は適宜変更)
に変更
(5)[return]キーを押下してubuntuを起動
(6)sudo grub-install /dev/sda
2012年3月29日木曜日
grub2において選択を保存する方法
(1)/etc/default/grubにおいて下記を変更する。
GRUB_SAVEDEFAULT=true --- 追加
GRUB_DEFAULT="saved" --- 値変更
(2)update-grub2を実行する。
GRUB_SAVEDEFAULT=true --- 追加
GRUB_DEFAULT="saved" --- 値変更
(2)update-grub2を実行する。
2011年12月29日木曜日
VNCサーバの設定
ubuntu 12.04で下記の設定で実行できた。
1.vnc4serverをインストール
2./etc/xinitd.d/xvncを下記のように作成
service xvnc
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -once -geometry 1024x768 -depth 16 -SecurityTypes None
log_on_failure += USERID
}
3./etc/servicesに下記を追加
xvnc 5901/tcp # VNC Server
4./etc/lightdm/lightdm.confを下記を追加
[SeatDefaults]
xserver-allow-tcp=true
[XDMCPServer]
enabled=true
1.vnc4serverをインストール
2./etc/xinitd.d/xvncを下記のように作成
service xvnc
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -once -geometry 1024x768 -depth 16 -SecurityTypes None
log_on_failure += USERID
}
3./etc/servicesに下記を追加
xvnc 5901/tcp # VNC Server
4./etc/lightdm/lightdm.confを下記を追加
[SeatDefaults]
xserver-allow-tcp=true
[XDMCPServer]
enabled=true
2011年11月10日木曜日
最大パケット転送能力(pps(packet per second))の理論上の最大値
10BASE-T-------14880pps
100BASE-TX----148810pps
1000BASE-T---1488100pps
100BASE-TX----148810pps
1000BASE-T---1488100pps
登録:
投稿 (Atom)