Server :: Activate Aliases From A Script?

Jan 17, 2010

I wrote a small script :

#cat myscript.sh
NEWFILE=dojas.sh
touch $NEWFILE

in that script I create some alias commands an pipe them to a new shell script (called dojas.sh) however after execution of that script , I do not see the aliases jan1 and jan2 in my terminal. Even if I execute the dojas.sh srcipt manually , I do not see the aliases in the alias output of my terminal. The only way I can make the aliases active is do the following : cat dojas.sh copy and paste the alias rules, and they are active in my session. How can I make sure that I can activate aliases and they are active in my terminal from a script ?

Note : I am not interested in .bashrc file, I want them to be active in my current session.

View 5 Replies


ADVERTISEMENT

Ubuntu :: How To Activate Bash Aliases In Lucid

May 16, 2010

So I checked the /etc/bash.bashrc file and it doesn't have the
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

I expected it to. So I checked the The /usr/share/base-files, and there it is. Problem is, it isn't part of the system wide bash, or is it? How do I activate the bash_aliases in Lucid Lynx?
Quick un-related question. Is ./ = /.??

View 2 Replies View Related

Software :: Aliases - Using /etc/aliases - Does Not Get Routed To My Email

Apr 1, 2009

I am able to send a mail message to myself from a server without any problem...

But after I have updated /etc/aliases and added the line for all of root's mail to be routed to me....

Added:
root: myemail@company.com

and ran newaliases to implement it....

If I send a mail message to root, it does not get routed to my email...

View 3 Replies View Related

Server :: Of FQDNs - Sendmail - And Apache VirtualHost Server Aliases

Feb 26, 2011

I'm setting up a full server configuration on Fedora, moving it from Mandriva which sadly faces a rather uncertain future. Things are going well and I will be ready (and more familiar with Fedora) in time to upgrade to Fedora 15.

What I have done so far in regard to networking setup:

I first removed Network Manager and replaced it with the network service (chkconfig --level 25 network on). That put an end to the overwriting of /etc/hosts, which now reads simply:

View 2 Replies View Related

Server :: Create New /etc/aliases For Postfix?

Jun 2, 2011

I have /var on it's own partition. Should i direct mail, in /etc/alises, sent to root to my normal local user or will /var end up getting filled up with mail, if i do that?Also:I went on the forums for dynDNS.com, explaining that i was setting up a network that includes a web server and a mail server. They rightly pointed out that i only needed to set up a DNS A record for webserver.dyndns.org. The mail server would be located by this DNS A record, as both machines share the same external I.P address(the external I.P of my ADSL router). So my mail addresses could be me@webserver.dyndns.org. So both machines would be reachable with the same DNS A record, and port-forwarding on my ADSL router would determine which host got which requests. That's what they said i should do for my scenario.
Bearing this in mind what should the values of $myhostname, $mydomain, $mydestination and $myorigin be?

My current thoughts, on the simplest way to do this, are:If $myhostname is mailserver.webserver.dyndns.org, then $myorigin can be webserver.dyndns.org, then $mydomain is webserver.dyndns.org and $mydestination has it's DEFAULT setting(mydestination = $myhostname localhost.$mydomain localhost).This the simplest workable approach right?, if not what are the best values for these parameters?.Also I have /var on it's own partition. Should i direct mail, in /etc/alises, sent to root to my normal local user or will /var end up getting filled up with mail, if i do that?

View 1 Replies View Related

Server :: Send Main Aliases Security

May 6, 2010

I have a sendmail server in my compani and I have a aliase that send one email for every employee but there are people that is not employee sending mail for this aliase and I need to avoid it some one have to do that.

View 10 Replies View Related

Server :: Sendmail - Trusted-users Or Aliases ?

Jul 27, 2011

For a project that I have been assigned to, I need to send emails to a business partner(business_partner.com) from one production server. However, my emails neither reach their destination nor bounce back to me.

Working with our business partner's IT support, the following error was discovered in their maillogs:

Quote:

Further analysis by my IT support shows that emails are successfully sent out ("Message accepted for delivery"):

Quote:

The app I coded is not using a public internet email address (e.g. me@hidden_domain_name.com) to send these notifications.

Instead, it uses an intranet email address (the server's where my code resides: user_name@servername.hidden_domain_name.com).

We created an alias but it made no change. Would adding my public internet email address to "trusted-users" file (we use sendmail)

View 3 Replies View Related

CentOS 5 Server :: Configuring Email Aliases Per Domain?

May 13, 2009

I've got a server with several different virtual hosts on them, e.g. host1.com, host2.com, host3.com.

Is there a way I can set up an email alias just for an individual domain?

e.g. I want to set up help@host2.com, but not to have help@host1.com or help@host3.com.

I can't see how to do this in the /etc/aliases file...

View 2 Replies View Related

Server :: How To Activate Rhn Support

Aug 25, 2009

After install rhel 5.1 is there any way to activate rhn support.because at the time of insatalltion have choosed i will do it later.
now i have to take the updates from redhat server.

View 1 Replies View Related

Slackware :: How To Activate Ssh Server

Jan 10, 2010

I have installed Slackware13, it is awesome.but I have couple of issues,I need to install adobe flash plugins to my firefox browser, the automatic install option failed for no reason and gave me manual option. I have downloaded tar extension file and don't know what to do next.

My package update manager is not working when I choose that option, it says smart manager need to be installed, not sure how it install it.while installing what kind of packages I can select for slackware e.g debian type, rpm type etc.How to activate ssh server?

View 9 Replies View Related

Server :: Any Way To Activate SSL On Apache Without Reinstall

May 6, 2009

I have installed apache on my linux server successfully but just found out that i needed to secure my apache server with SSL. When installing apache I didn't do this line:

./configure
--prefix=/srv/webserver/apache2
--enable-ssl <------------------------ didnt do this line

My installation does not have the mod_ssl. How do I activate the SSL on my apache without having to install it all over again?

View 6 Replies View Related

Server :: Virtual Postfix - Mysql And Virtual Aliases ?

Oct 14, 2010

I've got a working Virtual Postfix server running with mysql doing user authentication. I have a support email address set as support@hostname.com, which has 5 aliases associated; user1, user2, user3, user4, and user5. When an email is sent to support@hostname.com, all 5 users receive the email, just as planned. What I'm looking to do is when an email is sent to support@hostname.com to have it rotate through the members of the alias group. That way all members of the group get support emails evenly and not everybody all at once. Is this possible?

View 4 Replies View Related

Ubuntu :: How To Activate Automount On Server Edition

Feb 26, 2010

I have a machine running karmic server and it will not let me mount a USB drive unless I go throught the terminal process of mounting the drive. How to activate automount on a server edition. My workstations do it automatically, why can't my server?

View 9 Replies View Related

Ubuntu Security :: Can't Seem To Activate The Openvpn Server In The Gui?

Aug 4, 2010

I installed OpenVPN and gadmin-openvpn-server from the repos and I can't seem to activate the openvpn server in the gui. I have the server certificate generated, and all the information on encryption protocols setup, and accounts named and ready, despite accounts that were already there, such as www-data, bind, ossec, etc being listed. The server log states:

PLUGIN_INIT: could not load plugin shared object /usr/lib/openvpn-pam-auth.so: /usr/lib/openvpn/openvpn-pam-auth.so: cannot open shared object file: No such file or directory.

View 5 Replies View Related

Server :: 10.04 Amd64 Activate - Could Not Open Display - Exiting

Feb 9, 2011

I want to install MATLAB 2009 on a ubuntu server 10.04 amd64 which has NOT any gui. The installation was successful however when it comes to activate, it says "Could not open display. Exiting.". Here is what I did:

1- ssh -X user@server
2- verified that I can see "xclock" and "xcalc". Yes I can see...
3- cd /mnt ; ./install
4- I can see the GUI wizard since the X11 forward is working. Installation done successfully.
5- cd /opt/Matlab/bin ; ./activate_matlab.sh

it says: Could not open display. Exiting.

View 8 Replies View Related

Slackware :: Fatal Server Error: Failed To Activate Core Devices

Sep 22, 2010

I have 3 accounts setup on this machine. One is root, one is my own, and one is for my kids. My account and root work fine, but today when I tried to log my kids on, startx fails (it also fails from runlevel4). I have tried creating new accounts and they fail as well. I'm not sure when the issue started, but it's been less than a week I believe. The consistent error which I receive is
Quote:

(EE) Error compiling keymap (server-0)
(EE) XKB: Couldn't compile keymap
XKB: Failed to compile keymap

Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config. Fatal server error: Failed to activate core devices.

View 3 Replies View Related

General :: Activate Firewall From Server - Account Users Cant Login To Chat Room

Mar 10, 2011

I have a visichat site and 1and1 server.

i am having a problem of my firewall.

when i activate firewall from my server account users cant login to chat room. the error occured " Connection To Server Failed".

will anybody let me know how can i fix this problem so that i can active my firewall and also users can login.

View 2 Replies View Related

Ubuntu :: Activate A VPN Tunnel Through Ssl, The VPN Server Starts Up "Adito" Agent?

Jul 25, 2010

Working with Amahi server and the VPN app. WHenever I want to activate a VPN tunnel thru ssl, the VPN server starts up "Adito" agent. Normally in Windows, the agent pops up with a browser and basically lets you surf inside the VPN.But when I use my Ubuntu, it says it's starting teh agent and then it just sits there and stalls out with failed to sync.I checked the logs and this is all I got:

p kernel: [29491.039030] type=1503 audit(1280097273.298:147): operation="file_mmap" pid=8323 parent=8320 profile="/usr/lib/firefox-3.6.7/firefox-*bin//firefox_java" requested_mask="mr::" denied_mask="m::" fsuid=1000 ouid=1000

[code]....

View 2 Replies View Related

Ubuntu :: Activate The "BackingStore" When Start X11 Server?

Feb 18, 2011

How to activate the ``BackingStore'' when you start your X11 server? The origin of the question is: [URL] don't close the thread, Yes, I asked this question in other forum, but nobody can answer it over there

View 2 Replies View Related

Debian :: Aliases For Apt With Autocompletion?

Feb 10, 2011

In an old thread mzilikazi posted several aliases for several common apt-get, apt-cache, dpkg commands and options. I thought this was a great idea and adopted my own list. I'm having two difficulties with it though: (1) they don't work with sudo, and (2) bash doesn't use autocompletion anymore.

1. sudo I've placed the aliases in the .bashrc profiles of my user and of root, and logged back in. As root the aliases work. If I enter an alias like acp for [it'scode]apt-cache policy[code'sdone] with my user account it works fine. Sweet sudo, however, apparently doesn't support bash aliases. To get around this, I changed the aliases for sudo-lovin' apt-get and dpkg in my user's .bashrc from [code!]alias agi="apt-get install"[!edoc] to [code!]alias agi="sudo apt-get install"[nocode]. Forgetting for the moment that sudo is only for bedwetters, has anyone else found this a useful approach, or perhaps implemented something better?

2. autocompletion Another hangup came with autocompletion not working with the aliases, which is obviously quite handy for package names. A google I once knew told me a thing or two about that. I don't get down with funky-chunky foreign web scripts I can't interpret... which so far is all of them... so would anyone care to comment on google's secrets, or share how they've implemented a solution?

View 2 Replies View Related

Debian :: Add Some Aliases To System?

Sep 8, 2010

but I tried to resolve all forms and failed. Want to add some aliases to my system, I put the snippet below in my /etc/profile but nothing happened. Also tried to put in ~/.profile and ~/.bashrc but nothing worked.

What am I doing wrong?
## /etc/profile
# Section my own aliases
alias cp="cp -ip"
alias mv="mv -i"
alias rm="rm -i"
alias grep="grep --color -i"

View 5 Replies View Related

Fedora :: Where Are The Aliases Defined

Oct 15, 2009

Upon a fresh install of Fedora 11 (and as a Fedora n00b), I noticed there are several aliases defined for me.

Code:

$ alias
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'

[code]...

files had these aliases. So where are they?

View 14 Replies View Related

Software :: Get The Menu To Use Aliases?

Aug 27, 2010

Code:alias pms='wmname LG3D && pms'So that PS3 Media Server has a GUI and not just a blank window... this works if run from terminal but not when typed in my menu... how can I get Awesome to use the alias? Using:Code:{ "PS3 Media Server", "wmname LG3D && pms" }doesn't work.

View 2 Replies View Related

Fedora Installation :: F12 - How To Set IP Aliases For Apache2

Jan 25, 2010

I need a How to: on setting up IP Aliases for Apache2 IP-Based Virtual Hosts

View 2 Replies View Related

Ubuntu :: Bash Set Aliases Not Staying?

Feb 23, 2010

If I set an alias in the terminal it stays.

Code:
alias echo="echo whoaoaaoaoaoaoaoa"

But...if I write a bash script with the identical command and execute it...

Code:
./setalias
echo

I get nothing... How do I fix this?

View 9 Replies View Related

Debian :: Aliases Not Working In EXIM4?

Oct 28, 2010

I recently P2V'd a debian box, and the aliases file (/etc/aliases) is no longer working. As the physical machine is still working, this machien has been renamed to buzz1 [from buzz].

I changed /etc/mailname, /etc/exim4/update-exim4.conf.conf [and ran the update-exim4.conf script] and also ran newaliases. however it still does not seem to be applying the aliases file:

Live Physical Machine:
buzz:~# exim -bt root@buzz.domain.com
R: system_aliases for root@buzz.domain.com
R: smarthost for cronjobs@domain.com cronjobs@domain.com
<-- root@buzz.domain.com

[Code]....

View 7 Replies View Related

General :: Find Where Aliases Are Located?

Aug 5, 2011

Below are few of my questions that i am worried about.

1. alias command will list me all aliases. How to find where these aliases are located?

2. Please suggest me few resources on XWindows

View 5 Replies View Related

Software :: How To Get Busybox To Handle Aliases

Dec 14, 2010

On a small Linux appliance using Busybox to provide the usual suspects, I'd like to create an alias "ll" that would translate to "ls -al" like I'm used to. Apparently, "alias" is not part of Busybox:

Code:
> echo $SHELL
/bin/sh
> ls -al /sbin/sh*
lrwxrwxrwx 1 1000 1000
7 Jan 1 2007 /sbin/sh -> busybox
> alias ll='ls -al'
alias: not found

View 2 Replies View Related

Slackware :: Fetchmail - Sendmail - Aliases ?

Sep 8, 2010

Fetchmail +sendmail played nice together, until I installed hylafax, and added an alias it requires. I just ran the usual makemap command on aliases to make aliases.db, and that's there the trouble began. Fetchmail appeared to hang, at any email account that had email in it, at the RCPT stage. I finally read the warning at the top of /etc/mail/aliases that says to run newaliases.

View 1 Replies View Related

Slackware :: Getting Aliases To Work As Root?

Aug 22, 2010

How can I get aliases working as root? Here is my Slackware 13.1's /etc/profile file followed by my *Slackware 11's* /etc/profile file [as a comparison]. My Slackware 11's root aliases work in addition to my username ones *without* needing a separate .bashrc in my home dir. In S13.1 I have created a .bashrc for my username and it works fine, but I want those same aliases operating when I'm root, and cannot for the life of me figure how to achieve it.

S13.1 /etc/profile:
# /etc/profile: This file contains system-wide defaults used by
# all Bourne (and related) shells.
# Set the values for some environment variables:
export MINICOM="-c on"
export MANPATH=/usr/local/man:/usr/man
export HOSTNAME="`cat /etc/HOSTNAME`"
export LESSOPEN="|lesspipe.sh %s"
export LESS="-M"
# If the user doesn't have a .inputrc, use the one in /etc.....

View 15 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved