Posts filed under 'Linux'

Configuring Ubuntu with MS ISA Server

Configuring Ubuntu with MS ISA Server

Did you try one day to update your ubuntu using “Update Manager” or using “Synaptic Package Manager” and you encounter the following tedious message:

“407 Proxy Authentication Required “

or:

“Could not connect to [Server Name]:[Server_Port] [(Server IP address)] . – connect (111 Connection refused)”

or even like this one:

“W: Failed to fetch http://[URL] Could not connect to [Server Name]:[Server_Port] [(Server IP address)]. – connect (111 Connection refused) [IP]”

Do you know why ?!

This happened because you are trying to connect to a server behind your ISA server or firewall. Hmm! Yes, this is right, so what is the solution.

Show appreciation to “NTLMAPS” since it will solve your dilemma. Then, attempt the following few steps carefully please:

Download NTLMAPS from http://ntlmaps.sourceforge.net/ which it is aproxy software that allows you to authenticate via an MS Proxy Server using the proprietary NTLM protocol, and take care from its dependency and system requirements to download them too like python language interpreter version 1.5.2 or higher. See www.python.org .for more information.

Setup the package downloaded through command

$: sudo dpkg -i ntlmaps_[version_number]_all.deb

Then you will be prompted to input the following data :

  1. Listen Port

    5865

    Parent Proxy

    Your.proxy.com (e.g. enter the name or address of your proxy, do not enter the port as “your.proxy.com:number” as this will be taken care of in the next step)

    Parent Proxy Port

    port_number (usually 8080 OR 80)

    NT Windows Domain

    domain_name (your domain)

    NT Windows User Name

    user_name (the user name you will authenticate with)

    NT Windows Password

    password (the password you will use to authenticate with the ISA Proxy)

  2. Now let all connection mount to “NTLMAPS” by opening System → Prefernces → Network Proxy and select “Manual Proxy Configuration” then let your HTTP Proxy : 127.0.0.1 and Port : 5865.
  3. Afterwards, open System → Administration → Synaptic Package Manager → Settings → Preferences → Network and attempt the last step again for HTTP proxy, but don’t provide your user name or password; because you already told NTLMAPS about it in step 3.
  4. Now create a file called “proxy” under /etc/apt/apt.conf.d and paste the following code inside “Acquire::http:proxy “http://127.0.0.1:5865/“;”
  5. Well, we can now control the NTLMAPS to either start, stop or restart. Restart the NTLMAPS .Open the terminal and write: $ sudo /etc/init.d/ntlmaps restart To restart the NTLMAPS service For now, we just need to restartthe NTLMPS so that the changes we have done to take effects. For later use, if you need to start the NTLMPS service write: $ sudo /etc/init.d/ntlmaps start If you need to stop the NTLMPS service write:$ sudo /etc/init.d/ntlmaps stop
  6. If you need to reconfigure your NTLMAPS settings, like your windows NT user name or password, just open the terminal and write:$ sudo dpkg-reconfigure ntlmapsand re-enter any data that had been changed.Now, I can say “congratulations” to you.

You can now successfully install any updates for your ubuntu while youare working behind MS ISA server or firewall and your ubuntu will work like the charm :)

1 comment 9 February 2009

Sound Problem with Dell Inspiron 1525 in Ubuntu

Sound Problem with Dell Inspiron 1525 in Ubuntu

Hi all:

You may notice a tedious sound problem with Dell Inspiron 1525 under Ubuntu, the sound of the laptop is too low or you may be feel that the sound doesn’t work primarily.

Don’t be worry, I have the key that will solve your problem and get you rid off this silly issue in your laptop. Attempt the following instructions:

Open the terminal and write:

$ alsamixer

The master volume switches will be opened, use the arrow keys (right, and left) to traverse through volume switches and make sure that all of them are 100% by using the arrow Up key.

Hope It works.

2 comments 24 November 2008

ubuntu problem with Java GUI applications

You may encounter a serious problem in ubuntu while trying to launch 3D games or launch Java GUI applications like swing or awt.

The error logs looks like following:

Locking assertion failure. Backtrace:

#0 /usr/lib/libxcb-xlib.so.0 [0xb53cb767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0×31) [0xb53cb8b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb54151bd]

and  much more…….

The solve of the problem is very easy, just type this command in ubuntu:

$ sudo sed -i ’s/XINERAMA/FAKEEXTN/g’ /usr/lib/jvm/java-6-sun-1.6.0.05/jre/lib/i386/xawt/libmawt.so

You may installed another version of Java like java-1.5.0-sun-1.5.0.15, so you have to substitute it in the comand above.

Also you may run your swing programs and encounter just grey frame or box, all you have to do is to attempt the following small instruction:-

in /etc/environment

Open the termminal:

$ sudo -s

$ gedit /etc/environment

add:

AWT_TOOLKIT=”MToolkit”

Save, exit and login again.

Good Day With Eclipse :) .

4 comments 4 July 2008

installing netbeans in ubuntu

The major issue you may encounter while installing netbeans in ubuntu is enabling the visual effect while the installation process.

The error message will be as :

/usr/share/themes/Glossy/gtk-2.0/gtkrc:35: error: lexical error or unexpected token, expected valid token

All you have to do is to just disable the visual effect and try installation again.

Attempt the following instructions from the netbeans wiki page:

Introduction

The guide will cover installation of the Java(TM) Development Kit 6.0 and NetBeans 6.0 on Ubuntu 7.10 code name Gutsy Gibbon release. Before commencing download NetBeans 6.0 to your desktop.

Steps To Reproduce

Installing JDK 6.0

Fortunately installing the Java(TM) Development Kit on Ubuntu is a breeze!

1. Ensure your repository’s are up-to-date. In the Terminal (found in Applications>Accessories Menu on GNOME desktop):

$sudo apt-get update

2. Install the JDK 6.0 and Java-plugin for Firefox using the terminal:

$sudo apt-get install sun-java6-jdk sun-java6-plugin

*Note this will take a while depending on your connection speed.

Update Java(TM) Alternatives

3. Update the Java(TM) alternatives so Suns virtual machines is the default:-

sudo update-java-alternatives -s java-6-sun

4. Open the jvm file located at /etc/jvm:-

gksudo gedit /etc/jvm

5. Now add the line “/usr/lib/jvm/java-6-sun” to the top of the entries, then save and exit. The file should look something like this below:-

/usr/lib/jvm/java-6-sun
/usr/lib/jvm/java-gcj
/usr

This step ensures that the Sun JVM is the default JVM used by NetBeans.

Check The Java(TM) Environment

6. You can check the Java(TM) Environment has been installed and set up correctly by doing the following command in the terminal:

java -version

If all is well the output from the above command should be similar to below:-

java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

Installing NetBeans 6.0

Use the NetBeans installer you downloaded earlier to your desktop to install NetBeans 6.0. Depending on the version of NetBeans downloaded will depend on your file name! Open a terminal and change directory to the desktop:

cd Desktop

Check your file name is present by issuing a list command:-

ls -l

Still in the same terminal install Netbeans 6.0:

sudo ./netbeans-6.0-javaee-linux.sh

Now a dialogue box will pop up asking for your preferred options. When the options are presented for your NetBeans install location /opt is usually a good place, and the same goes for the server (if you installed the J2EE bundled version that is). If in doubt see the images below!

If you see a blank grey window after running the netbeans installer shell script and see the following message:

/usr/share/themes/Glossy/gtk-2.0/gtkrc:35: error: lexical error or unexpected token, expected valid token

This is a problem involving visual effects. Temporarily disable them in Gnome by going to System :: Preferences :: Appearance :: Visual Effects, and selecting none. You will still see the error message but a installation wizard will appear and you will be able to install Netbeans.

  • Enter your preferences

netbeansLocation.png

  • Server Location

netbeansServerLocation.png

When all has been done hit “install” and then wait for a while and finally click the “finish” button. To run NetBeans either run from your /opt/netbeans6.0/bin directory or create a menu link using the “Main Menu” tool in Ubuntu (System>Preferences>Main Menu).

Look And Feel

You may notice that NetBeans 6.0 implements a GTK interface to integrate into your current GNOME desktop, however there are some things that aren’t quite right yet, such as the drop down menus button and most importantly the overall speed. If you want to change the theme back to the Java(TM) cross-platform look and feel see Netbeans Hacks.

Good Luck & Best Regards :)

1 comment 30 June 2008

How to mount NTFS drive in ubuntu

How to mount windows NTFS drives in ubuntu ?

When you upgrade from ubuntu 7.10 to ubuntu 8.04, you may encounter the following issue while trying to access your ntfs windows partitions, or it may be because windows has been shut down incorrectly.

The key answer of this problem is much easy, all you have to do is to force mounting all partitions.

Open the terminal and write:

$ sudo mount -a -o force

By using this command, you will force all unmounted partitions drivers, but isn’t as clean as letting windows remount and unmount it properly by restarting and shutting down windows.

Have fun :)

Add comment 9 June 2008

Displaying mht files in ubuntu

Peace be upon you.

I will guide you how to view or display mht files in linux specially in ubuntu. I just would like to mention that MHT is the format used by Internet Explorer to save a web / HTML page into a single file (or ‘web archive’) rather than creating an HTML text file plus a separate folder containing all of the page’s images and other media.

It is not a Microsoft format (nor is it proprietary). It’s actually based on an IETF RFC standard.

Steps to get .mht files to open in Firefox on Ubuntu

1. Download the MAF extension.
RIGHT-click the following link and choose ‘Save link As…’ to save the MAF extension to your Desktop. Don’t left-click the link directly, or it will try to install itself into Firefox straight away (which won’t work).

Right-click and save >> maf-0.6.3.xpi

2. Patch the extension to make it compatible with version 2.x (or 3.x) of Firefox.
Click on the .xpi file to open it. It should automatically open in File Roller (the archive manager). Once opened, you’ll see several files and folders inside the .xpi file. Right-click on the ‘install.rdf‘ file and extract it to your Desktop.

Open the .rdf file in a text editor and look for the line that says: <em:maxVersion>1.5</em:maxVersion>“.

Change the value from 1.5 to 2.5 (or 3.5) and then save the file. Now add the edited install.rdf file back into the .xpi file (either use File Roller’s ‘Add Files‘ toolbar button, or just drag the file and drop it onto the open File Roller window). Close the File Roller window and then click on the maf-0.6.3.xpi again to re-open it. Click on the install.rdf file, and check that the version number change that you just made has been successfully retained.

3. Install the modified extension.
Now install the MAF extension, by dragging the maf-0.6.3.xpi file onto an open Firefox window. Once it’s installed, re-start Firefox.

4. Associate .mht files with Firefox
Right-click on an .mht file and select ‘Properties’ and go to the ‘Open With’ tab. Click the ‘Add’ button and select ‘Firefox Web Browser’ from the list of programs that appears. Press the Add button again and close the dialog.

Restart X (if necessary) by pressing: Ctrl + Alt + Backspace.

Ref : Ubuntu Forums

Have fun :) .

7 comments 19 May 2008

Learning Linux For Beginners 3

Peace to you all.

I will resume a lot of good commands you may encounter while you learn linux.

To configure Network Connection
Start -> System -> Network -> [Adjust your configuration] -> File ->Save – > [activate]

To change Language Layout to add arabic functionality (for instance, of course you can add any language you use):
Control Center -> Regional & Accessibilty -> Keyboard Layout -> Enable Keyboard Layout -> (Add Arabic)

To Search for software download:
Write in the terminal: -> yum list *softwarename*

To Download Software Repository for fedora:

http://rpm.livna.org/rlowiki/

To get the IP addresses information:
$ /sbin/ifconfig

To download using Terminal:
$ wget URL
to resume download:
$ wget – c URL

Good Terminals Commands:
ls -> list files in the directory

To list all running processes:
$ ps

To list all running processes with details:
$ ps -All

To get the top processes currently running in the system:
$ top

To kill a process:
Get the process PID from the previous command then write-> kill [PID]

or

killall -9 [process name or PID]

To run the binary file:
./FileName.bin

To get the Java Version:
$ java -version

To get the current location:
$ pwd

Add comment 17 May 2008

aMule Server List

Peace be upon you all.

When you install aMule in ubuntu for the first time, you may encounter the following issue while trying to connect:

no valid servers found in server list

The solve of the problem is so easy.

To overcome the problem, attempt the following operations:-

  1. Open the network tab in the aMule.
  2. In the ed2k tab paste the following URL in the servers textbox under the ed2k label: http://www.gruk.org/server.met.gz (Of course any valid URL you can supply, but I used this URL as an example of a valid URL I used before)
  3. Reconnect and have fun :)

Hope to hear from you soon and know your opinion & comments.

Add comment 15 May 2008

ubuntu audio converter

Peace be upon you.

I will learn you how to convert audio files in ubuntu. Sometimes, you download some videos from youtube as .flv files, and you necessarily need to convert them to mp3, wav or even ogg files.

Follow this terminal operations for installing sound converter program in ubuntu.

$ sudo aptitude install soundconverter
$ sudo aptitude install gstreamer0.10-plugins-ugly-multiverse

After finishing installation process, open Applications -> Sound & Video – > Sound Converter

Browse to the file you want to convert, open Edit -> Preferences then select the format you want to convert to, then have fun :)

I hope to hear your opinions.
Salam.

1 comment 14 May 2008

Creating and accessing SVN repositories over HTTP

Creating and accessing SVN repositories over HTTP

To network your repository over HTTP, you basically need some components, the apache server running in your system and also mod_dav_svn.

To get the mod_dav_svn:
$ yum install mod_dav_svn.i386

To create the repository in which it will hold your projects:
$ svnadmin create /home/work/svn/project1/
then create the folder that holds your project.

Open the httpd.conf and add the following lines of code:

<Location /svn>
DAV svn
SVNParentPath /home/work/svn/project1/
AuthType Basic
AuthName “Subversion Repository Authentication”
AuthUserFile /home/work/svn/project1/-auth-file
Require valid-user
</Location>

Switch to the terminal and add the following commands in order to grant access to specific users only and not anonymously:

$ htpasswd -cm /home/work/svn/project1/-auth-file harry
[password] : *********
[Retype – password] : *********

$ htpasswd /home/work/svn/project1-auth-file -m sally
New password: *******
Re-type new password: *******
Adding password for user sally
$
Start apache server
$ /etc/init.d/httpd start
Change the folder permission to allow the apache user to read and write in the repository:
$ chown apache.apache -R /home/work/svn/
Switch to eclipse to access your project remotely through http:
Windows – > Show Perspective – > Other – > SVN
In the SVN windows:
New Repository location -> [Enter URL] it should be http://127.0.0.1/svn/project1
Enter your username and password associated in the authorization file.
Right Click -> Check out repository.

Enjoy :)

Hope to hear from you.

Add comment 11 May 2008

Linux Flash Player

Linux Flash Player

Peace be upon you.

If you need to run swf files or either flash movies generally under linux, you should install a flash player accordingly. Gnash is a free Flash movie player, which works either standalone, or as plugin for Firefox/Mozilla or Konqueror. Currently it is in a alpha state. The plugins are under heavy development at this time.

Gnash supports the majority of Flash opcodes up to SWF version 7, and a wide sampling of ActionScript classes for SWF version 8.5. All the core ones are implemented, and many of the newer ones work, but may be missing some of their methods.

Included in the Gnash is an XML based messaging system, as specified in the Flash specification. This lets a flash movie communicate over a TCP/IP socket, and parse the incoming XML message. This lets a movie be a remote control for other devices or applications.

This package includes the standalone GTK+-based OpenGL player.

To install Gnash in Fedora :-

  • Open terminal
  • Change your permission to be root, write su
  • Then write : yum install gnash

To install Gnash in ubuntu :-

  • Open terminal
  • Change your permission to be root, write sudo -s
  • Then write : sudo apt-get install gnash

Homepage: http://www.gnu.org/software/gnash/

Have fun.

Add comment 7 May 2008

Previous Posts


Calendar

December 2009
S M T W T F S
« Nov    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Posts by Month

Posts by Category