Tuesday, March 29, 2022

HOWTO force monitor resolution on mxlinux

After recent upgrade, MX Linux could no longer detect my Viewsonic 22 inch monitor.

Due to unknown, the system therefore set the display to a very primitive resolution - VGA 1024x768 (4:3).

According to the monitor spec (from google), natively it should support 1680x1050 (16:10).



run command:

$ cvt 1680 1050

# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz

Modeline "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync



Add the native mode to display port 0, which is how I connect my monitor:

xrandr --newmode "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync

xrandr

xrandr --addmode DisplayPort-0 1680x1050_60.00



If want to config it every time log in, append the following to .profile


xrandr --newmode "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync

xrandr --addmode DisplayPort-0 1680x1050_60.00

#xrandr --output DisplayPort-0 --off --output DVI-0 --mode 2048x1536_60.00 --pos 0x0 --rotate normal --output HDMI-0 --off

xrandr --output DisplayPort-0 --mode 1680x1050_60.00 --pos 0x0 --rotate normal


Labels: , ,

Tuesday, February 15, 2022

mxlinux install mongodb issue: unrecognized service how to resolve

If you follow mongodb installation instruction,  https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/will find error when trying to start the service.  

That's because mx linux uses SysV init instead of systemd, but the apt installation didn't include a SysV script.


How to fix:

The init script could be downloaded from https://github.com/mongodb/mongo/blob/master/debian/init.d

Save it as  /etc/init.d/mongod

Restart computer


$ sudo service mongod start


test launching succesful

$ sudo service mongod status


connect to the local mongodb server

$ mongosh





Labels: , ,

Sunday, February 13, 2022

linux to upgrade specific packages

Chances are, you have installed a lot of things in your beloved system.  Some, if not most, packages are installed once but seldom used that you prefer not wasting time upgrade.  Or, you enjoy having full control over everything.


Usually on a GUI desktop, an icon at menu bar will remind you if any packages upgrade.  For example in mx linux, a parcel (package) icon will turn green.  You could click it to upgrade all.


Instead, open a terminal window:


1. update package list

    sudo apt update

2. show available upgrades

    apt list --upgradable



Now you have 3 options:


3a. if want to upgrade all, not care what

    sudo apt upgrade

  

3b. install a package and all its dependencies 

    sudo apt install --upgrade  some-package


3c. install one and only one package

    sudo apt install --only-upgrade   some-package


Labels: , , ,

Saturday, July 10, 2021

mx linux get version number

# distribution info


    lsb_release -a        # all

    lsb_release -r        # release

    lsb_release -c        # codename:  buster    

    lsb_release -d       #  description


    cat /etc/mx-version

    MX-19......



# kernel and machine info 


    uname -a        # all

    uname -m        # machine    'x86_64'

    uname -s        # system        'linux'


Labels:

Saturday, June 12, 2021

mx linux to change window manager

install in 'mx package installer',  then choose from login screen menu on top.


default is XFCE session


other options:    Fluxbox,  IceWM



Labels:

Sunday, April 11, 2021

mx linux 加 倉頡輸入法

(for English, scroll down to the bottom)

單擊左下方Menu,開 "mxlinux package installer"

搜尋 Chinese input

安裝


在 stable repo 之下

選 ibus cangjie 3

(如果需要輸入 簡体字,可用 cangjie 5, 詳見 https://zh.wikipedia.org/zh-tw/倉頡輸入法)

安裝然後退出


單擊 menu

選 ibus preference

在 English 外加 cangjie input

如有需要,改鍵盤熱鍵

退出


登出再登入,或重啟電腦


好了,have fun!



* * * 

from start (menu), launch  "mxlinux package installer"

search for chinese input

click install


in stable repo

select ibus cangjie 3

click install


close


menu> ibus preference

add cangjie input along with english

change keyboard short-cut if required

close


restart computer (or relogin should work)

Labels: , , , ,