Wednesday, March 7, 2012

Running Photoshop CS4 - CS5 with Wine on Ubuntu

You need ms fonts installed first


sudo apt-get install ttf-mscorefonts-installer



From Nautilus - View -Show Hidden

then go to /home/username/.wine/

edit user.reg

find this "UserPreferenceMask"=hex:10,00,02,80

and replace from this line and above with this

WINE REGISTRY Version 2
;; All keys relative to \\User\\S-1-5-4

[AppEvents\\Schemes\\Apps\\Explorer\\Navigating\\.Current] 1249917684
@=""

[Console] 1252956930
"CursorSize"=dword:00000019
"CursorVisible"=dword:00000001
"EditionMode"=dword:00000000
"ExitOnDie"=dword:00000001
"FaceName"="Courier\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"FontSize"=dword:000d0008
"FontWeight"=dword:00000000
"HistoryBufferSize"=dword:00000032
"HistoryNoDup"=dword:00000000
"MenuMask"=dword:00000000
"QuickEdit"=dword:00000000
"ScreenBufferSize"=dword:00190050
"ScreenColors"=dword:0000000f
"WindowSize"=dword:00190050

[Control Panel\\Colors] 1254317519
"ActiveBorder"="212 208 200"
"ActiveTitle"="94 129 188"
"AppWorkSpace"="128 128 128"
"Background"="16 26 38"
"ButtonAlternateFace"="181 181 181"
"ButtonDkShadow"="133 135 140"
"ButtonFace"="235 233 237"
"ButtonHilight"="255 255 255"
"ButtonLight"="220 223 228"
"ButtonShadow"="167 166 170"
"ButtonText"="0 0 0"
"GradientActiveTitle"="112 177 235"
"GradientInactiveTitle"="131 183 227"
"GrayText"="167 166 170"
"Hilight"="94 129 188"
"HilightText"="255 255 255"
"HotTrackingColor"="0 0 128"
"InactiveBorder"="212 208 200"
"InactiveTitle"="111 161 217"
"InactiveTitleText"="255 255 255"
"InfoText"="0 0 0"
"InfoWindow"="255 255 225"
"Menu"="255 255 255"
"MenuBar"="235 233 237"
"MenuHilight"="94 129 188"
"MenuText"="0 0 0"
"Scrollbar"="212 208 200"
"TitleText"="255 255 255"
"Window"="255 255 255"
"WindowFrame"="0 0 0"
"WindowText"="0 0 0"

[Control Panel\\Desktop] 1254316497
"DragFullWindows"="0"
"FontSmoothing"="2"
"FontSmoothingGamma"=dword:00000578
"FontSmoothingOrientation"=dword:00000001
"FontSmoothingType"=dword:00000002
"LowPowerActive"="0"
"MenuShowDelay"="400"
"SmoothScroll"=hex:00,00,00,00
"UserPreferenceMask"=hex:10,00,02,80


Save and close.

now you have antialiasing on menu and some other boxes only!

lets fix it all!!!

You have to download Tahoma fonts from here

Unzip and copy the to font files to /home/username/.wine/drive_c/windows/Fonts

Photoshop CS4 Portable


Photoshop CS5 Portable


Unrar it where ever you want to run, it runs direct without install.

then download from here

gdiplus.dll and copy it to system32 folder as root (in terminal : sudo nautilus) and go to home/yourusername/.wine/dosdevices/c:/windows/system32

Download fix for Type tool from here

and copy it to system32 this one too!

then from Application-Wine-Configure Wine go Applications and add the exe file of photoshop, then select it go to Libraries and select gdiplus.dll, when you select it press Add and Ok.

you are ready .. execute Photoshop.exe from unziped folder and work!!

ps. Always need latest wine version!


Adobe Photoshop CS5 and 10.04:)



Ok, its easy with portable again!! always with latest wine!

Download From here CS5 portable

If you have error when execute the file , right click - properties - pemissions Tab
and click Execute - Allow Executing file as program

double click to execute now.

follow the installation instructions and install it on c:\program files\

and

you have to add in .wine\drive_c\windows\system32 this fix file for type tool like CS4 :)

This version doesnt need to accept the license agreement runs directly!

Gdiplus.dll no more needed with latest wine.

Enjoy latest Photoshop:)


Sources:
http://ubuntudoitall.blogspot.com/2009/09/running-photoshop-cs4-with-wine-finally.html

http://ubuntudoitall.blogspot.com/2009/09/wine-with-full-antialiasing.html

http://ubuntudoitall.blogspot.com/2010/05/adobe-photoshop-cs5-and-1004.html 


Perfect guide on wine
http://appdb.winehq.org/objectManager.php?sClass=version&iId=20158&iTestingId=71572



 

Saturday, March 3, 2012

Boot to text mode in Ubuntu


Installing the GUI will probably cause it to start automatically, but it's very easy to boot to text mode in Ubuntu. Just open /etc/default/grub as root and add text to the
GRUB_CMDLINE_LINUX_DEFAULT=
line. Then run:
sudo update-grub
Your system will then always boot to text mode.
If you want to boot to the GUI, just press e in the boot menu and remove text from the kernel line.
If you want to start the GUI after boot, just run:
sudo /etc/init.d/lightdm start

Source: http://askubuntu.com/questions/74645/possible-to-install-ubuntu-desktop-and-then-boot-to-no-gui

Friday, February 24, 2012

Ubuntu Networking Configuration Using Command Line

The basics for any network based on *nix hosts is the Transport Control Protocol/ Internet Protocol (TCP/IP) combination of three protocols. This combination consists of the Internet Protocol (IP),Transport Control Protocol (TCP), and Universal Datagram Protocol (UDP).
By Default most of the users configure their network card during the installation of Ubuntu. You can however, use the ifconfig command at the shell prompt or Ubuntu’s graphical network configuration tools, such as network-admin, to edit your system’s network device information or to add or remove network devices on your system
Configure Network Interface Using Command-Line
You can configure a network interface from the command line using the networking utilities. You configure your network client hosts with the command line by using commands to change your current settings or by editing a number of system files.
Configuring DHCP address for your network card
If you want to configure DHCP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card
sudo vi /etc/network/interfaces
Note :- Use vi editor if you don’t have GUI installed
If you have GUI use the following command
gksudo gedit /etc/network/interfaces
# The primary network interface - use DHCP to find our address
auto eth0
iface eth0 inet dhcp



Source : http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html

Saturday, February 18, 2012

Mounting Linux Partitions in Ubuntu

  • sudo cp /etc/fstab /etc/fstab_backup 
  • sudo nano /etc/fstab 
  • UUID=d1d0cf46-958f-4a12-a604-0ac66040648b /storage ext4 defaults 0 0
  • sudo mount -a
  • sudo chown -R jessica:jessica /storage
  • sudo chmod -R 755 /storage 

Source: http://www.psychocats.net/ubuntu/mountlinux

Sunday, December 18, 2011

Change User/Group Attributes to a File

It's very simple.

For User:
chown username filename
chown username directoryname

Recursively:
chown -R username directoryname

For Group:
chgrp groupname filename
chgrp groupname directoryname

Recursively:
chgrp -R groupname directoryname

-----
Change groupname and username at the same time.
chown username:groupname filename
Change username and groupname at the same time recursively.
chown -R username:groupname directoryname

Source: http://www.mysysad.com/2006/09/change-group-attributes-to-file.html

Monday, October 31, 2011

Restore Panels In Ubuntu Back To Their Default Settings

Messed up your panels in Gnome? Maybe your new to Ubuntu and accidentally deleted items or the panel itself and now you can't figure out how to get it back.

Once the Terminal window opens, enter the following command at the prompt:

gconftool-2 --shutdown

(Note: There should be no spaces between the two dashes before shutdown.)

EDIT – there is another method instead of shutting down gconfd. Instead use the following command.

gconftool --recursive-unset /apps/panel

(Remember: There should be no spaces between the two dashes before shutdown.)

Then enter the next command:

rm -rf ~/.gconf/apps/panel

And enter one more command:

pkill gnome-panel


Both top and bottom panels will appear (if missing) with their default settings. Now you can customize them to your preference and get on with using Ubuntu.

NOTE: This method will work in Gutsy Gibbon (7.10) and Hardy Heron (8.04) version of Ubuntu.

Wednesday, October 19, 2011

Skype video with Ubuntu

How to launch Skype + V4L2 directly from Gnome menus so that the webcam works:
Menu System --> Preferences --> Main Menu
In the window select Internet, then Skype
Click on [Properties] button
In Command enter:
bash -c 'export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so; skype'

http://ubuntuforums.org/showthread.php?t=966882&page=3

https://wiki.ubuntu.com/SkypeWebCams