Showing posts with label CentOS. Show all posts
Showing posts with label CentOS. Show all posts

Jan 10, 2013

Access a windows share from CentOS

Sometimes Linux users wants to connect to a windows share and copy something from it. To do this, we have two options. One is to use the graphical user interface (GUI). The second option is to use the terminal or the command line. Both of these have there own good and bad.

What ever the method is, you need to install two packages to do this task. Those are "samba-client" and "samba-common". You can use yum to install those packages.

If you want to access '\\host\folder' Windows share from the command line, do it like this.

smbclient //host/folder -U username

if it prompt something like this "smb:\>", you have successfully connected to the share folder. Then type help to get more information.

If you want to access the same folder via the GUI, you need to open a nautilus window and type;


Then it will prompt you to give the doman/workgroup and the password. If those are correct you can use the windows share successfully.

Jan 3, 2013

Set proxy settings on Linux systems

If a system is connected to the internet via a proxy server, we need to give those information to the system. To do that, can use ' /etc/environment ' file to set system wide proxy settings.

You just need to add the proxy server IP or the domain name and the port number.

if you need to avoid some hosts going through the proxy server you need to add this;

Some software products refer to the upper case of those variables therefore it is better to use the upper case copy of the same settings.

Event though you add proxy settings in this, some tools like apt-get will not work. In such a case you need to refer the configurations guide of that tool.
You can set user specific proxy settings by settings those environment variables in '~/.bash_profile' file.

Apr 22, 2012

xhost error in Oracle 11g on CentOS

I try to install Oracle 11g database on CentOS 5.

There was an error saying
" Checking monitor: must be configured to display at least 256 colors
>>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<< "

I try all the xhost configurations and those things work fine. Then I restart my computer.

After I restart the computer I logedin as "Oracle" user. Then I re-try the ./ Finally it works.

Initially I login to the system as some one else and use "su - oracle" to change the user on the terminal.

As the solution,
First you should check the login user name. It should "oracle".
If it is oracle user, then try other things like xhost configurations.