Linux

Linux stuff

Running xterm over SSH with a DISPLAY parameter correctly set can show an error for the Drawable.

# xterm
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
 Major opcode of failed request: 55 (X_CreateGC)
 Resource id in failed request: 0x5a
 Serial number of failed request: 3
 Current serial number in output stream: 4

To solve it add or uncoment in ssh_config

ForwardX11 yes
ForwardX11Trusted yes

And restart the SSHD service.

Scan and assemble: # mdadm --assemble --scan Scan to update mdadm.conf # mdadm -Es >> /etc/mdadm/mdadm.conf   If not md device has been found, or you have only one disk from two of the RAID1, you can force to re-create the md device. The important parameter is "missing", that will make mdadm to create the mirror with only one member:   # mdadm --create /dev/md127 --assume-clean --level=mirror --verbose --raid-devices=2 /dev/sda missing mdadm: /dev/sda appears to be part Read more...

if perl shows the error “setting locale failed”,

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),


Run the following (i.e for spanish)
# sudo locale-gen es_ES.UTF-8
# dpkg-reconfigure locales

it can be also en_EN.UTF-8, or any other locale.

 

To create a new PKEY on the switch: [root@ibswitch-ibs ~]# getmaster Local SM enabled and running, state MASTER 20170422 18:00:33 Master SubnetManager on sm lid 1 sm guid 0x10e04071a7a0a0 : SUN DCS 36P QDR ibswitch-ibs 172.28.228.133 [root@ibswitch-ibs ~]# smpartition start [root@ibswitch-ibs ~]# smpartition create -n test -pkey 0x0550 -flag ipoib -m full To remove PKEY on IB switch: [root@ibswitch-ibs ~]# smpartition start [root@ibswitch-ibs ~]# smpartition remove -n test  -port 0010E000656432BD-> Read more...