2016年11月4日 星期五

tftp 安裝

http://blog.xuite.net/arieslin2005blog/blog/53375149-%E5%AE%89%E8%A3%9D+Ubuntu+%E4%B8%8B%E4%BD%BF%E7%94%A8%E7%9A%84tftp+server+(tftpd-hpa+%E8%88%87+tftp-hpa)

* 安裝 tftpd-hpa server *
用 apt-get 下載並安裝 
root@ubuntu:~# apt-get install tftpd-hpa
修改設定檔 
root@ubuntu:~# vim /etc/default/tftpd-hpa
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-l -c -s"

如果是 Ubuntu 10.4 之前版本, 設定檔內容不同 (上面10.4之後的設定找了好久才找到!) 
 RUN_DAEMON="yes"
 OPTIONS="-l -c -s tftpboot"
 
建立共享目錄
root@ubuntu:~# mkdir /tftpboot
修改目錄下所有檔權限 (全開,以便上傳下載)
root@ubuntu:~# chmod 777 -R /tftpboot
修改目錄下所有檔擁有者及群組
root@ubuntu:~# chown nobody.nogroup -R /tftpboot
查看權限是否作用
root@ubuntu:~# ls /tftpboot -ld
drwxrwxrwx 2 nobody nogroup 4096 2011-10-10 09:51 /tftpboot
建立一個下載用的測試檔 
root@ubuntu:~# echo "This is a tftpd-hpa testfile" > /tftpboot/testfile
重啟 tftpd-hpa 服務
root@ubuntu:~# service tftpd-hpa restart
確認 tftp(69埠) 是否監聽中 
root@ubuntu:~# netstat -a | grep tftp
udp        0      0 *:tftp                  *:*   
root@ubuntu:~#


* 安裝 tftp-hpa client *
1. 用 apt-get 下載並安裝 
root@ubuntu:~# apt-get install tftp-hpa

2. VM本機連線測試
建立一個即將上傳的檔案 
root@ubuntu:~# echo "uploaded file" > 1.txt
連線到 localhost ip 
root@ubuntu:~# tftp 127.0.0.1
顯示詳細過程 
verbose
抓取檔案 
get testfile
放檔案上去 
put 1.txt
離開 
quit



2016年10月14日 星期五

be exported in conventional path

Table *** will be exported in conventional path.

在 EXP 時指定了  direct =y

根據  https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::p11_question_id:968789918647


A direct path export should not be considered the converse of a direct path load using SQLLDR (for those of you familiar with that option). A direct path export does not read directly from the datafiles and write to the DMP file. SQLLDR does write directly to the datafiles from the DAT files. Export in direct path mode simply bypasses the SQL evaluation buffer (where clause processing, column formatting and such). 90% of the path is the same, EXP is still reading buffers into the buffer cache, doing the same consistent read processing and so on. 

The speedup of the direct path export can be large however. The 10% of the processing that it cuts out, accounts for a much larger percentage of the run-time. For example, I have just exported about 100meg of data, and 1.2 million records. The direct path export took about one minute. The conventional path export on the other hand took three minutes. There is unfortunately no corresponding 'direct path import'. Import uses conventional SQL to insert the data back into tables. SQLLDR is still the way to go for high performance data loads. 

It should be noted that in direct path mode, you cannot use the QUERY= parameter to select a subset of rows. This makes sense given that DIRECT=Y is simply a way to bypass the SQL evaluation buffer and that is where the where clause processing would normally take place. 



2016年10月12日 星期三

virtualbox host to guest network

guest本來就會有一個NAT網卡

在 HOST 的 virtualbox 網路設定 新增一個 HOSTONLY NETWORK
然後給 guest 加一個 host only 的 網卡 附加到剛剛那個新增的網卡


AIX sudo cfgmgr 0514-603 錯誤...

  1. cfgmgr: 0514-603 Cannot access the Config_Rules object class in the
  2. device configuration database.

原因是 sudo 的時候把環境變數清掉了

visudo

然後加上

Defaults !env_reset




http://superuser.com/questions/232231/how-do-i-make-sudo-preserve-my-environment-variables


http://www.aixhealthcheck.com/blog?id=363


http://mailing.unix.sudo-users.narkive.com/86NcgcIr/sudo-users-fw-sudo-sudo-1-6-9p17-x-aix-5-3

2016年10月11日 星期二

備份 DameWare 設定

support.dameware.com/kb/article.aspx?ID=201065

Version 11.2.0 and later
In older versions of MRC, moving Saved Host Lists to other computers do not include passwords. Version 11.2.0 has fixed this issue. A total transfer of Saved Host List to another machine or computer should now be expected.
Running version 11.2.0 or later will convert existing Saved Host List information from the old MRC.dbfdatabase file to the new version 11.2.0 Saved Host List database file.
This file is called MRCCv2.db. Below is its location:
C:\Users\{username}\AppData\Roaming\DameWare Development\MRCCv2.db
Passwords stored in the Registry are found in the following location:
[[HKEY_CURRENT_USER\Software\DameWare Development\Mini Remote Control\Data\]
Note:
Registry above only stores passwords.
The following are 2 ways to move and restore Saved Host list to another computer:
Option 1:
  1. Manually move the Saved Host List data.
  2. Copy the DB file from the following location:
  3. C:\Users\{username}\AppData\Roaming\DameWare Development\MRCCv2.db
  4. Export the password section of the following Registry.
  5. [[HKEY_CURRENT_USER\Software\DameWare Development\Mini Remote Control\Data\]
  6. Copy the DB file to the target computer.
  7. Import the Registry file to the target machine.

Option 2:
  1. From the View menu of the MRC console, click Default Host Properties.
  2. Select the Authentication Options tab and click the Storage Options button.
  3. Check the Store Credentials in Database box, and then click OK.
  4. Repeat steps 1-3 on the target computer.
  5. Copy the DB file to the target computer.

Version 4.4 and later (Including all 5.x and 6.x)
Running version 7.x or later will convert existing Saved Host List information from the old MRC.dbf database file to the new version 7 Saved Host List database file. This file is called MRCCv2.db
The database path for the files is determined by using the opment" at the end. The following are examples of database paths:
  • Vista, Windows 7, and 2008:
  • C:\Users\{Username}\AppData\Roaming\DameWare Development
  • Windows
  • C:\Users\{Username}\AppData\Roaming\DameWare Development
  • Windows 2000, XP and 2003:
  • C:\Documents and Settings\{UserName}\Application Data\DameWare Development
Note:
Windows 2000 and later only support DMRC v7.x and later. However, the MRC Client Agents are still supported on Windows 9.x and later.

Version 4.4 and later (Including all 5.x and 6.x)
Running DameWare Mini Remote Control (DMRC) v4.4 or later will convert the existing Saved Host List information from the Registry to a DMRC database file.
The MRC.db (v4.4) or MRC.dbf (v4.5 or later) will contain all DMRC Saved Host List entries and settings.
The following is the database file path using internal system variable CSIDL_APPDATA and appending it with\DameWare Development at the end:
  • Vista, Windows 7, and 2008:
  • C:\Users\{Username}\AppData\Roaming\DameWare Development
  • Windows 2000/XP/2003:
  • C:\Documents and Settings\{UserName}\Application Data\DameWare Development
  • NT4:
  • Located in the Profile Directory.
The Application path is used when the Operating System does not support the system variable.
  • Application paths are the installation folders.
  • Files can also be found using the Search function.
Transferring the Saved Host List for v 4.4 requires a user to back up the DMRC database files from the DameWare Development installation folder, and then restore them to the proper path on the remote machine.
Note:
The software will rebuild entries from the information left in the Registry if the database files are not restored to the proper directory of the remote machine.
For security reasons, beginning in version 4.0 and above, DameWare Development uses Microsoft's Security APIs to Encrypt and store the credentials associated with each individual Host Entry. These credentials are no longer stored along with the rest of the Host Entry information, and therefore will not be included within either method of exporting (i.e. Registry Key or Database). Unfortunately, any credentials associated with specific Host Entries must be manually retyped into the software.

Versions 4.4 and earlier (Including all 3.x)
The following Dameware Registry key can be exported into .REG file, and then imported to a new computer once the host list has been created:
[[HKEY_CURRENT_USER\Software\DameWare Development\NT Utilities\DNTU\DWRCC Settings]