Montag, 19. September 2011

Running Teamviewer 6 as root

So im Using BackTrack now where the main user is root.

Unfortunately i dont wanna miss my favorite Programms like VLC and Teamviewer.

But when i started Teamviewer it said:

TeamViewer must not be executed as root!


I searched the WEB for a Solution and found this.

http://blog.ask4itsolutions.com/2011/01/01/how-to-running-teamviewer-5-6-as-root-on-linux-fedora-ubuntu-rhel-cento/

Unfortunately i ended up with the Same Problem as Martin List


Hi Tejas,

This is what I get when executing Teamviewer as root

TeamViewer: 6.0.9258
Profile: /root (root)
Desktop:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid

Error: TeamViewer must not be executed as root!

This is the conent of the Teamviewer symlink in /usr/bin:

#!/bin/bash

TV_script_dir=$(dirname $(readlink -f “$0″))
“$TV_script_dir/wrapper” wine “c:\Program Files\TeamViewer\Version6\TeamViewer.e
xe” “$@”

true



Well after some diging around i found out its a problem which comes as of Version 6.0.9258.


But i found a Solution

The new Teamviewer file is in /opt/teamviewer/teamviewer/6/bin/

So just type in your shell

"vi /opt/teamviewer/teamviewer/6/bin/wrapper"
then
"/root" press Enter till you find this little piece of code


function validate_user()
{
local userid=$(id -u)

if [ $userid = 0 ] ; then
die "TeamViewer must not be executed as root!"
fi
}


Change the userid to 1 and you are ready to go.


Kind Regards, Suicide

Samstag, 17. September 2011

Windows 7 not working after Installation of BackTrack 5 R1

So i got a new Laptop yesterday and deceided to use it as DualBoot for School with Windows 7 and BackTrack 5 R1 a Penetration Testing Distribution (Based on Ubuntu 10.04LTS).

First i installed Windows and then Backtrack since i dont like the Bootmanager of Windows 7 and im more into Grub.

After some time i went to sleep and as i tried to reboot this morning into Windows 7 it kicked out Various Times with a Bluescreen. I tried to repair it but wonder what i saw NO Harddrive even though i knew it should work.

After some time i decided to boot with the Live CD of Backtrack. After i tried to fix the MBR with the Win 7 Disc since it overwrote GRUB.

I had a look in GParted and deleted the Two Win 7 Partitions (One for Secure things and one with the actual System) But i saw a third Partition which seemed to be broken (/dev/sda1 in my case) i didnt thought about that and rebooted.

I booted again with the Win 7 Disc but still there was no Harddrive.

I booted again with the BackTrack Disc and removed /dev/sda1

I rebooted with Windows 7 et voila i saw my drives and could Install Win 7 again.

So next time when i cant boot i will first deleted /dev/sda1/ and THEN try to repair my Win 7 so i dont loose my Data.

Good thing was it was a fresh win 7 install so i lost no Data.


So BackTrack was still not booting. I downloaded EasyBCD

and chose Linux Grub 2 and voila i could create a new Bootmanager where i could choose BackTrack which worked.


Mfg Suicide