Hi, I need to send mail form shell script with Snow Leopard local postfix, but it doesn't work
echo "`whoami` login, `date`" | mail -s "test" [email protected]
I want to use python24 provided by ports, so I've installed it, and python_select -s shows that the version I want is indeed selected. Running which python gives /opt/local/bin/python, and running /opt/local/bin/python gives me the version I want. However when I run python from the shell, I get the /usr/bin/python version instead. I don't have a python alias.
Here's the situation in a nutshell:
I believe the path is set up sensibly, and which python seems to confirm this.
alias only returns 1 entry, which is something unrelated to this.
Nevertheless, running python from the bash shell gives me the wrong python!
I'm kind of stumped! What am I overlooking?
Hi,
I have two partitions on a hard drive in my machine that are formatted as ntfs, but must under no circumstance be mounted by my Ubuntu installation (unless I do some preparation first). However nautilus happily displays the partitions, and a single click will mount them automatically.
This is very dangerous behaviour, how can I hide the partitions from nautilus and prevent accidentally mounting them by a single stray mouse click?
Thanks
Tout savoir sur le projet Webian Shell, l'OS-navigateur soutenu par Mozilla
Son créateur répond aux questions de Développez.com
Dévoilé il y a quelques semaines, Webian Shell fait partie de ces projets qui suscitent très tôt l'intérêt des médias, car ils s'annoncent comme des alternatives à des produits populaires (ou décriés), laissant place après ce sursaut de gloire éphémère non encore méritée, à l'essentiel du travail qui se fera loin des projecteurs.
Ça vous rappel Diaspora ? Pas étonnant, car Webian Shell est à
Hi all,
I'm working on a 11" screen, so I frequently want to use applications in fullscreen. I'm no expert on GNOME, but I remember doing a search a while back, and finding out about metacity, and how to use that to allow any window to be put in fullscreen. This worked great on Karmic, but it doesn't seem to be working under Lucid. Here's what I do.
Run gconf-editor.
Go to /apps/metacity/window_keybindings.
Change toggle_fullscreen from disabled to <Control><Shift>F.
Unfortunately it doesn't work. I know that I've got the right syntax because I can see other shortcuts and use them as a template. I have no idea what's wrong, and no idea how to move forwards/debug. Any suggestions much appreciated.
TIA
Andy
I use bash shell
$ bash --version
GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
$
Sometimes, when typing a command on the prompt that is pretty lengthy and does not fit in the current line, instead of displaying the extra characters on the next line, bash starts again on the current line.. replacing the characters that were there and making a mess.
what should happen :
|---------------------------------------------|
| $ my big long command takes a lot of argumen|
| s and does not fit in a single line |
| |
|---------------------------------------------|
what happens instead :
|---------------------------------------------|
| s and does not fit in a single linef argumen|
| |
| |
|---------------------------------------------|
The issue is intemittent
If I resize my shell window to really small width, normal behaviour is restored
Does anyone have any idea what is happening here?
$ echo $TERM
xterm
$ echo $PS1
\[\e[30m\][\t]\[\e[0m\]\[\e]0;\w\a\]\[\e[30m\][\W]$
$
I am looking for a way to define an Emacs-style keys sequence as a keyboard shortcut in Linux - Specifically, in Gnome, but more general solutions are also acceptable.
For example, I would like a sequence like "Alt-w t" (that is, first press Alt-w and then t) to open a terminal, "Alt-w c" to close a window, and so on.
The rationale behind this question is twofold:
Make more use of desktop-wide keyboard shortcuts
Make an old keyboard, that has no Win key, usable with desktop-wide keyboard shortcuts, without causing too many collisions with application - Specifically with Emacs.
Thanks!
I'm trying to install OpenLDAP on CentOS 6.2 .
I manually added the LDAP accounts on server, and I had been successful to login the server by the LDAP username/password, but I found that the Home on Desktop of GNOME still points to a local user's Home folder, at the same time, the LDAP user's Home folder was created under /home as expected.
So my question is how should I map the Home folder of desktop to the path set on LDAP server ? Thanks ! And how should I use ldapadd command, it always tells me the SASL error, but I really do not know why.
Thanks !
Sorry for that dumb questions but what is the difference between those terms.
Can anyone recommend nay tutorial / books with only few pages (So that i can read fully) to get an better idea about those terminology
I'm buying a Server from a person (that I don't know really well) and I want to make sure that the previous owner hasn't got any access anymore.
It's an Ubuntu Virtual Server and I already received the admin access (via shell).
How can I find out if there are still other accounts left, who are still able to access my server (e.g. with a still existing shell account, ftp or another type of user account)?
And how can I delete them if these accounts exist?
Best regards,
Jennifer
I have a problem that crops up when using Mac OS X's Terminal (TERM=xterm): sometimes it gets itself into a state where lines that scroll off the top are not added to the scrollback buffer. I'm not using screen or similar; this is a plain bash shell inside a Terminal tab.
It doesn't do this immediately after opening a new tab. I believe it is a side-effect of something I've run in the problem tab. My guess is that it has something to do with the xterm emulation, possibly the scroll region.
What hasn't worked:
Soft and hard reset via the Shell menu
Running reset in the tab
Is there a reliable way to reset Terminal and/or the xterm state?
Can anyone provide a explanation for what's happening, even if the only fix is to close the tab and open a new one?
Switching to and from insert mode in Vim is no longer instantaneous since I use tmux. After pressing Esc in insert mode, it takes a noticeable amount of time to actually get out of insert mode. After pressing Esc and any other key afterwards the switch is immediate, and the command for the key pressed after Esc is executed. Any idea what might cause this?
The Vim configuration is not the problem as the delay does not occur when I run Vim outside tmux, so this is probably related to tmux somehow. I use gnome-terminal btw.
Also worth noting, it seems I can not define key bindings in tmux for Esc, my plan was to bind Esc to:
bind Escape send-keys ^[
Alas, it seems binding anything to Esc for tmux does not work. The same problem occurs in screen as well.
I've tried bb4win and Litestep, and every time I need to log out for some reason (shutdown and all included), the system hangs and the spinning icon next to the "Logging out" text stops spinning. Changing the shell in registry for both local machine and current user causes this behavior.
Any ideas on what might cause this?
Alternatvely, what steps can I take to figure out what is going wrong? In Linux, you are able to open things in a framebuffer and examine the output, but with Windows it is not so clear to me how to see what is happening under the hood, especially with this Home Premuim version.
Update:
Since logging out normally to switch the shell back to Explorer doesn't work normally, I have to end Litestep first. However, when I do so, an Explorer navigation window pops up (not the taskbar). This also occurs with bb4win.
The last time I installed KDE and Gnome on the same OS (Opensuse 12.1), GDM and KDM started conflicting and they both stopped working properly and I was plagued with applications from both environments till the point the applications overview in gnome was flooded with useless KDE trash. Moreover, I still had parts of the KDE desktop appearing when I'm running Gnome (such as the password manager and kde fonts and some apps refused to give up the oxygen theme). If I install the plasma-desktop package on Ubuntu, am I at risk of having such issues? I just want KDE with the bare minimum number of applications; just the necessary ones to make things work. I'd rather not have dolphin installed either. Also, is it all right to install the kde-standard pack? Or should I just stick to the plasma-desktop pack?
In linux version of firefox (specifically in my case Debian's rebranded Iceweasel), folders of bookmarks in the personal toolbar show a little down arrow on the right of the name. It serves no real purpouse and just takes up horizontal space, is there a way to remove it?
Using Windows 7's superbar, I can select/launch the 2nd application group by <Win>+<2>. We have DockbarX in GNOME, which is nice (grouping the windows like Windows 7), but it doesn't enable the <Win>+<2> style keybaord shortcuts.
Any suggestions?
This is not restricted to making Linux like Windows. But I just find the <Win>+<2> style shortcut very useful. Are there similar ways in Linux to quickly switch between specific apps without pressing <Alt>+<Tab> many many times?
Hello,
I have an USB stick which contains private stuff like the SSH key. I want to mount this stick to my own home directory with 0700 permissions. Currently I do this with this line in /etc/fstab:
LABEL=KAYSTICK /home/k/.kaystick auto rw,user,noauto,umask=077,fmask=177 0 0
This works great but there is one minor problem: In Nautilus (The Gnome file manager) the mount point ".kaystick" is displayed. I guess Nautilus simply scans the /etc/fstab file and displays everything it finds there. This mount point is pretty useless because it can't be clicked when the device is not present and it can't be clicked when the device is present (Because then it is already mounted). I know this is a really minor problem because I could simply ignore it but I'm a perfectionist and so I want to get rid of this useless mount point in Nautilus.
Is there another way to customize the mount point and mount options for a specific USB device? Maybe it can be configured in udev? If yes, how?
We have a desktop system running Ubuntu 8.04.4, and it is connected to a standard desktop LCD monitor. Unfortunately, in 8.04.4, the brightness of the image is cranked way up. It appears to be a graphics driver issue. Unfortunately, installing a newer GPU driver for this Intel GPU is very difficult to do. So, I am looking for a software (or config file?) solution to achieve this.
Note: Ubuntu 9.10 and higher do not exhibit this issue, so this is not a hardware problem.
Note: VNC-ing to this machine from another does not exhibit this issue either.
Also, I installed "DisplayCalibrator.app", and it does not work very well (the app comes up, but the contents of the window are blank).
Is there anything that I can add to the xorg.conf file to correct this issue?
Also, this solution: http://superuser.com/questions/96539/adjust-contrast-and-brightness-in-ubuntu did not resove my issue.
Thank you all for the help!
I found a guide for setting up a bridge in Fedora and was trying this:
$ nmcli connection delete p33p1
$ nmcli connection add con-name br0 type bridge ifname br0 autoconnect yes
$ nmcli connection add con-name p33p1 type bridge-slave ifname p33p1 master br0 autoconnect yes
I found that
$ nmcli con delete uuid [uuid here]
accomplished the first step. nmcli connection does not have an 'add' action in this distribution.
Please help me do the 2nd and 3rd steps.
Context: I am trying to set up a virtual machine. I believe this is a necessary step for the VM to access my network and the internet. Please feel free to correct me if I am wrong!
BTW, I am a linux newbie, tech oldie. Thank you.
I'm running compiz 0.8.2 with compizconfig on Scientific Linux 6.2 with Gnome 2.28.2. In the compizconfig "General Options" I have "Desktop Size" set as follows:
Horizontal Virtual Size: 6
Vertical Virtual Size: 1
Number of Desktops: 1
This gets me the layout I want, i.e. 6 workspaces in a horizontal layout. Ctrl-alt-cursor-keys work fine for switching between them. However, I can't figure out how to get key bindings for specific workspaces. I've tried enabling "Viewport Switcher" in compizconfig, and tried various combinations both in "Number-based viewport switching" and "Go to specific viewport", to no apparent effect.
My first thought was that something else was eating the specific key bindings I chose, but I think I've tried every combination of shift, control, alt and super (i.e., the Windows key) by now.
I tried setting 6 desktops under "General Options" instead of one desktop with horizontal virtual size 6, but that doesn't seem to make a difference either.
What am I missing?
I am trying to setup zsh so that it shares command history between different zsh sessions:
in multiple tabs
in multiple gnome-terminals
in different screen sessions
I have put this in .zshrc
#To save every command before it is executed (this is different from bash's history -a solution):
setopt inc_append_history
#To retrieve the history file everytime history is called upon.
setopt share_history
but that does not work.
e.g. I type 1 command: gedit afile
and then I go to and zsh and type history. I don't see gedit afile.
output of 'setopt' is
% setopt
nohistbeep
histexpiredupsfirst
histfindnodups
histignorealldups
histignoredups
histignorespace
histnostore
histreduceblanks
histsavenodups
histverify
incappendhistory
interactive
monitor
promptsubst
sharehistory
shinstdin
zle
How can I achieve this?