kiyoshi のすべての投稿

ISO image to CD and USB

To CD:

wodim -v dev=/dev/sr0 -eject -sao debian-x.y.z-arch-CD-NN.iso

To USB:

check where is usb; probably on /dev/sdb

#umount  /dev/sdb

#cat *********.iso > /dev/sdb

On a Linux machine, simply use the cp command, to copy an image to a USB flash drive:

cp <file> <device>

Alternatively you can also use dd:

dd if=<file> of=<device> bs=4M; sync

where:

  • <file> is the name of the input image, e.g. netinst.iso
  • <device> is the device matching the USB flash drive, e.g. /dev/sda, /dev/sdb. Be careful to make sure you have the right device name, as this command is capable of writing over your hard disk just as easily if you get the wrong one!
  • bs=4M tells dd to read/write in 4 megabyte chunks for better performance; the default is 512 bytes, which will be much slower
  • The sync is to make sure that all the writes are flushed out before the command returns.

Home wordpress website with debian jessie

1.  Configure the hostname:

nano /etc/hosts:

127.0.0.1       localhost.localdomain   localhost

192.168.0.17   debian-yu.norikoguide.dip.jp debian-yu

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

nano /etc/hostname:

debian-yu

reboot:

(check)

root@debian-yu:/home/kiyoshi# hostname
debian-yu
root@debian-yu:/home/kiyoshi# hostname -f
debian-yu.norikoguide.dip.jp

:

2. Install the following(meta) packages using SynapticPM;

apache2:   was already installed

3. Visit 192.168.0.17;    It works! (Apahe2 Debian Default page)

4. mysql, php, phmyadmin

mysql-server   mysql-client;

php5   php5-mysql   libapache2-mod-php5

5.   Test mysql;

systemctl restart apache2
systemctl restart apache2
root@debian-yu:/var/www/html# ls
index.html  index.lighttpd.html  testph.php
root@debian-yu:/var/www/html# mv index.html index.htmll

6. Install phpmyadmin by synapticPM

Can visit 192.168.0.17/phpmyadmin, but cannot login.

7.  Set (or Reset) root passwd for phpmyadmin;

# mysqladmin -p******;

phpmyadmin login successfully as root.

8. Install ncftp via synapticPM.

9. This time I  move the wp-site kblog at 192.168.0.16 to kblog at 192.168.0.17.

9.1  Directly ftp  whole kblog directory of 192.168.0.16 via into /var/www/html  using ncftp (get -R) as root.  ( ncftp -u nakym 192.168.0.16 )

9.2  Get in database (as root set in 7. above). Create database wpdb, user wpnakym and his password as is written in wp-config.php.

9.3  Export the relevant extracted database from 192.168.0.16.

9.4 Import the exported database into 192.168.0.17.  Now you should be able to browse the nakym2.tokyoguide-noriko.net, but with 192.168.0.16 active.

9.5 Place knsecret.php in therelevant new directory (192.168.0.16/html/knblog), visit that file and follow the direction ( replace 192.168.0.16/kblog with nakym2.tokyoguide-noriko.net ). Now everything is almost O.K., but problem with displaying old posts (can see at dashboard.

10. Reorganize the site so that document root is /var/www (default was /var/www/html)

10.1 Tuning apache2:

10.1.1 at /etc/apache2/sites-available: create debian-yu.conf in which:

DocumentRoot /var/www

10.1.2 a2ensite debian-yu; a2dissite 000-default; service apache2 reload;

10.1.3  prepare /var/www/kblog ( cp -R /var/www/html/kblog /var/www; rm -R /var/www/html/kblog;

11.  Additionally, modify  index.php in the /var/www/index.php so that it includes:

require( dirname( __FILE__ ) . ‘/kblog/wp-blog-header.php’ );

12. Now both visiting localhost, visiting localhost/kblog work fine.

 

debian jessie 8.2.0-amd64-netinst (’15/09/15)

1. Download isofile and burn it to CD.

2. Set up using eth0.

3. Set elecom WDC-150SU2M:

chipet is realtek  rtl8192c  (by checking the driver for windows)

follow https://wiki.debian.org/rtl819x;

Very well documented!! It goes very smoothly.

( Failed to set repository of synaptec package manager, thus used apt-get scheme.)

( reboot may be necessary? before going into network setup )

The repository for apt is reflected to synaptic package manager.

4. HP Envy 4500:

Printer setup using usual printer setup fascily can make it work as a printer, but the scanner cannot be detected (no scanner found message on simple scan).

hp-setup (after hp-gui installed):

manually set the Envy 4500 based on URL ( already set manually on ENVY 4500 ) (192.168.0.101).  Now scanner can be operated from PC.

Note!! The same procedure was not successful on debian wheeze.( hplip version seems old.)

Install  xsane: seems OK.

 

 

 

 

date hwclock

date:  kernel clock

hwclock: (CMOS) hardware clock

date;     will show current kernel time

date –set=”2015/09/14 18:09″;    will set kernel clock

hwclock –systohc;

hwclock; will show hwclock time.

Acronis true image LE

There are two discs:

1.  Buffalo HD-HBU2 ユーティリティCD version 1.20

This will work.  When product number is asked, type in the number on the disc 2

It shows message to upgarde, but no web page exist anymore. But anyhow installed acronis will work in somewhat primitive way.

2. Buffalo HD-WIU2/R1 ユーティリティCD version 3.00

This won’t work.

 

 

 

dual boot system on Epson Endeavor

1. Disk size:

debian-noriko: 40GB

EPSON1211847755: 71.8GB

Let’s assign  20GB for Windows XP, 50GB for Debian jessie.

2.  System space of EPSON:

Windows: 9.26GB (8.56GB on Disk)

Documents and Settings: 1.37GB (1.38GB9

Program Files:  1.98GB (1.94GB)

disk C:  17.1GB used, 54.6GB free,  71.8GB total

3. One might shrink the windows partition and create new  partition for debian beforehand using Gparted-live-disc. Actually I did it successfully but it was rather complicated.  I prefer the follwong.

4. On the working XP (actually recovered by Acronis TI), squash the content of disc C. MyDefrag is more effective than windows’ original defrag. You might confirm the final squashed state by windows disc tool defrag.

5. Boot from debian-8.2.0-amd64.netinst.iso. (Proceed with eth0.)

6. At disc partitioning stag:

6.1 Resize (shrink) the C partition to ~20GB, leaving ~55GB free space.

6.2 Select ( click and enter?) that free space, and partition it in automatic mode, of which separate partitions was chosen this time.

7. Desktop environment, gdm, xcf, kde, web browser, print server,.. were selected.

8. At boot loader setting stage, you can set grub setting to leave windows partition intact.

9. After the installation completed, wifi usb chip (elecom WDC-150SU2M) driver is introduced following ’15/09/15 post. HP Envy 4500 is also set following  the same post.

 

 

fix IP address for network printer (HP envy 4500)

1. Set network connection on console of the printer. The printer will be assigned an IP address by rooter. This address together with mac address can be found in the networking report printout of the printer.

2. Visit rooter (191.168.0.1). Set an new fixed IP (192.168.0.101) on the device with the mac address reported above (d0:bf:9c:a3:fc).

(詳細設定→DHCP固定割り当て設定)

3. Visit the printer ( address asigned at 1.) Set the new IP address (192.168.0.101) manually. Close the browser and revist the printer with new address to confirm the new address setting.

4. The printer IP address is currently 192.168.0.101. with mask 255.255.255.0.

Debian version

root@debian:~# cat /etc/issue
Debian GNU/Linux 7 \n \l

However, the above command may not show the current Debian update point releases. Thus you may get more accurate info with the following command:

root@debian:~# cat /etc/debian_version
7.7

WDC-150SU2M

On WindowsXP;

1. Download driver from Elecom.

2. Disable the Wlan driver of the existing wlan device and disconnect the device(PC card).

3. Run Setup.exe in driver package.

Error message “ファイルがみつかりません” in the process, but ignore it.

4. Plug in the device:  successful!