Linux/Ubuntu2010. 2. 5. 10:03
FC6에서는 /etc/xinetd.d/tftp 라는 파일로 존재했다.

$ cat tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
#       protocol.  The tftp protocol is often used to boot diskless \
#       workstations, download configuration files to network-aware printers, \
#       and to start the installation process for some operating systems.
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

하지만 우분투에서는 xinet 대신 inet을 사용하며,
경로역시 /etc/inetd.conf 로 변경되었다.

$ cat /etc/inetd.conf
#<off># netbios-ssn     stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/sbin/smbd
tftp            dgram   udp     wait    nobody  /usr/sbin/tcpd  /usr/sbin/in.tftpd /srv/tftp

어쨌거나 저쨌거나, 위의 빨간색 굵게 칠해진 부분이 tftp 경로이다.
음.. 기본값이 다르군!
Posted by 구차니
3.0.x 에서는 (다르게 말하자면 Fedora Core 6 용 삼바)
기본적으로 /etc/samba/smbpasswd 라는 파일을 이용해서 계정의 암호를 관리한다.
하지만 3.4.0 으로 가면서 tdb를 사용하게 되는데, 일종의 migration이 필요하게 된다.

조금 간단하게 이야기하자면
FC6 -> Ubuntu 9.10 삼바 마이그레이션 할 경우이다.

Account Import/Export

The pdbedit tool allows import/export of authentication (account) databases from one backend to another. For example, to import/export accounts from an old smbpasswd database to a tdbsam backend:

  1. root# pdbedit -i smbpasswd -e tdbsam

  2. Replace the smbpasswd with tdbsam in the passdb backend configuration in smb.conf.



[링크 : http://samba.org/samba/docs/man/Samba-HOWTO-Collection/passdb.html#pdbeditthing]

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

samba on Ubuntu 10.04 LTS  (0) 2010.11.11
cifsd  (0) 2010.03.18
SPNEGO, NTLMSSP  (0) 2009.12.21
삼바 디버그 메시지 설정하기  (4) 2009.12.18
삼바에서 대용량 파일 전송 실패  (0) 2009.12.03
Posted by 구차니
파이어폭스에서 게임시작을 누르면 게임이 시작된다!!!



당연한건가? -ㅁ-
Posted by 구차니
Linux/Ubuntu2010. 2. 4. 21:20
우분투 데스크탑 버전만 쓰다보니, 여러 사용자의 권한을 생각해본적이 없다.
아무튼, 이런저런 이유로 인해 우분투에서 여러 사람이 쓰게 되었는데

역시나.. 초기추가하는 사용자는 기본적으로 sudo user로 추가가 된다.
간단하게 sudo 를 사용할수 있도록 하는 방법은 admin 그룹에 추가하는 것이다.

/etc/sudoers 에 WHEEL 이란건 먼지 좀 읽어봐야 할듯하다.

[링크 : http://zicman.egloos.com/2449683]
[링크 : http://wiki.kldp.org/wiki.php/sudo]

+
2019.10.28

아래의 명령을 이용하면 sudoer로 등록이 가능하다,.


Posted by 구차니
Linux2010. 2. 4. 20:58
sudo는 debian이던, fedora던 존재하지만,
아무튼, 일시적으로 root의 권한을 지니게하고 일반적으로 root의 행동은 log에 남지 않지만
sudo를 통해서 작업하면 로그로도 남기기 때문에 상대적으로 보안이 좀더 강화된다.

아무튼,
페도라에서는 su 로 root 쉘을 사용하지만
우분투에서는 sudo 로 일시적으로 상승시켜 명령을 실행한다.

물론 sudo -i 라는 명령을 이용해서 루트 쉘로 이동할수는 있다.
페도라의 su 명령어는 디렉토리가 변경되지 않는 반면,
우분투의 sudo -i 는 root의 홈 디렉토리(일반적으로 /root)로 이동한다.
sudo -isu - 와 동일한 느낌이다.

sudo -K | -L | -V | -h | -k | -l | -v
sudo [-HPSb] [-a auth_type] [-c class|-] [-p prompt] [-u username|#uid] {-e file [...] | -i | -s | command}

-i

The -i (simulate initial login) option runs the shell specified in the passwd(5) entry of the user that the command is being run as. The command name argument given to the shell begins with a - to tell the shell to run as a login shell. sudo attempts to change to that user's home directory before running the shell. It also initializes the environment, leaving TERM unchanged, setting HOME , SHELL , USER , LOGNAME , and PATH , and unsetting all other environment variables. Note that because the shell to use is determined before the sudoers file is parsed, a runas_default setting in sudoers will specify the user to run the shell as but will not affect which shell is actually run.

[링크 : http://linux.die.net/man/8/sudo]


기본 sudoers 파일 내용
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults    env_reset

# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
 
[링크 : https://help.ubuntu.com/community/Sudoers]  

Posted by 구차니
Linux/Ubuntu2010. 2. 4. 17:24
우분투에서는 gnome 자동로그인을 지원한다.
설치중에 설정이 가능한데, 설정하지 않고 설치후에 변경하는 법은 다음과 같다.

Step 1. 로그인 화면을 실행한다.


Step 2. 로그인 화면 설정에서 "잠금 풀기"를 한다음 "자동으로 로그인" 에 유저를 선택한다.

'Linux > Ubuntu' 카테고리의 다른 글

tftp 설정경로  (0) 2010.02.05
sudo 사용가능하도록 설정하기  (0) 2010.02.04
ubuntu 9.10 에서 /dev/fb 만들기  (4) 2010.02.01
우분투에서 rpm 패키지 설치 2  (2) 2010.01.29
우분투에서 FC6에서 만든 LVM 마운트하기  (0) 2010.01.25
Posted by 구차니
프로그램 사용/nfs2010. 2. 4. 12:25
NFS 서버는        nfs-kernel-server 패키지
NFS 클라이언트는 nfs-common 패키지를 설치한다.

머.. 패키지 이름이 그러하듯, 우분투에서 nfs 서버 재가동은
sudo service nfs-kernel-server restart

[링크 : https://help.ubuntu.com/8.04/serverguide/C/network-file-system.html]
Posted by 구차니
Linux2010. 2. 4. 10:06
우분투에서는(Gnome)
/etc/hostname 파일을 수정하면 된다.
[링크 : http://servermaster.pe.kr/tt/24]

페도라에서는(Gnome)
/etc/sysconfig/network 파일을 수정하거나,
네트워크 설정의 DNS 탭에서 호스트명을 수정해주면 된다.


[링크 : http://www.superuser.co.kr/linux/hostname/page03.htm]
Posted by 구차니
프로그램 사용/VLC2010. 2. 3. 19:39
VLC 크로스컴파일은 참.. 멀고도 험하다..

vlc-1.0.4$ make
...
 /opt/STM/STLinux-2.2/devkit/sh4/lib/gcc/sh4-linux/4.1.1/../../../../sh4-linux/bin/ld: warning: libvlccore.so.2, needed by ../src/.libs/libvlc.so, not found (try using -rpath or -rpath-link)
collect2: ld returned 1 exit status
이런식으로 오류가 발생한다.

아무튼, Makefile의 문제로, 1.0.5 에는 버그 수정이 되었다고 한다.

Try to modify bin/Makefile. It works for me.
vlc_LDADD = ../src/libvlc.la `$(VLC_CONFIG) -libs vlc` $(am__append_2)
change to
vlc_LDADD = ../src/libvlccore.la ../src/libvlc.la `$(VLC_CONFIG) -libs vlc` $(am__append_2)

[링크 : http://forum.videolan.org/viewtopic.php?f=13&t=63438]

위와 같이 수정하고 나면 다른 에러가 발생한다.
libtool: link: sh4-linux-gcc -std=gnu99 -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DMODULE_NAME=vlc -DMODULE_NAME_IS_vlc -DMODULE_STRING=\"vlc\" -O2 -ffast-math -funroll-loops -fomit-frame-pointer -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -o .libs/vlc vlc.o  ../src/.libs/libvlccore.so ../src/.libs/libvlc.so -Wl,-rpath -Wl,/opt/STM/STLinux-2.2/devkit/sh4/target/usr/lib
../src/.libs/libvlccore.so: undefined reference to `dbus_threads_init_default'
collect2: ld returned 1 exit status
이녀석은 --disable-dbus-control --disable-dbus 옵션을 주고 하면 사라진다.

그래도 또 다른 에러가 발생한다.
libtool: link: sh4-linux-gcc -std=gnu99 -shared  .libs/librtp_plugin_la-rtp.o .libs/librtp_plugin_la-input.o .libs/librtp_plugin_la-session.o  -Wl,--whole-archive ../../../compat/.libs/libcompat.a ../../../libs/srtp/.libs/libvlc_srtp.a -Wl,--no-whole-archive  -Wl,-rpath -Wl,/home/morpheuz/다운로드/vlc-1.0.4/src/.libs -Wl,-rpath -Wl,/opt/STM/STLinux-2.2/devkit/sh4/target/usr/lib -Wl,-rpath -Wl,/opt/STM/STLinux-2.2/devkit/sh4/target/usr/lib ../../../src/.libs/libvlccore.so /opt/STM/STLinux-2.2/devkit/sh4/target/usr/lib/libgcrypt.so /lib/libgpg-error.so -lnsl -lpthread    -Wl,-soname -Wl,librtp_plugin.so -o .libs/librtp_plugin.so
/lib/libgpg-error.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
이녀석은 --libdir=/opt/STM/STLinux-2.2/devkit/sh4/target/usr/lib/ 옵션을 줘도 안된다 ㅠ.ㅠ

'프로그램 사용 > VLC' 카테고리의 다른 글

x264 , libavcodec 다운로드  (0) 2010.02.24
vlc-1.0.5 cross compile  (3) 2010.02.09
VLC 1.0.4 cross compile + busybox  (0) 2010.02.02
의미는 없는 Linux / Windows VLC 차이  (0) 2010.01.26
VLC로 youtube 동영상 감상하기  (0) 2010.01.26
Posted by 구차니
GPL로 삼성과 휴맥스 제소한 내용을 보니..
GPL 역시 꿀과 젖이 흐르는 곳은 아닌듯하다.

LGPL이나 BSD 라이센스로 떠나야 할려나?

[링크 : http://www.bloter.net/archives/22387]
[링크 : http://www.smartplace.kr/blog_post_99.aspx]
[링크 : http://www.jopenbusiness.com/mediawiki/index.php/오픈소스_라이센스_컨설팅]
Posted by 구차니