Linux

Running Linux in Windows 10

Posted on

If you have Windows 10 and miss sometimes to have a linux distro locally, you can install the Windows Subsystem for Linux. First start a CMD shell (start-run, type: CMD) Then: powershell Then you type: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Restart the computer. Then go to Microsoft Store and choose your option. I chose Ubuntu 18.04 […]

Education

Workshop in Yerevan, Armenia

Posted on

In Yerevan we had a workshop in Oral Pathology where I presented both Cytomine and Moodle with video tutorials made by Anne C. Johannsessen: You can also read about the visitors from Armenia and the project at the main UiB website: https://www.uib.no/en/ccbio/118480/guest-students-armenia-oral-pathology-project

bash

Analysing gigapixel images online is possible with Cytomine

Posted on

We have a collaborating project between Norway, Moldova, Armenia and Belarus in Oral Pathology. In order to view slides online we installed a software called Cytomine. This software, or multiple combined software/applications, is developed in Belgium by a cooperating team. All about Cytomine can be read here: https://cytomine.coop/ This is an open source software. It is […]

bash

Use a variable counter in a bash one-liner

Posted on

I had 70 different domain names that I need to add in a ssl cnf file for creating a certificate request. The 70 different domain names was in a text file, one per line: domainname1.something.com domainname2.somehing.com … In order to create the alternative names list, I used this bash oneliner: teller=1; for i in cat […]

zsh

Pimp my shell!

Posted on

Got a tip from my colleague JB! Want to refresh your terminal? Is it spring and time to freshen things up? Look at: http://ohmyz.sh/ Easy to install on Redhat: yum -y install zsh sh -c “$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)” Result in my Putty in Windows 7:

Linux

Clear the cache on Redhat 5/6/7

Posted on

On Redhat 5 and 6 we could empty the ldap cache with this command: nscd -i group and nscd -i netgroup But in Redhat 7 this doesn’t work. Instead one have to run this command: sss_cache -E here is more about sss_cache from Redhat: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sssd-cache