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

Dual boot debian stretch on oldKiyoshi win xp

  1. prepare  debian bootable usb.
  2. Windows 管理ツール→コンピュータの管理→ディスクの管理
  3. Windows(©:)右クリック
  4. →領域を縮小(日本語(英語も?)分かりにくい):縮小量100GB:実際には97.66GBの未設定領域が作られた。finish?して
  5. 未設定領域を右クリック→simple volume ウィザード→ドライブF:が作成される
  6. resize and make simple volume debian 90GB
  7. Because deian installer is so good at disk partitioning, I chose leave everything to it, so that I removed the debian volume leaving 87.89GB unallocated disk partiion.
  8. Increas winC volume, leaving 78.13GB freespace.

Backup and Restore using SystemRescueCD (2)

Boot SystemRescueCD (ver6.0.3)

  1. Default system is fine.
  2. %setkmap
  3. Terminal may not have clear visibility, you don’t have to isuue ‘startx’
  4. %mkdir /mnt/backup
    %mount /dev/sdb5 /mnt/backup
  5. cd /mnt/backup and mkdir there for backup images
  6. Run partimage and just follow instructions.
  7. tab-key, space-bar and Enter-key are used and type text where needed.
  8. Restore steps are almost same, except one choice (backup or restore) in partimage program.

Debian on Kiyoshi-New-Lavie

1.make free partition  on Windows:
1.1 コンピュータの管理→ディスクの管理→WinC:(右クリック)shirink volume :~90GB

2.Debian9.9.0-amd64-iso-DVD boot

3.Aborted due to disc error, which turned out to be iso file downloading error.

4.Try again with bittorrent downloading and checked with sha256 checksum (in this case not necessary) and burned by ImgBurn with verify.  Successful but cannot realize dual boot.

5 minitool registraion was used up. Forced to attempt MBR recover using SystemRescueCD.

6. Boot SysResCD 64bit
6,1 /roo% fsarchiver prob simple
you will find sda5 has ext4 with label unknown:
% mkdir -p /mnt/linux
% mount -r /dev/sda5 /mnt/linux
check that linux exists:
% ls -l /mnt/linux/sbin/init
it does exist, it is a link:
/mnt/linux/sbin/init -> /lib/systemd/systemd

But;

BOOT.SDI is only one entry in boot directory

 

 

python3.5.2 to Debian8

This probably refers to common way of install software from source.

Installing Python manually is possible. As an example, you can use the following instructions to install 3.5.2 version

Prerequisites

Install dependencies :

sudo apt-get update && sudo apt-get install libssl-dev openssl

Building Python

You can build Python in a specific folder using the --prefix parameter from configure command:

wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
tar zxf Python-3.5.2.tgz
cd Python-3.5.2/
./configure --prefix=/usr/local
make
sudo make install

Instead of /usr/local, one can use another base directory. As an example:

sudo mkdir /opt/python-3.5.2
./configure --prefix=/opt/python-3.5.2

Selecting python version

Using PATH environment variable can help choosing the right python version to use. But one can also use symlinks:

sudo ln -s /opt/python-3.5.2/bin/python3.5 /usr/local/bin/python3
sudo ln -s /opt/python-3.5.2/bin/pip3.5 /usr/local/bin/pip3

Using -f option will allow you to replace existing symlinks