Archive for 2013
How to sniff Someone using Cain & Abel( facebook password ...)
By : yeahimgeekStep 1 : dowload cain & abel from the link below :
- http://www.oxid.it/cain.html
also u should download the outils wincap :
- http://www.winpcap.org/install/default.htm
Step 2:
- install them "cain & abel" & " wincap".
Step 3:
this is the interface of the program :
* Choose your network adapter, then click "Ok". (Because I use this windows XP on a virtual machine I can't use any adapter, so I can't give you the complete image of the process,but I try to explain you as clear as I can,sorry 'bout that).
After you activate the sniffer, then click the '+' button to add hosts to the list.
*After you get 1 or a bunch of hosts in your list, then go to the "APR" tab below.
*Click the '+' button and add which host you want to sniff the passwords. Then click the radioactive button to activate the ARP Poisoning Process.
*To see the password captured, just go to the "Passwords" tab beside the APR tab.
II_Theorie ::
Man-in-the-middle attack
An attack where a user gets between the sender and receiver of information and sniffs any information being sent. In some cases, users may be sending unencrypted data, which means theman-in-the-middle (MITM) can obtain any unencrypted information. In other cases, a user may be able to obtain information from the attack, but have to unencrypt the information before it can beread. In the picture below is an example of how a man-in-the-middle attack works. The attacker intercepts some or all traffic coming from the computer, collects the data, and then forwards it to the destination the user was originally intending to visit.

Tag :
Tuto,
Control Network Speed "WIFI"
By : yeahimgeekto control network speed receive people on wifi : u should to use the program selfshnet
step 1:
II_ Theorie ::
First u need to download :
step 1:
- wincap : http://www.winpcap.org/install/default.htm .
step 2 :
install wincap and selfishnet
step 3 : run selfishnet as a root " administrateur"
step 4 : after runing a button ok will be appear click on :
step 5 : after a window will appear showing you all computer connecting on the same wifi so u can after block internet to some computer or limit network speed ...
II_ Theorie ::
How Does It Work?
A computer is able to determine the correct network device via something known as MAC address. Each networked device on a computer network, whether a printer, computer, router etc have their own unique MAC address.

On a normal network, each computer sends/receives internet data via a switch which is itself connected to a router. In this case, the computer takes note of the MAC address of the router so that it can locate the router and ensure that the data is received or sent from the correct place.

What this program does is it spoofs the MAC address of your router. The system connects to router through the MAC address of router. But, if the MAC address of the router is copied by your computer, all the computers on the network will look for internet data in your computer, and will not be able to use internet. You, on the otherhand will be able to browse the internet in maximum speed.
Note that this is also one of the techniques used by hackers. When a MAC address is spoofed, other computers will send their data via your computer. Hence, you will be able to view the passwords or other data being sent. This is termed as Network sniffing. However, in this case, you are just spoofing the MAC address of your router in order to block others from using internet, which is not 'sniffing'. Here, you will not be able to view their data
Tag :
Tuto,
Install any apps windows on linux
By : yeahimgeekTo install or run any app windows under any distribuion Linux , u have to install
the paquet "wine" :
To install <<wine>> on ubuntu : sudo apt-get install wine
after installing "wine" you can now install and run any app windows :)
for exemple : how to install notepad++ on linux .
step 1 : install the paquet "wine"( do this instruction for one time.no need to install this to all apps ).
the paquet "wine" :
To install <<wine>> on ubuntu : sudo apt-get install wine
after installing "wine" you can now install and run any app windows :)
for exemple : how to install notepad++ on linux .
step 1 : install the paquet "wine"( do this instruction for one time.no need to install this to all apps ).
step 2 : then download notepad ++ on the this link http://notepad-plus-plus.org/fr/download/v6.5.2.html
step 3 :then click on left and do open this app with wine-chargeur windows ..
step 4 : now you can run your notepad++ on linux :
II_ Theorie ::
Apparently since the 1.3.25 release, major changes in the management of audio appeared; this part should be rewritten.
At this stage, the directory .wine / drive_c is still in the home of the user who installed wine (variable WINEPREFIX?).
The solution is to install Microsoft Visual C + + 2005 SP1 Redistributable Package (x86) available here .
Wine: run some Windows programs on Ubuntu
Warning! Windows applications are not designed for Ubuntu, it is natural that many of them have defects or are unusable when executed via Wine. Prefer to use applications designed for Ubuntu, see Installing software on Ubuntu .
The name Wine is a recursive acronym W ine I s N ot an E mulator ( Wine is not an emulator ). You are advised to read the complement of presentation is intended to inform you more about her.
Before you begin the installation or use of wine, make sure "your" Windows software is listed as functional (see " Supported by Wine Applications lowest ").
Note that it is possible to make a backup of your installed software via wine or playonlinux in an easily réinstallable software deb package. * On any machine, see handling this page
Prerequisites
Wine works on all x86 kernels and X86-64 (AMD64 and EM64T), including also the nuclei "generic".Preferential "target" Wine are Win32 and DirectX software.
So you will not use Wine on a PowerPC version of Ubuntu or a running on a version of Android kernel.
Installation
By the official repositories
To install Wine from the official repositories, you just have to install the package wine .
By deposits of Wine
Add the PPA ppa: ubuntu-wine/ppa 2) your software sources, reload the package list and then install the package wine (or put it up to date if it is already installed).
To install the development version: install the package wine1.7
sudo add-apt-repository ppa: ubuntu-wine/ppa-y && sudo apt-get update && sudo apt-get-y install wine1.7
For a 64-bit system
Wine is not yet possible to run 64-bit Windows applications. Information on the development of this feature can be found on wiki.winehq.org/Wine64 . To install Wine on Ubuntu 64-bit, follow exactly the same way as Ubuntu 32-bit or install. deb package available on this page .
Since the release of Ubuntu 12.10, a new version of apt and dpkg is provided and does not natively install packages provided for 32bit architecture on a 64bit system. Nevertheless it is possible to install these packages through various manipulations.
First, do some checking: Run these commands to verify that your architecture is 64-bit and requires an update.
sudo dpkg - print-architecture
The result should be
amd64
If you need to update the results of the following command should be EMPTY :
sudo dpkg - print-foreign-architectures
Then run the following command:
sudo dpkg - add-architecture i386
The previous command:
sudo dpkg - print-foreign-architectures
Should then display:
i386
You can upgrade your base package and install wine:
sudo apt-get update sudo apt-get install wine
For versions of natty, oneiric and precise run the following command:
echo "foreign-architecture i386"> / etc / dpkg.cfg.d / architectures
Rather than:
sudo dpkg - add-architecture i386
For more information, please visit the official Doc Wine for 64bit . code
Wine configuration
It is recommended to configure Wine before installing Windows programs. Simply launch the configuration window via the menu Wine Wine Wine → Applications → Configure or in a terminal :
winecfg
At first launch, Wine automatically generate folders and files required.
Then remember to click the "Audio" tab to configure an audio driver.
Then you can make individual settings.
"Applications" tab
Allows you to change settings specific to an application.
- Click "Add Application ..." (add application).
- Browse to the location of this application and select it. The drop down menu below allows you to choose the version of Windows that will be responsible for interpreting Wine. The changes you make tabs Libraries and Display also not concern the application.
"Players" tab
Can assign readers by Windows terminology.
Take the opportunity to baptize your CD-ROM if you want to use it under Wine.
- Click "Automatically detect ...".
- Click on the letter that the field "Assignment Editor" is filled with / media / cdrom or / media/cdrom0 .
- Then click "Show advanced settings" and make sure the "Type" field is CD-ROM.
While the picture:
This configuration is really necessary? In Wine 1.2 in Lucid, the CD-ROM drive is detected automatically when a disc is inserted.
"Libraries" tab
This tab allows the use of force. Dll Wine or those that the user has added itself.
"Display" tab
This tab allows you to adjust display settings with Wine.
- It is recommended to uncheck the option "Allow DirectX applications to stop the mouse leaving their window" in order to switch between windows on your desktop without any problems.
The option "Allow the window manager to decorate the windows" should be unchecked.- It is recommended to check the "Emulate a virtual desktop" box, with the resolution you normally use (eg 1280 * 1024). This trick not solve a lot of display problems. For the current screen resolution you can use:
xrandr-q | grep \ *
- For supporting the Vertex Shader, put in "Hardware" and if that does not work, turn it to "Emulation" or "None". (Vertex Shader can manage lighting, among other things, on recent games).
- The "Use Pixel Shader" option can be selected to manage the textures on recent games.
- The "Screen Resolution" option allows you to set the display resolution in DPI ( dots per inch or dots per inch).
Tab "Integration with desktop"
- The tab "Integration with desktop" will allow you to customize the appearance of Wine in the "skinnant". You can load a Windows display theme to apply to Wine. Windows themes are on your "real" Windows partition (not the one created by Wine) in C :/ Windows / Resources / Themes.You can find more information on page wine_look .
- The category "System Folders" simulates the location of folders like "My Documents" under Linux.
Normally, Windows XP, parts of the game are saved in / My Documents / Nom_du_jeu. With the game Max Payne for example, games are saved in My Documents in "Max Payne Savegames" folder. With Wine under Linux, this file is therefore in / home / user / Max Payne Savegames.
'Audio' tab

This tab is used to configure the audio settings.
- In the "Driver Selection", you can select the audio driver (ALSA, OSS , ESD, NAS ...).
First try with ALSA (especially recent programs), if it does not harm or work, try with OSS and ESD, and NAS. Check only driver at a time!
- Category "DirectSound" can solve a lot of problems in audio games.
- To ensure good sound quality, set the hardware acceleration to Complete (full) or if it does not work, Emulation (especially for games before 2002), if Standard , and select the "Driver Emulation" box.
( OSS = Open Sound System)
Tab "About"
The tab "About" learn about your version of Wine, the official website address, and license of Wine.
Where to install Wine and the programs that run?
Wine will be installed in the user directory ~ / wine. ; for example, if your username is foo , wine will be installed in / home / foo / .wine , . wine is ahidden folder .
In this folder is created a simulated disk C (called drive_c) in which it will install including API and Windows programs that you will then install. These will be placed in the "Program Files" folder.
It will also create the "Dos Devices" folder. It is used to configure the drives. You can add your other partitions with winecfg. These will be named by letters according to custom Windows.
It is this letter which will be used for all such programs to be launched later with Wine. Do not be surprised if your FAT32 partition "C:" is renamed eg "G: (/ mnt / windows)" in wine.
Move the directory Wine
The problem is that this approach will create a folder. Wine for each user, with a pseudo-Windows in each, which is a bit silly. The solution is to create a user wine as follows:
sudo adduser - home / home / wine - disabled-password - disabled-login wine
Adduser will set the home / folder / wine and wine will render the user owner.
Each Windows user programs with wine will then be added to wine group has been created automatically when the user wine. To use this Kuser in Kubuntu or "user group" menu option System> Administration in Ubuntu for example, or type the following command:
sudo adduser $ USER wine

Permissions must then be adjusted so that the wine group can read and write in this directory, ie:
sudo chmod-R ug + rw / home / wine
Each installation will also require Wine as owner:
sudo chown-R wine: wine / home / wine
And each must be exe executable (here, a program named foo, we are in the folder.):
sudo chmod ug + x zorglub.exe
Each person will then run Win32 programs. The downside is that everyone can also install! But it is necessary (The author has not managed to run a small program without this trick! So a big one!)
It only remains to set Wine for all real computer users, and indicate that the C: drive is / home / wine / .wine (explanations below) With the command winecfg.
TBD because there is no explanation below.

Can perhaps create a system user wine rather than a conventional user ... The author has no opinion on this point yet. But note that the personal file of Wine will contain your Windows programs. It may be interesting to create this folder in / home if you put / home on a separate partition. In this case, you will not need to reinstall your programs in case of problems with Ubuntu!
The File Manager Wine
You can start to test your installation with the command.
wine Winefile
Winefile
Tips and Tricks!
For a non-exhaustive list of tips and tricks for Wine, please visit the page wine_trucs_et_astuces .
Install Windows programs
Supported by Wine applications
All Windows programs will not run under Wine. Consult database applications supported by Wine . Currently in beta, yet it already supports many software for Windows and most of the latest popular video games. Sometimes some versions work and others do not (or not yet). You can also do a Google search as "progname winehq." Finally, a website is also recommended passionate about: http://www.frankscorner.org alsohttp://wine-review.blogspot.com/
Frankscorner.org ⇒ Link death

Association executable with Wine
Normally, Nautilus (the Gnome file browser) automatically associate files ". Exe" with Wine. If this is not the case for you, the association is easy: check the Nautilus right-click the file, select "Open With", add wine "exe." See you then "Open With wine ".
But beware: launch programs by this intermediate can sometimes disturb the program in question, and it can run poorly or not start. If this happens, open the program using the file that contains it as the current folder. To do this, the easiest way is to go through the console and use the following commands:
cd / path / to / your / program / wine votreprogramme.exe
Extending Nautilus, nautilus-open-terminal can be very convenient to not have to do cd / directory /every moment.
Software installation
The software installation is normally done in console as follows:
Simply by clicking on it from a Nautilus window. Find your exe. In files and double-click it.
Or, in a terminal:
wine / the / path / to / file / # # setup.exe (or install.exe)
or
wine / media / cdrom / setup.exe # # to install from a CDROM (or cdrom0 instead of cdrom) or install.exe
Caution, if installation Nautilus does not work, do not despair and try with the terminal by navigating to the folder of the executable (command and cd / the / folder /)
In case of installation problems, think make it executable (under Linux) your exe (reminder.
votreprogramme.exe chmod a + x
)Msi install.
These programs are designed to install software. Recent versions of Wine directly support this kind of installer, since Wine ships its own version of the native program installer from Microsoft. You just have to:
- You place it in the directory where mon_fichier.msi (use the cd command from the terminal, cd means: change directory, change directory).Here for example the command to type if you put the file on the desktop:
cd / home / my_login / Desktop
or following versions
cd / home / my_login / Office
- Type the following command:
msiexec / i myfile.msi
and follow the information that should be given to you by the dialog box. For conscience (that is Windows anyway) you can add the following command:
wineboot
Install inf.
It may very rarely that a program is installed via a inf, audio codecs. Particular and video!
Move with your terminal in the file inf. (with the command cd or gnome-open-terminal) and type:
wine rundll32 setupapi.dll, InstallHinfSection DefaultInstall 128. / * inf.
The star meaning "everything and anything" with the extension. Inf in that folder. So be careful if your application has multiple inf.
Uninstall Software
Very simple, open the uninstaller Applications → Wine → Uninstall Wine software or in a terminal :
wine uninstaller
Delete the entry in the wine menu
Remove the corresponding program folder name in a delete / home / user / .local / share / applications / wine / Programs /
Start a Windows program
Type ". Exe"
To launch the software installed in the wine directory, there are two possible solutions:
- Nautilus create a file association between Wine and suffixes like. exe. Then you can simply open Nautilus, navigate to the program and click on the exe file. To launch this program with Wine.
- create a launcher using the following command (note quotation marks needed).
wine "c: \ program files \ dossier_du_programme \ nom_du_programme.exe"
or also to show off a bit (if you have different facilities wine)
env WINEPREFIX = "/ home / your_login / .wine" wine "C: \ \ Program Files \ \ dossier_du_programme \ \ nom_du_programme.exe"
Finally, to visualize potential problems, you can launch the program by replacing Wine by:
wineconsole
Note that it is also possible to directly launch programs installed on the Windows disk if you are dual-boot. The order will be the same except for the letter designation of the drive to be the one you have chosen with winecfg. Make your tests start, it may be that you have good surprises, especially for free software. It is also possible, however, that software does not start on the Windows partition when it will start an installation in order with Wine.We must therefore show some perseverance.
There are also small executable programs which do not require any installation, and which consist solely of a exe file.
We then tried to right click on it, then in the dropdown menu, select " Open with Wine ".
But it does not work because it is not an exe file installation file, and is located on the desktop, or in the usual personnel file.
To solve the problem, simply move the exe file in a subdirectory of wine, such as "/ Program Files" or "/ Programs / Acessories".
Manual Wine
man wine
also provide useful information.
====
I also noticed the need to give permission to. exe! it works much better :)
# Chmod a + x / path / to / votre.exe (enter)
Support programs
Several software built from Wine aim to facilitate the installation and management of Windows programs on GNU / Linux.
PlayOnLinux: simplified management games
PlayOnLinux is a very active project that configures prefixes Wine. PlayOnLinux and simplifies the configuration of Wine by allowing you to enjoy your games on Linux.
Vineyard: a young project
Vineyard is a new project (in development since January 2010) to provide a user friendly interface to an office under Wine GNOME , and ease of installation and management of Windows software under GNU / Linux.
If the project looks promising, it is still in alpha stage.
It features a page on Launchpad .
Q4Wine: Wine KDE
A graphical management Qt programs, profiles, color definitions, CD images, etc.. Wine.
WineXS: Wine graphically control
Version 2.0 since December 2009 WineXS is a simple graphical interface that allows you to control Wine. This is the project of a fan who is not officially supported but will make services. Look for yourself.
wine control: managing applets
with the command:
control wine
This command may be useful for some applications such as IE or Quicktime explore that install applets.
Abandoned projects
Winetools: abandoned since 2006
Wine Doors: abandoned since 2009
The project Wine Doors seems abandoned since April 2009.
"Versions" Pay Wine
Of pay "versions" of Wine modified to make it simpler or more compatible exist, they are not very expensive and can sometimes avoid taking the head!
GameTree Linux
GameTree Linux is a new platform coming Cedega heiress whose service was discontinued February 28, 2011. Currently enrolling in the program developer is required to play games.
CrossOver
Products CrossOver Linux (desktop) and CrossOver Games Linux (games) are offered by the company CodeWeavers, which is responsible for much of the development of Wine.
Common Problems
Wine will not start
When Wine refuses to start writing in the terminal:
wine: Creating configuration directory '/ home /' something "/ wine. ...
Make:
sudo rm-r-d ~ /. wine / *
Wine and restart; it should now run smoothly.
Wine refuses to launch an application
When wine refuses to start an application in writing in the terminal:
preloader: Warning: failed to reserve ranks 00000000-00010000 preloader: Warning: failed to reserve ranks 00000000-00010000 preloader: Warning: failed to reserve ranks 00000000-00010000 preloader: Warning: failed to reserve ranks 00000000-00010000 preloader: Warning: failed to reserve ranks 00000000-00010000
simply run this command:
sudo sysctl-w = 0 vm.mmap_min_addr
Then open the file / etc / sysctl.conf and find this line:
vm.mmap_min_addr = 65536
and replace with:
vm.mmap_min_addr = 0
then save, delete the folder wine.:
sudo rm-R ~ /. wine
Reboot, you can finally revive Wine!
"Parse_depend_manifests" error
Wine complains about Manifest files. Example: You get this in the terminal:
fixme: actctx: parse_depend_manifests Could not find dependent assembly L "Microsoft.VC80.CRT"
The solution is to install Microsoft Visual C + + 2005 SP1 Redistributable Package (x86) available here .
Unzip an archive containing the manifest file is not enough. It must go through the official setup (winetricks ).
Font display
Add the package " msttcorefonts "to improve police.
Error "The executable file is not marked as ..."
When executable refuses to run with the error message:
The file '/ address / / exe file' is not marked as executable. If This Was downloaded or copied form an untrusted source, it May be dangerous to run. For more details, read about the executable bit.
Just add this executable performing rights.
- In graphical mode. Right click on the exe file and choose "Properties" from the context menu; click on the "Permissions" tab and check "Allow executing file as a program."
- The terminal :
chmod a + x / address / / exe file
What to programs running directly from a CDROM (small playground as Freddi installations? Files on the CD does not have right management and can not be changed .. Try to copy the contents of the CD to a temporary folder on the hard drive and try again.
Alternative without changing the file Solution: run the said file in a terminal using the "wine" command ⇒ better, make a dedicated menu, simply by using the menu "Open with other application ...", choose a custom command , type "wine" and check the "Remember this application for files" 2xécutables DOS / $ WINDOW. "Another entry appear simply called" Open with wine "... It works here on a Ubuntu 10.04.3LTS
"Install the Windows version of Mono to run. NET executables" error
When executable refuses to run with the error message:
wine: Install the Windows version of Mono to run NET executables.
You must install the Windows font character
tahoma winetricks-q gecko liberation ie8 dotnet20 MSI2 fontfix mono22 allfonts
or
sh winetricks-q gecko ie8 liberation tahoma dotnet20 MSI2 fontfix mono22 allfonts
(The command without 'sh' can give "winetricks: command not found" )
(See Appendix "winetricks" below)
No sound
From the 1.3.35 release, sound management is changing dramatically, and the transition does not always seem to occur. The more menu allows you to choose which driver to use, instead you need to modify a key to the registry. Here is the procedure:
- Run regedit in a terminal
- Go to HKEY_CURRENT_USER / Software Key Drivers / Wine /
- Put the value "alsa" without the quotes in this key (other values are possible, but this one works best under a priori Ubuntu.http://wiki.winehq.org/UsefulRegistryKeys )
- Close regedit
- Lançert winecfg
- Check that the sound card is selected in the different menus tab sound, otherwise choose
→ In principle, the sound should work
Wine is slow to start
If wine is slow in boot (several minutes) it will enter into a terminal
wineboot - update
Wine and viruses
Wine does not run in super user mode, and potential virus software can not therefore alter and damage the system. Against by default, Wine provides access to your personal files and abnormality can therefore deteriorate.
One solution is to change the system integration Wine folders by creating a specific work folder to isolate integration Wine and personal documents and delete access to the file system.
- Create a folder named Wine and subfolders Office, Pictures, Music and Videos in your user directory
mkdir-p ~ / Wine / Office ~ / Wine / Images ~ / Wine / Music ~ / Wine / Videos
- With the Wine Configuration tool:
- In the "Integration with Desktop" tab, change the "System Files" by adding / Wine after your user name;
- In the "Drives" tab, remove the drive Z: and existing drives you want to remove access to Wine;
Wine can browse the tree of directories in the file system but can not see or write files in folders that are not specified in the integration of system folders.
For more information, please visit this thread on the discussion forum: http://forum.ubuntu-fr.org/viewtopic.php?id=169230
Wine launch in full screen on a second X server
This is useful for games. The second X server allows more fluidity and fullscreen avoid you out pointer Wine full game for example.
- (Optional step) First of all, if your game can not run on your current resolution, you'll have to do a little editing / etc/X11/xorg.conf (to edit with root privileges).
Identify the "Screen" section:
Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device" DefaultDepth 24 Option "Coolbits" "1" EndSection
and duplicate it by changing the name and adding a subsection specifying resolution: example here of a configuration screen called " Wine1024 "for a resolution of 1024x768
Section "Screen" Identify "Wine1024" Monitor "Configured Monitor" Device "Configured Video Device" DefaultDepth 24 Option "Coolbits" "1" Subsection "Display" Modes "1024x768" EndSubsection EndSection
- Start a second X server with this command:
sudo X: 3-ac-terminate-screen Wine1024 &
The "
3
"means that your X server will be accessible via the key combination" Ctrl + Alt + F9 ". I remind you that " 1
"is already taken by your initial X server (Ctrl + Alt + F7), and" 2
"is avoided because the terminal" Ctrl + Alt + F8 "is already used by Ubuntu.
The option "
-screen Wine1024
"asks the X to use the resolution that was created in the previous step server. You can delete this if you skipped the previous step.- Launch your programs with the following syntax:
DISPLAY =: 3 & wine program.exe
where "
3
"is the location of your secondary X server.
Teamspeak for example (there is a native version but often malfunctioning)
DISPLAY =: 3 wine ~ / .wine / drive_c / Program \ Files/Teamspeak2_RC2/TeamSpeak.exe &
Warcraft 3 for example (it should be placed in the installation directory before)
cd ~ / .wine / drive_c / Program \ Files / Warcraft \ III / DISPLAY =: 3 wine ~ / .wine / drive_c / Program \ Files / Warcraft \ III / Frozen \ Throne.exe &
- Use "Ctrl + Alt + F7" and "Ctrl + Alt + F9" to switch between the two servers.
To simplify the launch games in another X server, it is possible to write a script that will take care of launching the second X server and then run the game in it. The second X server, in addition to the performance gain (not obvious to me), prevents the decline in desktop resolution and loss of 3D effects and transparency. There is a script is on the page for wow . One presented here provides more management Wine profiles when using PlayOnLinux, detecting the X server because if the X server is already running, this will cause an error to attempt to restart it. And finally stopping the X server if it does not make itself, which can be the case if the start of the game fails.
# / Bin / bash # Enter below the name preceded by the absolute path to the executable of the game Full_path = "/ home / USER / .PlayOnLinux / wineprefix / PREFIX / drive_c / PATH OF GAME / EXECUTABLE.exe" # # # # Replace the potential ~ / home / USER to avoid error wine Full_path = $ (echo $ full_path | sed-e "s | ~ | $ HOME | g") # Calculate the number of / in the path to the executable parser NBS = $ (echo $ full_path | grep-o "/" | wc-l) # Jeu_path (Isole executable file by deleting the name of the executable) JEU_PATH = $ (echo $ full_path | cut-d /-f - $ NBS) # WINEPREFIX (Isole folder name in wineprefix, assuming it to be in home) WINEPREFIX = $ (echo $ full_path | cut-d /-f -6) # Exe (Isole the executable name only) EXE = $ (echo $ full_path | cut-d /-f `expr $ NBS + 1` -) echo "= $ full_path full_path" echo "= $ JEU_PATH JEU_PATH" echo "WINEPREFIX = $ WINEPREFIX" echo "EXE = $ EXE" sudo echo "Starting the Game" # This first sudo serves no other avoiding it then asks on larger orders export JEU_PATH # Installation Path if (ps-e | grep "tty8!"); then # Check the existence of the second X server sudo X: 3-ac-terminate & # Launches a new X server display 3 (Only if it is not already running) fi sleep 1 # Wait one second that the server is ready export WINEPREFIX # Use the profile to set specific wine cd "$ {JEU_PATH}" # Target the game directory DISPLAY =: 3 # Run xclock xclock & in the X server on hold while starting the game (Otherwise it may close prematurely) DISPLAY =: 3 = WINEDEBUG-all ck-launch-session wine $ EXE # Starts the game with Wine xclock xclock # pkill Stop to exit the X server sleep 5 # Wait 5 seconds of the X Server if (ps-e | grep "tty8"); then # If it does not stop sudo kill $ (ps-e | grep "tty8" | cut-f 1-d '') # Stop the second X server fi
The error sour That Make your X server is running and $ DISPLAY is set That Correctly. met to launch a second X server is linked to the argument-terminate X. The server shuts down before the game n ' had time to start. In this script, xclock is to wait the X server when starting the game Problem encountered with the higher versions Wine 1.1.33
if you do not have a sound, consider add your user to the group "audio":
sudo adduser <user> audio
This will require a reboot to be fully functional.
If you still have no sound in the second X server, you can try the argument ck-launch-session at the launch of the game, which could solve the problem.
DISPLAY =: 3 = WINEDEBUG-all ck-launch-session wine EXECUTABLE_JEU.exe
If the shortcut disappeared from the Applications menu ...
When you edit the menus (right click, edit the menus): if the wine menu is removed from the Applications menu instead of the shoot, it deletes the entry.
To recover, you must:
- go to ~ / .config / menu
- applications.menu edit the file.
- there is a <deleted> followed by "wine" entry.
- Just delete the <deleted> to find the wine menu.
Tag :
Tuto,