「debian」カテゴリーアーカイブ

cisco VPN

AnyConnect Support for Linux

Linux Requirements

  • x86 instruction set.
  • 64-bit processor.
  • 32 MB RAM.
  • 20 MB hard disk space.
  • Dependency on network-manager and libnm library to support NVM.Superuser privileges are required for installation.
  • libstdc++ users must have libstdc++.so.6(GLIBCXX_3.4) or higher, but below version 4.
  • Java 5 (1.5) or later. The only version that works for web installation is Sun Java. You must install Sun Java and configure your browser to use that instead of the default package.
  • zlib – to support SSL deflate compression
  • xterm – only required if you’re doing initial deployment of AnyConnect via Weblaunch from ASA clientless portal.
  • gtk 2.0.0.
  • gdk 2.0.0.
  • libpango 1.0.
  • iptables 1.2.7a or later.
  • tun module supplied with kernel 2.4.21 or 2.6.

debian-yu status

Firefox ESR 45.2.0, 52.6.0 (64-bit)

Chrome 57,0.2987.133(64bit)

Linux debian-yu 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux

Verifying archive integrity.
Error in MD5 checksums: 6c666532bb12a54d8ad9f519e6746eca is different from 5ce79b4619ae0f8df67a16457934e5ac

Error in MD5 checksums: 6c666532bb12a54d8ad9f519e6746eca is different from 5ce79b4619ae0f8df67a16457934e5ac

Create 501 user for Read-only cdrom

sudo adduser –uid 501 tmpuser;

sudo passwd tmpuser;

restart and login as tmpuser; (not listed on login screen because uid is less than 1000, but you can go ahead).

You can change neither permission nor ownership of files on the cdrom because you cannot change the cdrom’s  file system, but you can copy files to somewhere where you can do anything.

 

Japanese environment setting jessie

1. Japanese input is realized through: uim anthy

2.  Japanese in the program ( e.g. BM ) is partly English (probably in the gtk+ library).

3.  Reconfigure locales:

#dpkg-reconfigure locales;

Select  “ja_JP.UTF-8;

root@debian-yu:/home/kiyoshi# locale
LANG=ja_JP.UTF-8
LANGUAGE=
LC_CTYPE=”ja_JP.UTF-8″
LC_NUMERIC=”ja_JP.UTF-8″
LC_TIME=”ja_JP.UTF-8″
LC_COLLATE=”ja_JP.UTF-8″
LC_MONETARY=”ja_JP.UTF-8″
LC_MESSAGES=”ja_JP.UTF-8″
LC_PAPER=”ja_JP.UTF-8″
LC_NAME=”ja_JP.UTF-8″
LC_ADDRESS=”ja_JP.UTF-8″
LC_TELEPHONE=”ja_JP.UTF-8″
LC_MEASUREMENT=”ja_JP.UTF-8″
LC_IDENTIFICATION=”ja_JP.UTF-8”
LC_ALL=
4. Even the program already compiled in “en_US.UTF-8”  ( e.g. BM ) exhibited Japanese label correctly, but all the system run in Japanese.

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.

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.