Just got a problem that I've spent a few days trying to get around. Basically, what I am trying to do is create launchers/shortcuts on my desktop that will a) Launch a terminal with root or sudo access b) Launch an application. For example, an application I might ordinarily use as a super user or root user is 'hping3.'
Basically, I want to be able to click on the launcher, and have it open up a terminal with sudo access and launch the hping3 application. I've tried messing around with the 'create launcher' function, and entering in a command to be launched in a terminal window, but to no avail (e.g. something like "sudo hping3" or "su && hping3"). How to write up a simple script to launch a terminal with su access and launch a given application?
I am using DreamLinux. I have pinned a program, that runs in terminal, to the launcher in the panel on desktop. The program's executable file (name: feap) is located in /home/User/feap2.2 After I added the launcher to the panel that runs the file in terminal, the program asks for the input file (text file with alot of commands) when run. By default the program accepts the files that are located in the same directory i.e. /feap2.2 , so I placed the input file in the same directory.
However when I run the program from the panel, and give the input file name, it says no such file exists. Then I gave the file name with full path, but problem was not solved. I have tried alot e.g. placed the input file at other locations, but all in vain. I have set all input file permissions to be accessible by User as well. I will be much relieved if someone suggests where to place the input file for the such program running in the terminal launched from panels?
P.S: If I open terminal, go to the directory (/home/User/feap2.2), run the program's exe file, and then give the file name, it accepts the input file and it give results.
if you do the command conky in terminal, it starts conky ofcourse, but it also shows output to that terminal so you can't do any other commands to that terminal, Is their an option like you can do with the '&' sign in other cases? If you do the '&' sign with conky it still gives output, also the conky -d command gives output...
I recently noticed that the time displayed in the Gnome Clock applet is exactly (or nearly so) one second behind NTP time.I have a NTP server on my small network to which I sync my other PCs. Some of the applications I run are critical of time and need sub second accuracy - I am also a bit of Time Nut as well.My NTP server is OK. My PCs can sync to my NTP server OK. My applications which require precise time get the right time from NTP - BUT - the time displayed in the GNOME Clock applet is always behind one second!I have spent much time searching for others with similar problems and their solutions but so far nothing - hence my asking here, why do I see this behaviour and what can I do about it
i use Huawei usb modem as default connection device , Why i have to connect and disconnect my usb many times to work properly? when i start my PC i have to connect and disconnect the usb about 5 or 6 times to get a connection to the Internet, the icon above shows that every time i get a successful connection but really i don't have it. i have to do it many times to get the connection actually established and the Internet truly works
I was messing with the color for the panels and some how every time I minimize a window the tab never shows on the bottom or the top panel, you know to reopen it. It just disappears and then I have to reopen the program.
I just used EasyTAG 2.1.5 under Ubuntu 9.10 to update the tags on my music files running on Rhythmbox 0.12.5, and now Rhythmbox shows that the runtimes (Time) of dozens of my mp3's are now 27:03:11. That means Rhythmbox thinks all those songs are 27 hours, 3 minutes, and 11 seconds long, which they are not. Some are now shown as 54:06:23. So far they are all playing correctly, but the slider at the top of the Rhythmbox window barely moves, making it difficult, if not impossible, to jump to different points in the songs. Nothing else seems to have been affected.
Any time I watch a screencast dealing with notifications, there are always multiple of them on the screen. But when I have a program that uses them it always just allows one at a time.
I had always worked fine with my Red hat 4.0 untill yesterday night when i logged in i had an error saying: "HOSTNAME could not be found, you can resolve this by editing the /etc/hosts"eventually it logged me in but when i launch the terminal ...i now see 'username@(none)dir' .In other words my HOSTNAME shows as 'none'.I looked into /etc/hosts file but everything looks the same, which for is:127.0.0.1 mluboya,
I'm using OpenSUSE 11.2 64 bit. Sometimes boot fails and I get a black screen. It starts quite normal, but when it tries to start X and KDE, it fails and I only see a black screen. I can't switch to terminal and I can not reboot my computer by pressing "Ctrl + Alt + Del". It doesn't even shutdown by pressing the power-button. The only possibility is to switch off the computer. Then it normally starts.
The problem also occures with a clean installation of OpenSuse. And it cannot be solved by updating kernel, X-Server and KDE.
What files do you need? I'll post them.
The same computer worked fine with OpenSUSE 11.1. I think, the new radeon driver could be the problem, I have to use it because I can not use fglrx anymore as with 11.1
I take a look into my log-files, but I cannot see any error. Sometimes it seems, that /var/log/messages is partly overwritten by restarting the machine.
I'm running 11.4 with Gnome 3. I've installed the PiTiVi video editor from Software Manager, but when I tried to run the program, it wouldn't start. Trying to run from the terminal returned this error: "Gst-Python couldn't be found!" I tried looking for the dependency, but couldn't find it in Software Manager.
I like the easy readability of fwlogwatch (as compared to the Log File Viewer). But fwlogwatch doesn't display port number or date when I run it in terminal.
Is there a log viewer that displays clean like fwlogwatch but displays all the information that Log File Viewer does?
I'm having a hard time installing Ubuntu 10.10 (32bits). I load the CD and everything's ok throughout the installing procedure, but when the installation is over and it says it's gonna reboot it doesn't do it!
The screen resembles a terminal with a message like "the computer is going to reboot NOW!" but it could stay like that for hours. The keyboard is locked so I can't reboot by commands, and if I press CTRL+ALT+DEL it just reprints the same message. Therefore I'm forced to turn off my computer manually.
After that, the Ubuntu desktop doesn't load. The screen shows a terminal asking for my username and password to access the computer. No graphics at all.
My terminal shows unicode squares (the little square with it's 2 byte unicode value inside it), whenever I press a control character while running a program (ex. cat or ping).See this example. Here I show the key's I pressed then turn off echoctl, and repeat the sequence. http://imagebin.ca/img/mXbutJ1.png
the 0003 is when I pressed Ctrl+C, and the 001A is when I pressed ctrl+z.Can anybody tell me why this is or how to turn it off. This is inside a gnome-terminal session, though I don't think it's gnome-terminal.If, inside this exact same bash session I open screen (by typing "screen"), it doesn't do this anymore, and ctrl+c/z/etc is completely quiet.
i have a little problem i use ubuntu on my htpc, which is connected to a LG Plasma 42 the playback from smplayer is ok, but after some minutes, let's say, 30 the TV goes to black and shows "no image detected", then i have to move the mouse in order to recover the image imagine that in the middle of a movie (a great movie, like THE BATTLE OF ALGIERS) what can i do?
Have recently tried to start ubuntu with kubuntu-desktop, but as I reboot my computer kubuntu only shows the terminal after the login and I cant get my desktop back.
I have a script that basically takes a list of IP addresses, and pings them to tell me if each device (Access Point) is online or not. The problem with that is, the list contains about a hundred addresses. Making the problem worse is the fact that using a single ICMP packet per device is not an option since, at certain times of the day, the network is too congested to guarantee that a single ICMP packet won't be dropped, despite the device being up and running. That means I need to send multiple pings per device for about a hundred devices. As you can imagine, doing this sequentially takes a while.
What I want to do is make my script open other threads in the background to ping multiple devices in parallel. The problem with that is - if I simply make each ping command run in parallel, soon there are a hundred background tasks, one for each address, and that consumes a lot of CPU (CPU hits 100% and stays there till the script is done). Is there a way I can make about 10 threads run at a time, and any other threads will queue until a spot opens up for them? Kind of like the token bucket, except when there aren't enough tokens, the main script waits until it can launch more background threads that ping the next addresses on the list.
There used to be a time out period, 15 minutes I think, and now when I am chrooting 6 or 7 systems I need to give a password for every one of them. This gets old. I am sure there is a way to do this. Sudo visudo does not do it. It will Work until I reboot. When I run it again, the setting is the sames as I set it the last session. I need to redo it, exit and then put it back to where I want it again. I figure I am doing it in the wrong place but can't figure it out and it is really getting on my thungas.
I've been running arch linux, with my clock set to UTC with no problem. Recently I installed slackware on a different partition. During the setup I chose to set my clock to 'local time' instead of UTC by accident. Now in slackware my clock shows the wrong time. Also in arch it shows the same wrong time.
I booted back into slackware and ran pkgtool to enter the setup again, and changed my time to UTC. But this makes no difference. My clock is still wrong in both slackware and arch. Do I need to reboot after changing my clock settings in slackware before it takes effect? how the clock or the setup works.
I am running Squeeze (Gnome desktop) and I'm experiencing some problems with Iceweasel. My problem is that sometimes Iceweasel just hangs when I launch it. I can see the cursor blinking 2-3 times in the adress bar and then it just locks up. I have tried a few different versions of iceweasel, both from stable (squeeze though), experimental and now a package from http://mozilla.debian.net/packages/ with iceweasel 4 beta.
All of them behaves the same way. They work for a while and then suddenly locks up when launched. The only way to get going again is to kill the process and delete the .mozilla directory. It is possible to launch the --safe-mode though but nothing with this mode lets me change anything to get a normal session going.' Also, it doesn't matter if I have extensions installed or not, it still behaves the same way with zero of them installed. How would I go about to debug this? If I launch iceweasel from the command line I get no output but I'm sure there is a way to get some more info to work with.
I would like to get a log of all processes that are launched with the time that they were launched and the arguments they were launched with. Is this possible in Linux?
I've created a bash file that calls another bash. And I would like to get the pid from the second file launched, to wait for the file to ends. The second bash file launches processes in background. How can I get the PID from the second bash file?
It is possible to not only have the progress of the shredding, but the time elapsed/remained/whatever as well? It would be great to be able to see the time elapsed/time remaining along with the percentage complete.
I thought Fedora 13 could mix sound from two output sources..On my asus laptop, when music is playing and I launch skype, music stops.Just like sound stopping if I have a game running in wine.Is there a trick to allow more than one sound source?