OpenSUSE :: Register Command To Run A Script File From Terminal?
May 10, 2011
I've recently installed matlab and after some poking around found that you must start it using a script like:
#>> cd ~root/../matlab2009/bin/
#>>./matlab
the manual tells me that the installation should have made it so that all you have to do is type matlab at the terminal but for some reason this hasn't happened. If you did not set up symbolic links in the installation procedure, you must enter the full path name to start MATLAB, matlabroot/bin/matlab, where matlabroot is the name of the folder in which you installed MATLAB. I've also looked at documentation on ln but most refers to making links between files. Is there a way to link the command "matlab" to the file shown above so all I have to do is type the command and it runs the script?
For some reason, gnome-terminal, terminator, mrxvt, rxvt, tilda and a few other terminal applications I downloaded are unable to register the 'a' key on my keyboard. However, every other application is able to register my keypresses perfectly. Does anybody know what might be causing this, or what logs/diagnostic tools I could use to find out the reason for this odd behavior?
I am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?
How do I use my SSH Terminal to get a file that is sittng on another server that I have.. As its like 500 megs or so but to download it to my computer then upload it it takes a long time..
So this is what i have done so far
1. Loged in to SSH Terminal
2. Went to my DIR that i want to put the FILE to
3. Typed in FTP
4. I"M LOST now as i'm trying to connect using my user on my ftp site (DIFFERN"T SERVER)
I relly need the key commands SHH Terminal for dummies
Well i downloaded a program with many .deb files ( At least 15 ) so i wanna execute them all trough the terminal so i typed
Code: patowlmc@patowlmc-desktop:~$ cd /home/patowlmc/Downloads/i386 patowlmc@patowlmc-desktop:~/Downloads/i386$ sudo dpkg -i *.deb Readme.deb: command not found
As you can see all files in the folder are .deb packages, but one: The Readme file, wich is a text file.
I know I just have to move the file to somewhere else, and everything should work, but i wanna know if there's a command for excluding a file or something.
P.D. I totally trust the program, so don't worry about so many .deb files.
I'm looking for a way to have the access log for my nginx install scroll up the terminal as lines are added to the log. I think I need a command like cat access.log | diff but I'm not sure exactly what it should be.
I need a hand with a line of terminal commands. I need to be able to search a given .sh file in a given location for a string, and when found, add a "#" to the start of that string and save the file back to it's original location.
I use webcam with the streamer application. So, to record a video I have to put in terminal something like this: Code: streamer -q -c /dev/video0 -f rgb24 -r 24 -t 00:30:00 -o /home/shark/untitled.avi I know I can use other applications but I have got problems with all except with this. This is really annoying because it is a delay job. So, I am wondering how can I make a script that the terminal will ask me to name the file or even better to ask where to put my file.
Now, I use Fedora Core (version 8) with core linux OS 2.6 I have some file data with size about 2G and I want to burn (write) this file to DVD rewrite.
I know linux OS can install software to burn data to DVD, but I don't have permission to install more software. I only use command line over Terminal (Gnome Terminal).
is it possible to log the command output's history that are previously printed messages in the terminal to a file? that is the first command output when i first opened terminal through the last command.
I've got used to using the ftp command from the terminal, which is useful, especially with macros. But it requires user input, and what I want to do now is upload a specific file to a server, once I've finished working with it every day. It's the same file every day. II would like to be able to do this semi-automatically: I just give the command and it connects to the server and uploads the file. (I will probably want to encrypt the file before uploading it.)I don't know how I could use ftp without any user input: I want it to be automatic.
I have downloaded the hplip command on the desktop, attempted to cd desktop, and it shows "no such directory". running this command so I can set up my printer? And I can't seem to put the screenshot here..
I am trying to solve problem with software which needs to have access to network card I suppose. Installation run without any problems but when I am launch software I get such message as normal user: Cannot register service: RPC: Authentication error; why = Client credential too weak.
When I launch program as root I get this: WARNING: localhost appears to have the loopback address 127.0.0.2 as IP address This may imply that processes on arlin may not be able to connect to non-local processes but program starting with success at least. What I should do to run program as normal user?
After timeout is over a SIP account does not register again automaticaly, manualy can be unregistered and registered again. Changing timeout seconds does not make any difference, re-registering does not happen. Is there is a way ekiga can be forced to re-registered itself automaticaly?
We're trying to replicate something that Windows servers can do. Basically on a Windows box, you can give it a static IP address, but there is an option to have it update the DNS server with it's IP and hostname. We are trying to do this on SUSE 11.I know I can get this function to work on SUSE if the box is set up as with DHCP. What we're having difficulty is when the server is set up as a Static IP to get it to update the DNS server
I'm considering making a switch from Ubuntu/Linux Mint to Fedora 15 because I just adore, love, cannot be without Gnome Shell any longer. SELinux - I actually am finding I hate this program as it blocks certain plugins (like Java), some programs I run it blocks functionality, etc. What's the best way to disable it or make it more like Ubuntu where it's pretty much permissive of everything. Common Apps I use - I haven't checked the repos, but at the least I use the following (some I know work, but I can't remember the specific ones I want to know if I need to compile or if it's in the repos)
a - Snes9x b - PCSX Reloaded c - KeepNote d - libdvdcss2 and libdvdread4 e - MP4, MP3, AVI, MPEG, OGG, OGV codecs (I think I've converted any others like WMA and WMV... wait I have a few WMA files, crap) f - Flash 64-bit - this one I have issues with SELinux wise, (reason for first question) g - VirtualBox - it runs so much faster under Fedora so I know this one works h - Sun Java
RPMs - Fedora uses RPMs right? Is there like an DEB Alien to convert DEBs to RPMs? Apache2 - Now maybe I found this as httpd or lightppd or something, but why isn't it listed as Apache2 in the repos? I'm more or less guessing that Fedora is not a "rolling" release, is there a variant or version that is or a repo I can enable? A software center, other than Synaptic; I'm pampered when it comes to Ubuntu Software Center and that, is there anything like that in Fedora that isn't Synaptic? What's the terminal command for installing packages, is it zypper or is that OpenSuSE?
I recently upgraded from 11.3 to 11.4 succesfully. I had to reinstall several applications and, some of them, can't be configured as default from the control panel (e.g. Opera as default browser, VLC as default media player). The problem is that droplists at the prefered applications don't show any other than the default ones, Firefox and TotemIs there a way I can change these settings via command line or a way to fix what applications are shown at the control panel?
Had a boot failure last night; first one for 11.3 64 bit:
Aug 23 19:32:06 suse1 gnome-session[4822]: WARNING: could not read /etc/xdg/autostart/ksmolt-autostart.desktop Aug 23 19:32:06 suse1 gnome-keyring-daemon[4800]: unable to create keyring dir: /home/rthornto/.gnome2/keyrings Aug 23 19:32:06 suse1 gnome-keyring-daemon[4800]: couldn't write to file: /home/rthornto/.gnome2/keyrings/login.keyring: No such file or direct ory
My .jar file needs and uses some files in the same directory it's in (everything, including the jar was unzipped into said directory). It runs perfectly when I do java -jar file.jar in the command line, but there's trouble when I double-click the file when running from the file system manager. I've tried a custom command under properties ie java -jar, but the problem is that the .jar file doesn't seem to be able to use any of the files in the same directory. When running, the jar can't find any of the files that it needs.
so the safest way to go about this is to assume I know nothing. I mean, I have a rough Idea of what a kernel is, no idea what a shell is, etc. I do consider myself computer savvy, but know NOTHING about linux and thats why I'm Diving in, hopefully not too much, this is just to give you an idea of what we're working with here.
After several install attempts I kept getting a blank screen. Whether it be black,white, or the default gnome desktop (without any icons, and simple things like ctrl+alt+backspace just doesn't work, or anything else for that matter) I was ending up with a blank screen. Driver for moniter....maybe....but I did succesfully install it once, and it worked like a charm...shutdown properly, and the next day after work...Boom, same thing after startup.today I started from scratch and re-installed....samething, until I hit the power button, went from the dvd(iso) and did a fail safe, now my resolution is much better than it was the first time..Actual questions.....what did I do to fix it when failsafe never worked before?
Is there a way to save these settings, so I don't run into the problem again, because I don't even want to turn of my computer at this point?If i'm trying to dive in and learn the command line actions, is there any substancial difference between gnome terminal or hitting "c" to bring up the command line?
Haven't found any references to this, just wondering where the "Run in Terminal" option has gone when creating a link to an application on the Desktop in 11.4/KDE4.6. Can do it manually by editing the .desktop file, but there is no option in the Link setup..?
how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here:
Code:
#! /bin/bash # #TODO write this for gnome and xterm
[code]....
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
I am trying to learn how to pass more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
Code: #! /bin/bash # #TODO write this for gnome and xterm USAGE=" ${0##*/} [-x] [-g] code....
However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.
This same error occurs if the gnome-terminal line is changed to
Code: gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
I've accidentally changed /usr/bin/php file on my server by running a cp command. I know this is bad, i just don't know how bad. Everything is working fine (websites using php), so i just wanted to know what this action could cause and also how can i restore original content.