/l3/users/03-04-2012/NT-BSDnet/freebsd1.local/root :1 :2 :3 :4 :5 :6 |
|
#ls
.ICEauthority .gnome2 .profile .bash_history .gnome2_private .pulse .bash_profile .gnupg .pulse-cookie .bashrc .history .recently-used.xbel .cache .icons .w3m .config .k5login .xsession-errors .cshrc .l3rc .xsession-errors.old .dbus .lilalo Desktop .dmrc .local install .gconf .login kernels .gconfd .mozilla mbox .gnome .nautilus rc.conf |
#vim install
|
#:q
#pf_rules="my_tiles" natd_enable="YES" ~ ~ ~ 1 line less; before #1 2 seconds ago |
#uname -a
FreeBSD freebsd1.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Tue Apr 3 16:27:53 EEST 2012 root@freebsd1.local:/usr/obj/usr/src/sys/NAT i386 |
#ee /etc/motd
--- /tmp/l3-saved-1443.9497.18214 2012-04-04 09:26:31.000000000 +0300 +++ /etc/motd 2012-04-04 09:27:05.000000000 +0300 @@ -1,26 +1 @@ -FreeBSD 8.2-RELEASE (NAT) #0: Tue Apr 3 16:27:53 EEST 2012 - -FreeBS 8.2-RELEASE (GENERIC) #0: Fri Feb 18 02:24:46 UTC 2011 - -Welcome to FreeBSD! - -Before seeking technical support, please use the following resources: - -o Security advisories and updated errata information for all releases are - at http://www.FreeBSD.org/releases/ - always consult the ERRATA section - for your release first as it's updated frequently. - -o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, - along with the mailing lists, can be searched by going to - http://www.FreeBSD.org/search/. If the doc distribution has - been installed, they're also available formatted in /usr/share/doc. - -If you still have a question or problem, please take the output of -`uname -a', along with any relevant error messages, and email it -as a question to the questions@FreeBSD.org mailing list. If you are -unfamiliar with FreeBSD's directory layout, please refer to the hier(7) -manual page. If you are not familiar with manual pages, type `man man'. - -You may also use sysinstall(8) to re-enter the installation and -configuration utility. Edit /etc/motd to change this login announcement. -Hello!!! +Good morning my Master |
#/etc/motd
![]() bash: /etc/motd: Permission denied |
#linproc
![]() bash: linproc: command not found |
#where is linproc
![]() bash: where: command not found |
#uname -a
FreeBSD freebsd1.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Tue Apr 3 16:27:53 EEST 2012 root@freebsd1.local:/usr/obj/usr/src/sys/NAT i386 |
#sysinstall
lqqqqqqqqq Select the distributions you wish to install. qqqqqqqqqk x Please check off the distributions you wish to install. At the x x very minimum, this should be "base". x x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x x x <<< X Exit Exit this menu (returning to previous) x x x x All All system sources and binaries x x x x Reset Reset all of the below x x x x [X] base Binary base distribution (required) x x x x [X] kernels Binary kernel distributions (required) x x x it somewhat to suit your particular configuration. Most importantly, x ... lqqqqqqqqqqqqqqqqqqq[ Progress ]qqqqqqqqqqqqqqqqqk xExtracting scrypto into /usr/src directory... x x qqqqqqqqqqqqq qk x x x x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x mqqqqqqqqqqqqqqqqqqqqqq 33%qqqqqqqqqqqqqqqqqqqqqqj 59 1426432 bytes read from scrypto dist, chunk 2 of 6 @ 1426.4 KBytes/sec. Extracting info into / directory... 100 |
#portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found. Fetching snapshot tag from portsnap1.freebsd.org... done. Fetching snapshot metadata... done. Updating from Fri Mar 30 12:15:50 EEST 2012 to Wed Apr 4 09:42:32 EEST 2012. Fetching 4 metadata patches... done. Applying metadata patches... done. Fetching 3 metadata files... done. Fetching 207 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180....190....200... done. Applying patches... done. Fetching 16 new ports or files... done. |
#portsnap extract
/usr/ports/.cvsignore /usr/ports/CHANGES /usr/ports/COPYRIGHT /usr/ports/GIDs /usr/ports/KNOBS /usr/ports/LEGAL /usr/ports/MOVED /usr/ports/Makefile /usr/ports/Mk/bsd.apache.mk /usr/ports/Mk/bsd.autotools.mk ... /usr/ports/x11/xwud/ /usr/ports/x11/xxkb/ /usr/ports/x11/xzoom/ /usr/ports/x11/yakuake-kde4/ /usr/ports/x11/yakuake/ /usr/ports/x11/yalias/ /usr/ports/x11/yeahconsole/ /usr/ports/x11/yelp/ /usr/ports/x11/zenity/ Building new INDEX files... done. |
#kldstat
Id Refs Address Size Name 1 13 0xc0400000 be116c kernel 2 1 0xc7e08000 3000 pflog.ko 3 1 0xc7e0b000 35000 pf.ko 4 1 0xc8203000 9000 i915.ko 5 1 0xc820c000 14000 drm.ko 6 1 0xc91ce000 9000 cd9660.ko |
#ee /etc/rc.conf
--- /tmp/l3-saved-70596.28800.32691 2012-04-04 10:04:40.000000000 +0300 +++ /etc/rc.conf 2012-04-04 10:04:49.000000000 +0300 @@ -18,5 +18,6 @@ #pf_rules="my_tiles" linux_enable="YES" + natd_enable="YES" natd_interface="em0" |
#ee /etc/rc.conf
|
#whereis portupgrade
portupgrade: /usr/local/sbin/portupgrade /usr/local/man/man1/portupgrade.1.gz /usr/ports/ports-mgmt/portupgrade |
#portupgrade -Fda
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 631 packages found (-0 +19) ................... done] [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 23354 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000. (? bsdpan-Term-VT102-0.91)(? bsdpan-Text-Iconv-1.7)** Port marked as IGNORE: archivers/xz: is already in the base system ---> Fetching the distfile(s) for 'xineramaproto-1.2.1' (x11/xineramaproto) ---> Fetching '/usr/ports/x11/xineramaproto' ===> License check disabled, port has not defined LICENSE => xineramaproto-1.2.1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/xorg/proto. => Attempting to fetch ftp://ftp.cs.cuhk.edu.hk/pub/X11/individual/proto/xineramaproto-1.2.1.tar.bz2 xineramaproto-1.2.1.tar.bz2 100% of 93 kB 56 kBps ... ! x11/xrandr (xrandr-1.3.2) (interrupted by user) ! math/mpfr (mpfr-3.0.0) (interrupted by user) ! x11/libXevie (libXevie-1.0.2) (interrupted by user) * archivers/gtar (gtar-1.25_1) * x11/xorg-libraries (xorg-libraries-7.5) * x11/xorg-apps (xorg-apps-7.5_1) ! www/libxul (libxul-1.9.2.13) (interrupted by user) ! multimedia/gstreamer-plugins-mpeg2dec (gstreamer-plugins-mpeg2dec-0.10.16,3) (interrupted by user) ! devel/libglade2 (libglade2-2.6.4_3) (interrupted by user) * net/avahi-gtk (avahi-gtk-0.6.28) |
#kldstat
Id Refs Address Size Name 1 13 0xc0400000 be116c kernel 2 1 0xc7e08000 3000 pflog.ko 3 1 0xc7e0b000 35000 pf.ko 4 1 0xc8203000 9000 i915.ko 5 1 0xc820c000 14000 drm.ko 6 1 0xc91ce000 9000 cd9660.ko |
#kldload foo
![]() kldload: can't load foo: No such file or directory |
#kldload
![]() usage: kldload [-qv] file ... |
#linux.ko
![]() bash: linux.ko: command not found |
#kldload linux.ko
|
#kldstat
Id Refs Address Size Name 1 19 0xc0400000 be116c kernel 2 1 0xc7e08000 3000 pflog.ko 3 1 0xc7e0b000 35000 pf.ko 4 1 0xc8203000 9000 i915.ko 5 1 0xc820c000 14000 drm.ko 6 1 0xc91ce000 9000 cd9660.ko 7 1 0xcf1c0000 26000 linux.ko |
#linproc /compat/linux/proc linprocfs rw 0 0
![]() bash: linproc: command not found |
#linproc
![]() bash: linproc: command not found |
#linproc
![]() bash: linproc: command not found |
#ee /etc/fstab
--- /tmp/l3-saved-70596.25461.21514 2012-04-04 10:11:19.000000000 +0300 +++ /etc/fstab 2012-04-04 10:11:34.000000000 +0300 @@ -6,3 +6,4 @@ /dev/ad10s1f /usr ufs rw 2 2 /dev/ad10s1e /var ufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 +linproc /compat/linux/proc linprocfs rw 0 0 |
#mkdir -p /compat/linux/proc
|
#mount /compat/linux/proc
|
#/etc/rc.d/abi start
Additional ABI support: linux. |
#cd /usr/ports/www/linux-f10-flashplugin11
|
#make install clean
![]() => compat-db-4.6.21-5.fc10.i386.rpm doesn't seem to exist in /usr/ports/distfiles/rpm/i386/fedora/10. => Attempting to fetch http://critical.ch/distfiles/rpm/i386/fedora/10/compat-db-4.6.21-5.fc10.i386.rpm compat-db-4.6.21-5.fc10.i386.rpm 100% of 10 kB 159 kBps => compat-libstdc++-296-2.96-141.i386.rpm doesn't seem to exist in /usr/ports/distfiles/rpm/i386/fedora/10. => Attempting to fetch http://critical.ch/distfiles/rpm/i386/fedora/10/compat-libstdc++-296-2.96-141.i386.rpm compat-libstdc++-296-2.96-141.i386.rpm 100% of 91 kB 375 kBps => compat-libstdc++-33-3.2.3-64.i386.rpm doesn't seem to exist in /usr/ports/distfiles/rpm/i386/fedora/10. => Attempting to fetch http://critical.ch/distfiles/rpm/i386/fedora/10/compat-libstdc++-33-3.2.3-64.i386.rpm compat-libstdc++-33-3.2.3-64.i386.rpm 100% of 224 kB 504 kBps => coreutils-6.12-20.fc10.i386.rpm doesn't seem to exist in /usr/ports/distfiles/rpm/i386/fedora/10. ... ===> rpm-3.0.6_15 depends on package: libtool>=2.4 - not found ===> Found libtool-2.2.10, but you need to upgrade to libtool>=2.4. *** Error code 1 Stop in /usr/ports/archivers/rpm. *** Error code 1 Stop in /usr/ports/emulators/linux_base-f10. *** Error code 1 Stop in /usr/ports/www/linux-f10-flashplugin11. *** Error code 1 Stop in /usr/ports/www/linux-f10-flashplugin11. |
#cd /usr/ports/
![]() |
#cd /usr/ports/
|
#make install distclean
![]() ===> License check disabled, port has not defined LICENSE => basesystem-8.0-5.noarch.rpm doesn't seem to exist in /usr/ports/distfiles/rpm/i386/fedora/4. => Attempting to fetch http://critical.ch/distfiles/rpm/i386/fedora/4/basesystem-8.0-5.noarch.rpm basesystem-8.0-5.noarch.rpm 100% of 2777 B 18 MBps => bash-3.0-31.i386.rpm doesn't seem to exist in /usr/ports/distfiles/rpm/i386/fedora/4. => Attempting to fetch http://critical.ch/distfiles/rpm/i386/fedora/4/bash-3.0-31.i386.rpm bash-3.0-31.i386.rpm 100% of 1829 kB 827 kBps => bzip2-1.0.2-16.i386.rpm doesn't seem to exist in /usr/ports/distfiles/rpm/i386/fedora/4. => Attempting to fetch http://critical.ch/distfiles/rpm/i386/fedora/4/bzip2-1.0.2-16.i386.rpm bzip2-1.0.2-16.i386.rpm 100% of 47 kB 281 kBps ... ===> Verifying install for /usr/local/bin/rpm2cpio in /usr/ports/archivers/rpm ===> rpm-3.0.6_15 depends on executable: gmake - found ===> rpm-3.0.6_15 depends on file: /usr/local/bin/automake-1.4 - found ===> rpm-3.0.6_15 depends on file: /usr/local/bin/autoconf-2.13 - found ===> rpm-3.0.6_15 depends on package: libtool>=2.4 - not found ===> Found libtool-2.2.10, but you need to upgrade to libtool>=2.4. *** Error code 1 Stop in /usr/ports/archivers/rpm. *** Error code 1 Stop in /usr/ports/emulators/linux_base-fc4. |
#whereis libtool
libtool: /usr/local/bin/libtool /usr/local/man/man1/libtool.1.gz /usr/ports/devel/libtool |
#cd /usr/ports/devel/
|
#ls | grep libtool
libtool libtool-fixed |
#ls | grep libtool24
![]() |
#cd libtool
|
#ls
Makefile distinfo files pkg-descr pkg-plist |
#make install clean
![]() ===> License GPLv2 accepted by the user ===> Extracting for libtool-2.4.2 => SHA256 Checksum OK for libtool-2.4.2.tar.gz. ===> Patching for libtool-2.4.2 ===> Applying FreeBSD patches for libtool-2.4.2 ===> Configuring for libtool-2.4.2 ## ------------------------- ## ## Configuring libtool 2.4.2 ## ## ------------------------- ## checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel ... ===> Generating temporary packing list ===> Checking if devel/libtool already installed ===> An older version of devel/libtool is already installed (libtool-2.2.10) You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of devel/libtool without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Stop in /usr/ports/devel/libtool. |
#make reinstall
![]() ===> Installing for libtool-2.4.2 ===> Generating temporary packing list ===> Checking if devel/libtool already installed ===> An older version of devel/libtool is already installed (libtool-2.2.10) You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of devel/libtool without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Stop in /usr/ports/devel/libtool. *** Error code 1 Stop in /usr/ports/devel/libtool. |
#make dinstall
===> Deinstalling for devel/libtool ===> Deinstalling libtool-2.2.10 |
#make install clean
===> Installing for libtool-2.4.2 ===> Generating temporary packing list ===> Checking if devel/libtool already installed make install-recursive test -z "/usr/local/bin" || libltdl/config/install-sh -c -d "/usr/local/bin" install -o root -g wheel -m 555 libtoolize libtool '/usr/local/bin' test -z "/usr/local/lib" || libltdl/config/install-sh -c -d "/usr/local/lib" rm -rf /usr/local/share/libtool/* /bin/sh /usr/ports/devel/libtool/work/libtool-2.4.2/libltdl/config/install-sh -d /usr/local/share/aclocal install -o root -g wheel -m 444 './libltdl/m4/argz.m4' '/usr/local/share/aclocal/argz.m4' ... test -z "/usr/local/info" || libltdl/config/install-sh -c -d "/usr/local/info" install -o root -g wheel -m 444 ./doc/libtool.info ./doc/libtool.info-1 ./doc/libtool.info-2 '/usr/local/info' install-info --info-dir='/usr/local/info' '/usr/local/info/libtool.info' test -z "" || libltdl/config/install-sh -c -d "" test -z "/usr/local/man/man1" || libltdl/config/install-sh -c -d "/usr/local/man/man1" install -o root -g wheel -m 444 ./doc/libtool.1 ./doc/libtoolize.1 '/usr/local/man/man1' install-info --quiet /usr/local/info/libtool.info /usr/local/info/dir ===> Compressing manual pages for libtool-2.4.2 ===> Registering installation for libtool-2.4.2 ===> Cleaning for libtool-2.4.2 |
#cd /usr/ports/emulators/linux_base-fc4
|
#make install clean
===> License check disabled, port has not defined LICENSE ===> Extracting for linux_base-fc-4_16 => SHA256 Checksum OK for rpm/i386/fedora/4/basesystem-8.0-5.noarch.rpm. => SHA256 Checksum OK for rpm/i386/fedora/4/bash-3.0-31.i386.rpm. => SHA256 Checksum OK for rpm/i386/fedora/4/bzip2-1.0.2-16.i386.rpm. => SHA256 Checksum OK for rpm/i386/fedora/4/bzip2-libs-1.0.2-16.i386.rpm. => SHA256 Checksum OK for rpm/i386/fedora/4/compat-db-4.2.52-3.fc4.i386.rpm. => SHA256 Checksum OK for rpm/i386/fedora/4/compat-libstdc++-296-2.96-132.fc4.i386.rpm. => SHA256 Checksum OK for rpm/i386/fedora/4/compat-libstdc++-33-3.2.3-47.fc4.i386.rpm. => SHA256 Checksum OK for rpm/i386/fedora/4/coreutils-5.2.1-48.1.i386.rpm. ... risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. ===> Cleaning for rpm-3.0.6_15 ===> Cleaning for automake-1.4.6_6 ===> Cleaning for autoconf-2.68 ===> Cleaning for automake-wrapper-20101119 ===> Cleaning for help2man-1.40.7 ===> Cleaning for p5-Locale-gettext-1.05_3 ===> Cleaning for linux_base-fc-4_16 |
#cd /usr/ports/www/linux-f10-flashplugin11
|
#make install clea
![]() |
#make install clean
![]() ===> Installing for linux-f10-flashplugin-11.1r102.63 ===> linux-f10-flashplugin-11.1r102.63 depends on file: /compat/linux/etc/fedora-release - found ===> linux-f10-flashplugin-11.1r102.63 depends on file: /compat/linux/usr/lib/libatk-1.0.so.0.2409.1 - not found ===> Verifying install for /compat/linux/usr/lib/libatk-1.0.so.0.2409.1 in /usr/ports/accessibility/linux-f10-atk ===> License check disabled, port has not defined LICENSE => atk-1.24.0-1.fc10.i386.rpm doesn't seem to exist in /usr/ports/distfiles/rpm/i386/fedora/10. => Attempting to fetch http://critical.ch/distfiles/rpm/i386/fedora/10/atk-1.24.0-1.fc10.i386.rpm atk-1.24.0-1.fc10.i386.rpm 100% of 213 kB 452 kBps ===> Extracting for linux-f10-atk-1.24.0 => SHA256 Checksum OK for rpm/i386/fedora/10/atk-1.24.0-1.fc10.i386.rpm. ... cd /usr/ports/x11-toolkits/linux-f10-pango/work && /usr/bin/find * ! -type d | /usr/bin/cpio -pm -R root:wheel /compat/linux 1776 blocks *** Signal 8 Stop in /usr/ports/x11-toolkits/linux-f10-pango. *** Error code 1 Stop in /usr/ports/x11-toolkits/linux-f10-gtk2. *** Error code 1 Stop in /usr/ports/www/linux-f10-flashplugin11. *** Error code 1 Stop in /usr/ports/www/linux-f10-flashplugin11. |
#make install clea
![]() |
#cd /usr/ports/emulators/linux_base-f1
![]() |
#cd /usr/ports/emulators/linux_base-f
|
#make install distclean
===> License check disabled, port has not defined LICENSE ===> Extracting for linux_base-f10-10_4 => SHA256 Checksum OK for rpm/i386/fedora/10/basesystem-10.0-1.noarch.rpm. => SHA256 Checksum OK for rpm/i386/fedora/10/bash-3.2-30.fc10.i386.rpm. => SHA256 Checksum OK for rpm/i386/fedora/10/bzip2-1.0.5-3.fc10.i386.rpm. => SHA256 Checksum OK for rpm/i386/fedora/10/bzip2-libs-1.0.5-3.fc10.i386.rpm. => SHA256 Checksum OK for rpm/i386/fedora/10/compat-db-4.6.21-5.fc10.i386.rpm. => SHA256 Checksum OK for rpm/i386/fedora/10/compat-libstdc++-296-2.96-141.i386.rpm. => SHA256 Checksum OK for rpm/i386/fedora/10/compat-libstdc++-33-3.2.3-64.i386.rpm. => SHA256 Checksum OK for rpm/i386/fedora/10/coreutils-6.12-20.fc10.i386.rpm. ... /compat/linux/lib/libdb-4.7.so /compat/linux/usr/lib/libgssrpc.so.4.0 /compat/linux/lib/libselinux.so.1 /compat/linux/lib/libresolv-2.9.so If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. ===> Cleaning for linux_base-f10-10_4 ===> Deleting distfiles for linux_base-f10-10_4 |
#cd /usr/ports/www/linux-f10-flashplugin11
|
#make install distclea
![]() |
#make install clean
![]() |
#make install clea
![]() |
#make install clean
===> Installing for linux-f10-flashplugin-11.1r102.63 ===> linux-f10-flashplugin-11.1r102.63 depends on file: /compat/linux/etc/fedora-release - found ===> linux-f10-flashplugin-11.1r102.63 depends on file: /compat/linux/usr/lib/libatk-1.0.so.0.2409.1 - found ===> linux-f10-flashplugin-11.1r102.63 depends on file: /compat/linux/usr/lib/libcairo.so.2.10800.0 - found ===> linux-f10-flashplugin-11.1r102.63 depends on file: /compat/linux/usr/lib/libcurl.so.4.1.1 - found ===> linux-f10-flashplugin-11.1r102.63 depends on file: /compat/linux/lib/libexpat.so.1 - found ===> linux-f10-flashplugin-11.1r102.63 depends on file: /compat/linux/usr/lib/libfontconfig.so.1.3.0 - found ===> linux-f10-flashplugin-11.1r102.63 depends on file: /compat/linux/usr/lib/libgtk-x11-2.0.so.0.1400.7 - not found ===> Verifying install for /compat/linux/usr/lib/libgtk-x11-2.0.so.0.1400.7 in /usr/ports/x11-toolkits/linux-f10-gtk2 ===> Installing for linux-f10-gtk2-2.14.7_3 ... ===> Cleaning for linux-f10-png-1.2.37_1 ===> Cleaning for linux-f10-tiff-3.8.2 ===> Cleaning for linux-f10-xorg-libs-7.4_1 ===> Cleaning for linux-f10-cyrus-sasl2-2.1.22_1 ===> Cleaning for linux-f10-libssh2-0.18 ===> Cleaning for linux-f10-nspr-4.7.6 ===> Cleaning for linux-f10-nss-3.12.3.99.3_1 ===> Cleaning for linux-f10-openldap-2.4.12_1 ===> Cleaning for linux-f10-sqlite3-3.5.9_1 ===> Cleaning for linux-f10-flashplugin-11.1r102.63 |
#cd ../nspluginwrapper
|
#make install clean
===> License check disabled, port has not defined LICENSE => nspluginwrapper-1.4.4.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch http://nspluginwrapper.org/download/nspluginwrapper-1.4.4.tar.gz nspluginwrapper-1.4.4.tar.gz 100% of 402 kB 334 kBps => nspluginwrapper-i386-1.4.4-1.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/jkim/nspluginwrapper-i386-1.4.4-1.tar.gz nspluginwrapper-i386-1.4.4-1.tar.gz 100% of 64 kB 269 kBps ===> Extracting for nspluginwrapper-1.4.4 => SHA256 Checksum OK for nspluginwrapper-1.4.4.tar.gz. => SHA256 Checksum OK for nspluginwrapper-i386-1.4.4-1.tar.gz. ... /usr/local/lib/nspluginwrapper/i386/freebsd/npwrapper.so /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://nspluginwrapper.org ===> Cleaning for nspluginwrapper-1.4.4 |
#mkdir /usr/local/lib/browser_plugins
![]() mkdir: /usr/local/lib/browser_plugins: File exists |
#nspluginwrapper -a -i
|
#mkdir -p ~/.mozilla/plugins
![]() mkdir: /root/.mozilla/plugins: File exists |
#whereis sim
sim: |
#whereis sim-0.9.4.3:
sim-0.9.4.3:: |
#whereis sim-0.9.4.3
sim-0.9.4.3: |
#find search name = sim"
![]() find: search: No such file or directory find: name: No such file or directory find: =: No such file or directory find: sim: No such file or directory |
#search name = "sim"
![]() bash: search: command not found |
#cd /root
|
#ls
.ICEauthority .gnupg .recently-used.xbel .bash_history .history .w3m .bash_profile .icons .xsession-errors .bashrc .k5login .xsession-errors.old .cache .l3rc Desktop .config .lilalo Lection1 .cshrc .local download .dbus .login install .dmrc .macromedia kernels .gconf .mozilla mbox .gconfd .nautilus rc.conf .gnome .profile sim-0.9.4.3 .gnome2 .pulse sim-0.9.4.3.tar.gz .gnome2_private .pulse-cookie |
#cd sim-0.9.4.3
|
#ls
AUTHORS TODO.MingW plugins AUTHORS.sim acinclude.m4 po CMakeLists.txt aclocal.m4 resource.h COPYING admin sim ChangeLog altlinux.spec sim.dsp ConfigureChecks.cmake cmake sim.dsw INSTALL config.h.cmake sim.sln Makefile.am config.h.in sim.vcproj Makefile.in configure simall.dsp README configure.files simall.vcproj README.SVN configure.in simapi.dsp TODO configure.in.in subdirs TODO.CMake jisp-resources.txt svn-ignore.sh |
#./configure
![]() checking build system type... i386-unknown-freebsd8.2 checking host system type... i386-unknown-freebsd8.2 checking target system type... i386-unknown-freebsd8.2 checking for a BSD-compatible install... /usr/bin/install -c checking for -p flag to install... yes checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking for kde-config... not found configure: error: The important program kde-config was not found! Please check whether you installed KDE correctly. |
#cd /usr/ports/net/gajim/ && make install clean
![]() bash: cd: /usr/ports/net/gajim/: No such file or directory |
#cd /usr/ports/net/gajim/
![]() bash: cd: /usr/ports/net/gajim/: No such file or directory |
#cd /usr/ports/net-im/gajim
|
#make install clean
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Options for gajim 0.15_1 x x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x x x [ ] CRYPTO End to end encryption support x x x x [X] DBUS Adds support for D-Bus (Desktop Bus) x x x x [ ] KEYRING Gnome Keyring support x x x x [X] NLS Native Language Support via gettext utilities x x x x [X] SPELL Spell checking support x x x x x x x x x x ... test -z "/usr/local/bin" || config/install-sh -c -d "/usr/local/bin" install -o root -g wheel -m 555 scripts/gajim scripts/gajim-history-manager scripts/gajim-remote '/usr/local/bin' gmake[2]: Nothing to be done for `install-data-am'. gmake[2]: Leaving directory `/usr/ports/net-im/gajim/work/gajim-0.15' gmake[1]: Leaving directory `/usr/ports/net-im/gajim/work/gajim-0.15' ===> Compressing manual pages for gajim-0.15_1 ===> Registering installation for gajim-0.15_1 ===> Cleaning for gtkspell-2.0.16_3 ===> Cleaning for py26-asn1-0.1.2,1 ===> Cleaning for gajim-0.15_1 |
#reha
![]() bash: reha: command not found |
#rehash
![]() bash: rehash: command not found |
#gajim
![]() You must not launch gajim as root, it is INSECURE |
#adduser
Username: user33676vet Full name: Uid (Leave empty for default): Login group [user33676vet]: Login group is user33676vet. Invite user33676vet into other groups? []: Login class [default]: Shell (sh csh tcsh nologin) [sh]: Home directory [/home/user33676vet]: Home directory permissions (Leave empty for default): Use password-based authentication? [yes]: ... Class : Groups : user33676vet Home : /home/user33676vet Home Mode : Shell : /bin/sh Locked : no OK? (yes/no): yes adduser: INFO: Successfully added (user33676vet) to the user database. Add another user? (yes/no): no Goodbye! |
#su user33676vet
|
#login
![]() login: user33676vet Password: Login incorrect login: va1ba2jdth Password: Login incorrect login: ^C login: ^Z [1]+ Stopped login |
#su user33676vet
|
#cd /usr/ports/net-im/qutim
|
#make install clean
===> License check disabled, port has not defined LICENSE => qutim_0.2_svn529.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch http://dl.kibab.com/distfiles/qutim/qutim_0.2_svn529.tar.gz qutim_0.2_svn529.tar.gz 100% of 812 kB 1226 kBps ===> Extracting for qutim-0.2_5,1 => SHA256 Checksum OK for qutim_0.2_svn529.tar.gz. ===> Patching for qutim-0.2_5,1 ===> qutim-0.2_5,1 depends on file: /usr/local/libdata/pkgconfig/xscrnsaver.pc - found ===> qutim-0.2_5,1 depends on file: /usr/local/bin/designer-qt4 - not found ===> Verifying install for /usr/local/bin/designer-qt4 in /usr/ports/devel/qt4-designer ... ===> Cleaning for qt4-doc-4.7.4 ===> Cleaning for qt4-help-4.7.4 ===> Cleaning for qt4-dbus-4.7.4 ===> Cleaning for automoc4-0.9.88_2 ===> Cleaning for qzeitgeist-0.7.0 ===> Cleaning for kdehier4-1.0.10 ===> Cleaning for qt4-clucene-4.7.4 ===> Cleaning for qt4-sqlite-plugin-4.7.4 ===> Cleaning for qt4-qtestlib-4.7.4 ===> Cleaning for qutim-0.2_5,1 |
#pkg_info
ORBit2-2.14.19 High-performance CORBA ORB with support for the C language PackageKit-0.6.11 A DBUS packaging abstraction layer aalib-1.4.r5_5 An ascii art library alacarte-0.13.2 An editor for the freedesktop.org menu specification anacron-2.3_4 Schedules periodic jobs on systems that are not permanently ap22-mod_dnssd-0.6_8 An Apache module that provides DNS-SD capabilities apache-2.2.17_1 Version 2.2.x of Apache web server with prefork MPM. appres-1.0.2 Program to list application's resources apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.10 Apache Portability Library aspell-0.60.6_5 Spelling checker with better suggestion logic than ispell ... xvinfo-1.1.0 Print out X-Video extension adaptor information xwd-1.0.3 Dump an image of an X window xwininfo-1.0.5 Window information utility for X xwud-1.0.2 Image displayer for X xz-5.0.0 LZMA compression and decompression tools yelp-2.30.2_1 A help browser for the GNOME 2 desktop zenity-2.32.1 Display GNOME dialogs from the command line zh_cn-freebsd-doc-20110110 Simplified Chinese translation of the FreeBSD Documentation zh_tw-freebsd-doc-20110110 Traditional Chinese translation of the FreeBSD Documentatio zip-3.0 Create/update ZIP files compatible with pkzip |
#whereis bind9
bind9: /usr/src/contrib/bind9 |
#cd /usr/ports/
|
#cd /usr/ports/dns/bind95
![]() bash: cd: /usr/ports/dns/bind95: No such file or directory |
#cd /usr/ports/dns/bind98
|
#make install clean
checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r ... /usr/local/bin/nslookup /usr/local/sbin/dnssec-settime If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: https://www.isc.org/software/bind ===> Cleaning for bind98-9.8.1.1 |
#rehash
![]() bash: rehash: command not found |
#cdetc/namedb
|
Время первой команды журнала | 16:57:15 2012- 4- 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:17:07 2012- 4- 4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 21.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 12.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.76 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.95 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008