i need to run this command at the boot of computer
Code:
hdparm -B 255 /dev/sda
i saved this command in the file /etc/rc.local but i don't know why...it doesnt work, so i have to run it after boot from terminal..here there is the content of the file:
i have a file, 2fsrl, that i want to run at startup. If i type /home/kent/2fsrl in the terminal it works. Although it won't work if i put the command in Startup Applications.
In my file is this: synclient VertTwoFingerScroll=1 synclient HorizTwoFingerScroll=1 synclient EmulateTwoFingerMinW=5 synclient EmulateTwoFingerMinZ=48
I know how to make things run at startup, and obviously know how to run a command in terminal (type and enter... duhhhh). However I would like to be able to run vnstat in terminal when my computer logs in, this is very handy for seeing how much I have downloaded. I have a terminal embedded on the desktop and would very much like to run vnstat in it for me when it starts, I know I could just type in vnstat when I've logged on, but where is the fun in that? Just having it already there for me would be far better.
The command for starting my desktop terminal is as follows: Code: gnome-terminal --window-with-profile=trans --geometry 90x40+280+30
Relative newbie here - seeking advice on having a command run on start-up. Specifically, I want to have a chgrp and chown execute on a specific directory, subdirectory and associated files. I'm not looking for advice on how to do it (I'd like to muddle through it on my own - I learn better). And, I'm not looking for alternatives. Background - I think this is the easiest way for me to have two users on the same PC upload photos that each user can have full access to, and do things like back-up etc.
I wish to enable battery tab in Acer 751, Lucid. The command I type in terminal every time I start the netbook is: Quote: cat /proc/acpi/battery/BAT1/info How do I make it run automatically on start up?
I know this has been asked a 1000 times, but none of the solutions I've read so far work.I need to run the following terminal command every time Ubuntu (10.04 64bit) starts:Code:xset m 9 1This boosts mouse speed to maximum. I don't know why, but it is the only thing that works. All built-in mouse settings are at maximum, yet my mouse crawls across the screen when Ubu starts. So far, I have tried:Creating a startup script called "/etc/init.d/autorun.sh" containing code...
I've searched everywhere, but they all talk about BOOTING into the terminal instead of ubuntu. But here all I want is for ubuntu to automatically run a certain command when I boot into ubuntu.This is related to the screen brightness change problem that's still much of an unsolved mystery for ubuntu and I have mostly solved this 'm able to change the brightness with sudo setpci -s 00:02.0 F4.B=xx, xx being from 00 to FF, but it doesnt seem to stay when I log out and log back in. Is there any possible way to put a terminal command in the startup applications or something or a possible solution to the brightness problem that I havent discovered yet?
How would i make ubuntu just execute this Code: deluged -p 10002 -c ~/delugebig/ at startup? Just print it as if i myself would print it in the termial.
Since a few weeks my PC have been working slow and the gnome system Monitor says that my cpu is working at 100% all the time. when I ran top command appears:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 770 root 20 0 4060 308 240 R 76 0.0 8:41.05 yes 919 root 20 0 4060 312 240 R 49 0.0 8:23.39 yes
I would like to setup a command to run when I start up the terminal, but have the terminal stay open for use when it's finished. I was trying to get my terminal to run fortune whenever I start it just for cosmetic value, so I tried changing the launcher command to gnome-terminal --command=fortune, but that makes it just output the fortune result and then terminate.
So I just partitioned my hard-drive, one side with windows the other to set free for ubuntu. It all worked fine. I put in the liveCD of ubuntu 9.10 and installed on to the partition. However, I have a problem. When it boots up it asks me to either boot into linux 2.6 or windows 7. Windows 7 works fine, but when I boot into ubuntu, the loading screen comes up and then it doesn't seem to boot into GDM. It's all command-line interface. I've tried sudo apt-get update and upgrade, but it isn't connected to my network yet so I can't do that. What can I do?
sometimes you want to run a command every time computer boots up. In DOS there is "autoexec.bat" in windows - "Startup" menu and I'm sure that there is a similar thing exists for Ubuntu, but that's not what I'm after.These things above will run a command when a user logs on. I want to run a command when a pc boots up. This is not straightforward in Windows, but since I'm a windows guy I can do this. I can install a command as a service with srvany utility that will make sure it will execute on boot up.Now I want to do a similar thing in ubuntu. how do I edit startup scripts in ubuntu to add an arbitrary command? I need to run the command in the context of a particular user, so I normally do it like this:
Code: sudo -u myServiceUser -i myService
But I want as little downtime as possible and sometimes it takes sometime to find out that there has been a reboot, get to a computer and run the command manually. If I could run this automatically on bootup I wouldn't have this problem.
I am using Ubuntu as the client machine operating system. I have a start up program to connect to a Windows terminal Server. I am needing assistance in how I can force the client to logoff if the terminal connection is terminated for any reason. This is more of a security issue as we do not want the students using the computer to access the loacl machine at all. The program works great on boot, but it shows the home screen when terminated.
I've just done a clean install of Ubuntu 10.04 and installed Freevo on it from the Medibuntu repositories. After rebooting I get a shell window with no frame in the top-left corner of the screen with the Ubuntu loading screen still taking up the rest of the screen. Typing 'startx' gave a error that there is already a display running on the port.
I'm trying to get synergy+ to work on Fedora 12 on start up. I'd like to be able to log into Fedora using my keyboard and mouse through synergy+. I've tried adding the line Code:synergyc <localipaddress> at the end of the /etc/rc.local file but I still can't use my keyboard and mouse to log in. I've also tried adding the lineCode:su <username> -c "synergyc <localipaddress>" to /etc/rc.local but it still doesn't work. Just to clarify, I do have synergy+ working on Fedora but I need to start it after logging in on each reboot by switching my keyboard over to the other computer.
As I tried to explain on the title, what i need is to run this command "NetworkManager --no-daemon" as root every time I start my arch+gnome so that the nm-applet would show on the panel.I need to know a way to do this automaticaly each time I start my pc
I'm a day-1 Ubuntu user with a question about getting multi-touch scrolling enabled on my laptop automatically each time 10.04 loads. I'm very green when it comes to all-things-Linux. Basically, I'm just searching for help, following step-by-step guides, and copying-and-pasting commands. I found the following website that helped me create a little script to enable multi-touch control:[URL]...
But I can't figure out the last step: "All you need to do to have this run at startup [instead of typing ./2fsrl in terminal manually each time] is add it to you startup programs." I tried creating a file path to the 2fsrl file in Preferences -> Startup Applications program, but upon re-starting the laptop, the multi-touch isn't enabled anymore. I'm sure I'm missing something simple. Can anyone advise? (Keep in mind my beginner's status!)
Every time I need to start or stop Tomcat, I am navigating to:
/Tomcat_Dir/bin
and once I am in the folder I enter:
./Startup.sh
And to stop the server, I navigate to the same directory and enter:
./Shutdown.sh
I was wondering if there was a way in Linux to alias the above described process, so that from any location in the filesystem, I can simply type in something like
StartTomcat or StopTomcat to perform the Startup and Shutdown of the web-server?
i'm trying to automate terminal commands to execute at startup (rc5)one is a background process: Code: xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Two-Finger Scrolling" 8 1 the other is a gui application: Code: /home/labr/apps/gmail-notify/notifier.py i placed these commands in /etc/rc.local but does nothing.
I login as root every time (its a closed system) and I am running it on a laptop. I want to disable the touch pad after typing for 4 seconds.I have tried adding this command:syndaemon -i 4 -dto rc.4, rc.local, rc.httpd, http.mysqld
I'm trying to start an Oracle Integration server as user "oracle" at system startup and my approach was to place a couple of lines in /etc/rc.localsu oracle/home/oracle/startallSomething is not quite right about this as it seems to leave some processes owned by root.
I want to run this command on startup. xmodmap /etc/xmodmap I am running Ubuntu 10.10 and need to remap keys. It only seems to work when I run it in terminal after I login.
I'm trying to backup a whole startup disk to another with GRSYNC but I don't need some files or directories. For example, I don't want to backup my 'swapfile1' (I do not have a dedicated swap partition) or the 'media' directory' in order to no enter a looping sync.I've searched the web for the correct syntax of the --exclude command but none have worked if applied in the advanced option "before" rsync starts. These a sample of NOT workin syntaxes:
exclude /media or -- exclude 'media' or -- exclude "media"
same for swapfile1:
exclude swapfile1 or -- exclude 'swapfile1' or -- exclude "swapfile1"
I've just added an application to load on startup in gnome.At first gnome loads properly,but after few seconds that application starts automatically and I can see its icon on taskbar , then gnome freezes and I can't do anything in gui.
How I can remove that application from starup of gnome using command line?