ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Denis G. Samsonenko" <d.g.samsonenko@gmail.com>
To: "Denis Medvedev" <a_mdl@mail.ru>,
	 "ALT Linux Community general discussions"
	<community@lists.altlinux.org>
Subject: Re: [Comm] vncserver & размер экрана
Date: Tue, 6 May 2008 21:03:27 +0700
Message-ID: <957265820805060703s2e176cbcoe10dade55ba51bdc@mail.gmail.com> (raw)
In-Reply-To: <E1JtLPh-0003NI-00.a_mdl-mail-ru@f74.mail.ru>

Привет!

6 мая 2008 г. 18:32 Denis Medvedev написал:
> Здравствуйте,
>  пока (в апстриме я это уже как баг указал) можно отредактировать файл /usr/bin/vncserver. Там все ясно.
>  Это плохое место для конфигурационной информации, но так исторически сложилось и будет (я надеюсь)
> переделано.

Сделал немного по другому. Внёс изменения в /etc/rc.d/init.d/vncserver:

...
VNCSERVERS=""
GEOMETRY=""
[ -f /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

geometry=""
[ -n "$GEOMETRY" ] && geometry="-geometry $GEOMETRY"
...
start() {
...
"su  - ${display##*:} -c \"cd ~${display##*:} && [ -f .vnc/passwd ] &&
vncserver :${display%%:*} ${geometry}\""
...
}
...

Т.е. добавил проверку на определение переменной $GEOMETRY и установку
значения новой переменной $geometry, и вызов уже vncserver с этим
параметром.

В /etc/sysconfig/vncservers добавил строку GEOMETRY="1280x1024".

Вроде работает. Может вам стоит аналогичным манером сделать в пакете и
отправить в бранч-4.0?

-- 
Всего доброго,

Денис.

      reply	other threads:[~2008-05-06 14:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-06 10:02 Denis G. Samsonenko
2008-05-06 11:32 ` Denis Medvedev
2008-05-06 14:03   ` Denis G. Samsonenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=957265820805060703s2e176cbcoe10dade55ba51bdc@mail.gmail.com \
    --to=d.g.samsonenko@gmail.com \
    --cc=a_mdl@mail.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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