I'd like to change an application's niceness from the command line but by process name rather than PID.
I can already do this:
sudo renice -10 9461
To change niceness by PID, but this isn't a static value. How do I go about replacing the 9461 with an Application-Name so the same command always works to change the niceness?
How can I set xorg's default niceness? I found that things are better overall, if it runs higher than the default 0 niceness. How to make it to be automatical on startup?
I just searching a way to modify a hotkey like in system->preference->keyboard shortcuts but in command line, because I want to make a configuration file and I need to delete a hotkey.
I understand the basics, where certain files are located, how to change basic things, and very basic stuff with the command line (I use it to organize my files mainly). If at all possible could you supply me with a guide - be a website or a book to:
1) Just the general layout of the system (whats in the depth of the /etc folder and what naught)
2) How to more efficiently use the command line. As in where I am not giving in and using the GUI all the time.
3) What programming language(s) should I learn. I am thinking C and Python to start.
Imagine you want to know which command is carried out when, after executing gnome-mouse-properties, you go to the Touchpad tab and click on "Enable mouse clicks with touchpad".
Another example:
Imagine you want to know the command that is executed when, after running gnome-appearance-properties, you go to the "Visual Effects" tab and click on None.
I've had a look via gnome-system-log in all the log files of the left with no success. Perhaps the commands that run when one changes things in the GUI menus are logged in some other file. Or perhaps they are not stored in any log. In this case there is probably some terminal command to know it, or some program for this.
I think that know that no xorg.conf is used by default this is something to have into account.
I decided to install Chromium OS to my dad's netbook, and it works perfectly. The only problem is that i can't change the time. Luckily, I can access a command line by pressing CTRL+ALT+T. So maybe I can change it from the command line.
Basically, I'm in the terminal and I type in:cd desktop (or downloads or whatever)and nothing happens. I'm probably just being legendarily thick, but where am I going wrong?
I upgraded to Ubuntu 10.4 and for various reasons I found myself selecting a KDE session without KDE being installed. This has locked me into a situation where I can't boot up/log in properly. I can get to a command line and start the x environment as root. How can I re-set any user's preferences to default (via the CL)? Ie, I'd like to re-set a user (myself) so that I can again choose the log in to a gnome session.
I built Ubuntu desktop up from a server install. I'm using Gnome. I want to change the system's language, and I have no menu option to enter System>Preferences>Language Support. I need to either:1.) Install whatever will place that option in the menu.2.) Affect the change via the command line (preferable).I just can't figure out what to install and Google only produces GUI tutorials. =/
is there a way to change the gdm login screen (either the background image or the text in the login window) from the command line?i'd like to check several things at boot and report that on the gdm login screnn.
There's got to be an easy way to do this and I can't find it: I have 50 files with the extension .JPG. I want to change the extensions into lower case with one command.
I installed the latest version off the download site yesterday, when first booting an error message came up that my hardware does not support the most recent desktop environment so I should switch to classic. After a bit of googling I found out how to do this.
The problem is that my hardware really doesn't support the current desktop environmet, I can't get the windows to appear, I just get black rectangles in the middle of the screen instead, so the GUI is inaccessable.
I am looking for instructions on changing the desktop environment from a command line (which I can boot to).
I had chosen automatic logon. Then updated to 10.04. During logout to change Desktop Environment/Session, I noticed that GDM login screen had an option for KDE session although I had not installed KDE. I got curious. So I tried it. System hangs. Restart does not help because somehow gdm proceeds to the KDE session although I did not choose it to be default session. So I had only CLI left.
I got over it by stopping gdm (/etc/init.d/gdm stop) and removing gdm and installing xdm. Anyway, what is the proper way? How to order desktop environment from CLI and/or where is the default desktop environment option written in a file?
Is there a complete mirror list you can choose from the command line. There is good way doing it from Administration > Software Sources. However.. if you don't have X.. is there an easy way to choose between different sources(mirrors) without editing the sources.lst manually, but choosing for example main mirror or some other faster one let's say in your region?
On Ubuntu Desktop editions, there is a GUI application which allows easily changing to a different server. It can even find out how one is the fastest update server.Is there a corresponding command line tool available to do this? Because I'm using the Server edition without GUI. I hate to manually edit /etc/apt/source.list.
Anyone know if there is a command to change displays? Something equivalent to Ctrl-Alt-F1. I have my Ubuntu XBMClive box setup to run XMBC in Display :0 and Skype in Display :7. For some reason I have to start Skype last but then I don't know how to get back to XBMC automatically.
I'm trying to ssh my ubuntu laptop with my android phone. But with the app I have (connectbot) I don't seem to be able to pass any args to the command. I want to pass the -Y command to allow my phone access to the screen on my laptop so i can use my laptop (somewhat) from my phone. Can you change the args passed to the command while it is running?
Despite what the man page says, and what I have read out on the web, I cannot get the mail command to let me change the "from address" I have tried to change the reply address (-R my@address.com) I have tried to change the from address (-f my@address.com) ..... and so on Anyone have any luck, from the command line (as I am setting up cron jobs) in changing the "from" address? echo test | mail -s "This is a test" user@domain.com (this is the basic command I wish to use, but change the "from address")
I was wondering about the differences between "$PWD" '$PWD' `$PWD`. Basically I just don't understand exactly how '' "" `` change the output of the command.
I just got a laptop (DELL PP06S) from a friend set up on kubuntu. He told me to download and run the updates packages if I had time. So so did I and now the computer stops on an error at boot and I can't log in at all to type any command. The error message coming up is:
And it seems to try that action over and over but I never get to log in and type any command. I got told to check the drive cables connections, which I did but it made no difference. I also got told that I could try to start with an older kernel, I tried all the different kernels available in the GNU GRUB but no success. The different options availables are:
Ubuntu, with Linux 2.6.32-26-generic Ubuntu, with Linux 2.6.32-26-generic (recovery mode) Ubuntu, with Linux 2.6.32-25-generic
[code]....
From my understanding these are the new and older kernels, is that right? I had to do the updates in 3 times so I guess the kernel from before then isn't in the list anymore. Every one of them shows the same error message and no way to get a console. So I can't type any command. Though, I found out that I can type commands in the GRUB, is there any way to change the kernel from the GRUB? If so what would be the commands?
I want to display 4 options using the case command and refresh the screen when options 1 and 2 are chosen (no changes to the options and you get asked again to chose option), but give a message for option 3 and exit on option 4. I set this up with the script below, but choosing option 1 works and choosing option 2 exits the script.
I have Red Hat version 4 I was trying to change the root password with the passwd command.I get the error passwd: PAM [dlerror: /lib64/security/sufficient: cannot open shared object file: No such file or directory] I have change the password before.
I'm sure it's possible, but I haven't found an elegant way to do it. I can't just use the GUI since I want to integrate this line of code into a greater shell script for this project.
My preferred terminal is terminator, but it doesn't really matter at this point.
I want to change the default command line editor from vim to nano, so for example when I type "visudo", I want it to user nano. In Ubuntu this can be easily done by using "update-alternatives --config editor", but openUSE doesn't have an editor-option