Ubuntu :: Changing A Line In Gedit Using Terminal?
Jun 28, 2010
I have a .sh file that I need to change one line every time I execute it. Right now I keep having to open up the file and change the line to use it.How can I create a .sh file that creates a random name whenever it's executed.Here is the line:Code:cattach /home/user/.tag mockI need to change the word "mock" every time I execute the .sh file. How could I do that?en on the other .sh that I have, this word "mock" also needs to be changed, but it needs to mirror the random name given in the first .sh file.
When scrolling down in nano with keyboard (holding "down" key), nano scrolls several lines at once each time. Is there any possibility to configure it so it will scroll one line each time like gedit does when scrolling in gedit?
I am working with scientific linux 4 with specification Linux localhost.localdomain 2.6.9-67.EL.cernsmp #1 SMP Wed Nov 21 16:22:33 CET 2007 i686 i686 i386 GNU/Linux. How can I change my cursor color from black to green in gedit
I am using Scientific linux 4 cern with the following configuration: Linux localhost.localdomain 2.6.9-67.EL.cernsmp #1 SMP Wed Nov 21 16:22:33 CET 2007 i686 i686 i386 GNU/Linux I want to change the cursor color from black to green in gedit in GNOME. How can I do this? Chnging fomt color doesnot work.
Using the latest version of Ubuntu desktop on an emachine t5062 if it matters. I have a text file of keywords that is one-three words line after line for like 5000 lines. How would I go about adding a word to each line.Aside from typing it in or copying and pasting.If it can`t be done with Gedit I am all for using another program.
I am trying to use the gedit command to edit my smb.conf file. It was originally working and all of a sudden it has stopped working. I have typed.. 'gedit /etc/samba/smb.conf' but it is a no go. I used the chmod command to set permissions as.. 'chmod 744 smb.conf' However I am still unable to get the file to open. If I do the 'more smb.conf' command I am able to read the contents of the file, however I am unable to edit them.
getting this error when I try to use gedit to open and edit a file through terminal: (gedit:4423): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply:Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL]... 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.) GConf Error: Failed I'm using ubuntu 10.04.
I searched the menu-bar of gedit, i searched the web, i searched the help of gedit.(try a search on "change background to black for gedit" and similar and you know what i have gone through).If i use the embedded terminal in gedit (the only reason i use gedit at all) its background color is set to white.I barely can read it and it is useless.This is not a gnome-installation. Perhaps i miss a package needed ?
This seems to be a gnome theme probs (even thought the panel and other stuff (QT etc...) is being themed. Does anyone have any idea as to how to fix this? [URL] edit the notification has the same prob...
Every time I invoke gedit from the root terminal I get:-
[AnOther@FSLServer ~]$ su Password: [root@FSLServer AnOther]# gedit
(gedit:6447): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
followed by 33 occurrences of:-
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL]. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)gedit opens fine but it seems really odd. My exposure to linux is not vast but this has never happened before Fedora12 It doesn't happen if I just use the terminal as an ordinary user.It also has nothing to do with the Bad & Ugly Gstreamer plugins as this happened from the moment the system was installed from the DVD and before the plugins were loaded even after removing them and rebooting I still get the ream of GConf errors if I start Gedit after su,
I get error when trying to open files with gedit from terminal, here the esteps:
Code: 1. Open Terminal 2. Show: [tgp@nobocanuser ~]$ 3. type: su 4. password: ****** 5. Show: [root@nobocanuser tgp]# 6. Type: gedit /etc/X11/xorg.conf (or another file to edit) 7. Show: (gedit:2687): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported [Code]...
Everyone is wondering why we can't run gEdit and other tools from a terminal by logging in as root(e.g"su-"), I understand that by making changes they are trying to force us as users of Linux to learn better habits that are more secure, but the issues are driving people nuts!
I for one really like being able to log as root and open gEdit to make drive changes without having to login as root, I would normally still have access to all my things like email etc. So changing Linux to force everyone to not use tools like gEdit as root is becoming more of an inconvenience than they realize, there must be a safe way to do this!
Strange line of text appeared on open gedit page on first use after upgrade from 10.04 t0 10.10. I was reading something and copypasting the odd bit onto a gedit note: left the room, returned to find blank page except for "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn". Then I saw that it was just the tail-end of a longer line which had stretched the page width to max, and by deleting backwards I arrived beneath my intact notes. The line was "I[my bolding]nnnnnnnnnn...nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnby v9898". I googled v9898. And there's a v9898. com. It provides something for Windows systems.
When I try and run gedit command through terminal to edit files it won't open them
Quote: (gedit:4113): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
I am running Ubuntu 10.04 LTS. Scrolling the Terminal window up/down works fine using the SHIFT+PAGEUP / PAGEDOWN key combination.
Many times I feel like scrolling the window, line by line to investigate the output minutely. I am wondering if there is a keyboard shortcut to scroll the Terminal up/down line by line?
Moreover, I suddenly happened to discover that SHIFT+CTRL+UP Arrow /DOWN Arrow scrolls my terminal window up and down line by line. I am glad to see that working. But it does not work that way on another Linux system (CentOS), not even on console. So I am not sure if this is a real solution. Is this a configurable item on Linux Terminal to enable / disable this keyboard shortcut?
I am trying to make wine work for explorer. I followed some instructions on this link [URL] To follow this link, I am supposed to
cd ~/ies4linux/ie6 cp user.reg ~/user.reg.old gedit user.reg
1st and 2nd line went well 3rd line when I try to execute the command gedit user.reg (gedit:2573): Gtk-WARNING ** cannot open display I then /ies4linux/ie6# ls dosdevices(in blue) drive_c(in blue) system.reg(in white) userdef.reg(in green) user.reg
I would like to make all of the computers in our lab look/behave the same. I have messed around with some of gconftool-2 to change the desktop backgrounds, but I can't figure out the following:deleting the bottom paneladding the window list to the top paneladding the force-quite applet to the top panelremoving all menu items from the system/preferences menu but soundremoving all menu items from the system/administration menu but printing and system monitor
I have been working on this script for my install for quite awhile and almost everything is done (installs, uninstalls, setting up wireless, etc...) but now I want to get to the....prettier stuff.
Two questions:
1. How do I add GDM themes to the list from terminal? Right now I go through the login window GUI but it'd be nice to add them without having to do it through that (so I can automate it )
2. How do I then change the setup to where I can have multiple that it chooses from and that it chooses from those I've added (again, I do this through the GUI but...you get the point)
I am using Fedora12 on desktop. I tried to change keymap from systm->preferences->keyboard->layout. This changes my keymap successfully. I want to perform above activity using command line for my powerpc target. My powerpc target environment do not have KDE,GNOME or any x-windowing support. which command and which files to be overlooked for this?
I want to change keyboard layout not keymap from command line.
I am having an install problem where the distro I am installing, installed at the wrong screen resolution. The display settings menu doesn't offer the correct resolution so I'm using half my screen real estate.
To flesh out my *nix capability, I create new identities and give them the functionality that I liked in previous ones. I've added the "open terminal here" script, which I find invaluable. Now I want to change the prompt. This is what the terminal does right now: ITo run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. elliot@dan:/media/KINGSTON$
- Where do I go to shorten the prompt dramatically? I can't really think of a situation where a shorter prompt isn't better or color matters. - How do I adios the 2 sentences that want to appear every time I open this terminal? I'm aware what sudo does. - Instead, I would like the equivalent of a pwd command. Where would I put that? - How do I get the output of this terminal to be simultaneously saved in a file. I do so much copying and pasting out of these terminals that I'm looking for easier ways to do it.
I was playing around with the settings of my Mint 7 terminal, changing colors, fonts etc.After closing, I tried to open it again by clicking on the icon and it shutsdown as soon as it opens. I can't do anything since the preferences require me to have my terminal open in the first place.
I was experimenting with new splash screens in the plymouth manager when my ubuntu stopped loading into the gnome desktop. Ive tried to search for some solutions over the internet but i cant seem to find any. and to top it all of, the server from which i used to get updates from seems to have stopped running.i need help in changing my server via the terminal and to help restore my gdm.