The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
16 views

Working with exporting PATH CentOS strange behaviour

I am trying to modify the PATH variable in two different scripts located in /etc/profile.d/ /etc/profile.d/php.sh #!/bin/sh PATH=$PATH:/usr/local/php/bin export PATH /etc/profile.d/mysql.sh ...
1
vote
1answer
20 views

How to correctly set the XDG base dirs gobally and dynamically

I get a lot of config folders in my homefolder. I assume that is, because $XDG_CONFIG_HOME is not set and some software (e.g. fontconfig, umlet) does not follow the standards. $XDG_CONFIG_HOME ...
2
votes
2answers
36 views

Add an application to the command search path in csh

Recently, I have installed an application (gnuplot) under user directory (/home/usr/bin). I want to run the application whenever I type 'gnuplot' in any directory. What could I do? I tried to set the ...
2
votes
4answers
66 views

How to hold terminal open (excepting gnome-terminal)?

I find useful the gnome-terminal feature of editing (and creating) profiles with the option of holding the terminal open after the command exists. (I like to use context menu file manager to run ...
1
vote
0answers
25 views

Is it possible to create aliases that affect services starting?

Currently I have a custom service that executes java in multiple places. I want to be able to add an option to any executions of java this service will spawn (I'm specifying the error log location, ...
1
vote
1answer
27 views

Is it possible to have 2 different passwords saved for the same network?

I'm not always at home and sometimes the router needs to be reset completely to receive a new wan ip address because my roommates are not very tech savvy at all. When this happens the password is ...
0
votes
2answers
69 views

bash: xport: command not found

I have used export to change my PATH variable. export not xport, but now every time I open a terminal I get this error: bash: xport: command not found [mirko@localhost ~]$ I tried removing ...
1
vote
1answer
28 views

.bash_logout or .zlogout isn't parsed when autostarting xserver directly after login on console

I made a line: [[ -z $DISPLAY && $XDG_VTNR -le 4 ]] && exec startx (right out of the Arch Wiki) at the end of .xinitrc to start the Xserver right after login on console. Whenever ...
2
votes
1answer
145 views

grom() keyword in bash throws unexpected '(' token

I'm not entirely sure why I'm getting the error in my .bash_profile syntax error near unexpected token `(' when I use the keyword grom() for my function. I wanted to create a bash function that ...
1
vote
0answers
39 views

How do I setup a floating profile in Linux

I have an external hard drive that is switched between machines. I want my home folder to point to this external hard drive for ordinary usage purposes - documents, downloads, work areas, that sort ...
1
vote
2answers
67 views

Open Firefox twice (with same profile)

There are tons of resources that tell how to run several instances of Firefox in parrallel. I can't find any that tells me how to configure a command (on a command line, start menu item, or panel ...
1
vote
1answer
90 views

Environment Variables not getting set in bash_profile

I have my bash_profile environment setting as follows: if [ `hostname` = "devoraebs01" ]; then echo `hostname -f` . /appl_top/deverp/appl/APPSDEVERP_devoraebs01.env When I log into this host, ...
2
votes
1answer
69 views

Using different profiles (.kshrc_xxx) in ksh

In bash you can load a different profile by using the --rcfile option, is there such an option in ksh? Or perhaps a workaround... I know you can invoke the shell without the .kshrc profile using the ...
2
votes
1answer
65 views

Change default user configuration file location

If possible, how can I change the default location the system looks to for files such as: .bashrc .bash_history .bash_profile .cshrc .hushlogin .tcshrc I run Plesk and the default user home ...
2
votes
1answer
47 views

Can .bash_profile be auto sourced after change?

I'm always wondering if there's a way to do this. I don't want to type source after changing my .bash_profile all the time.
0
votes
0answers
26 views

Bash script results in errors like “: command not found”. Using Sublime Text to edit the file in Windows [duplicate]

I had a ~/.bash_profile which I wanted to move to somewhere where it'll be executed for all users, including the root. I was led to /etc/profile which worked great. I appended my script there and it ...
2
votes
2answers
84 views

Different ssh login directory from user home

So, I'm working on a remote server via ssh that I log in and out of dozens of times a day, and I'd like to have bash cd to a default directory I've chosen as soon as I login, but I don't actually want ...
1
vote
3answers
318 views

Send email if user accesses the server via ssh [closed]

I want to get notified if any person accesses my Debian server via ssh. So I want to send an email whenever a user logs in on my server via ssh, so I added this line at the end of /etc/profile: ...
1
vote
1answer
93 views

Command prompt (PS1) including the number of files in directory (both hidden and regular entries)

I have finally come up with a favourite PS1 format but I find it takes too long to load. I need help optimizing... The part that is slowing it down is when I call the external commands in the prompt. ...
1
vote
1answer
273 views

xset not having any effect in my .xsessionrc file

I need to set some trackpoint settings automatically. I don't know the best file in which to place these commands, but I used .xsessionrc. The commands are properly executed (I can verify that by ...
1
vote
1answer
67 views

Ash profile/configuration file

I am looking for a way to customize Ash sessions with my own sets of aliases and whatnots. What is the Ash equivalent of Bash's bashrc files?
2
votes
0answers
37 views

Start text terminal shell from Linux DM?

Is it possible to start a shell in a text terminal from a Linux Desktop Manager such as GDM, MDM or KDM? I have a user that has a .profile with a bash select loop offering the option to startx (where ...
1
vote
1answer
119 views

Terminal title shows sudo, but I want command that's sudo'ed

So I've become pretty adept at the tasks here from editing all the posts to answering questions, so I think it's about time I ask one: Technical Information Distribution: Gentoo Desktop Environment: ...
1
vote
1answer
74 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
27 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
1answer
112 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
264 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
20 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
52 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
275 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
74 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
179 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
164 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
51 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
328 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
10k 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
451 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
109 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
316 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 ...
9
votes
5answers
5k 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 ...
6
votes
3answers
983 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
310 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
290 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
361 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
269 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
1k 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
166 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 ...
3
votes
1answer
111 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
365 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
3k 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 ...