Ubuntu :: Auto Run Command Line?

Feb 22, 2010

I've Ubuntu installed on a SD card running on my Eee PC 1000H and have to type in, everytime after startup, this line:

Code:
sudo hdparm -B 1 -S 1 /dev/sda
to turn off the noisy HDD. How can I auto execute this command?! System>Startup Applications didn't work

View 3 Replies


ADVERTISEMENT

Ubuntu :: How To Make Command Line Auto Run On Boot Up

Dec 20, 2010

In dealing with the Nvidia Powermizer, I have to set it to "Prefer Maximum Power" mode from adaptive mode in order that I can avoid laggy in using my GUI. However, it doesn't save this setting so I have to manually tweak it everytime........

Someone on the web taught me to use the following command line:
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1
running it in the terminal it will set to the mode I want.

Would I be able to make my computer run the above command in terminal everytime it starts? I tried to put the command in the start up applications and it seems not working.

View 5 Replies View Related

SUSE :: Disable Opensuse Auto Login From Command Line?

Mar 2, 2010

I have installed opensuse on VirutalBox , during installation I said "yes" to autologin as normal user.After installation and restart , it shows follwing message "Logging in Laks ...Cannot enter home directory . using /"I can login as single user by passing "single " in grub.

View 9 Replies View Related

Ubuntu Networking :: Didn't Configure - Auto Network Config Command Line

Jan 22, 2011

I just recently installed ubuntu server. I want to be able to install packages and such but can't until I connect to Internet. I tried wifi but couldn't figure out how (I'm a n00b) but now I have ethernet and can't figure out how to make it work. So my question is, how do I connect to my Ethernet with ubuntu server, I could if I had graphical, but I can't get that until I have Internet. I didn't configure network during install, so how do I do it now?

View 3 Replies View Related

Fedora :: Get ADF (Auto Document Feeder) On A Printer To Work From Command Line?

May 4, 2010

know how to get ADF ( Auto Document Feeder ) on a printer to work from command line?

Running F12 and my printer is HP OfficeJet 7310xi

---------- Post added at 10:57 PM CDT ---------- Previous post was at 10:17 PM CDT ----------

I found this scanimage -b --batch-scan=yes > output.pnm

View 2 Replies View Related

Fedora :: Run Python3 Scripts From Command Line And Call Up Python 2.6.2 Idle With The Command Idle From Command Line?

May 29, 2010

i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?

View 5 Replies View Related

Software :: Use Command Line To Split A Single-lined XML Into A Multi-line XML?

Dec 9, 2010

I have a many text files that have XML tags all shoved into 1 line. I want to create a new file that splits each XML tag onto a new line. code...

View 3 Replies View Related

General :: Command Line Way To View A Line Of A File With Context?

Feb 24, 2011

I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:

$ (something) -l 154 stuff.py
150: def foo(bar):
151: """

[code]....

View 5 Replies View Related

General :: Printing Command Line History Without Line Numbers?

Aug 22, 2011

How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt

View 1 Replies View Related

General :: Ubuntu 10.10 And Command Line Scripts - Error - Android: Command Not Found

Mar 26, 2011

I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...

I just installed the JDK, SDK, Eclipse successfully (or I assume):

* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).

** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,

My system:

Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2

View 5 Replies View Related

Ubuntu :: Is Command Line Invocation Of Gnome-terminal To Run More Than One Command

Feb 17, 2010

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.

View 1 Replies View Related

Programming :: Effect Of Using Eval To Execute A Command As Opposed To Writing It On The Command-line?

Jun 18, 2010

Code: cmd='date | wc'

$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?

View 4 Replies View Related

General :: Access The Dbxml From The Command Line And It Returns Command Not Found?

Apr 30, 2011

I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found

path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found

Can someone point me in the right direction

View 1 Replies View Related

Software :: Command Line: Chown Command Recursively On Invisible Directories?

Oct 25, 2010

I tried

Code:

chown -R owner:group *

which does not work on the invisible directories (why?). When I used ".*" as wildcard it changed all (visible) files including the parent directory (the one I was currently working in which is the "dot") . I can change the invisible directories owner and group using dophin but how is it done from the command line?

View 9 Replies View Related

Programming :: Command Line Invocation Of Gnome-terminal To Run More Than One Command?

Feb 16, 2010

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.

View 4 Replies View Related

Programming :: Convert This Awk Command From Command Line Into An Awk Script ?

Oct 15, 2010

I'm trying to convert this awk command from command line into an awk script, but just cannot get it to work:

This is what i have after my BEGIN

Am i missing something here? this just prints out the count for everyline, not counting lines on 5th field that match 'A'

View 1 Replies View Related

General :: Fstab Line For Auto Mount Drive That All Users Can Read/write?

Jan 4, 2011

I have installed a cable that connects from the CPU's SATA motherboard connection to a removable drives' ESATA connection.I would like to be able to swap drives on the ESATA connection and have all users be able to read and write to these drives.I have created the directory /archive/ where I would like the drive(s) to mount.The drives are all formatted Fat 32 - but in the future I may use HFS for formatting.When I used the command (as root):mount /dev/sdc1 /archivethe drive was mounted (but read only)What can I use in my /etc/fstab file that will allow drives to be mounted and unmounted by all users on the system? (both reading and writing)Also, will I be able to mount and unmount these drives without shutting down? or will I need to reboot every time I want to change drives?

View 2 Replies View Related

General :: Write <Esc> In The Vim Command Line (:vim Command)?

Jun 24, 2011

how do you write the ASCII character #27 in the vim command line?

View 6 Replies View Related

Software :: Command Line Cd Command Not Working Right

May 4, 2010

Using netbook asus 1005ha with lucid beta 1 with most of updates on learning to use the CLI and headaches cd command does not seem to reconise directories here is a sample

Code:

yeh i know read the f#####g manual i am but any help would be greatly accepted tried sudo with same commands same problem did have a problem on my debian system that was to do with paths this is not the same on a different footnote anyone thinking of upgrading to lucid sit tight on 9.10 there are still to many issues that need ironing out for a system that is your main system.

View 6 Replies View Related

Ubuntu :: Cron Command: Runs From CLI, But Not Auto?

Mar 10, 2010

I have a script that is basically a series of rsync commands called bkup_all.sh. This script is located in the /root/ dir.From the command line (su'd as root), I can run the script like this:/root/bkup_all.sh > /var/log/bkup/bkup_$(date +%Y%m%d).logThis excecutes perfectly, and all the rsync adn script output is saved in a log file in the intended destination. However, I want this command to run automatically, so again, su'd as root I enter:crontab -ethen enter the following:00 02 * * * /root/bkup_all.sh > /var/log/bkup/bkup_$(date +%Y%m%d).logI want the script to run each night at 2:00am.But, the script does not run. There is no log file generated and I do not see anything in the syslog or system messages to indicate an error.

View 2 Replies View Related

Ubuntu :: Auto Logoff Command When Startup App Is Terminated

Dec 17, 2010

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.

View 1 Replies View Related

CentOS 5 :: Bash Script Command For Auto Login On Several Hosts

Nov 2, 2010

I am trying to make a bash-script for auto-logins on several hosts, seems there is a problem with the quotes and I can't figure it out. I've experimented with singles and doubles but no luck yet. Below are two variants with respective outputs. In both cases the output of echo works fine if I copy and paste it to a prompt, but when executed from the script it falls down.

* Only one case-clause for testing...
* Not possible to use passwordless key-login

#!/bin/bash
PASSWORD="my_password"
case "$1" in
"example1" ) HOST="example-host-1"
echo $HOST;;
esac
if [ $HOST ]
then
COMMAND="expect -c 'spawn ssh $HOST ; expect assword ; send $PASSWORD
; interact'"
echo $COMMAND
exec $COMMAND
else
echo "No host argument"
fi

View 7 Replies View Related

General :: DBus Command To Toggle Auto-hide On A KDE Plasma Panel?

Mar 5, 2011

Is there a DBus command (or some other way from the command line) to toggle auto-hide on a panel in KDE Plasma? (I'm running KDE 4.6.)

I have a game I run in WINE that doesn't work right if it's autohidden and it would be nice to run it from a script that takes care of that for me.

View 2 Replies View Related

General :: Windows Command Prompt Auto-completion With Forward Slashes?

Jul 26, 2011

I switch between Linux and Windows quite a lot and it's annoying the hell out of me that the Windows command prompt won't auto-complete directory paths when I press Tab if I use forward slashes like in Linux.For example, if I'm trying to navigate to a directory 'bin':

cd /path/to/dir/b <tab> - this won't auto-complete to 'bin'
cd path odir <tab> - this will auto-complete.

Can I tell the Command Prompt to use forward slashes instead?

View 1 Replies View Related

Ubuntu :: How To Do Everything From Command Line

May 8, 2010

How can we do everything, or as much as we can do, from the command line? In particular, I am trying to get rid of the top panel in Ubuntu. Because,

1) It takes unnecessary valuable space.
2) Even if I use a huge monitor, it introduces distraction to me while working.

I created a shortcut so that with a single keyboard key I can open a terminal. For example, if I want to restart the computer, I use: "sudo shutdown -r now". Or I can even create a shorter alias. So I do not need the logout menu. But my problem is, some programs put an icon on the top panel when they are working. So, what is the best way of using command line, and getting rid of the top menu.

View 5 Replies View Related

Ubuntu :: 7-zip Still Command Line Only?

Sep 5, 2010

I was wondring if 7zip still only runs in the command line. I searched and got a bunch of old threads like this: [URL].. but I'm not sure if that has changed since 2007. A GUI would be awesome.

View 2 Replies View Related

Ubuntu :: How To FTP Using Command Line

Sep 17, 2010

I have a virtual private server that I SSH into. While I am using SSH, I need to be able to FTP from command line to another server. I want to do this in the easiest most sure way possible. (I am not using my real IP below for security.) I have tried the following commands.

sftp 10.99.99.99
ssh: connect to host 10.99.99.99 port 22: No route to host
Couldn't read packet: Connection reset by peer
ssh 10.99.99.99
ssh: connect to host 10.99.99.99 port 22: No route to host

View 5 Replies View Related

Ubuntu :: No Command Line / Get That?

Dec 7, 2010

About two months ago I upgraded my dual boot Linux-x86-64 Vista from Heron to 10.04 Lucid. Initially everything worked fine including wireless etc. Once I accidentally changed a few /etc permissions which caused a problem, but fixed it going into recovery mode. For the past weeks, I only used the windows. Over the weekend I tried logging into Ubuntu, the gnome would not come up. So, I went into recovery mode and typed "sudo apt-get update && sudo apt-get upgrade" which also went through. However, after that I lost the recovery options. I had used that command very successfully in the past. Right now, I have no command line that would allow me to type something. I was wondering if there are any keys Alt+Del + something that would give me a prompt I can work with. I'm totally baffled as to how this can happen.

View 1 Replies View Related

Ubuntu :: Run Jar With Command Line?

May 10, 2011

I have installed java runtime and I need to run jar file,Im not using gnome desktop,so I need a command to run it.Im using fluxbox.

View 2 Replies View Related

Ubuntu :: Log In To Command Line?

Apr 3, 2011

I installed Ubuntu 10.10 some time back and what I encounter is that for the first time that I log in it shows graphical interface but from the 2nd time onwards it goes straight to the command line. I have tried few things which were I found out on other forums but nothing seems to be working. how can I log in to GUI rather than command line.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved