RedHat & CentOS

Change hostname hostnamectl set-hostname redhat7.localdomain hostnamectl status Change in /etc/sysconfig/network HOSTNAME=redhat7.localdomain Change in /etc/hosts (otherwise Oracle won’t start -> when using Oracle …) redhat7 redhat7.localdomain reboot Static ip setup [root@localhost ~]# cat /etc/sysconfig/network NETWORKING=yes GATEWAY= HOSTNAME=redhat7.localdomain [root@localhost ~]# cat […]

Mount DAV directory

# see # see -> for cq character # see # edit /etc/updatedb.conf: # PRUNEFS=”… davfs davfs2″ adrhcbImpl() { # sudo mkdir -p /mnt/adrhc # sudo chmod g+rw /mnt/adrhc # sudo chmod u+s /sbin/mount.davfs # sudo usermod […]

Ubuntu and Windows domain

wget wget wget sudo dpkg -i 1.likewise-open_6.1.0.406-0ubuntu5.1_amd64.deb sudo dpkg -i 2.libglade2-0_2.6.4-2_amd64.deb sudo dpkg -i 3.likewise-open-gui_6.1.0.406-0ubuntu5.1_amd64.deb sudo domainjoin-gui sudo domainjoin-cli query sudo dpkg -l likewise* sudo dpkg –purge likewise-open-gui sudo dpkg –purge libglade2-0 sudo dpkg –purge likewise-open sudo […]

How to create a debian package

method 1 see also supposing anything-sync-daemon-5.76 contains all package’s files Than simply create anything-sync-daemon-5.76/DEBIAN/control file with a similar content: Package: anything-sync-daemon Version: 5.76 Section: Utilities Priority: optional Architecture: amd64 Maintainer: Gigi Kent <> Description: anything sync daemon then run […]

Compiling anything sync daemon

Environment variables NEW_BUILD_NAME=anything-sync-daemon NEW_BUILD_VER=5.76 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ubuntu_packages/*/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 # rm -r $HOME/temp/$NEW_BUILD_NAME_AND_VER Download and unpack cd $HOME/compile wget tar xpvf anything-sync-daemon-5.76.tar.xz Compilation cd $HOME/compile/anything-sync-daemon-5.76 with systemd use export DESTDIR=$HOME/temp/$NEW_BUILD_NAME_AND_VER;make V=1 install-systemd-all with upstart use export […]

Make ubuntu or applications run faster

See also Check ubuntu startup times systemd-analyze blame /etc/fstab mount | grep -P “^tmpfs.+/(tmp|var/run)” sudo du -sh /tmp /var/tmp; du -sh /********/apps/tmp /********/apps/var/run /run/user/`id -u` /tmp/tomcat 2>/dev/null tmpfs /tmp tmpfs defaults,relatime,mode=1777,size=4G 0 0 tmpfs /var/tmp […]

IBM WebSphere 6.1 on Ubuntu

Install 1. install java 1.5 from oracle 2. start WAS install: cd /********/Downloads/ /********/apps/opt/java/jdk1.5.0_22/bin/java -jar setup.jar 3. WAS install window should start … Configuration export JAVA_HOME=/********/apps/opt/java/jdk1.5.0_22 export PATH=”/********/apps/opt/java/jdk1.5.0_22/bin:$PATH” cd /********/apps/opt/WebSphere/AppServer/bin mv /********/apps/opt/WebSphere/AppServer/java/bin/java /********/apps/opt/WebSphere/AppServer/java/bin/java1 ln -s $JAVA_HOME/bin/java /********/apps/opt/WebSphere/AppServer/java/bin/java ./ help -> […]

Ubuntu 16.04 XRDP (remote desktop)

installation Consider ubuntu xrdp error problem connecting 5910 solution: tightvncserver MUST be installed before xrdp!!! sudo apt-get install xubuntu-desktop sudo apt-get install tightvncserver sudo apt-get install xrdp sudo usermod -aG xrdp adr configure XRDP (option 1) cat ~/.xsession echo ‘xfce4-session’ […]

Handling video in Linux

video exif tool sudo apt-get install libimage-exiftool-perl display video’s rotation exif exiftool -Rotation 20151024_132350.mp4 rotate the exif metadata only ffmpeg -i 20151024_132350.mp4 -metadata:s:v rotate=”0″ -vf “hflip,vflip” -c:v libx264 -crf 23 -acodec copy 20151024_132350b.mp4 resize to 720p ffmpeg -i IMG_0001.MOV -vf […]

/var/mail && thunderbird

See Create the account Thunderbird -> Edit -> Account settings -> Account Action -> Add Another Account -> Unix Mailspool (Movemail) Your Name: adr (mailspool) Email Address: adr@localhost Browse your mails Open Thunderbird then press Get Messages button; you […]