月別アーカイブ: 2015年9月

SystemRescueCD

1. Download  **.iso.

2. Burn CD.

2.1 Set blanc CD in the driev. (Important!)

2.2. To find the drive:

root@debian-yu:/home/kiyoshi# wodim devices
wodim: No write mode specified.
wodim: Assuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
Device was not specified. Trying to find an appropriate drive…
Detected CD-R drive: /dev/cdrw
Using /dev/cdrom of unknown capabilities
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   :
Vendor_info    : ‘TSSTcorp’
Identification : ‘CDDVDW TS-L633A ‘
Revision       : ‘TM00’
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
wodim: No such file or directory. Cannot open ‘devices’.
2.3. root@debian-yu:/home/kiyoshi/Softwares# ls
Acronis  systemrescuecd-x86-4.6.0.iso

wodim dev=/dev/cdrw systemrescuecd-x86-4.6.0.iso
wodim: No write mode specified.
wodim: Assuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   :
Vendor_info    : ‘TSSTcorp’
Identification : ‘CDDVDW TS-L633A ‘
Revision       : ‘TM00’
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Speed set to 4234 KB/s
Starting to write CD/DVD at speed  24.0 in real TAO mode for single session.
Last chance to quit, starting real write in    0 seconds. Operation starts.
Track 01: Total bytes read/written: 467294208/467294208 (228171 sectors).

 

Backup Debian

1. Find mounted media:

root@debian-yu:/etc# mount |grep media
/dev/sdb1 on /media/kiyoshi/0D34-FE56 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=437,iocharset=utf8,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/sdc5 on /media/kiyoshi/HD-WIU2 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
root@debian-yu:/etc#

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.