Talk about _unix Linux under remote control Linux

Source: Internet
Author: User
Tags builtin

I have always been in the Windows platform, with SSH and VNC to remotely control the Linux broiler to achieve NT and *inux system environment work. This specific implementation of the network tutorial has been a lot, I think there is no need to explain the details of the pull.
But lately because it really hates Microsoft to launch the so-called 2003, and it is said that the total limit, so that I can not have the courage to keep NT in my machine, hehe in fact, because of my machine low configuration, it is difficult to accept the strong pressure of many systems, so delete pull nt, (teeth, a lot of nonsense) hehe, Is the principle, so irrigation irrigation.
OK, now we're going to get to the point where, as the most powerful remote control software VNC, of course, it's our first choice (supposedly there's another one that can control 3389 under Linux, I haven't used it, I don't know the performance). Of course, there is a program wine can provide Windows program environment, but many friends say slow like stool. Haha, but still introduce the pull. At least you can use it to play with Microsoft solitaire bill. Hey

Here are my installation steps:
Pre-Installation Preparation
Unload the original wine. rh7.3 has wine and wine-devel two files, first uninstall the second, and then uninstall the first, if you better want to play the game, OpenGL also upgraded, FreeType do not upgrade, rh7.3 can meet the support of Chinese characters.
Hook up your C-disk under Linux
Create a directory to hook up
C Disk
Mkdir/winc
Hook up C disk
Mount/dev/hda1/winc

Download the latest version of wine to/wind
Http://www.winehq.com has its latest version.
Wine-20020804.tar.gz
Log on to Linux as a regular user and copy the wine-20020804.tar.gz to the/tmp directory
Enter/tmp directory
Shell>cd/tmp
Decompression wine
Shell>tar VFZX wine-20020804.tar.gz
Enter the unpacked directory
SHELL>CD wine-20020804
Install with the Wine installation tool
Shell>./tools/wineinstall
Then there is the long wait,
In the course of installation, it wants you to answer yes/no, you choose Yes.
Wine automatically search Windows directory, wait for you to compile it, it will let you enter the root password into the installation
This is the quick installation is over, if the installation is successful, there will be good lucky tips
Running wine under the shell for the first time is not an attack, which is normal, because it is not configured in the/root/.wine/config file. Find these.
[Drive C]
"Path" = "/usr/share/win_c"
"Type" = "HD"
"Label" = "MS-DOS"
"FileSystem" = "Win95"
instead: [Drive C]
"Path" = "/winc"
"Type" = "HD"
"Label" = "MS-DOS"
"FileSystem" = "Win95"
On it, if you install the SimSun font. Wine will find this font by default
Below is my/root/.wine/config.
WINE REGISTRY Version 2
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config

;;
;; MS-DOS drives configuration

;; Each section has the following format:
;; [Drive X]
;; ' Path ' = ' xxx ' (Unix Path for drive root)
;; "Type" = "xxx" (Supported types are ' floppy ', ' HD ', ' CDROM ' and ' network ')
;; "Label" = "XXX" (drive label, at most characters)
;; "Serial" = "XXX" (serial number, 8 characters hexadecimal number)
;; "FileSystem" = "XXX" (Supported types are ' msdos '/' dos '/' fat ', ' win95 '/' vfat ', ' UNIX ')
;; This is the FS Wine are supposed to emulate on a certain
;; Directory structure.
;; Recommended:
;; -"Win95" for Ext2fs, VFAT and FAT32
;; -"Msdos" for FAT16 (ugly, upgrading to VFAT driver strongly)
;; DON ' T use "Unix" unless your intend to port programs using Winelib!
;; "Device" = "/dev/xx" (only if you want to allow raw Device access)

[Drive A]
"Path" = "/mnt/floppy"
"Type" = "Floppy"
"Label" = "Floppy"
"Serial" = "87654321"
"Device" = "/dev/fd0"

[Drive C]
"Path" = "/winc"
"Type" = "HD"
"Label" = "MS-DOS"
"FileSystem" = "Win95"

[Drive D]
"Path" = "/mnt/cdrom"
"Type" = "cdrom"
"Label" = "CD-ROM"
"FileSystem" = "Win95"
; Make sure so device is correct and has proper permissions!
"Device" = "/dev/cdrom"

[Drive E]
' Path ' = '/tmp '
"Type" = "HD"
"Label" = "Tmp Drive"
"FileSystem" = "Win95"

[Drive F]
"Path" = "${home}"
"Type" = "Network"
"Label" = "Home"
"FileSystem" = "Win95"

[Drive Z]
"Path" = "/"
"Type" = "Network"
"Label" = "Root"
"FileSystem" = "Win95"

[Wine]
"Windows" = "C:\\Windows"
"System" = "C:\\Windows\\System"
"Temp" = "e:\\"
"Path" = "c:\\windows;c:\\windows\\system;e:\\;e:\\test;f:\\"
"Profile" = "C:\\windows\\profiles\\administrator"
"Graphicsdriver" = "X11drv"
; Wine doesn ' t pass directory symlinks to Windows programs by default.
; Enabling this may crash some programs so do recursive lookups of a whole
; SubDir tree in the case of the a symlink pointing to itself.
;" Showdirsymlinks "=" 1 "
"Shelllinker" = "Wineshelllink"

# <wineconf>

[Dlldefaults]
; "Extra_ld_library_path" = "${home}/wine/cvs/lib"
"Defaultloadorder" = "native, builtin, so"

[Dlloverrides]
"Commdlg" = "builtin, native"
"COMDLG32" = "builtin, native"
"Ver" = "builtin, native"
"Version" = "Builtin, native"
"Shell" = "builtin, native"
"Shell32" = "builtin, native"
"Lzexpand" = "builtin, native"
"Lz32" = "builtin, native"
"ComCtl32" = "builtin, native"
"Commctrl" = "builtin, native"
"Wsock32" = "builtin"
"Winsock" = "BUILTIN"
"ADVAPI32" = "builtin, native"
"Crtdll" = "builtin, native"
"MPR" = "builtin, native"
"Winspool.drv" = "builtin, native"
"DDraw" = "builtin, native"
"Dinput" = "builtin, native"
"Dsound" = "builtin, native"
"MMSystem" = "builtin"
"WINMM" = "builtin"
"MSVCRT" = "native, builtin"
"Msvideo" = "builtin, native"
"Msvfw32" = "builtin, native"
"Mcicda.drv" = "builtin, native"
"Mciseq.drv" = "builtin, native"
"Mciwave.drv" = "builtin, native"
"Mciavi.drv" = "native, builtin"
"Mcianim.drv" = "native, builtin"
"Msacm.drv" = "builtin, native"
"MSACM" = "builtin, native"
"Msacm32" = "builtin, native"
"Midimap.drv" = "builtin, native"
"WNASPI32" = "builtin"
"ICMP" = "builtin"

[X11drv]
; Number of colors to allocate from the system palette
"Allocsystemcolors" = "100"
; Use a private color map
"Privatecolormap" = "N"
; Favor correctness over speed in some graphics operations
"Perfectgraphics" = "N"
; Color depth to use on multi-depth screens
;;" Screendepth "=" 16 "
; Name of X11 display to use
;;" Display "=": 0.0 "
; Allow the window Manager to manage created Windows
"Managed" = "N"
; Use a desktop windows of 640x480 for Wine
;" Desktop "=" 640x480 "
; Use XFree86 DGA extension if present
"Usedga" = "Y"
; Use XSHM extension if present
"Usexshm" = "Y"
; Enable DirectX Mouse Grab
"Dxgrab" = "N"
; Create the Desktop window with a double-buffered visual
; (Useful to play OpenGL games)
"Desktopdoublebuffered" = "N"
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP = 0)
"Textcp" = "0"
; Use this if your have more than one port for the your setup
; (Wine uses for now the ' the ' the ' it finds ').
;; "Xvideoport" = "43"

[Fonts]
; Read Documentation/fonts before adding aliases
"Resolution" = "96"
"Default" = "-misc-simsun-"

[Serialports]
"Com1" = "/DEV/TTYS0"
"Com2" = "/dev/ttys1"
"Com3" = "/dev/ttys2"
"COM4" = "/dev/modem"

[Parallelports]
"Lpt1" = "/dev/lp0"

[Spooler]
"LPT1:" = "|LPR"
;" LPT2: "=" |gs-sdevice=bj200-soutputfile=/tmp/fred-q-"
;" LPT3: "="/DEV/LP3 "

[Ports]
;" Read "=" 0x779,0x379,0x280-0x2a0 "
; "Write" = "0x779,0x379,0x280-0x2a0"

[Spy]
"Exclude" = "wm_size"; Wm_timer; "

[Registry]
; These are are all booleans. Y/Y/T/T/1 are true, n/n/f/f/0 are false.
;D Efaults are read all, write to Home
; Global registries (stored in/etc)
"Loadglobalregistryfiles" = "Y"
; Home registries (stored in ~user/.wine/)
"Loadhomeregistryfiles" = "Y"
; Load Windows registries from the Windows directory
"Loadwindowsregistryfiles" = "Y"
; TRY to write all changes to home registries
"Writetohomeregistryfiles" = "Y"
; Registry periodic save timeout in seconds
; "Periodicsave" = "600"
; Save only modified keys
"Saveonlyupdatedkeys" = "Y"

[Tweak.layout]
;; Supported styles are ' WIN31 ' (default), ' Win95 ', ' Win98 '
"Winelook" = "Win98"

[Console]
;" Drivers "=" TTY "
;" Xtermprog "=" Nxterm "
;" Initialrows "=" 25 "
;" Initialcolumns "=" 80 "
;" Terminaltype "=" Nxterm "

[Clipboard]
"Clearallselections" = "0"
"Persistentselection" = "1"

# </wineconf>
Unfortunately, the speed of support is very slow, I will not use it to test the terminal, we are interested can be tested to see.
......................................................................................................................... ..........
Think of it or use VNC bar, hehe, yes really this software good ah ... I then ran on the virtual terminal VNC, found that the problem to pull, that is, the majority of the server version of the CTL +alt+del protection, in other words, in the terminal run Vncserver more than can not go in, only to see the part, A lot of people may be quick to give up at this time or to NT to use Linux in the chicken easy, actually, according to the experience in the previous use of NT, in support of Java browser run VNC seems to be able to send a CTL +alt+del command, hehe, you must be ready to start laughing, But with my Mozilla opened to know that most of the default installation does not support Java, I heard it seems to be forced with Microsoft's strong pressure ...

Now the problem is obviously that is to install Java Plug-ins. Oh, come with me:

Download Address: http://java.sun.com
I downloaded the newer version, the suffix bin file, with the file name:
J2sdk-1_4_0-linux-i386-rpm.bin
Installation process:
Copy the file to the/tmp directory
----//NOTE: CP j2sdk-1_4_0-linux-i386-rpm.bin/tmp
Then execute the file
----//NOTE:./j2sdk-1_4_0-linux-i386-rpm.bin
----//Note notice/Front has a point "."
There will be some information displayed, the first blank skip information displayed to ask you
Do you want to? press Y and then enter OK, and this will generate an RPM text
Items in the current directory
Running the rpm file
----//NOTE: RPM-UIVH j2sdk-1_4_0-fcs-linux-i386.rpm

[Set Java environment variables]
Edit Profile with Advanced Editor
----//Note: The file is in the/etc directory
Add the following on the last side:
Export Path=/usr/java/j2sdk1.4.0/bin: $PATH

Export classpath=.:/ Usr/java/j2sdk1.4.0/lib/tools.jar:/usr/java/j2sdk1.4.0/lib: $CLASSPATH

Save to exit (different versions of the path will vary, please according to their actual
Circumstances change)
And then to get him into effect, tap the following command at the command line
----//NOTE: Source/etc/profile
If you want other users to be able to use Java and log in with other user accounts,
and beat the command at the command line.
----//NOTE: Source/etc/profile

After the work is done, test with the following command
----//NOTE: Which Java (show the relevant information on it)

[Browser support Java problem]
The prerequisite is that you have installed the JAVAVM and configured the environment variables

In the Konqueror webbrowsing:
Java settings: In control center > Web Browsing (Page view),
Click Konqueror Browser (Konqueror browser), in the Java tab
"Global Java Enabled" on the tick, and then apply exit.


In the Mozilla webbrowsing:
into Mozilla's plugin directory, the JRE of a plugin text
Link to Mozilla's plugin directory
(The official site article says it's absolutely impossible to copy this file to the directory.
Under, can only link, before I made a mistake in this, so how
Do is quit the browser, remember!!)
----//NOTE: Under the command line (Root permission),
----//NOTE: Cd/usr/share/mozilla/plugins
----//NOTE: ln-s/usr/java/j2sdk1.4.0/jre/plugins/i386/ns610/libjavaplugin_oji14.so libjavaplugin_oji14.so

(Here's the order for a reference, you modify your own according to the actual situation, modify your plug-in version)

Now open the new window, in the http://ip:5800, see, OK, come out pull see pull out of that CTL +alt+del button, pull the following is hidden diagram, process issues, the chart can modify the registry, process
Can use some injection process and other techniques, specific to search for them, a lot of.

The last point to emphasize: The reason for Linux also play NT (many free software enthusiasts will take the board to still me), because as a qualified blackhat, must be proficient in all the platform intrusion technology, so must NT platform, as penetration testing, vulnerability testing, need such a multi-platform. But we do not indulge and control others technology itself, this is very easy to achieve .... Pay more attention to is you really like to achieve the possibility to control, hehe a bit Rao mouth.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.