I've spent some time searching for answers to this and I haven't found much at all.Please feel free to post pointers to other threads that discuss this particular problem, if you find any.The problem is that in bash I want to mount an iso file to inspect the contents with the command:Code:sudo mount myCD.iso CDMount -o loopThe command works fine, but pressing tab to complete either the iso filename or the CDMount directory does not work. The completion suggestions I get are existing mountpoints which The completion suggestions should include the files and directories in the current directory. This worked with Ubuntu 10.04 and not with 11.04.
I switched to zsh, but I dislike the completion. If I have 20 files, each with a shared prefix, on pressing tab, zsh will fully complete the first file, then continue going through the list with each press of tab. If I want one near the end, I would have to press tab many times.
In bash, this was simple - press tab and I would get the prefix. If I continued typing (and pressing tab), bash would complete as far as it could be certain of. I find this behavior to be much more intuitive but prefer the other features of zsh to bash.
Is there a way to get this style of completion? Google suggested setopt bash_autolist, but this had no effect for me (and no error message was printed upon starting my shell).
I have disabled root ssh logins for security. When I am logged in as a normal user over SSH and do a su into root the tab-completion stops working with apt. It still works when doing normal file-browsing, on the original user1, and it has worked previously when logged directly into root. How do I make it autocomplete again? I am using Debian Stable on a headless homeserver.
Out of the box, Bash in 10.04 is configured such that it won't expand/complete parameters when there's a single match for a parameter with a leading wildcard. For example, if I have the following files in a directory:
ABC.bin DEF.bin GHI.bin
...and I type cp *E*, I expect to be able to press TAB and have Bash expand *E* to DEF.bin, since that's the only file in the directory with a capital E in its name.
(Note: if I actually submit the command with the wildcards in place, the correct file will be used then, but I don't get to see it beforehand.) I imagine there's something in /etc/bash_completion that's preventing this from working properly. Does anyone know what it is?
But, if there is : symbol which separate namespace from action problems coming:
symfony doct[TAB] will be completed to symfony doctrine:
But nothing happens if you want complete after : symbol. I've found out that for readline there is three words because it splits line with $COMP_WORDBREAKS
$ echo $COMP_WORDBREAKS "'><=;|&(:
I played with $COMP_WORDS array and tried every thought I had to make it work, but failed. What I should do to escape colon and make readline consider it as one word? Or there is way perhaps to workaround it?
According to the Bash man pages, Quote: HOSTFILE Contains the name of a file in the same format as /etc/hosts that should be read when the shell needs to complete a hostname. The list of possible hostname completions may be changed while the shell is running; the next time hostname completion is attempted after the value is changed, bash adds the contents of the new file to the existing list. If HOSTFILE is set, but has no value, bash attempts to read /etc/hosts to obtain the list of possible hostname completions. When HOSTFILE is unset, the hostname list is cleared.
Here's the line in my .bashrc where HOSTFILE is set:
I opened a new bash session, created ~/.hosts, filled it with the names of servers that I wanted to expand using tab completion. then typed
expecting to get a lists of all of the hosts in ~/.hosts starting with 'p'. Bash simply beeped at me twice.
Is there a way to get colored output when using tab completion in a terminal? My colors are fine everywhere else so I know that I've enabled a color terminal successfully. Using bash in Ubuntu (10.10).
tab-completion indexes system folders (like /usr/bin, /usr/local/bin)! so say i'm in a folder that has two files, 'text' and 'myprog', i type in an 'm' then tab, and i get hundreds of results including 'mysql', 'mysqlconfig', and others as im sure you can imagine. is there a way to set it to default or something else that will only make it index the current folder?
i tried changing my PATH variable so i could execute programs in the current directory without './' - what i added to PATH was ':.' at the end (apparently this is not the way to do it... :S). i tried resetting PATH various times ('unset PATH', 'PATH=$whatever...') but this has not fixed the problem. using 'unset PATH', of course, removes everything from PATH, which meant that functions (like 'ls') in /usr/bin and /usr/local/bin can't be found. obviously i want those to be found, but i would rather not tab through them!
I have a bash script that checks for contents in a folder every 15 seconds and then acts on it's contents. This works great for the average size file however on very large files it starts acting on the file before it's completely written. Is there a facility in bash shell to get a file complete signal or such? here is trigger to launch a larger script.
#!/bin/sh while true do $HOME/bin/hpgl.sh >/dev/null 2>&1 &
After loading all the apps I use last night with a working FC14 x86_64, I powered up this morning and nothing happened after starting atd.1 try an alternat kernel same effectstart in init 1, OK go to init 3 OKran startx .. failedlook for xorg.conf.. no fileNow if Iwas still running mandriva , I would have typed mcc and bought up the control panel so I could have sorted out the Xorg problem, or tried. There really needs to be something like this.I found that gdm was not installed so installed it.It will now boot up to the login screnn, but wont accept my passwd.restart in init 3, login as root and add another user and set the password for that user.I also rest my passwd as welll.boot up again and get authentication failure on both users, and I cant login as root as someone removed that feature.
Also I can't use Ctrl-Alt -backspace to killl X so I have access to CLI so I can login there and run startx.I suspect several gnome packages have been removed/lost as I use lefthand mouse settings and the mostsetting are back to default.All I have is a live CD to gain access to the forum, and I only have one computer.There really needs to be a fallback to one of the smalll DMs on fedora so in situations like this you are nt forced to use CLI, thats if a new user would know how to access it. As there is no bootsplash, you have to already know to hit return and wait for the bootsplash.
IMO this a is a seriouss flaw, in what otherwise is a good OS.In the meantime I'll try and install XFCE to get X running, but I will need some help getting gnome back.I'll load gnome-panel and see if yum will pick up the rest as depemdencies.I hope this isn't a bug, as to lost the DM after the first machine power cycle is fairly drastic---------- Post added at 08:52 AM GMT ---------- Previous post was at 08:18 AM GMT ----------I resorted to yum install gnome-*which loaded 255 packages, including gnome-desktop, gnome-common, all the gnome applettsThis wasn't just one or two packages corupted, it was removal of the DM altogetherSimilar effect to running "rm -rf gnome-* "
1. What is the difference between files (xorg.conf and xorg.conf-vesa)
2. No matter how hard I try I can't change keyboard layout in xorg.conf-vesa (I change it in file ) but there is no actually anything changing, it starts to get annoying - for example - below goes my xorg.conf-vesa, if I uncomment and set line from
i can normally adjust the back light settings of my lap top by pressing fn and the up and down aarows. I am using the default xorg server without using xorgconfig in slackware, and it works perfect so far dispite this slight problem. When i do, do that key combo, (in kde) it does display the the meter of brightness, but i can't move the settings. I believe this may be an x issue, but not sure.
To be honest I cheated and used the .bashrc / .profile files from Ubuntu and all was working fine for a while now and it seems something changed to cause this... any ideas on why I am getting this? I checked my .bashrc and my /etc/profile and it doesn't look like anything is amiss..
I'm writing a script for asterisk to monitor trunk failure, i do a loop for every trunk it got nad would like to name variable like server1=, server2= naming the server upgoing as the trunk is. here is the scripts:
what i would like to do is name the variable server, username and status with the count variable, like this server$COUNT to have server1 when on trunk one, bu as soon as i add the $COUNT after the server, it seems to try to make it a command, it says that:
Code: ./test.sh: line 45: server1=188.8.131.52: command not found
Sorry if this was well covered here when most up-to-date Slackers moved to 13.0, but I have just jumped from 12.1 to 13.1. Generally very happy that I do not have to think about xorg.conf as I always found the structure of this conf file a tad confusing. However if I do need to (for example) change my video driver (I might for example want to try the nvidia driver from NVIDIA) or configure my touchpad - how do I do this ?
I understand that xorg.conf can still be created. If I do so, do I have to put all the stuff in that used to be there or can I just add the stuff I need to make the changes I am looking for?
I generated noarch rpm using alien for rapidsvn tar.gz file. After generating and installation of the rapidsvn rpm it isn't working for CUI or GUI. When I checked for rpm installation status using 'rpm -qa' it is showing as the rpm is installed. But no output of the installation
I just did a clean install of 13.1 on one of my laptops and the scroll doesn't work on the synaptics touchpad. I've seen some comments about adding a file to the /etc/X11/xorg.conf.d/ directory. I don't have this directory. Is it ok to add this, or did I screw something up during the install. I did another 13.1 install about a week ago and it is also missing this directory. Is this just something in current and not in 13.1?
I am new to Slackware/Linux and completed the install (Slackware 13 64-bit x86_64).Everything is running correctly.During the install I was asked if I wanted to install X-Windows and I declined.Now I want to install it.I downloaded xorg-server-1.6.3-x86_64-1.txz and installed it using slackpkg.It seemed to me to install very quickly. I see it in the list of installed packages now.What are the steps install a fresh X-Windows on Slackware if I did not pick it during install?
I bought a very beaultiful pink tv-monitor 26", model LG26LED6500 for my daughter and I also intend to enjoy it setting up in my slackware 13.37. Then I use a VGA cable and 6600GT nvidia card, but now I'm having a doubt because there aren't vertical and horizontal frequencies specs in this manual. Only:
I did a xorg.conf using a vesa driver and kde screen output was a 1024x768 - 61hz.
If I try to use a nvidia driver and xorg.conf piece above X break down. If I use any manual frequency parameters X break down too.
1)What's the difference between CRT config and tv-monitor xorg?
2)Have I use strings modeline monitor and modes screen in this situation?
I have a server running Fedora 8 which I installed via the DVD that came with the book I am using as a learning aid. Anyway, I downloaded (via bit torrent) the Fedora 10 DVD and everything reported success, so I burned the DVD and booted the machine on which I want to install 10 (not my server).
Things were moving along fine until it started doing the actual install (partitioning etc. was complete). I had selected all three repositories. Somewhere in the middle of doing the install an error window opened with the following message "The Automake16-1.6.3-14.noarch.rpm.cannot be opened. This is due to a missing file, a corrupt package or corrupt media. verify your installation source. If you exit your system will be left in an inconsistent state that will likely require reinstallation."
It then gave me the choices of rebooting or ejecting. I took reboot which left me in text mode with a limited version of GRUB. So Thinking it might be a problem with the added repos I tried again this time taking just the default repo. Then I got the same error but having a problem with authconfig-gtk-5.4.4-1.fc10.i386.rpm.I again took the reboot option it restarted from the DVD to take me to the regualr start of installation.
So that leaves me with a nicely partitioned system but I don't know how much as been installed or what do I do to get it to install. I didn't have the startup test the disk per the online instructions. So after all this I did and errors were found. I had errors on two different disks, so now I'm going to try using CDs instead.
This post was originally placed in the src2pkg thread, just below. But to avoid it being overlooked I am placing it in a new thread here.
I am using src2pkg v.2.0 with Slack 13.0 running kernel 184.108.40.206
In the past I used trackinstall to run 'make install' after configuration and compilation (using a makefile). Here's an example of what happens when I use the current trackinstall that comes bundled with src2pkg code...