Ubuntu :: Run Command Lines On Boot?

Sep 11, 2010

how i run the following lines onboot

code:....

/media$ sudo mount /dev/sdb1 /media/mediaStorage1
/media$ sudo mount /dev/sdc1 /media/mediaStorage2

View 5 Replies


ADVERTISEMENT

Software :: Command To Get History Command Lines And Time In SUSE?

Jun 23, 2009

I have to trace back what command and when it is used for the last 3 months. It is quite urgent as I have trouble with the system configuration.

View 5 Replies View Related

Programming :: Command To Run Another One On Few Lines

Jul 23, 2010

Is there a command which can be used to run some other command on a few lines from a file or an o/p of some file. (the kind of role that -exec option does for the find command). (I have solved the purpose using a bash loop but would like to know if there exists a command).

View 4 Replies View Related

General :: Triming Lines Using Shell Command?

Mar 22, 2011

i have a text file generated automatically from a script , but the result in the script is not ordered in a readable way, so i need your help to fix it using a shell command the text file contain data in this way :

Code:

0.147361 0.243688 0.081520 -0.446603 1.130529 NC_000846 Chordata
Rheiformes
Aves
0.091740 0.379224 0.021160 -0.088493 3.441356 NC_000857 Arthropoda
Diptera

[code]....

i want to arrange the data in this text file in a way that each line will concatenate the 2 lines after it , so that will be 1 line , i want all the lines to be treated in this way ,

View 2 Replies View Related

General :: Multiple Lines At The Command Line?

Feb 22, 2011

I've seen a few tutorials that have commands and parameters on multiple line, like the one below:

Code:
chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start

I can copy and paste this in Putty, but what if I want to manually type it? If I press return, the first line gets processed, so how do I insert a new line?

View 4 Replies View Related

Ubuntu :: Command Not Found \ Edit The 2 Files And Delete The Insert Lines?

Mar 10, 2010

i try do modify BASHRC and ENVIRONMENT files on directory ETCthen all the command don't work, such as:SUDO, GEDIT, NAUTILUS, NANO and some others!now i want to edit the 2 files and delete the insert lines

View 9 Replies View Related

General :: Breaking Long Command Into Lines In Crontab

Oct 14, 2010

How to break strings of command into multi-lines in crontab? e.g.
Code:
# the following is a very long a gruesome command to be run at 09:59 Monday to Friday.
59 09 * * 1-5 source $HOME/some-definitions; sh /usr/local/my/long/name/application/bin/hello $(date +\%Y\%m\%d) >>/var/log/my/long/name/application/log/hello.log

View 2 Replies View Related

General :: Command To Swap Even And Odd Numbered Lines In A File

May 28, 2010

I'm looking for a command to swap the even/odd numbered lines in a file. Example input file:

Code:

1
2
3
4

[code]...

Example output file:

Code:

2
1
4
3

[code]....

I'm sure there's a way to do it with sed, awk, grep and the like but it's been many years since I've used these commands on a daily basis and I can't seem to figure out the correct syntax.

View 2 Replies View Related

General :: Check Version Of Program Using Command Lines?

Jan 20, 2010

How to check the version of a program, in particular geant4, in linux using the command lines?

View 4 Replies View Related

Server :: Set The Cat Command To Read Specified Lines Of A Text File?

Feb 17, 2011

how can I set the cat command to read specified lines of a text file,like if I have a text file with 100 lines, who can I say cat only line 23 to 42?

View 3 Replies View Related

Programming :: Using Variable To Store Command Lines In A Pipeline?

Jan 28, 2010

Was trying to write a shell script that has if conditional statements to decide different arguments for a command.Basically:

Code:
if [ "$1" = 1 ]
then

[code]...

View 6 Replies View Related

Fedora Installation :: What Are The Command Lines To Install Gnome But With The Minimal

Jan 24, 2011

installed fedora with the minimum option on the dvd. After that i logged it and im tring to install gnome, heres the catch though i only have 950MB worth of space. I noticed if i use the groupinstall "X Window System" it fails because of the space. Also it installs alot of things that I am not interested. what are the command lines to install gnome but with the minimal, no FF, no evolution, you get my point.

View 3 Replies View Related

Server :: Display All Databases And Their Size Using Command Lines In Mysql?

Aug 7, 2010

how can I display all databases and their size using command lines (linux) in a mysql server?

View 3 Replies View Related

OpenSUSE :: Count Lines In Multiple Text Files From Command Line?

Apr 27, 2010

I want to (from the command line) be able to counte lines in a bunch of files of a specific type in a folder and all its sub-folders. How would I do this?

View 1 Replies View Related

General :: Tcpdump/ngrep Sniff Packet Network Command Lines?

Jun 21, 2011

I would like to know the command lines for;

-detecting the wifi in my house without being connected to it

-getting ips/macaddress from the people connected to the wifi

View 2 Replies View Related

Ubuntu :: Boot Screen In Low Res With RGB Lines?

Sep 5, 2010

Everything was going great, updated my nvidia drivers, did initial updates etc... And everything was awesome from the boot screen to the shutdown screen.Recently (today) I installed a few updates that update manager thought were essential. However after doing so, when I restarted my computer and got to what should have been the boot screen, it simply sat for a few seconds with a few horizontal RGB lines and then booted to the login window... I have done nothing else to the pc besides those updates.Also when I shutdown I get the same few RGB lines, they are in the top area of my monitor @ a 135 degree angle.

View 1 Replies View Related

CentOS 5 :: Search A Text File For The Existence Of Certain Strings And Execute A Command If They Exist, Something Along The Lines?

Feb 23, 2010

This should be simple but I can't seem to find what I am looking for.I want to search a text file for the existence of certain strings and execute a command if they exist, something along the lines of:

if <string> exists
command
or

if <any member of this list exists>
command

I know how to manually search a file with grep, cat, etc., but the "if this exists" part eludes me.

View 7 Replies View Related

Ubuntu :: Wobbly Windows Lines - Get These Lines When Drag/move The Window Upwards

May 31, 2011

I've just installed Kubuntu 11.04, switched on wobbly windows effect. It runs very smooth on my Nvidia GeForce 7600 GS with dual screen twinview turned on. However, I get these lines when I drag/move the window upwards - see screenshot:

View 6 Replies View Related

Ubuntu :: 10.04 Boot Up - Plymouth Displays Some Stuff - Several Lines

May 6, 2010

My system runs fine, I have an Nvidia card and when I boot up I guess it would be Plymouth displays some stuff; several lines and it goes by too quick for me to be able to read much of it.

Then it goes back to normal and the login in screen appears like normal. Everything is normal except for the black display and the stuff that is displayed before the login screen appears. Even with this, my system boots up in under 20 seconds at last check.

Is there anything I should/could do to get the errors or information lines or whatever they are to not show up?

I installed Lucid during beta (I think) and have kept up with the updates and all appears smooth to me. I have a super nice custom grub2 screen.

View 5 Replies View Related

Ubuntu Servers :: No Boot Up With Added Lines To Fstab

May 11, 2010

I recently formatted my HDD and installed Ubuntu Server 10.04 x64. This is actually the 4th install in the past week because I was testing some things. But I had this problem on at least the previous install which made me want to start fresh again. The problem I'm having is Ubuntu will not boot if I add any of my drives to fstab. If I leave it with the standard proc, /, and swap lines it works fine. As soon as I add a line for one of my RAID arrays or an NTFS formatted partition the system hangs on bootup. It doesn't matter if I have the extra drives operating or not.

The last thing I see before it hangs is:
Code:
/dev/sda1: clean, 69351/4358144 files, 583945/17401600 blocks
Here is what the fstab currently looks like:

Code:
proc /proc proc nodev,noexec,nosuid 0 0
UUID=c62ac627-46a6-4fd5-87e8-4ae0d9185d53 / ext4 errors=remount-ro 0 1
UUID=c1cee1e4-f8ac-4555-a88b-f237afdedd27 none swap sw 0 0
/dev/md0 /mnt/raid5 ext4 defaults 0 0

The other two lines which also made it hang included one which was almost exactly the same as the /dev/md0 line except it was md1 with a different mount point and another which used a UUID and was ntfs-3g. I know they work because all 3 of them were mounted by "mount -a" after putting them into fstab and they're pretty much the same as what I was using with 9.04 server.

View 3 Replies View Related

OpenSUSE :: Web - Screen Loads And After Initial First Few Lines Breaks Up Into Multiple Repetitions Of Lines

Apr 22, 2011

I have been experiencing a problem where the screen loads and after initial first few lines breaks up into multiple repetitions of lines. Reloading helps but has to be repeated when pageing down. Mail is no problem; it is supplied by my network provider. OS is openSUSE 11.2 which I update when advised. Below is a sample from the error console:

[Code]...

View 1 Replies View Related

Ubuntu :: Boot Splash Static With Green Lines Across Image

Mar 17, 2011

Upon boot up the usual little mouse splash boot is suppose to come up. Once I first installed it (10.10 via usb) the boot screen worked perfectly but after I updated via the update manager the boot splash became all static and green lines across the image. It still boots up to the login screen but it's just ugly looking at it.

I have (via hwinfo)
20: PCI 105.0: 0300 VGA compatible controller (VGA)
[Created at pci.318]
UDI: /org/freedesktop/Hal/devices/pci_1002_5a61
Unique ID: ul7N.dFXV26GrjA4
Parent ID: vSkL.CTscIjbcyd9
SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:05.0
SysFS BusID: 0000:01:05.0
Hardware Class: graphics card
Model: "ATI Radeon XPRESS 200 5A61 (PCIE)"
Vendor: pci 0x1002 "ATI Technologies Inc"
Device: pci 0x5a61 "Radeon XPRESS 200 5A61 (PCIE)"
SubVendor: pci 0x103c "Hewlett-Packard Company" .....
Primary display adapter: #20

View 4 Replies View Related

Programming :: Remove Lines And Parts Of Lines From Python Strings?

Nov 24, 2009

How do you remove parts of strings using python? Such as, if I have something like:

Code:
erme1 sdifskenklsd
erme2 sdfjksliel

[code]....

View 3 Replies View Related

Ubuntu :: Splash Screen Messed Up - Get Random Command Lines Mixed In With The Usual Splash

Jan 26, 2011

Since updating my graphics driver on ubuntu 10.10, My splash screen has been inconsistant and messed up. Sometimes ill get random command lines mixed in with the usual splash, sometimes the splash wont show and it will just be black till the desktop appears, sometimes it flashes on and off. I originally tried fixing the resolution and just made the problem worse. Then I tried installing a new splash via gnome-look.org, but it just made my shut-down splash blank and didnt effect my splash at startup. I just want the original splash that ubuntu is supposed to have.

View 6 Replies View Related

Debian :: Auto Start At Boot Us The Following Lines In The /etc/rc.local?

Jun 13, 2011

I am using Deluge on my Debian server, for a simple auto start at boot I us the following lines in the /etc/rc.localsudo -u User delugedsudo -u User deluge-webDeluge is running after boot but i wane check if its running with User account and not as root.So I did a ps -aux | grep deluge and notice a line that root is trying to run the command sudo -U User deluge-web (i think its trying).

User 1735 1.5 1.0 187680 21604 ? Sl 16:30 0:04 /usr/bin/python /usr/bin/deluged
root 1736 0.0 0.0 20924 1168 ? S 16:30 0:00 sudo -u User deluge-web
User 1737 1.5 1.1 70400 24084 ? S 16:30 0:04 /usr/bin/python /usr/bin/deluge-web

The question is what does this mean? can i leave it running, is it better to kill it if so how to prevent that it happen on start-up.

View 6 Replies View Related

Ubuntu :: Rename And Delete Lines In Boot List (GRUB 2) - Lucid Lynx

Aug 28, 2010

how to change (rename, delete) lines from boot list in grub 2, Ubuntu 10.04? For example, when I boot my pc, I have a boot list with options "Ubuntu 10.04", "memtest" and "Windows 7". I want to delete "memtest" line, as I don't need it, and rename "Windows 7" line to, for example, "Windows 117". How can I do that? Where I should look and edit? In old grub it was enough to edit /boot/grub/menu.lst, but in Ubuntu 10.04 there is no such file and other grub2-related files (like grub.cfg) do not contain this info to rename or delete lines. So, I can't figure out what to do.

View 3 Replies View Related

Fedora Installation :: Black And White Lines On Boot LiveCD Or HDD?

Jan 9, 2009

Downloaded the F10 live CD. Booted to it, got past the white, blue, and dark blue loading bar then my screen would be covered in black and white lines. No sign of the GUI except for a mouse cursor. ctrl+alt+backspace would cause the display to blink off and then come back on to the same thing. ctrl+alt+f2 would bring me to a terminal, logged in as root, but from there I couldn't do anything. startx would tell me I had x running on another screen.

hitting tab when booting the livecd and adding "xdriver=vesa" and "nomodeset" to the boot line. That works. I get to the desktop at native res with desktop effects. Killer. I tried to install; install went flawless, rebooted to my HDD and the same issue, black and white bars. When booted to my HDD, however, ctrl+alt+f2 doesn't bring me to a terminal, it causes my monitor to go into sleep mode and my computer becomes unresponsive so I can't do anything from the command line.

Here's what I'm getting at : how do I get my installed version of F10 to do the "xdriver=vesa" and "nomodeset" args that the livecd can do?

My machine is a home built machine I bought off of a friend. P4 2.4 ghz, GB RAM, 2 80GB HDDs, Radeon x1600.

View 3 Replies View Related

Fedora :: FC12 Shows Interlaced Colored Lines During Boot Up

Apr 10, 2010

When I boot up F12, after I have decrypted the hard drives and after the services have started but before I get to the login screen my display flashes a series of interlaced lines across the screen. As far as i can tell theres no other problems with my computer, everything else seems to work fine. Its been there awhile now and its still there after a yum update. On first boot up of the day it shows white/gray lines (firstboot.jpg) [URL]. On subsequent shut down, boot ups it shows a blue, almost denim like display (shutdown.jpg) [URL]. Theres no problem if i just do a restart. Maybe related as well, last week some time my computer froze (opening large file, watching dvd and had firefox open, guess I ran out of memory?) So I did a reboot using the button on my computer, at the point where I usually get the coloured lines it instead showed a snapshot of my desktop just before it crashed. Though this happened after I first noticed the coloured lines.

View 4 Replies View Related

General :: Delete All Lines Containing A String, Plus 4 Lines Below It?

Jan 26, 2010

I've come across an unusual requirement for a service in my Ubuntu system.Simply put, I need to find a way to search for all instances of a term in a file, delete lines containing containing that term, and delete four lines below each instance of that term. ither that, or copy the entirety of a file to a new file and skip over all lines containing the term plus four below it.This sounds kinda weird, I know. Without going too far into detail, I either have to change the logfile format for a server I'm running which is a huge pain in the butt, or I can just run a script to edit an HTML report generated from said logs. (Said report is really just for managers to peruse, and I like my log format, so I'm pursuing option 2.)

View 4 Replies View Related

Debian Installation :: Installed Vmlinuz And Initrd.gz (squeeze) In /boot/newinstallation And Added To Grub The Lines?

Sep 17, 2010

I have installed vmlinuz and initrd.gz (squeeze) in /boot/newinstallation and added to Grub the lines:titleNova InstalaĆ§Ć£oroot(hd0,0)kernel/boot/newinstall/vmlinuzinitrd/newinstall/initrd.gzNevertheless, when I choose this option at the grub, it begins to start the kernel vmlinuz and thus restart the system. The installed Debian Lenny boots in a normal way.

View 10 Replies View Related







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