- 追加された行はこのように表示されます。
- 削除された行は
このように表示されます。
!!openSUSE Leap
!Download
*https://download.opensuse.org/distribution/leap/
ftp://ftp.riken.go.jp/Linux/opensuse/distribution/leap/
ftp://ftp.jaist.ac.jp/pub/Linux/openSUSE/distribution/leap/
### ftp://ftp.kddlabs.co.jp/pub/Linux
http://ftp-srv2.kddilabs.jp/Linux/packages/opensuse/distribution/leap/
ftp://ftp.iij.ad.jp/pub/linux/
! パーティション
root は 40G以上 ( SSDの場合には 52G以上 )
( 使用率は 80%以下で使用することを考える。。)
( ノートの場合は 80G 程度必要。。 )
! ディストリビューションの確認
cat /etc/os-release
その他のディストリビューション
cat /etc/redhat-release
cat /etc/fedora-release
cat /etc/debian_version
cat /etc/issue
! 直近の作業
**LN-leap155
! リポジトリの追加
*LN-zypper
Leap15_5
zypper addrepo https://repo.skype.com/rpm/stable/ SKYPE
zypper addrepo https://download.opensuse.org/repositories/graphics/15.5/graphics.repo
zypper addrepo https://download.opensuse.org/repositories/science/15.5/science.repo
zypper addrepo https://download.opensuse.org/repositories/electronics/15.5/electronics.repo
zypper addrepo https://download.opensuse.org/repositories/Publishing/openSUSE_15.5/Publishing.repo
zypper addrepo --refresh http://http.download.nvidia.com/opensuse/leap/15.5/ NVIDIA
zypper addrepo https://download.videolan.org/SuSE/15.5/SuSE.repo
zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.5/system:snappy.repo snappy
Leap15_4
> zypper addrepo http://download.opensuse.org/repositories/graphics/15.4/graphics.repo
> zypper addrepo https://download.opensuse.org/repositories/science/15.4/science.repo
> zypper addrepo https://download.opensuse.org/repositories/electronics/openSUSE_Leap_15.4/electronics.repo
zypper addrepo https://dl.google.com/linux/chrome/rpm/stable/x86_64
> zypper addrepo https://download.videolan.org/SuSE/15.4/SuSE.repo
>
> zypper addrepo https://download.opensuse.org/repositories/Publishing/openSUSE_Leap_15.4/Publishing.repo
>> zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.3/system:snappy.repo
> zypper addrepo --refresh http://http.download.nvidia.com/opensuse/leap/15.4/ NVIDIA
> zypper addrepo https://repo.skype.com/rpm/stable/skype-stable.repo skype
> zypper ar -cf http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.4/ packman
> zypper addrepo -cf http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_15.4/ recoll
*LN-texlive
Leap15_3
> zypper addrepo http://download.opensuse.org/repositories/graphics/openSUSE_Leap_15.3/graphics.repo
> zypper addrepo https://download.opensuse.org/repositories/science/openSUSE_Leap_15.3/science.repo
> zypper addrepo https://download.opensuse.org/repositories/electronics/openSUSE_Leap_15.3/electronics.repo
zypper addrepo https://dl.google.com/linux/chrome/rpm/stable/x86_64
zypper addrepo https://download.videolan.org/SuSE/Leap_15.2/SuSE.repo
> zypper addrepo https://download.videolan.org/SuSE/SLEap_15.3/SuSE.repo
> zypper addrepo https://download.opensuse.org/repositories/electronics/openSUSE_Leap_15.3/electronics.repo
> zypper addrepo https://download.opensuse.org/repositories/Publishing/openSUSE_Leap_15.3/Publishing.repo
> zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.3/system:snappy.repo
> zypper addrepo --refresh http://http.download.nvidia.com/opensuse/leap/15.3/ NVIDIA
> zypper addrepo https://repo.skype.com/rpm/stable/skype-stable.repo skype
> zypper addrepo http://download.videolan.org/SuSE/SLEap_15.3/SuSE.repo
http://download.opensuse.org/repositories/electronics/openSUSE_Leap_15.3/
http://dl.google.com/linux/chrome/rpm/stable/x86_64
https://download.videolan.org/SuSE/Leap_15.0/
## https://download.videolan.org/SuSE/Leap_15.3/
UPDATE(15.2->15.3)
http://download.opensuse.org/distribution/leap/15.3/repo/oss/
http://download.opensuse.org/distribution/leap/15.3/repo/non-oss/
http://download.opensuse.org/update/leap/15.3/oss/
http://download.opensuse.org/update/leap/15.3/non-oss/
http://download.opensuse.org/update/leap/15.3/backports/
http://download.opensuse.org/update/leap/15.3/sle/
zypper refresh
zypper update
! アプリケーションのインストール
texlive
texlive-platex
texlive-japanese
texlive-pst-tools
texlive-bold-extra
texlive-texlogos
texlive-yinit-otf-fonts
zypper install sysstat # yast > sysem > service manager > "sysstat" を "On Boot", "Active" に設定 すること
zypper install gcc
zypper install git
zypper install lyx dia inkscape
zypper install ncftp net-tools-deprecated lftp
zypper install tunctl bridge-utils
zypper install patch
zypper install awesome
zypper install gperf ncurses-devel
zypper install imagewriter
zypper install gzrt
zypper install opencv python3-opencv opencv-devel
## zypper install python-sympy python-opencv ## python2 なのでいらない
zypper install python3-sympy
# Whith PYTHON
zypper install zlib-devel tk-devel libopenssl-devel libexpat-devel libffi-devel #oenssl-devel
zypper install eigen3-devel
# Whith CURCUIT
kicad5
qucs libqucs0 qucs qucs-devel
# CommTools
librxtx-dev
# sound file
zypper install sox ffmpeg mplayer
# zypper install skypeforlinux
## zypper install gcc
## zypper install git
## zypper install lyx dia inkscape
## zypper install ncftp net-tools-deprecated lftp
## zypper install tunctl bridge-utils
## zypper install patch
## zypper install awesome
## zypper install gperf ncurses-devel
## zypper install imagewriter
## zypper install opencv python3-opencv opencv-devel
## ### zypper install python-sympy python-opencv
## zypper install python3-sympy
## zypper install zlib-devel tk-devel libopenssl-devel libexpat-devel libffi-devel #oenssl-devel
## zypper install eigen3-devel
全文検索
# zypper install recoll
http://downlo:ad.videolan.org/SuSE/
! zypper 使い方
LN-zypper
*http://note.kurodigi.com/opensuse132-addrepo/
!USB monitor (Display_Link) wavlink/UG39DK4-BL
https://software.opensuse.org/package/displaylink?search_term=DisplayLink
home:bnavigator コミュニティ
echo 1 > /proc/sys/kernel/sysrq
echo x > /proc/sysrq-trigger
! PRINTER
https://cweb.canon.jp/e-support/software/index.html
! proxy
/etc/sysconfig/proxy
を変更
> diff /etc/sysconfig/proxy_oooo /etc/sysconfig/proxy
11,12c11
< # PROXY_ENABLED="no"
< PROXY_ENABLED="yes"
---
> PROXY_ENABLED="no"
20,21c19
< # HTTP_PROXY=""
< HTTP_PROXY="http://192.168.1.21:8080"
---
> HTTP_PROXY=""
29,30c27
< # HTTPS_PROXY=""
< HTTPS_PROXY="http://192.168.1.21:8080"
---
> HTTPS_PROXY=""
37,38c34
< # FTP_PROXY=""
< FTP_PROXY="http://192.168.1.21:8080"
---
> FTP_PROXY=""
45,46c41
< # GOPHER_PROXY=""
< GOPHER_PROXY="http://192.168.1.21:8080"
---
> GOPHER_PROXY=""
53,54c48
< # SOCKS_PROXY=""
< SOCKS_PROXY="http://192.168.1.21:8080"
---
> SOCKS_PROXY=""
---
OR
export http_proxy="http://192.168.1.21"
export ftp_proxy="http://192.168.1.21"
export https_proxy="http://192.168.1.21"
export no_proxy="localhost, 127.0.0.1"
----
export http_proxy="http://192.168.1.21:8080"
export ftp_proxy="http://192.168.1.21:8080"
export https_proxy="http://192.168.1.21:8080"
export no_proxy="localhost, 127.0.0.1"
----
!SpeedTest
https://www.speedtest.net/ja/apps/cli
[MTU check]
https://www.speedguide.net/analyzer.php
----
!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 addrepo https://download.opensuse.org/repositories/science/openSUSE_Leap_15.0/science.repo
> zypper refresh
> zypper install --from science octave
##
# octave-forge-cgi,
# octave-forge-communications,
# octave-forge-communications-debuginfo,
# octave-forge-control,
# octave-forge-signal
----
! Maxima
zypper install maxima
----
! 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
! Static Route ( route add コマンドの代わり )
ip route add 192.168.1.0/24 via 192.168.16.225
!SWAP ( leap15.3 から )
BTRFS パーティション では swapon が出来ないので
loopbaack で作成
## MULTI DRIVE ( /root > 100G )
cd /SSS
# 4G
dd if=/dev/zero of=./file00.img bs=1M count=2048
dd if=/dev/zero of=./file01.img bs=1M count=4096
dd if=/dev/zero of=./file02.img bs=1M count=4096
## loopback デバイスに。。
losetup -f /SSS/file00.img
losetup -f /SSS/file01.img
losetup -f /SSS/file02.img
#
losetup -l
## NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC
## /dev/loop1 0 0 0 0 /SSS/file01.img 0 512
## /dev/loop2 0 0 0 0 /SSS/file02.img 0 512
## /dev/loop0 0 0 0 0 /SSS/file00.img 0 512
#
mkswap -f /dev/loop1
mkswap -f /dev/loop0
mkswap -f /dev/loop2
##
swapon /SSS/file00.swap
swapon /SSS/file01.swap
## swapoff /SSS/file00.swap
## swapoff /SSS/file01.swap
############ leap15.1 以前 ##########################
cd /home
# 2G
dd if=/dev/zero of=./file00.swap bs=1M count=2048
mkswap -f /home/file00.swap
swapon /home/file00.swap
# swapoff /home/file00.swap
!BOOT mode(GUI->CUI)
GUIからCUIに切り替えます。
$ systemctl get-default
graphical.target
$ sudo systemctl isolate multi-user.target
再起動後もCUI変更する場合は、以下のコマンドを実行します。
$ systemctl set-default multi-user.target
CUI -> GUI
$ systemctl get-default
multi-user.target
$ sudo systemctl isolate graphical.target
再起動後もGUI変更する場合は、以下のコマンドを実行します。
$ systemctl set-default graphical.target
! UPgrade
*LN-leap-upgrade
----