2025年04月30日

artix-xfce-s6-20250407-x86_64。vmware workstation pro17.6.1 / sparky-7.7-amd64-xfce

distrowatchで、obarunが目につきました。
initがs6でややこしかったのを思い出しました。
同じarchlinuxでs6なら、artixだろう、ってことで、
artix-xfceのs6をダウンロード、
インストールして確かめました。

live環境には、日本語フォントがありません。
起動選択画面で、日本語を選び起動すると
インストーラーを開いたとき、お豆腐が並びます。
英語で起動し直して、インストールしました。

パスワードを決めるところで、再入力の
入力欄が見えなくて、rootの欄を
確認欄と思い込みました。余計な所要時間。
視力に問題がない人なら、何事も起こらず
インストールは完了すると思います。

いつもartixでは、weeklyリリースのisoを使います。
今回は、もう少し前に出ていたstable板です。
理由は、先に試したweeklyのisoでは、
インストーラーが起動しなかったためです。

じぶん的には、artixが扱うinitシステムでは
dinit(systemdに操作が近い)が一番で、
runit、openrc、s6の順です。
s6は高速だけど、artixでも扱いがむずかしいです。
artixのs6の説明ページをちら見しましたが、
やっぱりアタマによく入らなかったです。

技術的知識の高い人の難点?は、原理を教えたがります。
解ればあとが早いから。
こっちが知りたいのは、これをしたら、どうなるかだけ。
門前の小僧経を読む式でいいのです。

で、インストールしてどうだったか、って、
s6のサービス処理は、何もしないままで動かせています。
vmwareの/usr/bin/vmtoolsdも、xfceの設定の
「セッションと起動」でスタートさせられます。
本家のtoolsのための名前の後ろにs6を付与した
サービス設定の補助パッケージの用意は、
もちろんありません。

日本語環境への変更は、/etc/locale.confのLANG=以下を
ja_JP.UTF-8に書き換えるだけ。
フォントは、archlinuxのパッケージサイトから、
otf-ipafontをダウンロードし、インストールしました。
なんだか、notoのcjkっぽく見えるんですよねえ、、、。
artixのサーバーには、日本語フォントはほとんどないみたいです。
あ、noto-fonts-cjkはありました。反して、
fcitx5関連は、すべてそろっています。archilinuxの
サーバーに繋がせるarchilinux-supportって
まだやっているんでしょうか。
とにかく、東方の日出づる国には、無関心です。

初期設定を終えてみると、動きは快適です。
かつてと変わら。

vmwaeは、broadcomに買収されてからは、
なんだかやり方が荒っぽいような。
toolsのスクリプトを見つけるのに
時間がかかりました。initがsystemdでないので、
原則、open-vm-toolsは使えません。
しかも、スクリプトを無事に走らせるには、
事前作業として、perlをインストールする必要があります、
# for x in {0..6}; do mkdir -p /etc/init.d/rc${x}.d; done
とか実行し、必要ディレクトリを生成しておくことも必要です。
でないと、スクリプトが正常に動作しません。
最後に Enjoy!の文字が見えれば、インストール成功。

具体的には、
ホストで、linux.iso(これ、toolsの名前)をダウンロード。
https://packages-prod.broadcom.com/tools/frozen/linux/
からだったと思います。linux.isoを
vmware workstationのゲスト側dvd設定で認識させます。
ゲストから中身が見えたら、
VMwareTools-10.3.26-22085142.tar.gz(ちょっと古いが動く)を
ゲスト側のホームディレクトリにでもコピー。
$ tar -xvzf VMwareTools-10.3.26-22085142.tar.gz
$ cd vmware-tools-distrib
$ sudo ./vmware-install.pl
$ sudo reboot

大勢として、最早systemdの時代なんでしょう。

s6は、システム起動も、早いです。すぐ立ち上がります。
誰かと同じへそ曲がりな質の人におすすめです。

artix_s6_2025-04-30_00-31-39.jpg

彼らは、壁紙にもほとんど無頓着です。ずーっと同じ。
物事の大事な点は、事の本質やろ!!ってかい?
木や岩にだって神は宿るってことを知らないねえ。

銀杏の若葉の並木でいいのを探しましたが、
なかったので、これにしました。

artix_xfce_wallpepar_2025-04-30_10-11-23.jpg



posted by ブログ開設者 at 10:17| Comment(0) | linux | このブログの読者になる | 更新情報をチェックする

2025年04月29日

i3が中途半端に入っていました。archbang-2704-x86_64

緑氏のブログをチェックしました。
2704バージョンにi3-wmが入っていたことが
判明しました。

~/.xinitrcの
exec openbox-session -> exec i3
に書き換えることで、起動できます。

とりあえず手動で起動してみると、愛想のない状態。
黒画面の下辺にステータスバーが
見えているだけでした。

mod4(Winの旗キー:super) + d で、dmenuは
出ますから、使えない、というわけではないです。
設定が最小限すぎて、、、
ま、勉強しなさい、モードかもですが。

だもので、openbox的見え方で、
残った初期設定をやりました。

~/.config/i3/config 下記はファイルの全文です。
緑のところが追加したところです。こうでなくちゃ、
ってことではありません。
やったことは、自動起動すべきプログラムの設定。
ブラウザ、ファイルマネージャー、エディタの
キーバインドの追加。exitメニューへの
rebootとshutdownの追加です。

--------------------------------------------------------------------

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:monospace 8
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id xrandr --outoput Virtual-1 resolution 1920x1200 ←仮想環境対応
exec --no-startup-id dex --autostart --environment i3
exec --no-startup-id sleep 2 && feh --bg-scale ~/Backgrounds/magnolia.jpg
exec --no-startup-id conky --pause=4
exec --no-startup-id fcitx5 -d
exec --no-startup-id vmware-user && sudo vmhgfs-fuse /mnt/hgfs -o auto_unmount -o allow_other ←仮想環境対応
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# move tiling windows via drag & drop by left-clicking into the title bar,
# or left-clicking anywhere into the window while holding the floating modifier.
tiling_drag modifier titlebar
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Ctrl+w exec firefox
bindsym $mod+Ctrl+f exec thunar
bindsym $mod+Ctrl+e exec l3afpad
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit' -b 'Restart' 'systemctl reboot' -b 'Shutdown' 'systemctl poweroff'"
#
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
}

--------------------------------------------------------------------

conkyは、openboxの設定のままでは、
開いたウィンドウの上に表示がのっかります。
own_window_type = 'desktop', -> 'override'.
に変更する必要があります。

デフォルトの状態では、1つのワークスペースに
フルサイズウィンドウ表示。上辺のタブでウィンドウを
使い分ける設定になっています。
mod4 + e で、ふつうのタイル状態になります。
1回押してならなければ、もう一度押す。
戻すには、mod4 + w で。もうひとつある表示の仕方を
試すには、mod4 + s です。

緑氏は、linuxユーザーが増えることを
望んでおいでのようですね。

ab2704_i3_2025-04-29_08-23-54.jpg


posted by ブログ開設者 at 08:20| Comment(0) | linux | このブログの読者になる | 更新情報をチェックする

2025年04月28日

waylandで、openboxのように。archbang-2704-x86_64。vmware workstation pro17.6.1 / sparky-7.7-amd64-xfce

型通りにインストールしました。
archbangの2704バージョン。
問題は何もなく、カーネルが6.14.4-arch1-1に。

初期設定を終えた後、
wayland上でopenboxのように使えるlabwcという
ウィンドウマネジャーがあることを知りました。
やってみることにしました。

”クロの思考ノート”さんのサイトに
インストール方法があり
$ sudo pacman -S labwc wlr-randr swaybg swaylock waybar mako grim foot
のぐらいのインストールをすればよさげでした。
手動で立ち上げるべく、~/.bash_profileのstartxを停めました。

難しかったのは、~/.config/labwc/rc.xmlの設定で、
面倒になって、archbang(openbox)のrc.xmlを使ってみました。
ログアウトなどのときに何行か赤字が見えるようになったものの、
メニューは、ほぼarchbangのまま使えるようになりました。
archibang側のtheme色も反映されました。
デスクトップ上、左クリックでアプリケーションメニューが
出ることに違和感があり、openboxと同じ右クリックで
メニューが出るように設定変更しました。

conkyは、先般、投稿しましたように、

~/.config/conky/conky.conf
conky.config = {
out_to_x = false,
out_to_wayland = true,
};
の2行追記。

~/.config/labwc/autostartには、
openboxのスタート設定と同じように、
各種コマンドを記述すれば、
プログラムは問題なく自動起動しました。

polybarは、どうやらwaylandには未対応のようでした。
waybarのテーマ込みのものをgithubから取得しました。
少しいじって、パネルの色使いを
今回のarchbang春バージョンのテーマ色に合わせました。

waybarに、ワークスペースの表示を入れて、
番号かアイコンのクリックで
スペースを移動することはできないようです。
プロトコルの制限上で、とか。
デスクトップ上のホイール操作では、openboxと同様に、
ワークスペースを移動できます。これも設定が必要。
ウィンドウの送りは、ウィンドウの
ネームバー上右クリックのプルダウンから。

~/.config/labwc/rc.xml

<labwc_config>
<desktops number="4" />
<keyboard>
<keybind key="W-1"> <action name="GoToDesktop" to="1" /> </keybind>
<keybind key="W-2"> <action name="GoToDesktop" to="2" /> </keybind>
<keybind key="W-3"> <action name="GoToDesktop" to="3" /> </keybind>
<keybind key="W-4"> <action name="GoToDesktop" to="4" /> </keybind>
</keyboard>
</labwc_config>

スクリーショットのgrimとかスクリーンセーバーの
swaylockとか、まだ設定していません。

labwc3_2025-04-28_20-53-13.jpg

openboxに比してポツポツできないことは
ありそうですね。最小化したウィンドウの呼び出しとか。
使い心地は悪くないです。

思い出したこと。ターミナルは、alacrittyが起動せず、
footに切り替えていました。


posted by ブログ開設者 at 20:06| Comment(0) | linux | このブログの読者になる | 更新情報をチェックする