Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TUT]X11 Forwarding over SSH ( Linux --> Windows ) PUTTY [TUT]

X11 Forwarding over SSH


This is a tutorial how you can forward X11 applications from a linux machine to a windows one over SSH connection.
It is really easy and short so I will keep this as short and simple as I can.

What you need
Configure PuTTY
In the PuTTY configuration section, on the left panel select "Connection --> SSH --> X11", then check the "Enable X11 forwarding" checkbox.
Set the X11 Display location as :0.0
Then go back to the Session option on the left panel and enter the details for your linux machine and save the session.

Configure Xming
Click the Start Button and program files and select Xming --> XLaunch.
You will get up a configuration window. Select multiple windows and set the display number as 0.
Select next until there is a finish button, then FINISH IT !

Running X applications

Open PuTTY and log into your linux machine.
Run this command :
PHP Code

<?php 
echo $DISPLAY 
You should get a meaningful value.

Then just run what ever you like, for example firefox, and firefox should pop up ...

Running applications as root
Again, this is easy ... a few steps you need to follow...

PHP Code

<?php 
chmod 555 
~/.Xauthority 
PHP Code

<?php 
su 
- root 

Or become root in your way...
PHP Code

<?php 
cp 
/home/USER/.Xauthority /root 

Then run the application you wanted to run as root... 🤗



Have fun
~Loki123 🤝
I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux.
(Jun 24, 2012 07:33 PM)Foco Wrote:  I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux.

FUCK OFF YOU GNU LOVING HIPPY. I hate this fucking namign subject. You remind me exactly like RMS. The thing I hate is. GNU would be fucking no where without Linux, and even then. The GNU userland sucks donkey dick.

I will never, ever call Linux! GNU/Linux, because Linux when coded was only compiled with the GNU compiler. And people have took to using the GNU userland for the base Linux, but it shouldn't be associated iwht Linux.

RMS named his shit, so Linus can name his. I mean most Linux distributions come with Xorg, or uses Xorg. We should just call it Xorg/Linux then.

And RMS looks like a fucking pedophile. I wouldn't touch the GNU crap if you paid me. GNU free base FreeBSD, way to go.

Quote:“Hey! I wrote your fricking operating system!”
~ Linus Torvalds on RMS

“Shut the fuck up. You only wrote one tiny bit: the kernel. I wrote the rest.”
~ RMS on GNU/Linux

“No one calls it GNU/Linux, fuckwit. It's Linux.”
~ Linus Torvalds on Linux Naming Controversy

“Debian does.;-P”
~ Richard M. Stallman on Debian: Linux for Communists

“Ian Murdock's a fag like you.”
~ Linus Torvalds on Homosexuality in FLOSS

“Fuck off: it was named Debian because of 'Deborah' and 'Ian', his WIFE!”
~ RMS on Ian Murdock's Marital Status

“Hey, at least he, like me, has a wife ;-).”
~ Linus Torvalds on RMS's marital status

“I'm married to Free Software.”
~ RMS on RMS's marital status

“I always knew you were a fag.”
~ Linus Torvalds on RMS

“You know, if you're so interested in gays you must be gay yourself!”
~ RMS on Lame comebacks

“Would it matter if I was gay?”
~ Linus Torvalds on His Sexuality

“Yes”
~ RMS on Linus' Sexuality

“Because you want to screw me, fag?”
~ Linus Torvalds on RMS' Sexuality

“I'll kill you.”
~ RMS on Linus

“What with, asswipe?”
~ Linus Torvalds on Lame invented swearwords

“My uber kung-fu skills”
~ RMS on RMS' Uber Kung-Fu skills

“Foobar. You don't have uber kung-fu skills.”
~ Linus Torvalds on Americans' lack of Uber Kung-Fu skills

“Neither do you”
~ RMS on Europeans' lack of Uber Kung-Fu skills

“Oh yeah? I've got a gun. Mao said never argue with the barrel of a gun”
~ Linus Torvalds on The Cultural Revolution

“I KNEW IT! YOU'RE A FUCKING COMMIE!”
~ RMS on Communism in the modern world

“Hey, I'm not the president of the FSF!”
~ Linus Torvalds on Cold hard facts.

“LINUS IS A COMMIE! LINUS IS A COMMIE! NANANANA! HAHAHAHA!”
~ RMS on Quoting South Park

I may be a fag, BUT I AM NOT A FAT ASS!
“Real mature, Richard.”
~ Linus Torvalds on Maturity

“It doesn't matter that you have a gun, cos I have a lightsaber”
~ RMS on Using fictional weapons from Star Wars in real life

“Nu-uh. I have a maroon lightsaber, and maroon lightsabers pwn whatever you have.”
~ Linus Torvalds on Using fictional fictional weapons for Star Wars in real life

“You n00b, there's no such thing as a maroon lightsaber”
~ RMS on Technical details of Star Wars

“You're the n00b for caring. Boyah!”
~ Linus Torvalds on How geeks ain't cool

“Unlike Linus, I can speak and write Greek.”
~ RMS on Greek philosophy consortium.

“Unlike RMS,I can speak L33t in a binary.”
~ Linus Torvalds on Binary L33t chat room

“You're a geek”
~ RMS on Geeks

“You're a nerd”
~ Linus Torvalds on Nerds

“Geeks are worse than nerds.”
~ RMS on Nerd Vs. Geek debates

“Nu-uh. Seth Cohen is a geek and he's uber cool”
~ Linus Torvalds on The O.C.

“The O.C. sucks balls”
~ RMS on obviousness

“Your mom sucks balls”
~ Linus Torvalds on Irregular incest

“Jesus Christ, take credit for the OS, just don't bring that phrase into this”
~ RMS on How Your Mom is the world's worst phrase. Ever

“Fine then. I never mention you-know-what again, I get full credit for Linux. And Emacs.”
~ Linus Torvalds on Emacs

“Ha!Linus Torvalds Confesses to Stealling GNU”
~ RMS on Referencing

“Hey, that was written by Oscar Wilde!!!”
~ Linus Torvalds on Uncyclopedia

“So?”
~ RMS on Uncyclopedia

“You're not allowed to cite encyclopedias!”
~ Linus Torvalds on Havard Citation System

“You calling Uncyclopedia an encyclopedia?”
~ RMS on getting agitated at the insult heaped on Uncyclopedia

“Well at least it is better than Wikipedia.”
~ Linus Torvalds on Factual online content

“I agree, Wikipedia is shit. They banned me from it for no reason.”
~ RMS on Wikipedia's thought police

“It must have been all of that gay hardcore porn you wrote on it.”
~ Linus Torvalds on RMS' hobbies

“Yeah but at least I cited my sources!”
~ RMS on Researching the gay porn industry

“Too bad you cannot program your own kernel, bitch!”
~ Linus Torvalds on Kernel hacking

“At least I don't get into fights with the GNOME people.”
~ RMS on Linux infighting

“The GNOME project uses sloppy code, all I did was make suggestions to plug memory leaks and make it easier for the user to use.”
~ Linus Torvalds on Extreme Programming

“Hah! If people wanted easier to use they can always use Windows or a Mac. Linux is more for the hardcore geek who already knows how a computer works”
~ RMS on Linux targeted user base

“We are never going to take over Windows and Mac market share unless we work together to write better code and easier to use software in Linux.”
~ Linus Torvalds on a strategy about taking market share away from

Windows and Mac OSX
“Too bad you are just a Fin-Head RMS wannabe.”
~ RMS on Taunting Linus

“Oh yeah? Well even Bill Gates writes better code than you!”
~ Linus Torvalds on quality software programming

“Bill Gates couldn't suck his own cock if he wanted to”
~ RMS on Insults of his programming skills

“That is what my dad used to say”
~ Linus Torvalds on his father

“...”
~ RMS on awkward silence

I hate them both equally, and think they're both retarded.
(Jun 24, 2012 08:17 PM)Amzo Wrote:  FUCK OFF YOU GNU LOVING HIPPY. I hate this fucking namign subject. You remind me exactly like RMS. The thing I hate is. GNU would be fucking no where without Linux, and even then. The GNU userland sucks donkey dick.

I will never, ever call Linux! GNU/Linux, because Linux when coded was only compiled with the GNU compiler. And people have took to using the GNU userland for the base Linux, but it shouldn't be associated iwht Linux.

RMS named his shit, so Linus can name his. I mean most Linux distributions come with Xorg, or uses Xorg. We should just call it Xorg/Linux then.

And RMS looks like a fucking pedophile. I wouldn't touch the GNU crap if you paid me. GNU free base FreeBSD, way to go.

I hate them both equally, and think they're both retarded.

[Image: cIDnZ.png]

OT: nice post OP. Ill bookmark it for future reference


Possibly Related Threads...
Thread / Author Replies Views Last Post
by jackharperOct 7, 2016 03:43 AM 12 322 Oct 7, 2016 03:43 AM
Last Post: 8lue7ornado
by BLOW.Aug 25, 2016 08:30 AM 9 325 Aug 25, 2016 08:30 AM
Last Post: BLOW.
[Ubuntu] by EffexionJul 23, 2016 04:23 AM 11 365 Jul 23, 2016 04:23 AM
Last Post: redlightrouter