Sunday, November 13, 2016

macOS Sierra: SSH (Secure Shell) Client Configuration File: Fixing Perl Locale Warning on Server

Command:

$ diff /etc/ssh/ssh_config /etc/ssh/ssh_config.org


Result:

21c21
< #        SendEnv LANG LC_*
---
>         SendEnv LANG LC_*

Wednesday, November 9, 2016

MacBook 2,1 (2007): Mac OS X Snow Leopard: Installing rEFInd

Download link:

http://sourceforge.net/projects/refind/files/0.10.4/refind-bin-0.10.4.zip/download


Command:

$ ioreg -l -p IODeviceTree | grep firmware-abi


Result:

    | |   "firmware-abi" = <"EFI32">


Command:

$ diskutil list


Result:

/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS Untitled                499.8 GB   disk0s2
   3:       Microsoft Basic Data LINUX                   500.1 GB   disk0s3


Command:

$ mkdir /Volumes/ESP
$ sudo mount -t msdos /dev/disk0s1 /Volumes/ESP
Password:
$ sudo mkdir -p /Volumes/ESP/EFI/refind
$ sudo cp -r ~/Downloads/refind-bin-0.10.4/refind/* /Volumes/ESP/EFI/refind/
$ sudo rm /Volumes/ESP/EFI/refind/refind_aa64.efi  
$ sudo rm /Volumes/ESP/EFI/refind/refind_x64.efi 
$ sudo mv /Volumes/ESP/EFI/refind/refind.conf-sample /Volumes/ESP/efi/refind/refind.conf
$ ls


Result:

drivers_ia32 icons refind.conf refind_ia32.efi tools_ia32


Command:

$ sudo bless --mount /Volumes/ESP --setBoot --file /Volumes/ESP/EFI/refind/refind_ia32.efi --shortform
$ pwd


Result:

/Volumes/ESP/EFI


Command:

$ ls -al


Result:

total 5
drwxrwxrwx  1 yasu  staff   512 Nov  9 15:18 .
drwxrwxrwx  1 yasu  staff   512 Nov  9 14:10 ..
drwxrwxrwx  1 yasu  staff   512 Nov  8 13:04 APPLE
drwxrwxrwx  1 yasu  staff  1024 Nov  9 15:14 refind

Tuesday, November 8, 2016

Manjaro Linux: Installin vi and Vim Text Editors

Command:

$ sudo pacman -S vi


Result:

resolving dependencies...
looking for conflicting packages...

Packages (1) vi-1:070224-2

Total Download Size:   0.14 MiB
Total Installed Size:  0.28 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 vi-1:070224-2-x86_64                      148.0 KiB  1850K/s 00:00 [#####################################] 100%
(1/1) checking keys in keyring                                      [#####################################] 100%
(1/1) checking package integrity                                    [#####################################] 100%
(1/1) loading package files                                         [#####################################] 100%
(1/1) checking for file conflicts                                   [#####################################] 100%
(1/1) checking available disk space                                 [#####################################] 100%
:: Processing package changes...
(1/1) installing vi                                                 [#####################################] 100%
Optional dependencies for vi
    s-nail: used by the preserve command for notification [installed]


Command:

 $ sudo pacman -S vim


Result:

resolving dependencies...
looking for conflicting packages...

Packages (2) vim-runtime-8.0.0055-1  vim-8.0.0055-1

Total Download Size:    6.35 MiB
Total Installed Size:  29.23 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 vim-runtime-8.0.0055-1-x86_64               5.1 MiB  2.65M/s 00:02 [#####################################] 100%
 vim-8.0.0055-1-x86_64                    1239.7 KiB  3.00M/s 00:00 [#####################################] 100%
(2/2) checking keys in keyring                                      [#####################################] 100%
(2/2) checking package integrity                                    [#####################################] 100%
(2/2) loading package files                                         [#####################################] 100%
(2/2) checking for file conflicts                                   [#####################################] 100%
(2/2) checking available disk space                                 [#####################################] 100%
:: Processing package changes...
(1/2) installing vim-runtime                                        [#####################################] 100%
(2/2) installing vim                                                [#####################################] 100%
Optional dependencies for vim
    python2: Python 2 language support [installed]
    python: Python 3 language support [installed]
    ruby: Ruby language support
    lua: Lua language support [installed]
    perl: Perl language support [installed]
    tcl: Tcl language support [installed]

Manjaro Linux: Installing i3 Window Manager

Command:

$ sudo pacman -S i3-wm


Result:

:: Some packages should be upgraded first...
resolving dependencies...
looking for conflicting packages...

Packages (2) archlinux-keyring-20161101-1  manjaro-system-20161101-2

Total Download Size:   0.60 MiB
Total Installed Size:  0.81 MiB
Net Upgrade Size:      0.02 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 archlinux-keyring-2...   598.2 KiB  2.04M/s 00:00 [######################] 100%
 manjaro-system-2016...    16.4 KiB  2.29M/s 00:00 [######################] 100%
(2/2) checking keys in keyring                     [######################] 100%
(2/2) checking package integrity                   [######################] 100%
(2/2) loading package files                        [######################] 100%
(2/2) checking for file conflicts                  [######################] 100%
(2/2) checking available disk space                [######################] 100%
:: Processing package changes...
(1/2) upgrading archlinux-keyring                  [######################] 100%
==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2...
  -> Locally signing key 684148BB25B49E986A4944C55184252D824B18E8...
  -> Locally signing key 91FFE0700E80619CEB73235CA88E23E377514E00...
  -> Locally signing key 44D4A033AC140143927397D47EFD567D4C7EA887...
  -> Locally signing key 27FFC4769E19F096D41D9265A04F9397CDFD6BB0...
  -> Locally signing key AB19265E5D7D20687D303246BA1DFB64FFF979E7...
==> Importing owner trust values...
==> Disabling revoked keys in keyring...
  -> Disabling key F5A361A3A13554B85E57DDDAAF7EF7873CFD4BB6...
  -> Disabling key 7FA647CD89891DEDC060287BB9113D1ED21E1A55...
  -> Disabling key D4DE5ABDE2A7287644EAC7E36D1A9E70E19DAA50...
  -> Disabling key BC1FBE4D2826A0B51E47ED62E2539214C6C11350...
  -> Disabling key 9515D8A8EAB88E49BB65EDBCE6B456CAF15447D5...
  -> Disabling key 4A8B17E20B88ACA61860009B5CED81B7C2E5C0D2...
  -> Disabling key 63F395DE2D6398BBE458F281F2DBB4931985A992...
  -> Disabling key 0B20CA1931F5DA3A70D0F8D2EA6836E1AB441196...
  -> Disabling key 8F76BEEA0289F9E1D3E229C05F946DED983D4366...
  -> Disabling key 66BD74A036D522F51DD70A3C7F2A16726521E06D...
  -> Disabling key 81D7F8241DB38BC759C80FCE3A726C6170E80477...
  -> Disabling key E7210A59715F6940CF9A4E36A001876699AD6E84...
==> Updating trust database...
gpg: next trustdb check due at 2017-01-01
(2/2) upgrading manjaro-system                     [######################] 100%
==> Fix ttf-dejavu upgrade ...
resolving dependencies...
looking for conflicting packages...

Packages (1) ttf-dejavu-2.37-1

Total Download Size:   2.35 MiB
Total Installed Size:  9.75 MiB
Net Upgrade Size:      0.57 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
downloading ttf-dejavu-2.37-1-any.pkg.tar.xz...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
upgrading ttf-dejavu...
warning: lock file missing /var/lib/pacman/db.lck

resolving dependencies...
looking for conflicting packages...

Packages (4) libev-4.22-1  xcb-util-cursor-0.1.3-1  xcb-util-renderutil-0.3.9-1
             i3-wm-4.12-1

Total Download Size:   0.39 MiB
Total Installed Size:  1.21 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 xcb-util-renderutil...     8.2 KiB  2043K/s 00:00 [######################] 100%
 xcb-util-cursor-0.1...    11.3 KiB  3.68M/s 00:00 [######################] 100%
 libev-4.22-1-x86_64      113.6 KiB  1556K/s 00:00 [######################] 100%
 i3-wm-4.12-1-x86_64      263.4 KiB  2.34M/s 00:00 [######################] 100%
(4/4) checking keys in keyring                     [######################] 100%
(4/4) checking package integrity                   [######################] 100%
(4/4) loading package files                        [######################] 100%
(4/4) checking for file conflicts                  [######################] 100%
(4/4) checking available disk space                [######################] 100%
:: Processing package changes...
(1/4) installing xcb-util-renderutil               [######################] 100%
(2/4) installing xcb-util-cursor                   [######################] 100%
(3/4) installing libev                             [######################] 100%
(4/4) installing i3-wm                             [######################] 100%
Optional dependencies for i3-wm
    dmenu: As menu.
    i3lock: For locking your screen.
    i3status: To display systeminformation with a bar.
    perl-anyevent-i3: Features like saving the layout.
    perl-json-xs: Features like saving the layout.
:: Running post-transaction hooks...
(1/1) Updating the desktop file MIME type cache...


Command:

 $ sudo pacman -S i3lock i3status


Result:

[sudo] password for USERNAME:
resolving dependencies...
looking for conflicting packages...

Packages (3) confuse-3.0-1  i3lock-2.8-1  i3status-2.10-2

Total Download Size:   0.09 MiB
Total Installed Size:  0.24 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 i3lock-2.8-1-x86_64                        17.5 KiB  1752K/s 00:00 [#####################################] 100%
 confuse-3.0-1-x86_64                       37.3 KiB  1863K/s 00:00 [#####################################] 100%
 i3status-2.10-2-x86_64                     38.0 KiB  1899K/s 00:00 [#####################################] 100%
(3/3) checking keys in keyring                                      [#####################################] 100%
(3/3) checking package integrity                                    [#####################################] 100%
(3/3) loading package files                                         [#####################################] 100%
(3/3) checking for file conflicts                                   [#####################################] 100%
(3/3) checking available disk space                                 [#####################################] 100%
:: Processing package changes...
(1/3) installing i3lock                                             [#####################################] 100%
(2/3) installing confuse                                            [#####################################] 100%
(3/3) installing i3status                                           [#####################################] 100%

Monday, November 7, 2016

MacBook 2,1 (2007): Installing Xubuntu (not yet successful...)

URL (Installation instruction that I used):

https://ubuntuforums.org/showthread.php?t=2266424


URL (32-bit version of Xubuntu that I used):

http://ftp.uni-kl.de/pub/linux/ubuntu-dvd/xubuntu/releases/14.04/release/xubuntu-14.04.2-desktop-i386.iso


URL (Mac Linux USB loader I used):

https://github.com/SevenBits/Mac-Linux-USB-Loader/archive/v1.1.zip


Command:

$ sudo gparted


Command:

$ sudo fdisk -l


Command:

$ sudo apt-get install grub-efi


Command:

$ sudo mkdir /mnt
$ sudo mkdir /mnt/usb


Command:

$ sudo mount /dev/sda2 /mnt              # Target hard drive
$ sudo mount /dev/sdb2 /mnt/usb       # Installation usb drive


Command:

$ for i in /dev /dev/pts /proc /sys /run /usr /bin /sbin /lib; do sudo makedir /mnt$i; done
$ for i in /dev /dev/pts /proc /sys /run /usr /bin /sbin /lib; do sudo mount -B $i /mnt$i; done


Command:

$ sudo chroot /mnt


Command:

# grub-install --target=i386-efi --efi-directory=/usb --boot-directory=/usb/boot --bootloader-id=boot --removable


Result:

Installing for i386-efi platform.
Installation finished. No error reported.


Command:

# update-grub


Result:

Generating grub coonfiguration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /vmlinuz-3.15.0.0-30-generic
Froud initrd image: //initrd.img-3.16.0-30-generic
mktmp: failed to create directory via template '/tmp/os-prober.XXXXXX': No suckh file or directory
mkdir: cannot create directory '/var/lib/os-prober/mount': No such file or directory
done


Command:

# mkdir /var/lib
# mkdir /var/lib/os-prober
# mkdir /tmp
# update -grub


Result:

Generating grub coonfiguration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /vmlinuz-3.15.0.0-30-generic
Froud initrd image: //initrd.img-3.16.0-30-generic
done

Restart with Snow Leopard installation disk


Command (Terminal on Snow Leopard installer):

# bless --device /dev/disk0s1 --setBoot --legacy --verbose

freeze after restart

Sunday, November 6, 2016

Sayumi Michishige (道重さゆみ)

Sayumi Michishige

2003-2007:



2008-2013:

Momochi / Momoko Tsugunaga (ももち / 嗣永桃子): 踊る!さんま御殿!!: イラドル

Momoko Tsugunaga

  • イラドル
  • ももち残念

Friday, November 4, 2016

Ubuntu: Installing OpenSSH Server

Command:

$ dpkg -l | grep "openssh-server"


Result:


Command:

$ sudo apt-get install openssh-server


Result:

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libwrap0 ncurses-term openssh-sftp-server python3-requests python3-urllib3
  ssh-import-id tcpd
Suggested packages:
  ssh-askpass rssh molly-guard monkeysphere python3-ndg-httpsclient
  python3-openssl python3-pyasn1 python3-socks
The following NEW packages will be installed:
  libwrap0 ncurses-term openssh-server openssh-sftp-server python3-requests
  python3-urllib3 ssh-import-id tcpd
0 upgraded, 8 newly installed, 0 to remove and 28 not upgraded.
Need to get 821 kB of archives.
After this operation, 5,938 kB of additional disk space will be used.
Do you want to continue? [Y/n] Get:1 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 libwrap0 amd64 7.6.q-25 [46.2 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 ncurses-term all 6.0+20160625-1ubuntu1 [243 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 openssh-sftp-server amd64 1:7.3p1-1 [39.8 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 openssh-server amd64 1:7.3p1-1 [342 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 python3-urllib3 all 1.15.1-2 [60.5 kB]
Get:6 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 python3-requests all 2.10.0-2 [57.0 kB]
Get:7 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 tcpd amd64 7.6.q-25 [23.0 kB]
Get:8 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 ssh-import-id all 5.6-0ubuntu1 [10.2 kB]
Preconfiguring packages ...
Fetched 821 kB in 0s (1,779 kB/s)
Selecting previously unselected package libwrap0:amd64.
(Reading database ... 75%
(Reading database ... 58978 files and directories currently installed.)
Preparing to unpack .../0-libwrap0_7.6.q-25_amd64.deb ...
Unpacking libwrap0:amd64 (7.6.q-25) ...
Selecting previously unselected package ncurses-term.
Preparing to unpack .../1-ncurses-term_6.0+20160625-1ubuntu1_all.deb ...
Unpacking ncurses-term (6.0+20160625-1ubuntu1) ...

Selecting previously unselected package openssh-sftp-server.
Preparing to unpack .../2-openssh-sftp-server_1%3a7.3p1-1_amd64.deb ...
Unpacking openssh-sftp-server (1:7.3p1-1) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../3-openssh-server_1%3a7.3p1-1_amd64.deb ...
Unpacking openssh-server (1:7.3p1-1) ...
Selecting previously unselected package python3-urllib3.
Preparing to unpack .../4-python3-urllib3_1.15.1-2_all.deb ...
Unpacking python3-urllib3 (1.15.1-2) ...
Selecting previously unselected package python3-requests.
Preparing to unpack .../5-python3-requests_2.10.0-2_all.deb ...
Unpacking python3-requests (2.10.0-2) ...
Selecting previously unselected package tcpd.
Preparing to unpack .../6-tcpd_7.6.q-25_amd64.deb ...
Unpacking tcpd (7.6.q-25) ...
Selecting previously unselected package ssh-import-id.
Preparing to unpack .../7-ssh-import-id_5.6-0ubuntu1_all.deb ...

Unpacking ssh-import-id (5.6-0ubuntu1) ...
Setting up ncurses-term (6.0+20160625-1ubuntu1) ...
Processing triggers for ufw (0.35-2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up openssh-sftp-server (1:7.3p1-1) ...
Processing triggers for systemd (231-9git1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up python3-urllib3 (1.15.1-2) ...
Setting up libwrap0:amd64 (7.6.q-25) ...
Setting up tcpd (7.6.q-25) ...
Setting up openssh-server (1:7.3p1-1) ...
Creating SSH2 RSA key; this may take some time ...

2048 SHA256:A11tAAfk11AAAA1xhmuAA1hr/tAAnmqqdeAc1A1zAAA root@ubuntu2 (RSA)
Creating SSH2 ECDSA key; this may take some time ...
256 SHA256:AhAjtjj/nAyA11A+kp+A/+1+11AtAAAi1AA1AAAvswA root@ubuntu2 (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:AAc11dtAtAA1nAAAjn1sAmLhAs/s0hsA11rAA+Al111 root@ubuntu2 (ED25519)
Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
Setting up python3-requests (2.10.0-2) ...
Setting up ssh-import-id (5.6-0ubuntu1) ...
Processing triggers for libc-bin (2.24-3ubuntu1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (231-9git1) ...
Processing triggers for ufw (0.35-2) ...


Command:

$ dpkg -l | grep "openssh-server"


Result:

ii  openssh-server                             1:7.3p1-1                               amd64        secure shell (SSH) server, for secure access from remote machines

macOS Sierra: MD5: Comparing with MD5SUMS Values Online

Command:

$ grep -f <(md5 -r ~/Downloads/ubuntu-16.10-server-amd64.iso | cut -d " " -f 1) <(curl -s http://releases.ubuntu.com/16.10/MD5SUMS)


Result:

7d6de832aee348bacc894f0a2ab1170d *ubuntu-16.10-server-amd64.iso

Greg Kroah-Hartman: On the Linux Kernel

PUFFY: MOTHER

Ubuntu: Bochs: Booting from a Floppy Image File: Configuration File

Command:

$ cat bochsrc


Result:

floppya: 1_44=floppy.img, status=inserted
display_library: term
log: bochs.log
boot: a