Categories
Apple Linux

Setting up “Time Capsule” for free with Linux

I read that it is possible to set up a network based “Time Capsule” service for use with “Time Machine” in OS X. This requires setting up Apple File Sharing (AFP) with Ubuntu Linux. This was a bit of a pain to set up. Got it working after a couple hours of struggle.

  • Set up netatalk to share a folder
  • Add the .com.apple.timemachine.supported file
  • Create the sparsebundle on your mac and copy it to the NAS

Below are some links and more info

I hope to type up a complete howto when I get time. In the mean time, heres some of the links I used to get it working:

Here is a little trick to prevent the netatalk package from updating in Ubuntu:

echo “netatalk hold” | sudo dpkg –set-selections

Also, during my journey, I came across this “Time Machine”-ish software for Linux. It may be worth checking out for automated Linux backups.

Categories
Apple Linux

Helping Macintosh OS X connect to Samba server

On the Linux server, add the file:

/etc/avahi/services/samba.service

Copy this code in the new file:

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">

<service-group>
    <name replace-wildcards="yes">%h server</name>
    <service>
        <type>_smb._tcp</type>
        <port>139</port>
        <host-name>chris.local</host-name>
    </service>
</service-group>
Categories
Linux

Reset ALSA sound on Linux

Sometimes, ALSA will freeze up and I have no sound. I came across this little code snip which makes it work again:

alsa force-reload

Categories
Linux

Compiz on Thinkpad T41 Mobility FireGL 9000 with Hardy Heron

I got Compiz working quite easily on the new Ubuntu Hardy Heron 8.04

sudo vi /etc/xdg/compiz/compiz-manager

add:

SKIP_CHECKS=yes

In /etc/X11/xorg.conf, I had to set the depth down to 16bit color:

Section “InputDevice”
Identifier “Generic Keyboard”
Driver “kbd”
Option “XkbRules” “xorg”
Option “XkbModel” “pc105”
Option “XkbLayout” “us”
EndSection

Section “InputDevice”
Identifier “Configured Mouse”
Driver “mouse”
Option “CorePointer”
EndSection

Section “InputDevice”
Identifier “Synaptics Touchpad”
Driver “synaptics”
Option “SendCoreEvents” “true”
Option “Device” “/dev/psaux”
Option “Protocol” “auto-dev”
Option “HorizEdgeScroll” “0”
EndSection

Section “Device”
Identifier “Configured Video Device”
EndSection

Section “Monitor”
Identifier “Configured Monitor”
EndSection

Section “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
DefaultDepth 16
SubSection “Display”
Depth 16
Modes “1400×1050”
EndSubSection
EndSection

Section “ServerLayout”
Identifier “Default Layout”
Screen “Default Screen”
InputDevice “Synaptics Touchpad”
EndSection

Categories
Linux

Add Medibuntu repositories to your Ubuntu 8.04

Unknown codec ‘aac’

 
 sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list
 
 

then

 
 sudo apt-get update &amp;&amp; sudo apt-get install medibuntu-keyring &amp;&amp; sudo apt-get update
 
Categories
Linux

Feisty Fawn breaks Samba “Force User” Option

After upgrading to feisty Fawn, I could not connect to a Samba share. I was receiving a authentication error, strangely enough.

Other folders authenticated just fine. I tracked it down to the “force user” option in smb.conf.

Categories
Linux

Enable DVD Playback in Ubuntu

sudo apt-get install totem-xine libxine1-ffmpeg libdvdread3
sudo /usr/share/doc/libdvdread3/install-css.sh
Categories
Linux

PSI SSL broken with Ubuntu 8.04

Installing the package “libqca2-plugin-ossl” solved the problem

Categories
Linux

Ubuntu Failed Install with (initfamfs) prompt

Before install, on the Ubuntu screen, press F6 and it will let you edit the kernel options.

Add “all_generic_ide”

Categories
Linux

ASCII Art for your SSH logins

Here is a nice way to spice up your SSH logins.

To create a cool ASCII art banner for your server, first start off by going here:

http://www.network-science.de/ascii/

Type your server name into the text field. On the font choice, select “_all fonts with your text_”. Click OK to generate the ASCII art. Copy the one you like into the clipboard.

Or you can go to chris.com and find some cool ASCII ART that you like.

On your server, create the file /etc/banner

sudo touch /etc/banner

Open the /etc/banner file with your favorite text editor and paste the ASCII art into the file.

Open /etc/ssh/sshd_config with your favorite text editor and change the “Banner” directive to:

Banner /etc/banner

Restart SSH

sudo /etc/init.d/ssh restart

ascii-art-unicorn