Sunday, October 26, 2008

Xorg.conf saved my Intrepid install

when I installed the release candidate of Intrepid Ibex, I could not get dual screen output. Lucky for me, I kept the xorg.conf file from my previous install of Gutsy. BTW, I have an Nvidia video card.

Here it is:


Section "ServerLayout"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
Identifier "Default Layout"
Screen 0 "Screen0" 1024 0
Screen 1 "Screen1" LeftOf "Screen0"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

Section "Files"
EndSection

Section "Module"
Load "glx"
EndSection

Section "ServerFlags"
Option "blank time" "0"
Option "standby time" "0"
Option "suspend time" "0"
Option "off time" "0"
Option "Xinerama" "0"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "HP w1907"
HorizSync 24.0 - 83.0
VertRefresh 50.0 - 76.0
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "TV-0"
HorizSync 0.0 - 0.0
VertRefresh 0.0
EndSection

Section "Device"
Identifier "nVidia Corporation NVIDIA Default Card"
Driver "nvidia"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
BusID "PCI:2:0:0"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "G84-350"
BusID "PCI:2:0:0"
Screen 0
EndSection

Section "Device"
Identifier "Videocard1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "G84-350"
BusID "PCI:2:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation NVIDIA Default Card"
Monitor "Generic Monitor"
DefaultDepth 24
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "CRT: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
Modes "nvidia-auto-select"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Videocard1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "TV: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
Modes "nvidia-auto-select"
EndSubSection
EndSection


Tuesday, September 9, 2008

Automount Seagate Free Agent usb drive

First, I follow this:

http://alienghic.livejournal.com/382903.html

# the drive reports something like this
$ sudo sdparm -a /dev/sde
/dev/sde: Seagate FreeAgent Pro 400A
Power condition mode page:
IDLE 0 [cha: n, def: 0, sav: 0]
STANDBY 1 [cha: y, def: 1, sav: 1]
ICT 0 [cha: n, def: 0, sav: 0]
SCT 9000 [cha: y, def:9000, sav:9000]
# when the drive was idled I got the following error message.
$ sudo sdparm --clear STANDBY -6 /dev/sde
/dev/sde: Seagate FreeAgent Pro 400A
change_mode_page: failed setting page: Power condition
# this appears to force the drive to start
$ sudo sdparm --command=start /dev/sde
# and now this command works
$ sudo sdparm --clear STANDBY -6 /dev/sde
$ sudo sdparm -a /dev/sde
/dev/sde: Seagate FreeAgent Pro 400A
Power condition mode page:
IDLE 0 [cha: n, def: 0, sav: 0]
STANDBY 0 [cha: n, def: 1, sav: 0]
ICT 0 [cha: n, def: 0, sav: 0]
SCT 0 [cha: n, def:9000, sav: 0]

Of course, if you don't have sdparm, use:
sudo apt-get install sdparm

Then copy output of
>cat /proc/mounts
entry to /etc/fstab

my entry is:

/dev/sdc1 /media/disk vfat rw,nosuid,nodev,uid=1000,fmask=0077,dmask=0077,iocharset=iso8859-1,shortname=mixed,usefree,utf8 0 0

Reboot. Everything auto mounts fine now.

Sunday, September 7, 2008

I want to share home videos faster with Azureus

(bit torrent client)
here is how to do it, and the link where I found it:

http://netforbeginners.about.com/od/peersharing/a/torrenthandbook_3.htm


Question: How do I start using BitTorrents?


Answer: BitTorrent “swarming” requires six major ingredients.

  1. BitTorrent client software (there are dozens of choices, all free to install. See next page for software suggestions.).
  2. A tracker server (hundreds of them exist on the Web, no cost to use).
  3. A .torrent text file that points to the movie/song/file you want to download.
  4. A Torrent search engine that helps you find these .torrent text files. (See next page for Torrent search links.)
  5. A specially-configured Internet connection with port 6881 opened on the server/router to allow Torrent file trading.
  6. A working understanding of file management on your PC/Macintosh. You will need to navigate hundreds of folders and filenames to make file sharing work for you.

Thursday, September 4, 2008

I made a music server

I made a music server today on Ubuntu with GNUMP3d.
Just put a symlink to both my music folders in ~/Music and voila! both my folders were on the server.
My ip is not static, so I'm trying to find out how to email myself the IP every time it updates.

(update)

This programs works for video too.
Great for sharing our home video.

Saturday, July 19, 2008

My conky.rc file


# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat connections to your computer
#
#

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft no

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
# minimum_size 250 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
font arial
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color grey

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 10

# stuff after 'TEXT' will be formatted on screen

TEXT
$color
${color orange}SYSTEM ${hr 2}$color
$nodename $sysname $kernel on $machine

${color orange}CPU ${hr 2}$color
Uptime: $uptime
${freq}MHz Load: ${loadavg} Temp: ${acpitemp}
$cpubar
${cpugraph 000000 ffffff}
NAME PID CPU% MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

${color orange}MEMORY / DISK ${hr 2}$color
RAM: $mem/$memmax $memperc%
${membar 6}$color
Swap: $swap/$swapmax $swapperc%
${swapbar 6}$color

Root: ${fs_used /}/${fs_size /} ${fs_used_perc /}%
${fs_bar 6 /}$color
home: ${fs_used /home/mark}/${fs_size /home/mark} ${fs_used_perc /home/mark}%
${fs_bar 6 /home/mark}$color
C Drive: ${fs_used /media/hdd1}${fs_size /media/hdd1} ${fs_used_perc /media/hdd1}%
${fs_bar 6 /media/hdd1}
D Drive: ${fs_used /media/sda1}/${fs_size /media/sda1} ${fs_used_perc /media/sda1}%
${fs_bar 6 /media/sda1}
Free Agent: ${fs_used /media/disk}/${fs_size /media/disk} ${fs_used_perc /media/disk}%
${fs_bar 6 /media/disk}

${color orange}NETWORK (${addr eth0}) ${hr 2}$color
Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0
25,140 000000 00ff00}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

${color orange}LOGGING ${hr 2}$color
${execi 30 tail -n3 /var/log/messages | fold -w50}

${color orange}FORTUNE ${hr 2}$color
${execi 120 fortune -s | fold -w50}

Wednesday, June 18, 2008

bash script to send video to the TV

#! /bin/bash
#This script send fullscreen video to the tv through VLC (http://www.videolan.org/vlc/)
#read $1
DISPLAY=:0.1 vlc --fullscreen $1

Saturday, June 14, 2008

Back to dual booting

I couldn't completely get rid of Microsoft software. Went back to dual booting XP and Ubuntu 7.10 (Gutsy). There are certain games my wife wants to play that don't work in VirtualBox or
Wine. Oh well, I stay in Ubuntu as much as possible. I don't need anything else.

Tuesday, June 3, 2008

Windows Free day

Yesterday, I took Windows out of the grub menu. If I need 1 or 2 Windows programs, I use Virtualbox. I got tired of reinstalling windows. Everytime, I have to call Microsoft, because they won't let activate online anymore. Now, with Virtualbox, I have the virtual machine backed up, so if anything goes wrong, I can use the backup and start over. Goodbye to Microsoft!!!

Sunday, January 27, 2008

Sony A816 Walkman MP3 player

I recently got a Sony A816 mp3 player, and yes, it works out of the box with Linux



mp3's are drag and drop.

Get video content to your Samsung P2

I got some of this info from joco

Use Avidemux

Set video filters to Resize to 320x240 and Resample fps=15
Set audio to LAME MP3

Drag and drop to your Video folder and that's it:
No more need for Samsung Media Studio

Saturday, January 26, 2008

Get Samsung P2 to be seen in Linux

The first problem was to get linux to see my Samsung P2 mp3 player. I found the solution at:

http://www.yjzone.net/showthread.php?t=1897

It is really simple:

So:

1) You have to find a "config" file
It is not in the new firmwares anymore but in the older like the 1.11 FR it is
so you can download it here:
http://media.generationmp3.com/gmp3/...nate(V111).zip

2) Open it and modify it :
from

YP-P2
FR FR MTP

to


YP-P2
EU EU UMS

(EU because FR has a sound level limitation)

3) Copy the 3 files at the root:
-YPP2.rom
-YPP2.RSC
-config.DAT

4) The test has been realized with the 1.11 firmware but I think you can use any firmware: you just have to add this config file when you copy your YPP2.rom and YPP2.RSC files into the P2

All the details here:
http://www.anythingbutipod.com/forum...ad.php?t=22901