General :: All Terminal Applications Ask To Go To The Specific Path?
Apr 7, 2011Just like the title says, it always asks me to go to the direct path.
ie:
iwconfig doesn't work. I have to type /usr/sbin/iwconfig
Just like the title says, it always asks me to go to the direct path.
ie:
iwconfig doesn't work. I have to type /usr/sbin/iwconfig
Im writing a script that extracts part of the path name:I drop a file in terminal and set the directory name of the file to x using dirname $0note: ( directory is different every time since not all files are from the same location)
ex.
x="/home/Downloads/yesterday/photo/.../image.png" /image.png
/.../ means I dont know the name of folders between but I know the path name always starts
[code]...
I am looking out for a command which can give me the list of applications installed and the corresponding install paths for those.let me know if there is any such command. Also, i am using rpm command to get the list of packages installed(i am assuming that this shows the list of applications installed).
View 4 Replies View RelatedUsually in Gnome, under Ubuntu, the terminal command I use is:
Code:
gnome-open (path)
In most cases, I won't know the path and I'd rather not search for it with:
Code:
locate (file name)
I am using CentOS5.5 & everytime it is showing command not found. If I export the path as below it will be working fine until a reboot. Again same error i.e command not found if I open new terminal. Every time I am exporting as below:
#export PATH=/sbin/:$PATH
#export PATH=/usr/sbin/:$PATH
#export PATH=/usr/bin/:$PATH
#export PATH=/bin/:$PATH
How can I set these permanently as that the paths should automatically be exported for everyone user whenever the system boots. And command completion also should happen for eg. #fdi (press tab), then it should show available options such as fdisk, etc.
I keep all of my web design work under /var/www/(application_name). Nine times out ten, when I open a terminal, I'm heading to the www folder - cd /var/www. I would love to make that my "home" folder for the terminal, so it would just open there - I know if I ctrl+shift+t to open a new tab it defaults to the same dir, but it would be nice to have the first opened terminal default to there. Is this possible, or is there a better way to go about this?
View 2 Replies View Related I'd like to run a program [URL] from the GUI menu (yes, I know I can run it from the command line). I've gotten this to work by using a menu entry (see attached screenshot).The command is:
Code:
gksu chkrootkit
with the option for Type: was selected as Application in Terminal However, when chkrootkit is finished, the terminal immediately snaps shut according to the profile selection: When Commands Exits: Close terminal What I'd like to do is create another profile that causes the terminal to be held open (see screenshot) when the command exits and be able to choose that profile from the GUI Menu entry. I believe the command when using the CLI is:
Code:
gnome-terminal --profile=<profile_name>
how do I incorporate this within the Command entry line of the launcher?
In a couple days I plan on changing to opensuse from kubuntu. Anyway in the Kpackagemanager I removed the pulseaudio client (and its dependencies) and it messed up my system a bit. I don't really mind but all I need is to get my files from my home folder off my hdd to an external through usb 2.0. When Kubuntu 9.10 boots now all it is is a command terminal basically and I don't know the specific commands to get the files. Or if I need to reinstall something so that it boots up with a graphical looking UI again.
View 14 Replies View RelatedI failed to install flash-plugin on my firefox My firefox is installed on path "/home/<<user>>/firefox"
1) I tried to install flash plugin by rpm -Uvh flash-plugin-10.0.32.18-release-i386.rpm It is not working as the files are not installed on the folder /home/<<user>>/firefox/
2) yum install flash-plugin It returns "nothing to do"
3) I extracted and copied the files in the rpm to /home/<<user>>/firefox/flash-plugin then create a link by ln -s /home/<<user>>/firefox/flash-plugin/libflashplayer.so /home/<<user>>/firefox/plugins/libflashplayer.so When I open the firefox, it crashed.
How could I install this plugin manually?
Currently I have 5 HID's I would like to use on the system at any given time. However, I have the problem of them using different device paths depending on what order I plug them in... Which wreaks havoc on qjoypad and also my music software which looks for a specific device number, which may or may not be the same as it was last time.
For example, I have 2 rock band drum controllers which I use to send MIDI signals. I need them always assigned to the same device path, so that I don't have to change the settings in my music software every time I run it, to make sure it's looking at the right controller
Or if I am going to play games with a gamepad, but I also have the drums hooked up, the gamepad may be assigned to /dev/input/js2, so I create my qjoypad profile.... Let's say the next day I reboot with the drums not plugged in, the gamepad is now /dev/input/js0, and the qjoypad profile won't work because it is looking for that gamepad at /dev/input/js2... So I would either have to create a new profile, or hook the drums back up in the same order ... Or something
It's just a mess...
Is there any way to tell Ubuntu to say "/dev/input/js0 is always Playstation gamepad", "/dev/input/js1 is always drum pad 1", etc.?
Or some way to do away with /dev/input scheme altogether and somehow link directly to the name of the device?
I'm running GNOME (gnome-session under xmonad). I want to turn off antialiasing (i.e. use monochrome mode) for fonts in gnome-terminal. But I want to retain antialiasing for other applications, like Firefox. Is this possible?
Antialiasing is great and almost necessary for using Firefox or Chrome. But it makes the fonts in gnome-terminal blurry at sizes around 12 or smaller.
Otherwise, I'll just have to use xterm, which seems not to anti-alias its fonts under any circumstances.
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
I'm setting up a RHEL 4 VM and have installed Oracle Java 1.6 from a bin file to /opt. I've added it into the PATH but when I try to run a installer that needs Java to run it says that it can't find a Java installation in my PATH but when I execute a which java I get the following:
Quote:
If I am correct there is an official list(probably by Fedora itself) of packages/software included in each Fedora version, but I can't find it. I also have a couple of queries below.
1. There are always new applications, packages, games etc. being released for Fedora by open source developers and companies. Is there a good website where I can get a list of all these new packages etc, if possible an official one? I visit some sites such as Linux.com, but based on your own experience, I think you can guide me better.
2. In order to know which packages are installed on the Fedora machine one can type the following command, is that right?
Code:
rpm -qa
And this one gives the exact number of installed packages.
Code:
rpm -qa | wc -l
I'm using win XP and windows 7, meanwhile, I want to install ubuntu on my desktop (not very recent: 256MB RAM, 2.8Ghz), I'm thinking about installing ubuntu 9.10, but I use a lot of specific application:
-Matlab (I want to know wich will be a good replacement as I need my files to be compatible with matlab: octave or scilab)
-Visual studio (I think netbeans is good but wondering if there is any better application)
-Proteus ISIS (I don't know any linux application to do the same work)
-Modelsim (simulation for VHDL) and the same, I don't know any good replacement
-Xilinx (for validation and compilation of VHDL file and also creating test bech files)
-step 7 for Siemens automates programming (I don't know if there is any linux program related to this)
(I already use open office and foxit for general use in windows so I'm going to install them on ubuntu too).
I am running a windows game on Ubuntu through Wine, but it is running slowly. My computer is only a year and a half old, and it has 4 GB's of RAM. Is Wine not receiving enough of the memory? If so, can I direct a larger amount of my ram to the program?
View 1 Replies View RelatedIs it possible to bypass kdewallet manager for certain applications while leaving it in place for others? Specifically, I do not want to be prompted to open the wallet when I login and initially access the wireless network, but still require opening of the wallet to check email.
View 6 Replies View RelatedI have a workstation dedicated to monitoring. The goal is to have multiple web sessions and other applications running across dual screens on multiple virtual desktops. I have a nice Perl/TK/wmctrl script that will automatically rotate the desktops. All is working great.
The problem is, I need a solution to automatically start the applications on the correct desktop, with the correct window size, in the correct location on the desktop. That way we can start the monitor boxes in the morning and have everything start in the correct place. It is a really cool effect to have wall mounted monitors with cube rotation showing off multiple graphs and more.
Do any of you pros know how to start an application with a specific window size and define where on the desktop it is placed? The box is running OpenSUSE 11.4 KDE. Is that kind of control possible?
I have a lot of application scheduled to load at startup (GoldenDict, Tomboy Notes, Evolution Mail, Liferea, etc.) and I'd like some of them to appear on the workspaces different from the default. I have Ubuntu 10.10 with Gnome and Compiz effects. Is there a way to do this without a lot of mess?
View 5 Replies View RelatedI have two applications that I would like to always open up in Workspace 2, even when i restart my computer. Is there a GUI solution that can do this? One of the apps is the Sound Preference window I would like set to open with the input tab selected.
View 1 Replies View Relatedis there a way to make a password key-ring for a list of specifications, specifically; all the applications relating to preferences. I'm running Ubuntu 11.04, I'm the only user, I disabled all login password requirements because they were annoying me and I'm cool with anybody using any of my applications as long as they aren't capable of changing my system in any way. Some of the applications I would like to be on the list include the terminal, the network connections preferences, the keyboard preferences. I wan't to be prompted for a password before opening these programs
View 4 Replies View RelatedIs there a package I can download for Ubuntu that would allow me to type in,for example, cd [tab key] and then it would go through the recent cd commands I've typed in?
View 2 Replies View RelatedI use this command:
Code:
find ./ -atime +360
to figure out the files that haven't been accessed since 360 days. The command above will return results like this:
Code:
/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc
I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:
Code:
mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext
But I want the executed command to create this path
Code:
/old-files/uploads/2010/02/
If it doesn't exist.
I have a program that takes a relative path as input appends it to a some path string to get the actual path.
Now all I can input is the relative path. So if I want to go one level above my input will be ../mypath.
If I know the depth of the path used internally, I can use .. as many times to go to the root directory and then give the absolute path. But suppose I do not know the depth of the directory, can I construct a relative path string such that it considers it as a relative path. One way could be to have enough .. in the path string so that I can force an absolute path for some maximum depth of path.
Is there some path string syntax that I am not aware of but can achieve this?
Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.
View 3 Replies View RelatedOpen a new terminal either in tab or new windows,The default work directory is $HOMEDoes anyone know how to change it to `pwd`, so every time a new terminal starts form the same path as the mother terminal (the terminal user calls new from).
View 9 Replies View RelatedI have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup
View 7 Replies View RelatedCurrent script:-
prefix=user@my-server:
find . -depth -type d -name .git -printf '%h�' | while read -d "" path ; do (
cd "$path" || exit $?
[code]....
How shall i go about changing the absolute path to relative path, so that /home/git/mirror/android/adb/ndk.git gets converted to /mirror/android/adb/ndk.git //echo <command> "$prefix$PWD.git" ?? - anything for relative path?
Is there a way to NOT display the current full directory path in the terminal? I'd like to set the default to be just the current directory instead of everything back to ~.
View 2 Replies View RelatedI want to add a path (/usr/sys) to the global $PATH. I will use this to test commands and scripts, which I don't want to be mixed up with regular commands. I've added the path to /etc/environment. When I start a terminal session under my user account, the path is included in the $PATH variable. However, when I start a root terminal, it is not. Is there a way to to change $PATH on one place where it will also affect the root terminal, or do I have to change it on 2 locations?
View 4 Replies View Related