Transmission on Ubuntu

Important files /etc/init.d/transmission-daemon -> SysV service /etc/default/transmission-daemon -> run by /etc/init.d/transmission-daemon /********/.config/transmission-daemon -> CONFIG_DIR in /etc/default/transmission-daemon /********/.config/transmission-daemon/settings.json User and Group running transmission-daemon change to desired ones (e.g. USER=************) in /etc/init.d/transmission-daemon

APT (Advanced Package Tool)

checking that python3-pip package is installed dpkg –get-selections python3-pip search packages by name using REGEX see apt-cache search libapr apt-cache search ‘php.*sql’ apt-cache search apache.\*perl apt-cache search elvis\|vim list the contents of a (not-installed) package see apt-file list […]

Ubuntu and Oracle

# see also # see also # Follow this (works with Ubuntu 16.04 too): # # systemd oracle.service (working when only one db is automatically started with /etc/oratab) [Unit] Description=Oracle 12c [Service] Type=forking User=oracle Group=oinstall […]

Oracle and systemd

# # # start db: [oracle@redhat7 ~]$ sqlplus / AS SYSDBA STARTUP # start TNS listener [oracle@redhat7 ~]$ lsnrctl start # TNS listener status [oracle@redhat7 ~]$ lsnrctl status cat /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora # stop TNS listener [oracle@redhat7 ~]$ lsnrctl stop […]

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 […]