sudo と 開発環境のインストール

Debian LS-SL

sudo と 開発環境のインストール

sudo のインストール

root@sl:~# apt-get install sudo
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  sudo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 599 kB of archives.
After this operation, 946 kB of additional disk space will be used.
Get:1 http://security.debian.org/ squeeze/updates/main sudo armel 1.7.4p4-2.squeeze.3 [599 kB]
Fetched 599 kB in 32s (18.3 kB/s)
Selecting previously deselected package sudo.
(Reading database ... 11167 files and directories currently installed.)
Unpacking sudo (from .../sudo_1.7.4p4-2.squeeze.3_armel.deb) ...
Processing triggers for man-db ...
Setting up sudo (1.7.4p4-2.squeeze.3) ...
No /etc/sudoers found... creating one for you.
root@sl:~#
sudo グループに入れる
root@sl:~# addgroup yasunari sudo
Adding user `yasunari' to group `sudo' ...
Adding user yasunari to group sudo
Done.
root@sl:~#
一旦ログアウト、yasunariで再度ログインして動作確認
Debian GNU/Linux 6.0 sl ttyS0

sl login: yasunari
Password:
Linux sl 2.6.22.7-88f5182 #1 Fri Jun 8 11:00:39 JST 2012 armv5tejl

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
yasunari@sl:~$ id
uid=1001(yasunari) gid=1001(yamasita) groups=1001(yamasita),27(sudo)
yasunari@sl:~$ sudo ls /

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for yasunari:
bin   dev  home    lib    mnt  proc  sbin     srv  tmp  var
boot  etc  initrd  media  opt  root  selinux  sys  usr
yasunari@sl:~$
OK

開発環境のインストール

yasunari@sl:~$ sudo apt-get install make gcc libc6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  binutils cpp cpp-4.4 gcc-4.4 libc-dev-bin libgmp3c2 libgomp1 libmpfr4
  linux-libc-dev manpages-dev
Suggested packages:
  binutils-doc cpp-doc gcc-4.4-locales gcc-multilib autoconf automake1.9
  libtool flex bison gdb gcc-doc libmudflap0-4.4-dev gcc-4.4-doc libgcc1-dbg
  libgomp1-dbg libmudflap0-dbg libcloog-ppl0 libppl-c2 libppl7 glibc-doc
  make-doc
The following NEW packages will be installed:
  binutils cpp cpp-4.4 gcc gcc-4.4 libc-dev-bin libc6-dev libgmp3c2 libgomp1
  libmpfr4 linux-libc-dev make manpages-dev
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.4 MB of archives.
After this operation, 39.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org/debian/ squeeze/main binutils armel 2.20.1-16 [3093 kB]
Get:2 http://ftp.jp.debian.org/debian/ squeeze/main libgmp3c2 armel 2:4.3.2+dfsg-1 [251 kB]
Get:3 http://ftp.jp.debian.org/debian/ squeeze/main libmpfr4 armel 3.0.0-2 [467 kB]
Get:4 http://ftp.jp.debian.org/debian/ squeeze/main cpp-4.4 armel 4.4.5-8 [3427 kB]
Get:5 http://ftp.jp.debian.org/debian/ squeeze/main cpp armel 4:4.4.5-1 [15.0 kB]
Get:6 http://ftp.jp.debian.org/debian/ squeeze/main libgomp1 armel 4.4.5-8 [26.4 kB]
Get:7 http://ftp.jp.debian.org/debian/ squeeze/main gcc-4.4 armel 4.4.5-8 [534 kB]
Get:8 http://ftp.jp.debian.org/debian/ squeeze/main gcc armel 4:4.4.5-1 [4984 B]
Get:9 http://ftp.jp.debian.org/debian/ squeeze/main libc-dev-bin armel 2.11.3-3 [206 kB]
Get:10 http://ftp.jp.debian.org/debian/ squeeze/main linux-libc-dev armel 2.6.32-45 [830 kB]
Get:11 http://ftp.jp.debian.org/debian/ squeeze/main libc6-dev armel 2.11.3-3 [2518 kB]
Get:12 http://ftp.jp.debian.org/debian/ squeeze/main make armel 3.81-8 [393 kB]
Get:13 http://ftp.jp.debian.org/debian/ squeeze/main manpages-dev all 3.27-1 [1639 kB]
Fetched 13.4 MB in 5s (2636 kB/s)
Selecting previously deselected package binutils.
(Reading database ... 11202 files and directories currently installed.)
Unpacking binutils (from .../binutils_2.20.1-16_armel.deb) ...
Selecting previously deselected package libgmp3c2.
Unpacking libgmp3c2 (from .../libgmp3c2_2%3a4.3.2+dfsg-1_armel.deb) ...
Selecting previously deselected package libmpfr4.
Unpacking libmpfr4 (from .../libmpfr4_3.0.0-2_armel.deb) ...
Selecting previously deselected package cpp-4.4.
Unpacking cpp-4.4 (from .../cpp-4.4_4.4.5-8_armel.deb) ...
Selecting previously deselected package cpp.
Unpacking cpp (from .../cpp_4%3a4.4.5-1_armel.deb) ...
Selecting previously deselected package libgomp1.
Unpacking libgomp1 (from .../libgomp1_4.4.5-8_armel.deb) ...
Selecting previously deselected package gcc-4.4.
Unpacking gcc-4.4 (from .../gcc-4.4_4.4.5-8_armel.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.4.5-1_armel.deb) ...
Selecting previously deselected package libc-dev-bin.
Unpacking libc-dev-bin (from .../libc-dev-bin_2.11.3-3_armel.deb) ...
Selecting previously deselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.32-45_armel.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.11.3-3_armel.deb) ...
Selecting previously deselected package make.
Unpacking make (from .../archives/make_3.81-8_armel.deb) ...
Selecting previously deselected package manpages-dev.
Unpacking manpages-dev (from .../manpages-dev_3.27-1_all.deb) ...
Processing triggers for man-db ...
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
Setting up binutils (2.20.1-16) ...
Setting up libgmp3c2 (2:4.3.2+dfsg-1) ...
Setting up libmpfr4 (3.0.0-2) ...
Setting up cpp-4.4 (4.4.5-8) ...
Setting up cpp (4:4.4.5-1) ...
Setting up libgomp1 (4.4.5-8) ...
Setting up gcc-4.4 (4.4.5-8) ...
Setting up gcc (4:4.4.5-1) ...
Setting up libc-dev-bin (2.11.3-3) ...
Setting up linux-libc-dev (2.6.32-45) ...
Setting up libc6-dev (2.11.3-3) ...
Setting up make (3.81-8) ...
Setting up manpages-dev (3.27-1) ...
yasunari@sl:~$
OK

掃除

yasunari@sl:~$ sudo apt-get clean
yasunari@sl:~$


LS-SL
楽天市場




最初の設定~ftp サーバ
ハックの記録
LinkStation/玄箱 をハックしよう

ダイアルアップサーバ(1)D02HW の認識

ツイート Tweet to @yasunari_y @yasunari_yをフォロー

Copyright (C) 2003-2012 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市