The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
50 views

How do I define alias with variables which can be changed at runtime?

This is probably a very easy to answer question, but I could not find any questions already asking this due to different wording when writing titles. Running help alias on my bash prompt returns only ...
1
vote
1answer
24 views

several virtual profiles for the same user

Many times there are several "identities" which one user uses: for work, open-source, academia etc., all require different ssh keys, editor configurations, git configs etc. I was wondering if there ...
0
votes
0answers
25 views

auto installing dropbox daemon(dropboxd) with profile signed in automatically script issue

I am trying to install dropbox automatically in my server auto-install script so when I spawn a new VPS instance I'm able to have dropbox installed and have the credentials already inputed via the ...
1
vote
1answer
44 views

No prompt after logging in

After entering my username and password when trying to log in, I am not getting the command prompt. This is what my screen looks like: pal login: root Password: Last login: Wed Oct 14 15:42:19 on ...
0
votes
1answer
16 views

bash_completion does not work in dtach

I start dtach from bash using the following command dtach -c /tmp/dt0 bash the problem is, before I started dtach, bash_completion worked. But once I start dtach, bash_completion does not work ...
2
votes
1answer
35 views

efficient rc file syncing or replication

Recently I've been experimenting with KVM and virtual machines. I'm lazy and tired of manually copying/syncing my .rc files. Some Googling didn't immediately turn up any tools. Are there any CLI tools ...
2
votes
1answer
78 views

How to source /etc/profile and .bashrc while starting vncserver

I have an installation of RHEL5.10 (2.6.18-371.11.1.el5) with vncserver: # rpm -qa | grep vnc libvncserver-0.9.7-2.el5 vnc-server-4.1.2-14.el5_6.6 x11vnc-0.9.13-8.el5 While my other installations ...
1
vote
1answer
50 views

why is EXPORT PS1 in my .profile getting clobbered?

In this question How can I get KornShell to display the date and time in the prompt? all the variables are visible in ksh except PS1 which appears to be getting replaced somehow. How can I determine ...
2
votes
1answer
63 views

Change the PS1 prompt in a subshell sh called from parent bash

When I am running an interactive bash session, I sometimes experiment with sh. I call sh directly from this bash session. My question is, how can I change the PS1 prompt of this subshell? I would ...
3
votes
3answers
87 views

Is it possible to have a bashrc for a usergroup?

Is it possible to execute some bashrc file for all users in a group? If you can do that system-wide in /etc/profile then why not for a usergroup?
2
votes
0answers
37 views

How to set up environment after installation of a software inside home directory?

I am not familiar much with environment and path settings in UNIX environment. I have installed CDO (climate data operators) in a folder in my home directory. I am only able to run it when I go into ...
1
vote
1answer
119 views

Terminal sometimes fails to find executables on local directory [duplicate]

I can open my terminal emulator via a keyboard shortcut or through the apps finder that executes the exo-open --launch TerminalEmulator command. My terminal starts and I can cd to any directory and ...
1
vote
2answers
843 views

Setting PATH vs. exporting PATH in ~/.bash_profile [duplicate]

What's the difference and which is better to use when customizing my bash profile? Documentation on the export command is scarce, as it's a builtin cmd. Excerpt from version 1 of my ~/.bash_profile: ...
0
votes
3answers
286 views

Checking if line in file exist

I have a bash script which asks a user for the number of CPU cores and saves it to variable named $cores. Now I want to add this variable to .bashrc, so I ask user how much CPU cores he has and then ...
1
vote
1answer
64 views

Disabling power management

I am running Cubieez on a Cubieboard2, I need to disable screen saver and power management, I've followed several tutorials about but none seems to work, I've written: xset s off. xset -dpms xset s ...
1
vote
2answers
114 views

Alias from .bash_profile is not reflected across the system

I have few path settings and alias in .bash_profile, and I am exporting those. For example: alias gcc=/abc/def/......./myrtgcc export gcc And I want use myrtgcc to compile C programs either from ...
7
votes
5answers
1k views

Making zsh default shell without root access

I am using my school's computers and would like to use zsh instead of bash. I'd like to make it default, but I cannot run a command such as $ chsh -s $(which zsh) because I don't have admin ...
4
votes
3answers
348 views

.profile is not sourced in Debian Wheezy LXDE

I add $HOME/bin to $PATH from ~/.profile. However, it seems it is not sourced during login. I use a login manager - lxdm I think, and not startx. I know this matters as to which scripts are executed. ...
0
votes
1answer
181 views

Path variable not being set properly in zsh

For some reason, my $PATH variable is not being set properly which means I can't run a lot of commands I would like to. Here are the relevant lines from my .zshrc file: if [[ -f ~/.profile]]; then ...
3
votes
2answers
94 views

184 environment variables too many?

I am trying to find the cause of some OS wonkiness, and am concerned about environment variables. The software I have been handed puts an incredibly high amount of environment variables into the ...
3
votes
2answers
206 views

PS1 variable no longer shows coloured bash prompt

I'm running a VPS with Centos 6.5 I've setup ~/.bash_profile as in the following screenshot: It used to give me an output like this: Now that I've installed WHM/Cpanel I no longer see coloured ...
0
votes
1answer
183 views

Does ~/.bashrc set environment for users whose shell is /sbin/nologin?

I have an SFTP server and have set user shells to nologin to restrict access to SFTP. I want to set a conditional umask of 0002 so that newly created files are group writable for all SFTP users. Can ...
3
votes
4answers
582 views

Execute a program at login

I'm running Arch-Linux ARM on a Raspberry Pi. My project goal is to have a barcode scanner attached to the Pi that forwards the scanned messages to a server in a LAN. To harden the system against ...
1
vote
2answers
94 views

Adding script to autostart

I have this script: #! /bin/bash xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync xrandr --addmode DVI-I-1 1920x1080_60.00 xrandr --output DVI-I-1 ...
2
votes
1answer
82 views

Where do I place commands to automatically be exported for all users?

I have an embedded platform running an Arago linux distribution. Right now the only "user" is root but there will eventually be others, but I don't know how many or what user IDs they will have. ...
1
vote
1answer
204 views

Editing the .profile file to access

I am trying to source my .profile file to easily access a directory of javatools. The bash code below seems like it should work but it does not. Any help troubleshooting this script would be very much ...
1
vote
4answers
1k views

How to add an alias without directly editing the `bash_aliases` file?

Is there a way to add an alias from the command line without directly editing the bash_aliases file? To clarify, how can I make a bash script do it without having to enter something along the lines of ...
3
votes
2answers
115 views

Customizing bash for many servers

I work with a few dozen servers. I'd really like to streamline my work, but at the same time I'm a bit reluctant, since it would be a lot of work synchronizing all servers. The servers are in ...
0
votes
1answer
209 views

Missing source ~/.bashrc Mac terminal : ~/.profile?

I need to install Gerris on mac 10.9.1. The website http://gfs.sourceforge.net/wiki/index.php/Mac_OSX_Installation says: Note: make sure that the file ~/.profile contains the line source ~/.bashrc ...
1
vote
1answer
316 views

Where is the .xprofile for Elementary OS Luna

I have this problem similar to this thread. http://askubuntu.com/questions/63863/unknown-monitor-intel-driver-want-to-set-vga-resolution-to-widescreen-tv/154818#154818 it fixed my resolution issue but ...
1
vote
1answer
201 views

.bash_profile alias escape quotes?

On the rare occasion I use the command line, I usually forget syntax. This is one of those times. I want to add a simple alias to my .bash_profile but no matter what quote method I use, I get an ...
5
votes
3answers
5k views

How to add a function to .bash_profile/.profile/bashrc in shell?

I have a function which converts epoch time to date. Here is the definition date1(){ date -d @$1 } I'd like to be able to write: $ data1 xxxyyy And I want the corresponding date. I understand ...
0
votes
0answers
29 views

Chromium OS Compiling Path [duplicate]

After following the steps at the Chromium OS Developer site, I would like to know how I could add the path to my .bashrc file so I could make it permanent? I am using Ubuntu 13.10
2
votes
1answer
77 views

“No such file” warning on terminal launch

I ran a source command on a file that was missing. I forgot about it but later noticed that every time I opened a new terminal, the first line would be a warning about the missing file bash: ...
1
vote
1answer
533 views

How do I track down the source of a ssh login message?

I installed mailutils on my linux machine with Linux Mint 15 (basically Ubuntu 13.04). When I log in, I get the following: Welcome to Linux Mint 15 Olivia (GNU/Linux 3.8.0-32-generic i686) Welcome ...
2
votes
2answers
2k views

HISTTIMEFORMAT modification. In /etc/bash.rc or /etc/profile? [duplicate]

I'd like to add the date/time to the output of the history command in CentOS/RHEL 6. I would like this to apply to all users on the machine by default. This itself is easy. It seems to just be a case ...
3
votes
2answers
1k views

How to load .profile without relogin in AIX?

How can I load my .profile file without a relogin in AIX Server?
0
votes
2answers
730 views

Why alias does not work in AIX (korn shell, .profile)?

I have these files in my home directory: drwxr-xr-x 3 meuser staff 256 Oct 12 13:11 . drwxr-xr-x 102 bin bin 4096 Sep 30 12:28 .. -rw------- 1 meuser staff ...
5
votes
4answers
494 views

Why no shebang in .bashrc/.bash_profile?

Simple inquiry: I have just realized that I have never seen a shebang on top of a .bashrc script, which leads me to think the system uses the default shell to source it upon login (${SHELL}). I am ...
8
votes
3answers
12k views

Why doesn't my ~/.bash_profile work?

I'm using Linux Mint. My login shell (cat /etc/passwd | grep myUserName) is bash. After I start my graphical desktop environment and run terminal emulator from it, I could see that .bash_profile is ...
3
votes
1answer
212 views

A robust way to execute a command/run a script at login?

I have two commands that change keyboard behaviour: xset r rate 120 66 /usr/bin/setxkbmap -option "ctrl:nocaps" When I open a terminal and execute them, they change auto-repeat settings and remap ...
4
votes
1answer
963 views

What is the difference between .profile and .bash_profile and why don't I have a .profile file on my system?

So I'm pretty new to Linux and recently installed Fedora 19 on my netbook. I want to have a deeper understanding of Linux and the CLI so I'm now reading Learn Linux: The Hard Way. In exercise 3 the ...
1
vote
2answers
348 views

How to make an application run automatically?

I am trying to run my application when a user logs in. So I've added a script in ~/.bash_profile as follows: # for Buluttdepo /usr/bin/myapp > /dev/null 2>&1 & export ...
1
vote
2answers
7k views

Colorful ssh banner

I would like to colorize my ssh banner. I know I can perform it like so: In /etc/profile I can put: echo -e "\e[1;31m Colorful text" echo -e "\e[0m Reset" But I have some ASCII art in the banner ...
0
votes
1answer
367 views

Command substitution in alias resolved in bash profile? [duplicate]

I want to make an alias for randomly changing my mac address alias chrandmac="sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')" but the command substitution part is ...
2
votes
2answers
3k views

Linux (RedHat) `sudo su -l <<user_acct>>` does not source profile

As stated, having trouble with loading the default profile of <<user_acct>> when doing sudo su -l <<user_acct>>. Inside .profile, if [ -r "${HOME}/.profile.custom" ]; then ...
2
votes
1answer
78 views

Message appears after every command completed

I am very new to Linux. Having said this, I had a friend go on my RHEL machine and he somehow added a few random lines in a file, which will post every time I have completed a command. I am not sure ...
16
votes
2answers
13k views

What do the scripts in /etc/profile.d do?

I am reading about basic shell scripting from Linux Command Line and Shell Scripting Bible. It says that the /etc/profile file sets the environment variables at startup of the Bash shell. The ...
3
votes
1answer
264 views

Modifying $HOME variable on a session startup script: Gnome ignores it?

I'm modifying the $HOME variable on a /etc/profile.d script. This seems to be OK for console sessions. There are some caveats on graphical sessions, though: Gnome won't load my desktop ...
2
votes
2answers
2k views

How to write a shell script that gets executed on login in?

I am trying to write bash shell script in Ubuntu 11.10 Linux distro, that will get executed automatically on logging into the system. But I am not able to figure out that what to write in script that ...