Archive for the 'ubuntu' Category

setting up a pptp debian server

1 Comment

I’ve never done something simple like this before.

First install the package:

apt-get install pptpd

then edit the localip and remoteip in your /etc/pptpd.conf file.

and next add a user with password:

echo “USERNAME pptpd PASSWORD *” >> /etc/ppp/chap-secrets

and restart the pptpd server:

/etc/init.d/pptpd restart

done.

It tested it with the android (kernel: 2.6.29-TheOfficial-00479-g3c7df37) vpn client

logcat:

I/ActivityManager(  695): Start proc com.android.server.vpn:remote for service com.android.server.vpn/.VpnServiceBinder: pid=13445 uid=1000 gids={3002, 3001, 3003}
D/VpnManager(13178): succeeded to connect to VPN service
D/com.android.settings.vpn.AuthenticationActor(13178): ~~~~~~ connect() succeeded!
D/VpnSettings(13178): received connectivity: true-binary.com: connected? CONNECTING   err=0
I/SProxy_mtpd(13445): Stop VPN daemon: mtpd
D/SProxy_mtpd(13445): mtpd is stopped after 0 msec
D/SProxy_mtpd(13445): stopping mtpd, success? true
D/VpnService(13445):   Local IP: 188.45.67.169, if: rmnet0
D/VpnService(13445):        VPN UP: down
I/SProxy_mtpd(13445): Start VPN daemon: mtpd
D/mtpd    (13453): Waiting for control socket
D/SProxy_mtpd(13445): mtpd is running after 200 msec
D/mtpd    (13453): Received 20 arguments
I/mtpd    (13453): Using protocol pptp
I/mtpd    (13453): Connecting to 86.33.100.93 port 1723
I/SProxy_mtpd(13445): got data from control socket: 20
I/mtpd    (13453): Connection established (socket = 9)
D/mtpd    (13453): Sending SCCRQ
D/mtpd    (13453): Received SCCRP -> Sending OCRQ (local = 3740)
I/mtpd    (13453): Tunnel established
D/mtpd    (13453): Received OCRQ (remote = 32769)
I/mtpd    (13453): Session established
I/mtpd    (13453): Creating PPPoX socket
I/mtpd    (13453): Starting pppd (pppox = 11)
I/pppd    (13454): Using PPPoX (socket = 11)
I/mtpd    (13453): Pppd started (pid = 13454)
D/pppd    (13454): using channel 4
I/pppd    (13454): Using interface ppp0
I/pppd    (13454): Connect: ppp0 <–>
I/pppd    (13454): MPPE 128-bit stateless compression enabled
I/pppd    (13454): local  IP address 192.168.1.1
I/pppd    (13454): remote IP address 192.168.0.1
I/ip-up-vpn(13455): All traffic is now redirected to 192.168.0.1
D/VpnService(13445): onConnected()
I/VpnService(13445): save original dns prop: 194.48.139.254, 194.48.124.200
I/VpnService(13445): save original suffices:
D/VpnSettings(13178): received connectivity: true-binary.com: connected? CONNECTED   err=0
D/VpnServiceBinder(13445):      saving states
I/VpnService(13445): set vpn dns prop: ,
I/VpnService(13445): VPN connectivity monitor running
I/ActivityManager(  695): Process com.facebook.katana (pid 12508) has died.

and the syslog of debian (interpid kernel: 2.6.27-11) gives:

Jan  5 17:50:16 server pptpd[8979]: CTRL: Client 188.45.67.169 control connection started
Jan  5 17:50:16 server pptpd[8979]: CTRL: Starting call (launching pppd, opening GRE)
Jan  5 17:50:16 server pppd[8980]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Jan  5 17:50:16 server pppd[8980]: pppd 2.4.4 started by root, uid 0
Jan  5 17:50:16 server pppd[8980]: Using interface ppp0
Jan  5 17:50:16 server pppd[8980]: Connect: ppp0 <–> /dev/pts/1
Jan  5 17:50:16 server pptpd[8979]: GRE: Bad checksum from pppd.
Jan  5 17:50:17 server pppd[8980]: MPPE 128-bit stateless compression enabled
Jan  5 17:50:17 server pppd[8980]: found interface eth0 for proxy arp
Jan  5 17:50:17 server pppd[8980]: local  IP address 192.168.0.1
Jan  5 17:50:17 server pppd[8980]: remote IP address 192.168.1.1

fine :D

PS: It’s funny that my kernel on the android phone is newer than the kernel on the debian server ;)

nvidia tv out on debian (ubuntu – linux)

9 Comments

I have tryed a long time to get a video singal out of my nVidia GeForce 8600 GT (rev a1) and finally it works.

I use a 10 meter S-VHS cable to my sony bravia 40″ 16:9 flat screen

here’s the lspci:

05:00.0 VGA compatible controller: nVidia Corporation GeForce 8600 GT (rev a1)

And here’s my xorg.conf:

Section “ServerLayout”
Identifier     “Layout0″
Screen      0  “Screen0″ 0 0
Screen      1  “Screen1″ RightOf “Screen0″
InputDevice    “Keyboard0″ “CoreKeyboard”
InputDevice    “Mouse0″ “CorePointer”
EndSection

Section “Files”
RgbPath         “/usr/X11R6/lib/X11/rgb”
EndSection

Section “Module”
Load           “dbe”
Load           “extmod”
Load           “type1″
Load           “freetype”
Load           “glx”
EndSection

Section “ServerFlags”
Option         “Xinerama” “0″
EndSection

Section “InputDevice”

# generated from default
Identifier     “Mouse0″
Driver         “mouse”
Option         “Protocol” “auto”
Option         “Device” “/dev/psaux”
Option         “Emulate3Buttons” “no”
Option         “ZAxisMapping” “4 5″
EndSection

Section “InputDevice”

# generated from default
Identifier     “Keyboard0″
Driver         “kbd”
EndSection

Section “Monitor”
Identifier     “Monitor0″
VendorName     “Unknown”
ModelName      “LG L1970HR”
HorizSync       30.0 – 83.0
VertRefresh     56.0 – 75.0
Option         “DPMS”
EndSection

Section “Monitor”
Identifier     “Monitor1″
VendorName     “Unknown”
ModelName      “TV-0″
HorizSync       28.0 – 33.0
VertRefresh     43.0 – 72.0
EndSection

Section “Device”
Identifier     “Device0″
Driver         “nvidia”
VendorName     “NVIDIA Corporation”
EndSection

Section “Device”
Identifier     “Videocard0″
Driver         “nvidia”
VendorName     “NVIDIA Corporation”
BoardName      “GeForce 8600 GT”
BusID          “PCI:5:0:0″
Screen          0
EndSection

Section “Device”
Identifier     “Videocard1″
Driver         “nvidia”
VendorName     “NVIDIA Corporation”
BoardName      “GeForce 8600 GT”
BusID          “PCI:5:0:0″
Screen          1
EndSection

Section “Screen”
Identifier     “Screen0″
Device         “Videocard0″
Monitor        “Monitor0″
DefaultDepth    24
Option         “TwinView” “0″
Option         “TwinViewXineramaInfoOrder” “CRT-0″
Option         “metamodes” “CRT: nvidia-auto-select +0+0″
Option         “TVStandard” “PAL-B”
Option         “TVOutFormat” “SVIDEO”
SubSection     “Display”
Depth       24
EndSubSection
EndSection

Section “Screen”

# Removed Option “metamodes” “TV: nvidia-auto-select +0+0″
# Removed Option “metamodes” “TV: nvidia-auto-select @1440×900 +0+0″
# Removed Option “metamodes” “TV: nvidia-auto-select @1440×900 +0+0; TV: nvidia-auto-select @1440×900 +0+0″
Identifier     “Screen1″
Device         “Videocard1″
Monitor        “Monitor1″
DefaultDepth    24
Option         “TwinView” “0″
Option         “metamodes” “TV: 1440×900 +0+0″
Option         “TVStandard” “PAL-B”
Option         “TVOutFormat” “SVIDEO”
SubSection     “Display”
Depth       24
EndSubSection
EndSection

Two lines are very important:

Option         “TVStandard” “PAL-B”
Option         “TVOutFormat” “SVIDEO”

If these options aren’t set the picture will flicker.

OK, now restart your X server and there should be a signal on the line.

Now the next question was how to get any application on tv out?

Here’s the answer:

DISPLAY=:0.1 ‘command’

for example:

DISPLAY=:0.1 vlc /home/user/video.mp4

have fun, cheerio – chaos

eeepc 701 – ubuntu 8.10 wlan

3 Comments

hi guys!

 

If your atheros chip can’t be detectet here’s a little howto enable it:

adding the repository:

 echo “deb http://archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse” >> /etc/apt/sources.list

 

now update aptitude and install the modules:

apt-get update && aptitude install linux-backports-modules-intrepid

 

last step is to add the modules to the startup:

echo “blacklist ath_pci” >> /etc/modprobe.d/blacklist

 

reboot and you’re done!

 

now your should look like this:

root@hades:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:”"
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
          Tx-Power=27 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
 

cheers, chaos

kaffeine-sc plugin 0.4.0 on ubuntu

6 Comments

have you ever tryed to compile the kaffeine-sc-plugin (softcam plugin for kaffeine) on ubuntu?

after installing all the lib-packages (X-libs, kernel headers, and so on), you get the message:

Good – your configure finished. Start make now

okay, what shall we do now?

we gonna type “make” now

now it tries to compile but we get an error-message like this:

make[3]: g++34: Kommando nicht gefunden
make[3]: *** [FFdecsa_test.o] Fehler 127
make[3]: Verlasse Verzeichnis ‘/home/chaos/kaffeine-sc-plugin-0.4.0/src/FFdecsa’

so let us have a look into the “Makefile” located in the “src/FFdesca” directory.

we just have to find the line:

COMPILER=g++34

and change it to:

COMPILER=g++

and now retry to compile the plugin (make)

aaand it works, now we have to install it:

make install

finished!

Where is the Softcam key file stored?

it’s located in ~/.kaffeine/SoftCam.Key (case-sensetive)

everything should work now : )

greetz chaos