How to mount, read and write HFS+ journaled external drive without access to OS X

First, make sure that you have hfsprogs installed. If not – do it.

sudo apt-get install hfsplus hfsutils hfsprogs

Check status of drive:

sudo fsck.hfsplus -f /dev/sdXY

Unmount deivce:

sudo umount /media/sebastian/devicename

(create folder to mount the drive)

Mount the drive with HFS+ read/write permissions:

sudo mount -t hfsplus -o force,rw /dev/sdXY /home/user/mountfolderfolder

If you need it for using all time – just add this drive to fstab.

Share a folder in network over SAMBA

Install and configure required software.

sudo apt-get install samba samba-common-bin

After installation configure the software.

sudo nano /etc/samba/smb.conf

Check file and make sure you have the following parameters set:

workgroup = WORKGROUP
wins support = yes

You can use anything as your workgroup name as long as it is alphanumerical and matches the workgroup you would like to join.

Setup folder to share

Сreate the folder you would like to share or use exiting.

mkdir ~/networkshare

Edit config file for setup.

sudo nano /etc/samba/smb.conf

Scroll to the bottom and add the following:

[PiShare]
 comment=Raspberry Pi Share
 path=/home/pi/networkshare
 browseable=Yes
 writeable=Yes
 only guest=no
 create mask=0777
 directory mask=0777
 public=no

Notice that public access is not allowed via “public=no” – this means that anyone wanting to access the shared folder must login with a valid user.

In this case the valid user is the user called “pi”. To let Samba know that “pi” is a network user run the command:

sudo smbpasswd -a pi

#network, #raspberrypi2, #raspbian

How to install TeamViewer on your Raspberry Pi

To install TeamViewer on your Raspberry Pi just to run the following commands:

wget http://download.teamviewer.com/download/linux/version_11x/teamviewer-host_armhf.deb
sudo dpkg -i teamviewer-host_armhf.deb
sudo apt-get -f install

To run the TeamViewer just the look on XFCE menu by the tool.

If fail to start you must execute the following commands:

sudo teamviewer daemon enable 
sudo teamviewer passwd asuapassword

P.S. Maybe you also might install next packages:

sudo apt-get upgrade -f libqt5gui5


Setting up x11vnc on Raspbian for connecting on 0 display

X11VNC was better for me because I need to access the same session as being displayed via HDMI (console 0). Plus, it supports UVNC and TightVNC file transfer.

sudo apt-get install x11vnc
x11vnc -storepasswd

Create autostart entry:

cd .config
mkdir autostart
cd autostart
nano x11vnc.desktop

Content of x11vnc.desktop file:

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=X11VNC
Comment=
Exec=x11vnc -forever -usepw -display :0 -ultrafilexfer
StartupNotify=false
Terminal=false
Hidden=false

Reboot.

If everything works perfect – skip next step:

sudo nano /boot/config.txt

And uncomment to force a console size.

framebuffer_width=1280
framebuffer_height=720

How to Add Startup Programs

Open terminal and execute this to make a directory named autostart if it doesn’t exist already. Just execute it. It it exists, bash will let you know; and if it doesn’t, bash will create it.

mkdir ~/.config/autostart

 

Now you have to create a file using gEdit or any other text editor for the intended applications, which you want to run at startup. The name format for that file can be anything like applications_name.desktop. It’s mainly a .desktop file containing necessary info to run that specific program at startup.

[Desktop Entry]
Type=Application
Exec=/usr/bin/Clementine
Hidden=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Clementine
Name=Clementine
Comment[en_US]=Start Clementine when GNOME starts
Comment=Start Clementine when GNOME starts

 

All installed programs have their binaries in /use/bin folder. Search there and find the one you’re about to run at startup time.
In the above file, only change Exec, Name (both) and Comment (both). Leave the others, as they are. Then Save the file naming it using the format: applications_name.desktop e.g. I named mine as ibus.desktop as I wanted to run iBus daemon at startup.
Reboot you system. If everything else is okay and done as asked, your intended program should run at startup.

#raspberrypi2

How fix “not upgraded” message

Sometimes happening situation when you get something like “0 upgraded, 0 newly installed, 0 to remove and 428 not upgraded” message. Cause in some cases where additional packages are required, Debian will fail to upgrade when using the upgrade commands. To install additional packages use the command below. To fix it try:

First step:

sudo apt-get autoremove

Second step:

sudo apt-get update && sudo apt-get dist-upgrade

How fix kodi on raspbian inactive keyboard or mouse after autoboot

After adjustment on startup settings mouse and keyboard stuck in inactive mode.

cat /etc/default/kodi

result

# Set this to 1 to enable startup
ENABLED=1
# The user to run Kodi as
USER=kodi
# Adjust niceness of Kodi (decrease for higher priority)
NICE=-5

 

You need to change USER=kodi to USER=pi.

sudo nano /etc/default/kodi

That’s all.

 

#kodi, #raspberrypi2, #xbmc

IPTV Live TV and Radio PVR client addon for Kodi

Build instructions.

Linux | Raspbian

  1. git clone https://github.com/xbmc/xbmc.git
  2. git clone https://github.com/kodi-pvr/pvr.iptvsimple.git
  3. cd pvr.iptvsimple && mkdir build && cd build
  4. cmake -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons
  5. make

In case if you don’t have cmake on your system run next:

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install cmake 

And then run step 4 again.

 

Result of this manipulations is pvr.iptvsimple plugin in  /home/pi/xbmc/addons/.

 

#iptv, #kodi, #network, #raspberrypi2, #xbmc

Raspbian – How to set up Static IP Address

Few steps to set up Static IP Address in Raspbian. Better – login from laptop via ssh.

  • Checking in Terminal.app
cat /etc/network/interfaces

if result is iface eth0 inet dhcp keep going

  • Collecting information
ifconfig

copy all infromation from eth0 block somewhere (TextEdit.app) then

netstat -nr

copy all infromation

  • Editing
sudo nano /etc/network/interfaces


Change line iface eth0 inet dhcp to iface eth0 inet static

address XXX.XXX.XXX.XXX (Static IP Address) netmask 255.255.255.0 (The ‘Mask‘ address from step  Collecting information) network 192.168.1.0 (The router IP address ‘Destination‘ Address) broadcast 192.168.1.255 (The router IP address, this is the ‘Destination‘ Address) gateway 192.168.1.254 (This is the ‘Gateway‘ address)

sudo reboot
  • Checking Static IP Configuration

Log back in and run

ifconfig

to check your new settings.

 

ip-adresse

#raspberrypi2, #raspbian

/TEMP: How to Turn a Raspberry Pi into a Network Storage Device

Temporary post for aggregate information around new project.

Raspberry Pi and external hard drives for always-on network storage device.

List of hardware for set up:

11949906771066360341server-svg-hi

#network, #raspberrypi2, #services