トップ 差分 一覧 ソース 検索 ヘルプ RSS ログイン

openSUSE-Leap

 openSUSE Leap

Download

ftp://ftp.riken.go.jp/Linux/opensuse/distribution/leap/
ftp://ftp.jaist.ac.jp/pub/Linux/openSUSE/distribution/leap/

アプリケーションのインストール

texlive 
   texlive-platex
   texlive-japanese
   texlive-pst-tools
   texlive-bold-extra
   texlive-texlogos
   texlive-yinit-otf-fonts
zypper install lyz dia inkscape
zypper install ncftp net-tools-deprecated
zypper install tunctl bridge-utils
zypper install awesome 
zypper install gperf ncurses-devel
zypper install imagewriter
zypper install opencv
zypper install python-opencv python3-opencv
zypper install python-sympy
zypper install python3-sympy

meshlab のインストール

リポジトリに 
http://download.opensuse.org/repositories/graphics/openSUSE_Leap_42.3/
を追加して
zypper addrepo http://download.opensuse.org/repositories/graphics/openSUSE_Leap_42.3/graphics.repo
zypper refresh
zypper install meshlab

Octave

> zypper addrepo http://download.opensuse.org/repositories/science/openSUSE_Leap_42.3/science.repo
> zypper refresh
> zypper install --from science octave

UpDate

zypper addrepo --check --refresh --name 'openSUSE-Leap-42.3-Update' http://download.opensuse.org/update/leap/42.3/oss/ 

https://en.opensuse.org/SDB:System_upgrade

https://ja.opensuse.org/SDB:%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89


cpu page cache clear

[16793.888148] bash (10912): drop_caches: 1
[16894.865842] bash (10912): drop_caches: 2
[16919.611545] bash (10912): drop_caches: 3
[17049.468698] bash (10912): drop_caches: 2
[17060.492272] bash (10912): drop_caches: 1

http://www.shift-the-oracle.com/linux/utility/flush-buffer-cache.html

cpu page cache

# sysctl -w vm.drop_caches=1
# sysctl -w vm.drop_caches=2
# sysctl -w vm.drop_caches=3

USB インストールデバイスを作る( 多分8Gbyte 以上が必要 )

LiveCD ISO のダウンロード
Main http://software.opensuse.org/ 
## wget http://download.opensuse.org/distribution/XXXX/XXXXXXXXXXX.iso
# Japan 
wget http://ftp.kddilabs.jp/Linux/packages/opensuse/distribution/leap/42.2/iso/openSUSE-Leap-42.2-DVD-x86_64.iso 
wget http://ftp.jaist.ac.jp/pub/Linux/openSUSE/distribution/leap/42.2/iso/openSUSE-Leap-42.2-DVD-x86_64.iso 
wget http://ftp.riken.jp/Linux/opensuse/distribution/leap/42.2/iso/openSUSE-Leap-42.2-DVD-x86_64.iso
# umount /dev/sdX(USB device)
# dd if=/path/to/downloaded.iso of=/dev/sdX bs=4M
# USB メモリ内に保存可能なファイルシステムを作成するには、起動時のプロンプトに追加のコマンドを指定します:
#
kiwi_hybridpersistent=yes
# 上記を指定することにより、 USB メモリ内に保存可能な領域が作成され、必要なデータを保存できるようになります。 

!内蔵HDDの追加(コマンドライン)
parted /dev/sdf 
## 
mkfs /dev/sdf1

SMART tool

SUSE で S.M.A,R.T を
https://software.opensuse.org/package/smartmontools

https://sourceforge.net/projects/smartmontools/files/

NTFS 初期化

ディスクの状態を確認
# fdisk -l 
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 7304F322-E05E-4A54-B87A-37DFDF1BC396

Device       Start       End   Sectors   Size Type
/dev/sda1     2048    321535    319488   156M EFI System
/dev/sda2   321536   4530175   4208640     2G Microsoft basic data
/dev/sda3  4530176 468860927 464330752 221.4G Microsoft basic data

**このディスクを初期化する**
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0x281663a6

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdb1          64 3907029167 3907029104  1.8T 87 NTFS volume set

**初めにパーティションを作成**
# fdisk /dev/sdXX
Welcome to fdisk (util-linux 2.28).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

パーティションラベルを DOS (o) モードへ
Command (m for help): o
Created a new DOS disklabel with disk identifier 0x281663a6.

パーティションを作成
Command (m for help): n
Partition type
  p   primary (0 primary, 0 extended, 4 free)
  e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (63-3907029167, default 64): 
Last sector, +sectors or +size{K,M,G,T,P} (64-3907029167, default 3907029167): 

Created a new partition 1 of type 'Linux' and of size 1.8 TiB.
Command (m for help):

パーティションを Linux から NTFS へ
Command (m for help): t
Selected partition 1
Partition type (type L to list all types): 87
Changed type of partition 'Linux' to 'NTFS volume set'.

ラベリング(書き込み)
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

linux-bmds:~ # 

samba

# pdbedit -a <user>
new password:
retype new password:
Sambaはpdbeditで追加した<user>に対して/home/<user>を公開する仕組みを持っています。/home/<user>

SMB file をmount する

mount.cifs  -o username=WINDOWSUSERNAME,password=WINDOWSPASSWORD //windowsIPaddress/folername /x