Author Topic: จาก text mode มาเป็น Xwindow บน Centos  (Read 7698 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2141
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
จาก text mode มาเป็น Xwindow บน Centos
« on: มกราคม 24, 2011, 11:42:17 AM »
วันก่อนลง Debian 4.0 เพื่อไปแข่งงาน Airraid ครับ
รายละเอียดที่

http://golfreeze.packetlove.com/guyblog/?p=25#more-25

ขั้นตอนแรกก็ ใส่ sources.list ครับดังนี้

deb http://202.29.6.10/pub/debian/etch main
deb-src http://202.29.6.10/pub/debian/etch main


#deb http://mirror.in.th/debian/etch main
#deb-src http://mirror.in.th/debian/etch main

deb http://202.29.6.10/pub/debian-security/etch/updates main contrib
deb-src http://202.29.6.10/pub/debian-security/etch/updates main contrib

#deb http://ftp.psu.coe.ac.th/debianetch main
#deb-src http://ftp.psu.coe.ac.th/debianetch main

deb http://ftp.thaios.net/debian/etch main
deb-src http://ftp.thaios.net/debian/etch main

----------------------------------------------------------------------------
เริ่มลุยเลย
#apt-get install xorg*
#apt-get install gnome*
#apt-get install xserver-xorg*

เสร็จแล้ว

ถ้าใครได้ใช้ remote-desktop เพื่อจะ remote ต่อไปที่ VNC หรือ remote-desktop ของ window ก็ต้องลง

tsclient ครับ เป็น remote desktop ที่ใช้ใน gnome


#apt-get install tsclient

เลือกใช้ Protocol เป็น RDP สำหรับ remote-desktop ใน window น่ะครับ


และถ้าใครอยากลอง 3ddesktop ที่เป็นหน้าจอ หรูหน่อยก็
#apt-get install 3ddesktop
อิอิ

golfreeze[at]packetlove.com

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2141
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: จาก text mode มาเป็น Xwindow บน Centos vncserver
« Reply #1 on: เมษายน 06, 2017, 04:03:09 PM »
ต่อจากบทความด้านบน
ต่อไปเป็นการติดต่อใช้งาน vncserver ใน ubuntu server 16.04 AMD 64bit

โจทย์มีอยู่ว่า จะทำการตั้งเครื่อง Server : Ubuntu แล้วทำการ vnc client จาก MAC เข้าไปทำงานภายใน server
เริ่มติดตั้งโดยลง
$sudo apt install xfce4 xfce4-goodies tightvncserver

ลงเสร็จทำการเปิดเซอร์วิส vncserver
$vncserver

หลังจากนั้นทำการ configure ให้ vncserver รองรับการทำงานหลาย session
$vncserver -kill :1

ทำการ move configure default ไว้ก่อน
$mv ~/.vnc/xstartup ~/.vnc/xstartup.bak

$vi ~/.vnc/xstartup
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &

$sudo chmod +x ~/.vnc/xstartup

ทำการ start vncserver
$vncserver

ทำการสร้าง tunnel ที่เครื่อง remote client เช่นถ้าใช้งานเป็น mac ก็ทำการลง vnc-viewer ได้ครับ
แล้วสร้าง tunnel ดังนี้ เพื่อให้ port 5901 ของ vpn เปิดรอการทำงานในเครื่องเรา
username = user ที่สร้างไว้ในระบบ vncserver
vncserver_ip_address = เป็น ip ของเครื่อง vncserver ครับ

$ssh -L 5901:127.0.0.1:5901 -N -f -l username  vncserver_ip_address

หลังจากนั้นเปิด vnc-viewer แล้วทำการใส่ connect host: localhost:5901
ก็จะเปิดขึ้นแสดงหน้าที่เป็น Desktop xfce ได้ละครับผม : )

ต่อไปทำการติดตั้งตัว อัด VDO ใน ubuntu จะใช้เป็น SimpleScreenRecorder ครับ

What’s New in the latest SimpleScreenRecorder:

1.Added support for latest FFmpeg/libav.
2.Make relaxed GLInject permissions actually work.
3.The backend now supports fragmented recording, but there is no GUI for this yet.
4.System tray icon now indicates errors during recording.

เริ่มลงได้เลย
$sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder

2. Update your system package index via command:
$sudo apt update

3. Finally install the recording software via command:
$sudo apt install simplescreenrecorder simplescreenrecorder-lib

To record 32-bit OpenGL applications on a 64-bit system, run:
$sudo apt install simplescreenrecorder-lib:i386

หลังติดตั้งเสร็จก็ทำการเปิด SimpleScreenRecorder ขึ้นมาได้เลยครับ
ทำการตั้งชื่อ file เป็น file_name.mkv ครับ แล้วเริ่มอัดได้เลย ภาพชัดมาก อิอิ

แล้วในเครื่องหลังจากอัดเสร็จจะได้ไฟล์ .mkv ขึ้นมา สามารถเปิดดูได้เลยครับ

##reference
http://ubuntuhandbook.org/index.php/2016/11/install-simple-screen-recorder-0-3-8-in-ubuntu-16-04-16-10/
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04
« Last Edit: เมษายน 06, 2017, 04:07:10 PM by golfreeze »