ALT Linux Distributions development
 help / color / mirror / Atom feed
* [devel-distro] [PATCH 1/4] features/x11-neatterm: add custom terminal settings
@ 2016-07-05 14:24 Konstantin A. Lepikhov
  2016-07-05 14:24 ` [devel-distro] [PATCH 2/4] lists/tagged/e17: update package list Konstantin A. Lepikhov
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Konstantin A. Lepikhov @ 2016-07-05 14:24 UTC (permalink / raw)
  To: devel-distro; +Cc: Konstantin A. Lepikhov

This adds Xdefaults customisation for *Term family (XTerm/Rxvt/*).
Includes font and color changes intended for daily usage.
---
 features.in/x11-neatterm/README                    |  3 +
 features.in/x11-neatterm/config.mk                 |  3 +
 .../rootfs/image-scripts.d/90-x11-neatterm         | 84 ++++++++++++++++++++++
 3 files changed, 90 insertions(+)
 create mode 100644 features.in/x11-neatterm/README
 create mode 100644 features.in/x11-neatterm/config.mk
 create mode 100755 features.in/x11-neatterm/rootfs/image-scripts.d/90-x11-neatterm

diff --git a/features.in/x11-neatterm/README b/features.in/x11-neatterm/README
new file mode 100644
index 0000000..45490ae
--- /dev/null
+++ b/features.in/x11-neatterm/README
@@ -0,0 +1,3 @@
+Nice default settings for *term apps family (Xterm/Rxvt/etc)
+includes color settings and font settings
+
diff --git a/features.in/x11-neatterm/config.mk b/features.in/x11-neatterm/config.mk
new file mode 100644
index 0000000..93effe1
--- /dev/null
+++ b/features.in/x11-neatterm/config.mk
@@ -0,0 +1,3 @@
+use/x11-neatterm: use/x11
+	@$(call add_feature)
+	@$(call add,THE_PACKAGES,fonts-bitmap-terminus)
diff --git a/features.in/x11-neatterm/rootfs/image-scripts.d/90-x11-neatterm b/features.in/x11-neatterm/rootfs/image-scripts.d/90-x11-neatterm
new file mode 100755
index 0000000..3afd721
--- /dev/null
+++ b/features.in/x11-neatterm/rootfs/image-scripts.d/90-x11-neatterm
@@ -0,0 +1,84 @@
+#!/bin/sh
+
+if [ ! -x /usr/bin/X ]; then
+	echo "X not installed!" >&2
+	exit 0
+fi
+
+X_CFG=/home/altlinux/.Xdefaults
+cat >> "$X_CFG" <<- EOF
+Rxvt*font: -*-terminus-*-*-*-*-20-*-*-*-*-*-iso10646-1
+Rxvt*color0: black
+Rxvt*color1: tomato3
+Rxvt*color2: pale green
+Rxvt*color3: goldenrod2
+Rxvt*color4: #003355
+Rxvt*color5: magenta3
+Rxvt*color6: LightBlue3
+Rxvt*color7: gray100
+Rxvt*color8: gray30
+Rxvt*color9: tomato
+Rxvt*color10: spring green
+Rxvt*color11: gold
+Rxvt*color12: blue
+Rxvt*color13: magenta
+Rxvt*color14: LightBlue2
+Rxvt*color15: white
+Rxvt*colorUL: yellow
+Rxvt*colorBD: white
+!Rxvt*background: #112233
+Rxvt*background: black
+Rxvt*foreground: #FFEEBB
+Rxvt*cursorColor: Gold
+
+UXTerm*background: black
+!UXTerm*foreground: green
+UXTerm*VT100*font: -*-terminus-*-*-*-*-20-*-*-*-*-*-iso10646-1
+UXTerm*color0: black
+UXTerm*color1: tomato3
+UXTerm*color2: pale green
+UXTerm*color3: goldenrod2
+UXTerm*color4: #003355
+UXTerm*color5: magenta3
+UXTerm*color6: LightBlue3
+UXTerm*color7: gray100
+UXTerm*color8: gray30
+UXTerm*color9: tomato
+UXTerm*color10: spring green
+UXTerm*color11: gold
+UXTerm*color12: blue
+UXTerm*color13: magenta
+UXTerm*color14: LightBlue2
+UXTerm*color15: white
+UXTerm*colorUL: yellow
+UXTerm*colorBD: white
+!UXTerm*background: #112233
+UXTerm*foreground: #FFEEBB
+UXTerm*cursorColor: Gold
+
+XTerm*background: black
+!XTerm*foreground: green
+XTerm*VT100*font: -*-terminus-*-*-*-*-20-*-*-*-*-*-iso10646-1
+XTerm*color0: black
+XTerm*color1: tomato3
+XTerm*color2: pale green
+XTerm*color3: goldenrod2
+XTerm*color4: #003355
+XTerm*color5: magenta3
+XTerm*color6: LightBlue3
+XTerm*color7: gray100
+XTerm*color8: gray30
+XTerm*color9: tomato
+XTerm*color10: spring green
+XTerm*color11: gold
+XTerm*color12: blue
+XTerm*color13: magenta
+XTerm*color14: LightBlue2
+XTerm*color15: white
+XTerm*colorUL: yellow
+XTerm*colorBD: white
+!XTerm*background: #112233
+XTerm*foreground: #FFEEBB
+XTerm*cursorColor: Gold
+EOF
+:
-- 
2.7.4



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [devel-distro] [PATCH 2/4] lists/tagged/e17: update package list
  2016-07-05 14:24 [devel-distro] [PATCH 1/4] features/x11-neatterm: add custom terminal settings Konstantin A. Lepikhov
@ 2016-07-05 14:24 ` Konstantin A. Lepikhov
  2016-07-27 11:27   ` Michael Shigorin
  2016-07-05 14:24 ` [devel-distro] [PATCH 3/4] sub.in/stage2/scripts: add microcode update trigger Konstantin A. Lepikhov
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 12+ messages in thread
From: Konstantin A. Lepikhov @ 2016-07-05 14:24 UTC (permalink / raw)
  To: devel-distro; +Cc: Konstantin A. Lepikhov

Changes:
- Removed e17-extra-modules package (apt-cache knows nothing about)
+ Replaced xterm by terminology
+ Added ConsoleKit (to make buttons work)
---
 pkg.in/lists/tagged/desktop+e17 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg.in/lists/tagged/desktop+e17 b/pkg.in/lists/tagged/desktop+e17
index 0d5f9a5..010084c 100644
--- a/pkg.in/lists/tagged/desktop+e17
+++ b/pkg.in/lists/tagged/desktop+e17
@@ -1,5 +1,5 @@
 e17-default
 evas_generic_loaders
 gnome-icon-theme
-e17-extra-modules
-xterm
+terminology
+ConsoleKit
-- 
2.7.4



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [devel-distro] [PATCH 3/4] sub.in/stage2/scripts: add microcode update trigger
  2016-07-05 14:24 [devel-distro] [PATCH 1/4] features/x11-neatterm: add custom terminal settings Konstantin A. Lepikhov
  2016-07-05 14:24 ` [devel-distro] [PATCH 2/4] lists/tagged/e17: update package list Konstantin A. Lepikhov
@ 2016-07-05 14:24 ` Konstantin A. Lepikhov
  2016-07-27 11:25   ` Michael Shigorin
  2016-07-05 14:24 ` [devel-distro] [PATCH 4/4] features/firmware: add right ucode for Intel Konstantin A. Lepikhov
  2016-07-27 11:22 ` [devel-distro] [PATCH 1/4] features/x11-neatterm: add custom terminal settings Michael Shigorin
  3 siblings, 1 reply; 12+ messages in thread
From: Konstantin A. Lepikhov @ 2016-07-05 14:24 UTC (permalink / raw)
  To: devel-distro; +Cc: Konstantin A. Lepikhov

We need to run this during boot because nobody cares about this now.
Right way is early microcode update but latter possible only on standalone
configuration not install/live target.
---
 sub.in/stage2/image-scripts.d/99-microcode-update | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 sub.in/stage2/image-scripts.d/99-microcode-update

diff --git a/sub.in/stage2/image-scripts.d/99-microcode-update b/sub.in/stage2/image-scripts.d/99-microcode-update
new file mode 100644
index 0000000..48f8500
--- /dev/null
+++ b/sub.in/stage2/image-scripts.d/99-microcode-update
@@ -0,0 +1,23 @@
+#!/bin/sh -e
+# initiate CPU microcode update on boot
+
+cat << EOF > /usr/local/sbin/microcode_update
+#!/bin/sh -e
+echo 1 > /sys/devices/system/cpu/microcode/reload
+EOF
+chmod +x /usr/local/sbin/microcode_update
+
+cat << EOF > /etc/systemd/system/microcode.service
+[Unit]
+Description=Reload CPU microcode
+
+[Service]
+ExecStart=/usr/local/sbin/microcode_update
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=default.target
+EOF
+
+systemctl enable microcode.service
-- 
2.7.4



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [devel-distro] [PATCH 4/4] features/firmware: add right ucode for Intel
  2016-07-05 14:24 [devel-distro] [PATCH 1/4] features/x11-neatterm: add custom terminal settings Konstantin A. Lepikhov
  2016-07-05 14:24 ` [devel-distro] [PATCH 2/4] lists/tagged/e17: update package list Konstantin A. Lepikhov
  2016-07-05 14:24 ` [devel-distro] [PATCH 3/4] sub.in/stage2/scripts: add microcode update trigger Konstantin A. Lepikhov
@ 2016-07-05 14:24 ` Konstantin A. Lepikhov
  2016-07-27 11:27   ` Michael Shigorin
  2016-07-27 11:22 ` [devel-distro] [PATCH 1/4] features/x11-neatterm: add custom terminal settings Michael Shigorin
  3 siblings, 1 reply; 12+ messages in thread
From: Konstantin A. Lepikhov @ 2016-07-05 14:24 UTC (permalink / raw)
  To: devel-distro; +Cc: Konstantin A. Lepikhov

We don't use microcode_ctl anymore.
---
 features.in/firmware/config.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/features.in/firmware/config.mk b/features.in/firmware/config.mk
index 731cd95..685a158 100644
--- a/features.in/firmware/config.mk
+++ b/features.in/firmware/config.mk
@@ -9,7 +9,7 @@ use/firmware:
 use/firmware/full: use/firmware/server use/firmware/laptop; @:
 
 use/firmware/cpu: use/firmware
-	@$(call add,THE_PACKAGES,microcode-data-intel microcode_ctl)
+	@$(call add,THE_PACKAGES,firmware-intel-ucode iucode_tool)
 
 use/firmware/server: use/firmware
 	@$(call add,SYSTEM_PACKAGES,firmware-aic94xx-seq)
-- 
2.7.4



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [devel-distro] [PATCH 1/4] features/x11-neatterm: add custom terminal settings
  2016-07-05 14:24 [devel-distro] [PATCH 1/4] features/x11-neatterm: add custom terminal settings Konstantin A. Lepikhov
                   ` (2 preceding siblings ...)
  2016-07-05 14:24 ` [devel-distro] [PATCH 4/4] features/firmware: add right ucode for Intel Konstantin A. Lepikhov
@ 2016-07-27 11:22 ` Michael Shigorin
  3 siblings, 0 replies; 12+ messages in thread
From: Michael Shigorin @ 2016-07-27 11:22 UTC (permalink / raw)
  To: devel-distro

On Tue, Jul 05, 2016 at 04:24:44PM +0200, Konstantin A. Lepikhov wrote:
> This adds Xdefaults customisation for *Term family (XTerm/Rxvt/*).
> Includes font and color changes intended for daily usage.

Можно включить в профиль, но если оформить пакетом etcskel-xterm,
который бы заодно вытягивал fonts-bitmap-terminus -- было бы
легче применять не только в рамках mkimage-profiles.

> +	@$(call add,THE_PACKAGES,fonts-bitmap-terminus)
> +X_CFG=/home/altlinux/.Xdefaults
> +cat >> "$X_CFG" <<- EOF
> +Rxvt*font: -*-terminus-*-*-*-*-20-*-*-*-*-*-iso10646-1

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [devel-distro] [PATCH 3/4] sub.in/stage2/scripts: add microcode update trigger
  2016-07-05 14:24 ` [devel-distro] [PATCH 3/4] sub.in/stage2/scripts: add microcode update trigger Konstantin A. Lepikhov
@ 2016-07-27 11:25   ` Michael Shigorin
  2016-07-27 11:36     ` Konstantin Lepikhov
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Shigorin @ 2016-07-27 11:25 UTC (permalink / raw)
  To: devel-distro

On Tue, Jul 05, 2016 at 04:24:46PM +0200, Konstantin A. Lepikhov wrote:
> We need to run this during boot because nobody cares about this now.
> Right way is early microcode update but latter possible only on standalone
> configuration not install/live target.

Опять же, не лучше ли такое упаковать в какой livecd-ucode-update?

> +cat << EOF > /usr/local/sbin/microcode_update
> +cat << EOF > /etc/systemd/system/microcode.service

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [devel-distro] [PATCH 2/4] lists/tagged/e17: update package list
  2016-07-05 14:24 ` [devel-distro] [PATCH 2/4] lists/tagged/e17: update package list Konstantin A. Lepikhov
@ 2016-07-27 11:27   ` Michael Shigorin
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Shigorin @ 2016-07-27 11:27 UTC (permalink / raw)
  To: devel-distro

On Tue, Jul 05, 2016 at 04:24:45PM +0200, Konstantin A. Lepikhov wrote:
> Changes:
> - Removed e17-extra-modules package (apt-cache knows nothing about)
> + Replaced xterm by terminology
> + Added ConsoleKit (to make buttons work)

Спасибо, забрал.

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [devel-distro] [PATCH 4/4] features/firmware: add right ucode for Intel
  2016-07-05 14:24 ` [devel-distro] [PATCH 4/4] features/firmware: add right ucode for Intel Konstantin A. Lepikhov
@ 2016-07-27 11:27   ` Michael Shigorin
  2016-07-27 11:55     ` Sergey V Turchin
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Shigorin @ 2016-07-27 11:27 UTC (permalink / raw)
  To: devel-distro

On Tue, Jul 05, 2016 at 04:24:47PM +0200, Konstantin A. Lepikhov wrote:
> We don't use microcode_ctl anymore.

Тоже забрал.

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [devel-distro] [PATCH 3/4] sub.in/stage2/scripts: add microcode update trigger
  2016-07-27 11:25   ` Michael Shigorin
@ 2016-07-27 11:36     ` Konstantin Lepikhov
  0 siblings, 0 replies; 12+ messages in thread
From: Konstantin Lepikhov @ 2016-07-27 11:36 UTC (permalink / raw)
  To: devel-distro

Hi Michael!

On 07/27/16, at 02:25:43 PM you wrote:

> On Tue, Jul 05, 2016 at 04:24:46PM +0200, Konstantin A. Lepikhov wrote:
> > We need to run this during boot because nobody cares about this now.
> > Right way is early microcode update but latter possible only on standalone
> > configuration not install/live target.
> 
> Опять же, не лучше ли такое упаковать в какой livecd-ucode-update?
> 
> > +cat << EOF > /usr/local/sbin/microcode_update
> > +cat << EOF > /etc/systemd/system/microcode.service
> 
Наверное, можно. Я себе это сделал как хак, чтобы хоть как-то работало.

-- 
WBR et al.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [devel-distro] [PATCH 4/4] features/firmware: add right ucode for Intel
  2016-07-27 11:27   ` Michael Shigorin
@ 2016-07-27 11:55     ` Sergey V Turchin
  2016-07-27 12:41       ` Michael Shigorin
  0 siblings, 1 reply; 12+ messages in thread
From: Sergey V Turchin @ 2016-07-27 11:55 UTC (permalink / raw)
  To: devel-distro

On Wednesday, 27 July 2016 14:27:57 MSK Michael Shigorin wrote:
> On Tue, Jul 05, 2016 at 04:24:47PM +0200, Konstantin A. Lepikhov wrote:
> > We don't use microcode_ctl anymore.
> 
> Тоже забрал.
В p8 не забудьте положить.

-- 
Regards, Sergey.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [devel-distro] [PATCH 4/4] features/firmware: add right ucode for Intel
  2016-07-27 11:55     ` Sergey V Turchin
@ 2016-07-27 12:41       ` Michael Shigorin
  2016-07-27 13:00         ` Konstantin Lepikhov
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Shigorin @ 2016-07-27 12:41 UTC (permalink / raw)
  To: devel-distro

On Wed, Jul 27, 2016 at 02:55:29PM +0300, Sergey V Turchin wrote:
> > > We don't use microcode_ctl anymore.

Кстати, именно из этого srpm и собирается firmware-intel-ucode.

> > Тоже забрал.
> В p8 не забудьте положить.

task #167923

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [devel-distro] [PATCH 4/4] features/firmware: add right ucode for Intel
  2016-07-27 12:41       ` Michael Shigorin
@ 2016-07-27 13:00         ` Konstantin Lepikhov
  0 siblings, 0 replies; 12+ messages in thread
From: Konstantin Lepikhov @ 2016-07-27 13:00 UTC (permalink / raw)
  To: devel-distro

Hi Michael!

On 07/27/16, at 03:41:32 PM you wrote:

> On Wed, Jul 27, 2016 at 02:55:29PM +0300, Sergey V Turchin wrote:
> > > > We don't use microcode_ctl anymore.
> 
> Кстати, именно из этого srpm и собирается firmware-intel-ucode.
Правильно, потому что это оно и есть. microcode_ctl как команда уже давно
deprecated, а вот одноименный проект все еще жив. Я честно не знаю, почему
Intel продолжает этот геморрой с микрокодом в каком-то дурацком формате,
который потом еще надо парсить стопиццот раз чтобы получить файлы
пригодные для загрузки через /lib/firmware.

-- 
WBR et al.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-07-27 13:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-05 14:24 [devel-distro] [PATCH 1/4] features/x11-neatterm: add custom terminal settings Konstantin A. Lepikhov
2016-07-05 14:24 ` [devel-distro] [PATCH 2/4] lists/tagged/e17: update package list Konstantin A. Lepikhov
2016-07-27 11:27   ` Michael Shigorin
2016-07-05 14:24 ` [devel-distro] [PATCH 3/4] sub.in/stage2/scripts: add microcode update trigger Konstantin A. Lepikhov
2016-07-27 11:25   ` Michael Shigorin
2016-07-27 11:36     ` Konstantin Lepikhov
2016-07-05 14:24 ` [devel-distro] [PATCH 4/4] features/firmware: add right ucode for Intel Konstantin A. Lepikhov
2016-07-27 11:27   ` Michael Shigorin
2016-07-27 11:55     ` Sergey V Turchin
2016-07-27 12:41       ` Michael Shigorin
2016-07-27 13:00         ` Konstantin Lepikhov
2016-07-27 11:22 ` [devel-distro] [PATCH 1/4] features/x11-neatterm: add custom terminal settings Michael Shigorin

ALT Linux Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-distro


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git