Sticky Posts

2.4k words 2 mins.

Continue updating. # Management scontrol update nodename=nodeXX state=resumescontrol update jobid=jobid jobname=newnamescontrol update jobid=jobid partition=exclusivescontrol show partition (partition_name)scontrol show node (node_name)scontrol show job jobidscontrol hold/release/requeue...

Categories

Project

Server

Post List

387 words 1 mins.

# Aliyun Download and install See github. Should choose "amd64/x64". Login $ aliyunpan > loginShould type "RefreshToken" here. (Howto) Usage $ aliyunpan > download <path to directory or file>$ aliyunpan > upload <path to directory...
465 words 1 mins.

# Useful commands $ vcftools --gzvcf input.vcf.gz --keep id.txt --recode --stdout | gzip -c > out.vcf.gz$ vcftools --gzvcf input.vcf.gz --positions SNP_list.txt --out nucleotide_diversity$ vcftools --gzvcf input.vcf.gz --chr 1 --from-bp a --to-bp b --recode --recode-INFO-all --out chr1_analysis$...
95 words 1 mins.

# Compare $ bedtools intersect -a f1.bed -b f2.bed -wa -wb | bedtools groupby -i - -g 1-3 -c 7 -o collapse > final.bed
467 words 1 mins.

# Create # on master node $ useradd -m -d /public/user -g group user$ passwd user# ssh authorized key$ su - user$ ssh-keygen$ cd ~/.ssh$ cp id_rsa.pub authorized_keys$ chmod 700 authorized_keys# add to group: ftpuser# add to slurm database: sacctmgr create user name=username account=users# set...
190 words 1 mins.

# Add new user $ smbpasswd -a usernameReference1 # Backup $ rsync -av /etc/samba/ /etc/samba.old/$ rpm -qa |grep samba$ rpm -e (--nodeps) package # don't verify package dependencies (optional)# Recycle function Reference2
610 words 1 mins.

# Rename folder $ umount /oldfolder$ mv /oldfolder/ /newfolder$ mount /dev.... /newfolder$ vim /etc/fstab# Configuration Install $ yum install ypbind yp-tools Modify $ vim /etc/sysconfig/network# addNISDOMAIN=nisdomain Modify2 $ vim /etc/nsswitch.conf# editpasswd: nis files sssshadow: nis files...
2.2k words 2 mins.

# Check hardware info $ cat /etc/centos-release # version$ lspci | grep -i nvidia # gpu$ uname -a # kernel$ lshw -html > /hardware.html # print all info$ lscpu # cpu info$ cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c # cpu parameters$ cat /proc/cpuinfo| grep "physical id"|...
1.3k words 1 mins.

This is a post about how to install Hexo on server and pull the repository to github. # Install hexo on server # Create a conda environment h$ conda create -n hexo-env# Install dependent packages h$ conda activate hexo-env$ conda install -c conda-forge nodejs$ conda install -c conda-forge git#...