Category Archives: Podcast

Episode-019

Play

Ep-019Listener Feedback

Email from Bert Yerke

Announcements

New LinuxLugCast G+ community
https://plus.google.com/u/0/communities/101183999294924142060

HPR New Year Show
http://hackerpublicradio.org/

Show Topics

FiftyOneFifty

LADSPA plug-ins for Audacity and what you can do with them

YouTube video:
https://www.youtube.com/watch?v=B5eC6D1YWaM

Debian packages:
https://packages.debian.org/wheezy/ladspa-plugin

fatherfinch

Think Penguin 3rd Generation Wee review
https://www.thinkpenguin.com/gnu-linux/penguin-wee-3rd-gen-gnu-linux-desktop

dnsmasq – simple DNS redirection on Debian
https://wiki.debian.org/HowTo/dnsmasq

Episode-018

Play

Ep-018Kwisher

SSD Trim for Linux
enabled email notifications on my Pi AP and received the following notification:
/etc/cron.daily/fstrim:
fstrim: /: FITRIM ioctl failed: Operation not supported
run-parts: /etc/cron.daily/fstrim exited with return code 1

Googled for fstrim and found:
http://man7.org/linux/man-pages/man8/fstrim.8.html
http://blog.neutrino.es/2013/howto-properly-activate-trim-for-your-ssd-on-linux-fstrim-lvm-and-dmcrypt/

copied the script to /usr/sbin/trim.sh:

#!/bin/sh
#
# To find which FS support trim, we check that DISC-MAX (discard max bytes)
# is great than zero. Check discard_max_bytes documentation at
# https://www.kernel.org/doc/Documentation/block/queue-sysfs.txt
#
for fs in $(lsblk -o MOUNTPOINT,DISC-MAX,FSTYPE | grep -E ‘^/.* [1-9]+.* ‘ | awk ‘{print $1}’); do fstrim “$fs”

done

Made the script executable:
chmod u+x /usr/sbin/trim.sh

Added it crontab for weekly execution:
0 1 * * 1 /usr/sbin/trim.sh

Honkeymagoo

Using Qemu to emulate the Raspberry Pi *SUCCESS*

http://www.raspberrypi.org/forums/viewtopic.php?f=29&t=37386

How to use qemu to expand the size of your .img = qemu-img resize 2013-10-13-wheezy-minibian.img +4G

Then to expand you’re rootfs you can use = fdisk /dev/sda
then type p to show the partition table
then type d to delete a partition
then 2 for the linux partition
then n to create a new partition
then p for primary
then you should just be able to hit enter to use both the default start sector, and the default last sector
then w to write the changes to the drive on the next reboot

Example: qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append “root=/dev/sda2 panic=1” -hda ~/qemu_vms/2013-10-13-wheezy-minibian.img -redir tcp:5022::22 -redir tcp:5080::80

how to ssh into your new emulated machine = ssh -p5022 root@localhost

If you install a webservice on your .img how to navigate to it = http://localhost:5080

FiftyOneFifty

Goodbye Linux Outlaws

Future project – Hacking a first gen Xbox

Amazon Echo – can we do this on a Pi with https://github.com/benoitfragit/pocketVox ?

Episode-016

Play

Ep-016Honkeymagoo / Kwisher

NFS
http://www.tldp.org/HOWTO/NFS-HOWTO/server.html
http://www.howtoforge.com/install_nfs_server_and_client_on_debian_wheezy
http://nfs.sourceforge.net/nfs-howto/

/etc/fstab nfs mount example
[server IP]:[/path of share on server] [/local mount point] nfs nfsvers=4,rsize=8192,wsize=8192,nosuid,soft 0 0

/etc/export example
[/path of share] [IP of clients](rw,no_root_squash,async)

fatherfinch

Bash sort
http://www.skorks.com/2010/05/sort-files-like-a-master-with-the-linux-sort-command-bash/

FiftyOneFifty

Actiontec My Wireless TV WiFi / HDMI Multi-Room Wireless HD Video Kit
http://www.amazon.com/Actiontec-Wireless-WiFi-Multi-Room-Video/dp/B005L9ZZ32/ref=sr_1_1?ie=UTF8&qid=1412282301&sr=8-1&keywords=actiontec+wifi+TV
• Works spectaularly well, especially for being in a WiFi cluttered environment. Pretty much plug & play, comes with IR remote signal repeater. Only two glitches, when the cable box is off, ghost signal bands flash on the screen, sometmes accompanied by a snapping noise, so I turn the TV off when I’m not watching. Then I have to unplug the sending unit and plug it back in to re-establish the connection.

ARandR Graphical front end for XRandR included in CrunchBang
• Set up resolution and orientation of multiple monitors and then Activate. Configuration can be saved as a shell script so you can include it in your Autostart sequence.

Episode-014

Play

Ep-014Honkeymagoo

Reusing old hardware as either limited or single purpose devices

Gateway solo 5300 (700 MHz pentium III)
Tiny Core Linux http://distro.ibiblio.org/tinycorelinux/welcome.html
• Abiword http://www.abisource.com/
• Gnumeric http://www.gnumeric.org/

Macpup http://macpup.org/
• Gimp (2.7.1)
• Openoffice (3.4)
• Python (2.7.2)
• Mumble (1.2.3)

FiftyOneFifty

Netflix on Linux and ChromeCast Fail

Netlix on Linux (probably failed cause I’m running Debian Stable)

• I couldn’t get the Chromecast app on my phone, probably due to space taken up by the Dalvik cache, so I tried installing Netflix to my CrunchBang laptop
• It should be noted all the instructions say you need Ubuntu 14.04
• Install Google Chrome Beta or Developer version (link for 32bit Beta) https://www.google.com/chrome/browser/?platform=linux&extra=betachannel
• Upgrade libnss3 to the version from 14.10 OMGUbuntu article links to an archive with the three files, you can extract the .debs and run sudo dpkg -i libnss3*
• Alternatively, there is a WebUpt8 aticle with a ppa http://www.webupd8.org/2014/08/how-to-enable-html5-playback-for.html
• Now you need to install the User Agent Switcher extension for Chrome https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg. You are going to use it to tell the Netflix site that you are running Firefox on Windows
• Right click on the icon wearing a mask and select “Options”
• Add a new agent and enter the following values into the fields Name: Netflix Linux String: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2114.2 Safari/537.36 Group: (is filled in automatically) Append?: Select ‘Replace’ Flag: IE **Note: OMGubuntu thanks Mat Enders for providing the correct field entries**
• If you don’t want to have to click the User Agent Switcher icon, select Chrome, then Netflix Linux every time you visit Netflix.com, then right click the icon, go to Options, and add Netflix.com to the Permanent Spoof List.
• If you want to send videoes to your Chromecast, you will also need the Google Cast extension
• Unfortunately, I get the following error when I try to view a video, Chrome asks me to visit chrome://components, locate the WidevineCdm and click “check for updates”. I have no such component, and while a handfull of others have posted about this problem, I can’t fing anything about installing WidevineCdm
Links: http://www.omgubuntu.co.uk/2014/08/netflix-linux-html5-support-plugins

Setting up Chromecast from a Linux laptop

• When you change the source on your TV to the ChromeCast, you are instructed to visit google.com/chromecast/setup. If you do so with any browser but Chrome, you will be asked to install Chrome
• Following the instructions for setup via a laptop, you are givena link to download chromecastinstaller.exe
• I tried running the installer in WINE, but got a “No Internet Connection” error
• I tried running the installer on an XP machine with a WiFi card, and got the enegmatic “Error Number 1”
• I found postings saying the Chromecast gets confused if there are both 2.4 and 5Ghz wifi signals present, so I disabled the unused 5Ghz on my Netgear repeater.
• It’s possible the Chromecast is confused by two 2.4Ghz signals (the original uplink and the repeater). The articles I found reminded me I should be seeing my SSID on the bottom right of my TV screen.
• Googling Chromecast setup Linux, I ran accross an article (http://www.libregeek.org/2013/12/12/how-to-setting-up-googles-chromecast-under-linux/) that told me I might be able to set up the Chromecast by using the method for Chromebooks (after all, ChromeOS hardly runs .exe’s)
• Right click the Google Cast button and select Options, then add the device. Again, I got “No Google Device Found”.

Episode-013

Play

Ep-013Kwisher

Simple Samba server

Following how-to was done on Ubuntu Server & Xubuntu 14.04
1) Install samba – [ sudo apt-get install samba ]
2) make a backup copy of default smb.conf – [ sudo mv (or cp) /etc/samba/smb.conf /etc/samba/smb.conforig ]
3) add all linux user accounts that will be accessing server – [ sudo useradd ‘username’ ]
4) create all linux user passwords – [ sudo passwd ‘username’ ] – you will have to enter the user’s password twice
5) create Samba user accounts & passwords – [ smbpasswd -a ‘username’ ] – this will prompt for the Samba password also
6) create new samba.conf file – [ sudo nano /etc/samba/smb.conf ]

Basic smb.conf file to get you going with one share

[global]
workgroup = home
server string = garage
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = Yes
hosts allow = 10.1.
dns proxy = no
security = user
username map = /etc/samba/smbusers
encrypt passwords = true
guest ok = no
guest account = nobody

[sharename]
path = /pathtosharedfolder
writeable = yes
valid users = user1,user2,user3,user4 – you can also use groups with ‘ @groupname ‘
read list = user3,user4
write list = user1,user2

7) restart samba dameon for any changes to take effect – [ sudo service smbd start/stop/restart ]
8) Samba share file permissions, I use [ sudo chown myusername:group -R /pathtoshare
9) I place all Samba users in the ‘ Users ‘ group, including my account

Honkeymagoo

How to watch Netflix in Linux: https://plus.google.com/u/0/104912707432334684242/posts/1gnbmo63xVa (origanlly shared by Nathan VanCamp on G+)• Google Chrome 37 or higher: https://www.google.com/chrome/browser/beta.html
• User-agent switcher for Chrome plugin: https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg
• add a new user-agent string: ( Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36 )
• Then navigate to Netflix.com and watch movies

If you have any troubles getting it to work for you check out the link to the original G+ posting some distros are missing a key componet
• libnss3
• libnss3-1d

Episode-010

Play

Ep-010Kwisher

Thanks to flipsidecration & jlinday from IRC for the help with this command.

rsync command to save a users data files from Windows Vista or 7 while booted from a live Linux environment

rsync -v -a -z –delete -h -i –progress –stats –exclude-from=[FILENAME] [/source] [/destination]

I created a text file listing all the folders in the users “home” folder using:
ls -la [source path] > [destination path/foo]

excludes sample file for Windows 7 (should work for Vista also)
http://kwisher.dyndns-at-home.com/owncloud/public.php?service=files&t=bf80aebe1a9da179fb813968abf63f22

Refernces:
http://en.wikipedia.org/wiki/Rsync
rsync man page

Openspeak server address change:
ch1.teamspeak.cc

5150

New podcast: Blue Drava with Stephen Ward “A rambling Brit talks tech, gaming and fatherhood with some Free Culture thrown in for good measure.” http://podcast.bluedrava.com/

In Arch, you can use “pacman -Syyuu” to rollback packages that create dependancy incompatibilities. While doing additional research, I found this great Arch Wiki article that explains to origins of the Arch repositories. https://wiki.archlinux.org/index.php/official_repositories

Distrowatch.com has gone to Distrowatch.org

Fatherfinch

Vim resources

Vim.org Wiki http://vim.wikia.com/wiki/Vim_Tips_Wiki

Stack Exchange Vim tagged posts http://stackoverflow.com/questions/tagged/vim