Author: leizhou


Website:

http://bitc.bme.emory.edu/Members/lzhou.html

About this author:


ssh login slow, stuck on “pledge: exec” if -v

ssh to a linux box slow after keyed in password, taking 10+ seconds. If using ssh -v, found all the waiting spend on debug info: debug1: pledge: exec This usually happen when something stuck on the systemd-logind service. Restart this service by running systemctl restart systemd-logind usually resolves this without rebooting the box.

When systemctl cannot start/stop services

This happens when systemd attemps to reload some previously saved state but was not able to. By “kill -1 1” to let it reload itself, systemctl works again without rebooting.

Rename an ethernet port

ip link set <name> down ip link set <name> name <newname> ip link set <newname > up

tar gzip a folder with progress bar

tar cf – folder_name -P | pv -s $(du -sb folder_name | awk ‘{print $1}’) | gzip > folder_zip.tgz

If build cannot find lib

export LIBRARY_PATH=/path

SSH tunnel

ssh -f username@remote.host -R <The IP of the interface you want to bind the port>:<port_on_remote_host>:localhost:22 -N Without “The IP of the interface you want to bind the port”, it will only bind on loopback interface 127.0.0.1 To enable binding on other than loopback interface, you have to add GatewayPorts clientspecified in your /etc/ssh/sshd_config and reload […]

AWS: How to mount S3 bucket on your EC2 instance if your role allows it

s3fs -o iam_role=auto <your_bucket_name> <your_mounting_point>

How to recover a very large RAID6

RAID6 is supposed to have two sets of redundancy that could survive a simultaneous failure of two drives, and it can go directly on automatic rebuilding if you have hot swaps. However, you must have known that the RAID controller and the back plane are still playing dictatorship for a RAID group. It could happen […]

Breaking NFS’ 16 group membership limit

The 16 group limit with auth_sys is not tuneable. It is defined in RFC_5331 and cannot be adjusted or patched. However for linux running nfs-utils version over 1.0.12 and kernel version over 2.6.21, you can make rpc.mountd to manage gid to avoid this limitation. To do this: On all your nfs server, edit /etc/nfs.conf, add […]

ninja make

yum install -y ninja-build cmake -GNinja ../src ninja-build