Friday, June 18, 2010

-B/usr/lib/gold-ld

Linker selection: ld is used by default, to use the gold linker, pass -fuse-linker-plugin (no other side effects if -flto/-fwhopr is not passed). To force ld.bfd or ld.gold, pass -B/usr/lib/compat-ld for ld.bfd or /usr/lib/gold-ld for ld.gold.

ref:
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556126

Tuesday, June 15, 2010

sshd[21670]: Authentication refused: bad ownership or modes for directory /home/malat

I was struggling to ssh without password (luckily ssh works when password is passed).

Looking at the log I got the info:

$ sudo tail -f auth.log
Jun 15 16:58:12 example sshd[21654]: pam_unix(sshd:session): session closed for user malat
Jun 15 16:58:16 example sudo: malat : TTY=pts/0 ; PWD=/home/malat/.ssh ; USER=root ; COMMAND=/sbin/ifconfig
Jun 15 16:59:10 example sshd[21670]: Authentication refused: bad ownership or modes for directory /home/malat
Jun 15 16:59:10 example sshd[21670]: Authentication refused: bad ownership or modes for directory /home/malat
Jun 15 16:59:14 example sshd[21673]: Authentication refused: bad ownership or modes for directory /home/malat
Jun 15 16:59:14 example sshd[21673]: Authentication refused: bad ownership or modes for directory /home/malat
Jun 15 17:01:03 example sshd[21686]: Authentication refused: bad ownership or modes for directory /home/malat
Jun 15 17:01:03 example sshd[21686]: Authentication refused: bad ownership or modes for directory /home/malat
Jun 15 17:01:40 example sshd[21691]: Authentication refused: bad ownership or modes for directory /home/malat
Jun 15 17:01:40 example sshd[21691]: Authentication refused: bad ownership or modes for directory /home/malat
Jun 15 17:02:09 example sudo: malat : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/usr/bin/tail -f auth.log

This lead to:

* http://sial.org/howto/openssh/publickey-auth/problems

The solution was simply:

server$ chmod go-w ~/
server$ chmod 700 ~/.ssh
server$ chmod 600 ~/.ssh/authorized_keys

git: New workflow for CMake

git clone git://cmake.org/cmake.git CMake
cd CMake
git checkout master
git checkout -b finddcmtk
cp ~/Perso/gdcm/trunk/CMake/FindDCMTK.cmake Modules
git add -- Modules/FindDCMTK.cmake
git commit -m"Cleanup FindDCMTK (using foreach). Fix linking on win32 static libs."
git checkout -b next origin/next
git checkout next
git pull
git merge finddcmtk
git config remote.origin.pushurl git@cmake.org:cmake.git
git push

watchout that commit message should be single-lined:

$ git push -v
Pushing to git@cmake.org:cmake.git
Counting objects: 15, done.
Delta compression using up to 16 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 2.19 KiB, done.
Total 8 (delta 5), reused 0 (delta 0)
------------------------------------------------------------------------------
commit 7cc81454 has an invalid message:
the second line must be empty (if it exists)
commit message is:
Adding simplified version of DCMTK.
Fix linking on win32 static build
------------------------------------------------------------------------------
error: hook declined to update refs/heads/next
To git@cmake.org:cmake.git
! [remote rejected] next -> next (hook declined)
error: failed to push some refs to 'git@cmake.org:cmake.git'

References:
* http://public.kitware.com/Wiki/Git/Workflow/Topic
* http://www.cmake.org/Wiki/CMake/Git
* http://cmake.org/gitweb?p=cmake.git;a=tree

Monday, June 7, 2010

debian package for VirtualBox

According to:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475202

...
Sorry this refers to the non-free version of Virtualbox. It is not
possible to start a Virtualbox machine with vrdp with virtualbox-ose.
Some features of virtualbox are nonfree and are only available in the
binary provided by innotek itself. We are not allowed to provide these
features (rdp, usb support, and several others).
...

VirtualBox & Windows 7 / 64 bits

VT-x/AMD-V hardware acceleration has been enabled, but is not operational. Your 64-bit guest will fail to detect a 64-bit CPU and will not be able to boot.Please ensure that you have enabled VT-x/AMD-V properly in the BIOS of your host computer.


Looks like I need to change something on the host side:

http://raywoodcockslatest.blogspot.com/2009/08/virtualbox-30-instead-of-vmware.html

Sunday, June 6, 2010

Philips USB webcam and linux 2.6.30

[ 641.834095] ------------[ cut here ]------------
[ 641.834108] WARNING: at /home/blank/debian/kernel/release/linux-2.6/linux-2.6-2.6.30/debian/build/source_amd64_none/lib/kobject.c:595 kobject_put+0x2f/0x42()
[ 641.834114] Hardware name: FJ340AA-ABF a6434.fr
[ 641.834118] kobject: '' (ffff88012d90d738): is not initialized, yet kobject_put() is being called.
[ 641.834122] Modules linked in: nvidia(P) binfmt_misc ppdev parport_pc lp parport vboxnetflt vboxnetadp vboxdrv acpi_cpufreq cpufreq_conservative cpufreq_userspace cpufreq_stats cpufreq_powersave ext3 jbd fuse firewire_sbp2 loop snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_pcm_oss snd_mixer_oss snd_usb_audio snd_usb_lib snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_timer snd_seq_device snd_hwdep pwc snd serio_raw snd_page_alloc videodev i2c_i801 v4l1_compat v4l2_compat_ioctl32 soundcore psmouse i2c_core evdev pcspkr processor button ext2 mbcache dm_mirror dm_region_hash dm_log dm_snapshot dm_mod sg sr_mod cdrom sd_mod crc_t10dif usbhid hid usb_storage uhci_hcd r8169 mii ahci firewire_ohci firewire_core crc_itu_t libata scsi_mod ehci_hcd intel_agp thermal fan thermal_sys
[ 641.834226] Pid: 3308, comm: hald-addon-inpu Tainted: P 2.6.30-2-amd64 #1
[ 641.834230] Call Trace:
[ 641.834238] [] ? kobject_put+0x2f/0x42
[ 641.834243] [] ? kobject_put+0x2f/0x42
[ 641.834251] [] ? warn_slowpath_common+0x77/0xa3
[ 641.834257] [] ? warn_slowpath_fmt+0x51/0x59
[ 641.834265] [] ? __do_fault+0x374/0x3af
[ 641.834274] [] ? wait_for_common+0xe2/0x148
[ 641.834280] [] ? default_wake_function+0x0/0x9
[ 641.834288] [] ? __bitmap_weight+0x3a/0x7e
[ 641.834293] [] ? kobject_put+0x2f/0x42
[ 641.834305] [] ? evdev_free+0x20/0x29 [evdev]
[ 641.834311] [] ? device_release+0x41/0x6a
[ 641.834316] [] ? kobject_release+0x48/0x5e
[ 641.834321] [] ? kobject_release+0x0/0x5e
[ 641.834326] [] ? kref_put+0x41/0x4c
[ 641.834334] [] ? evdev_release+0xcf/0xd9 [evdev]
[ 641.834341] [] ? __fput+0xc6/0x16e
[ 641.834346] [] ? filp_close+0x5b/0x62
[ 641.834351] [] ? sys_close+0x94/0xcd
[ 641.834358] [] ? system_call_fastpath+0x16/0x1b
[ 641.834363] ---[ end trace 5b78911576511e73 ]---

$ sudo lsusb -s 5:4 -vvx
Bus 005 Device 004: ID 0471:0310 Philips PCVC730K Webcam [pwc]
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0471 Philips
idProduct 0x0310 PCVC730K Webcam [pwc]
bcdDevice 0.03
iManufacturer 0
iProduct 0
iSerial 1 0169000099000000
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 490
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0000 1x 0 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x00c4 1x 196 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 2
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0124 1x 292 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 3
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x01c0 1x 448 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 4
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0250 1x 592 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 5
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x02c0 1x 704 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 6
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0308 1x 776 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 7
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0348 1x 840 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 8
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0380 1x 896 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 9
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x03c0 1x 960 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 10
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x03c0 1x 960 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 1 Control Device
bInterfaceProtocol 0
iInterface 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdADC 1.00
wTotalLength 38
bInCollection 1
baInterfaceNr( 0) 2
AudioControl Interface Descriptor:
bLength 12
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 1
wTerminalType 0x0201 Microphone
bAssocTerminal 0
bNrChannels 1
wChannelConfig 0x0000
iChannelNames 0
iTerminal 0
AudioControl Interface Descriptor:
bLength 8
bDescriptorType 36
bDescriptorSubtype 6 (FEATURE_UNIT)
bUnitID 2
bSourceID 1
bControlSize 1
bmaControls( 0) 0x03
Mute
Volume
iFeature 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 3
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 2
iTerminal 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 3
bDelay 1 frames
wFormatTag 1 PCM
AudioStreaming Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 16
bSamFreqType 1 Discrete
tSamFreq[ 0] 44100
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x005a 1x 90 bytes
bInterval 1
bRefresh 0
bSynchAddress 0
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 2
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 3
bDelay 1 frames
wFormatTag 1 PCM
AudioStreaming Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 16
bSamFreqType 1 Discrete
tSamFreq[ 0] 22050
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x002e 1x 46 bytes
bInterval 1
bRefresh 0
bSynchAddress 0
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 3
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 3
bDelay 1 frames
wFormatTag 1 PCM
AudioStreaming Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 16
bSamFreqType 1 Discrete
tSamFreq[ 0] 11025
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0019 1x 25 bytes
bInterval 1
bRefresh 0
bSynchAddress 0
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 4
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 3
bDelay 1 frames
wFormatTag 1 PCM
AudioStreaming Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 16
bSamFreqType 1 Discrete
tSamFreq[ 0] 8000
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
bRefresh 0
bSynchAddress 0
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Device Status: 0x0002
(Bus Powered)
Remote Wakeup Enabled

Saturday, June 5, 2010

.netrc for freebox

Here is my .netrc file for use with my freebox:

machine hd1.freebox.fr
login freebox
password 0000

macdef enre
cd "/Disque dur/Enregistrements"
bin

macdef video
cd "/Disque dur/Video"
bin

Make sure to

chmod 600 $HOME/.netrc

Once this is setup simply:

$ ftp hd1.freebox.fr
Connected to freeboxhd1.freebox.fr.
220 Welcome to Freebox FTP Server.
331 User name okay, need password.
230- Bienvenue sur le serveur FTP Freebox.
230-
230- Vos enregistrements se trouvent dans le r�pertoire :
230-
230- /Disque dur/Enregistrements
230-
230- Vous pouvez mettre vos vid�os dans le r�pertoire :
230-
230- /Disque dur/Video
230-
230-
230 User logged in, proceed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> $video
cd "/Disque dur/Video"
250 directory changed to /Disque dur/Video/
bin
200 Command Okay.