20230920

Kalau ada sumur di ladang,
bolehlah awak menumpang mandi.
Kalau urusan tak terang-terang,
bolehlah awak merepotkan lagi.


202002092203

Sudah tahu setitik tuba,
dalam air diminum juga.
Sangka riba bukan perkara,
ringgit sikit berkalang bala.


Ramadhan membeli burdah,
nak pakai di hari raya.
Seringkan sering bersama Allaah.
kelak barzah sendiri juga.

Continue reading

ubuntu trackpad hp pavilio 14 less responsive

https://help.ubuntu.com/community/SynapticsTouchpad

 


Connect Iphone to Ubuntu

Here is the link to attend:

Why this document?

I upgraded my iPhone 5s to iOS 10 and could no longer retrieve photos from it. This was unacceptable for me so I worked at achieving retrieving my photos. This document is my story (on Ubuntu 16.04).

The solution is to compile libimobiledevice and ifuse from source.

Audience

Who is this guide intended for?

Compiling software is what I would consider an advanced Linux skill. If you’re not interested in tinkering with your operating system then this guide may not be for you. There’s a lot of concepts I don’t explain or gloss over with brevity to keep these instructions brief (compared to explaining everything).

While I did my best to think of beginners when creating this guide; this guide is not for the faint of heart. If you’ve not compiled software before then I recommend you practicing inside of VirtualBox before attempting this on your real system. Follow this guide at your own risk because I can’t make any guarantees based on unknown individual skill level.

Support

This solution works for (posted via comments):

  • Archlinux
  • Debian GNU/Linux 8 – 64 bits
  • Debian GNU/Linux 9
  • Kubuntu 18.04
  • Linux Mint 18
  • Linux Mint 18.1
  • Linux Mint 18.2
  • Linux Mint 18.3
  • Linux Mint 19.1 Cinnamon
  • openSUSE Leap 42.3
  • Raspbian GNU/Linux 9.4 (stretch)
  • Ubuntu 16.04
  • Ubuntu 17.04
  • XUbuntu 16.04

This solution does not work for the following:

  • Ubuntu 14.04

On Ubuntu 16.04, I have personally used this method to connect to iOS 10. Other users report connecting (via comments):

  • iOS 10
  • iOS 10.1
  • iOS 10.2
  • iOS 10.3.1
  • iOS 10.3.3
  • iOS 11.2.2
  • iOS 11.3.1
  • iOS 11.4
  • iOS 11.4.1
  • iOS 12.0
  • iOS 12.0.1 (16A404)
  • iOS 12.1.4

Hardware: I have personally successfully used this method on an iPhone 5S. The following is a list of hardware successes from other users (via comments below).

  • iPhone 5C
  • iPhone 5S
  • iPhone 6
  • iPhone 6 Plus
  • iPhone 7
  • iPhone 8
  • iPhone 8 Plus
  • iPhone SE
  • iPod Touch 6th Generation

If you get this working on a flavor that I don’t list, then please post a comment and I will update this support section.

Setup environment

Don’t forget to set up your environment before building. I typically build and install packages to my local user at $HOME/usr.

sudo apt-get install -y build-essential git

Here’s a peek at my .bashrc settings:

[ ! -d "$HOME/usr/src" ] && mkdir -p "$HOME/usr/src"
export PKG_CONFIG_PATH="${HOME}/usr/lib/pkgconfig:${PKG_CONFIG_PATH}"
export CPATH="${HOME}/usr/include:${CPATH}"

export MANPATH="${HOME}/usr/share/man:${MANPATH}"

export PATH="${HOME}/usr/bin:${PATH}"
export LD_LIBRARY_PATH="${HOME}/usr/lib:${LD_LIBRARY_PATH}"

Notes:

  • Important! PATH and LD_LIBRARY_PATH is important because it is the runtime of libimobiledevice and ifuse to fix mounting iOS 10 devices.
  • MANPATH is only used when looking up man pages so it’s optional (I recommend it).
  • PKG_CONFIG_PATH and CPATH is used at compile time to resolve dependencies.

Build libimobiledevice and ifuse from HEAD

Building on other platforms and OSes (reported in user comments)

Jump to Clone and Build.

Building on Ubuntu 16.04

Install development packages discovered through trial and error.

sudo apt-get install automake libtool pkg-config libplist-dev libplist++-dev python-dev libssl-dev libusb-1.0-0-dev libfuse-dev

Clone and Build

Clone the sources.

cd ~/usr/src
for x in libusbmuxd usbmuxd libimobiledevice ifuse; do git clone https://github.com/libimobiledevice/${x}.git;done

Now build in order (the order matters):

  1. libplist (not required on Ubuntu 16.04)
  2. libusbmuxd
  3. libimobiledevice
  4. usbmuxd
  5. ifuse

Note: (Optional) If you have a system package installed which is in the above list, then I recommend uninstalling it. However, if you can’t uninstall it, then no big deal. It is mostly a precautionary measure. As long as you set the bash environment variables properly, then your compiled version should not reference your system packages. Uninstalling any system packages is by no means required.

Note 2: Removing usbmuxd was required on Debian Jessie 8.10 mentioned in comments.

Build libusbmuxd

cd ~/usr/src/libusbmuxd
./autogen.sh --prefix="$HOME/usr"
make && make install
Build libimobiledevice

cd ~/usr/src/libimobiledevice
./autogen.sh --prefix="$HOME/usr"
make && make install
Build usbmuxd

Unfortunately, sudo make install is required because it needs to write to /lib/udev/rules.d and /lib/systemd/system.

cd ~/usr/src/usbmuxd
./autogen.sh --prefix="$HOME/usr"
make && sudo make install
Build ifuse

cd ~/usr/src/ifuse
./autogen.sh --prefix="$HOME/usr"
make && make install

Connect iPhone

Create a mount point and verify the paths of the tools before executing.

$ mkdir -p ~/usr/mnt

$ type -P ifuse
/home/sam/usr/bin/ifuse

$ type -P idevicepair
/home/sam/usr/bin/idevicepair

Now attempt to mount using ifuse.

$ idevicepair pair
SUCCESS: Paired with device 37b633350ab83dc815a6a97dcd6d327b12c41968

$ ifuse ~/usr/mnt/

$ ls ~/usr/mnt/
AirFair  Books  CloudAssets  DCIM  Downloads  FactoryLogs  iTunes_Control  MediaAnalysis  PhotoData  Photos  PhotoStreamsData  PublicStaging  Purchases  Radio  Recordings  Safari  Vibrations

When you’re finished. Unmount ~/usr/mnt using fusermount. For example,

fusermount -u ~/usr/mnt

Browsing Photos

The mounted iPhone has an empty Photos folder. Strangely, this has no photos. Instead, look in the DCIM folder for photos.

I have only copied photos off of my iPhone as a backup. I have not tried copying photos to my iPhone.

Browsing Music

It is a known issue music sync no longer works in later versions of iOS with libimobiledevice. Since Apple changed some things (outlined in linked issues), music sync hasn’t worked since as early as iOS 6 and still doesn’t work.


install cuda8 cudnn6 on ubuntu 16.04

#!/bin/bash
# install CUDA Toolkit v8.0
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network))
CUDA_REPO_PKG=cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG}
sudo dpkg -i ${CUDA_REPO_PKG}
sudo apt-get update
sudo apt-get -y install cuda
# install cuDNN v6.0
CUDNN_TAR_FILE=cudnn-8.0-linux-x64-v6.0.tgz
wget http://developer.download.nvidia.com/compute/redist/cudnn/v6.0/${CUDNN_TAR_FILE}
tar -xzvf ${CUDNN_TAR_FILE}
sudo cp -P cuda/include/cudnn.h /usr/local/cuda-8.0/include
sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-8.0/lib64/
sudo chmod a+r /usr/local/cuda-8.0/lib64/libcudnn*
# set environment variables
export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}

export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64\${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

 

source: https://gist.github.com/mjdietzx/0ff77af5ae60622ce6ed8c4d9b419f45


Zeit ist wie Schwert

Ali bin abi Thalib hat gesagt daß zeit wie Schwert ist. Wenn man die zeit nicht weise ausgibt, wird das zeit ihn schlecht machen. Die zeit ist ganz ganz wichtig. Imam syafi’i darum gesagt hat, daß man nicht aber Sammlung der zeit ist. Es ist unser Leben selbst. Umar bin khattab darauf hat gesagt daß wir selbe hisab (abrechnen) zuerst machen vor Allaah in Jenseits es macht.

Einer der Wege um Effizienz zeit zu erhalten ist zeitplan haben. In sya Allaah werde ich auch die gute zeit und hisab machen.


201704161656

Mana ikan orang mencari,
arwana merah dari Kapuas.
Berkah hidup cubakan ciri,
bela Islam sebaik asas.


201704050036

Sangka subur tanah sebidang,
tiba hujan padas semua.
Sangka mujur amal segudang,
tiba hisab riya’ semua.


install cuda8 on ubuntu16.04

I have repeated many times and ended failing on installation of nvidia 840m, and cuda toolkit 8 on ubuntu. I grabbed the nvidia driver from nvidia official site link. Tried its installation both using .run and .deb led me to login failures. It seems that there had been conflict of display api between nvidia and ubuntu. Changing the installation OS to ubuntu 14.04, 15.04, and 17 gave me trivial result. I started to doubt compatibility issue of nvidia nad ubuntu until i met this useful site light.

In nutshell, i experienced having much better result using installation of NVIDIA driver from ubuntu ppa and setting up cuda from the manufacture official site. use this sudo add-apt-repository ppa:graphics-drivers/ppa. then, apt-get update. finally install by going to Ubuntu Software ui, find the tab ‘additional driver’, choose the listed nvidia-driver, then apply change. done! in sya Allaah (God willing), you will gain the driver good.

Installation of cuda toolkit will succeed using parameter –silent –override as explained by the light. you can also add –samples to install samples folder as well. That link will also guide you to add cuda library path to system environment to runnable. To test whether your installation well done, go to samples folder, choose 2_Graphics, choose any project you like, compile by typing sudo make, then run the compiled app using ./ or bash.

 

Hoefully helpful 🙂