Ubuntu 16.04: Install xenial-proposed package
$ sudo sh -c "echo 'deb http://archive.ubuntu.com/ubuntu/ \
xenial-proposed restricted main multiverse universe' \
> /etc/apt/sources.list.d/xenial-proposed.list"
$ sudo apt update -y
$ sudo apt -t xenial-proposed install -y xserver-xorg-dev
$ sudo rm /etc/apt/sources.list.d/xenial-proposed.list
$ sudo apt update -y
или
$ sudo nano /etc/X11/Xwrapper.config
заменить:
allowed_user=console
на
allowed_user=anybody
Сохранить.
XRDP- Custom xRDP Install on Ubuntu 16.04.2 and accessing Unity Desktop Interface
$ sudo apt update
$ sudo apt upgrade
$ cd ~
$ wget http://www.c-nergy.be/downloads/install-xrdp-1.9.zip
$ unzip install-xrdp-1.9.zip
$ mkdir ~/Downloads
$ cp ~/install-xrdp-1.9/install-xrdp-1-9.sh ~/Downloads/
$ cd ~/Downloads
$ chmod +x ~/Downloads/install-xrdp-1-9.sh
$ sudo ./install-xrdp-1-9.sh
Так не получилось.
But myy work-around is:
$ sudo nano /usr/include/X11/fonts/fontutil.h
then manually add content to fontutil.h
I used:
https://www.apt-browse.org/browse/ubuntu/trusty/main/i386/libxfont-dev/1:1.4.7-1/file/usr/include/X11/fonts/fontutil.h
this corrects the problem and allows xorgxrdp to correctly build/make/make install
#ifndef _FONTUTIL_H_
#define _FONTUTIL_H_
#include <X11/fonts/FSproto.h>
extern int FontCouldBeTerminal(FontInfoPtr);
extern int CheckFSFormat(fsBitmapFormat, fsBitmapFormatMask, int *, int *,
int *, int *, int *);
extern void FontComputeInfoAccelerators(FontInfoPtr);
extern void GetGlyphs ( FontPtr font, unsigned long count,
unsigned char *chars, FontEncoding fontEncoding,
unsigned long *glyphcount, CharInfoPtr *glyphs );
extern void QueryGlyphExtents ( FontPtr pFont, CharInfoPtr *charinfo,
unsigned long count, ExtentInfoRec *info );
extern Bool QueryTextExtents ( FontPtr pFont, unsigned long count,
unsigned char *chars, ExtentInfoRec *info );
extern Bool ParseGlyphCachingMode ( char *str );
extern void InitGlyphCaching ( void );
extern void SetGlyphCachingMode ( int newmode );
extern int add_range ( fsRange *newrange, int *nranges, fsRange **range,
Bool charset_subset );
#endif /* _FONTUTIL_H_ */
$ sudo sh -c "echo 'deb http://archive.ubuntu.com/ubuntu/ \
xenial-proposed restricted main multiverse universe' \
> /etc/apt/sources.list.d/xenial-proposed.list"
$ sudo apt update -y
$ sudo apt -t xenial-proposed install -y xserver-xorg-dev
$ sudo rm /etc/apt/sources.list.d/xenial-proposed.list
$ sudo apt update -y
или
$ sudo nano /etc/X11/Xwrapper.config
заменить:
allowed_user=console
на
allowed_user=anybody
Сохранить.
XRDP- Custom xRDP Install on Ubuntu 16.04.2 and accessing Unity Desktop Interface
$ sudo apt update
$ sudo apt upgrade
$ cd ~
$ wget http://www.c-nergy.be/downloads/install-xrdp-1.9.zip
$ unzip install-xrdp-1.9.zip
$ mkdir ~/Downloads
$ cp ~/install-xrdp-1.9/install-xrdp-1-9.sh ~/Downloads/
$ cd ~/Downloads
$ chmod +x ~/Downloads/install-xrdp-1-9.sh
$ sudo ./install-xrdp-1-9.sh
Так не получилось.
But myy work-around is:
$ sudo nano /usr/include/X11/fonts/fontutil.h
then manually add content to fontutil.h
I used:
https://www.apt-browse.org/browse/ubuntu/trusty/main/i386/libxfont-dev/1:1.4.7-1/file/usr/include/X11/fonts/fontutil.h
this corrects the problem and allows xorgxrdp to correctly build/make/make install
#ifndef _FONTUTIL_H_
#define _FONTUTIL_H_
#include <X11/fonts/FSproto.h>
extern int FontCouldBeTerminal(FontInfoPtr);
extern int CheckFSFormat(fsBitmapFormat, fsBitmapFormatMask, int *, int *,
int *, int *, int *);
extern void FontComputeInfoAccelerators(FontInfoPtr);
extern void GetGlyphs ( FontPtr font, unsigned long count,
unsigned char *chars, FontEncoding fontEncoding,
unsigned long *glyphcount, CharInfoPtr *glyphs );
extern void QueryGlyphExtents ( FontPtr pFont, CharInfoPtr *charinfo,
unsigned long count, ExtentInfoRec *info );
extern Bool QueryTextExtents ( FontPtr pFont, unsigned long count,
unsigned char *chars, ExtentInfoRec *info );
extern Bool ParseGlyphCachingMode ( char *str );
extern void InitGlyphCaching ( void );
extern void SetGlyphCachingMode ( int newmode );
extern int add_range ( fsRange *newrange, int *nranges, fsRange **range,
Bool charset_subset );
#endif /* _FONTUTIL_H_ */
Комментариев нет:
Отправить комментарий