General :: Generate As Script For A Graphical Package On Fly From With In A Shell Script?
Nov 9, 2010
I am in a situation where I need to generate as script for a graphical package on fly from with in a shell script. I would like to do the below which create a file in which grave accent has to be there However below script do not work I tried different things like
[Code]....
View 5 Replies
ADVERTISEMENT
Nov 19, 2009
Before I begin I would like to say that while I am not a Linix newbie, I am not a guru or even a regular user so don't assume I have anything more than general Linux knowledge. I am carrying out research involving virtualization and Single Sign On technologies and I need to display a Xen based virtual machine to the desktop before the user is logged in. This is for a demonstration system and I am trying to find a solution that involves the least amount of system modification possible.I found a PAM module that allows for the invocation of arbitrary shell scripts which would allow me to start and display the virtual machine in question, but when trying to run the virt viewer (or any process with graphical output) I am informed that the display cannot be found. Explicitly setting the DISPLAY env to :0 before running the command has no effect.
This is where my Linux knowledge runs out. I know that there has to be some way to connect to the X session being used by the greeter, I just don't know what that method involves. The shell script is running with root privileges, so it can access whatever "X credentials" are stored locally.
I will be thankful for any assistance this forum might be able to provide, but please do not suggest alternatives to displaying a VM for my SSO needs, and please avoid any solution that involves having to write my own custom greeter. If there is absolutely no way to accomplish what I am trying to do without greeter modifications definitely tell me, but I am a security researcher, not a Linux developer so I am looking for the easiest solution to implement, even if that solution is a gross hack.
View 1 Replies
View Related
Jan 24, 2010
Quote:
/usr/local/bin/mencoder /root/video1.avi -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=300:acodec=libfaac:abitrate=64 -srate 22050 -oac lavc -vf scale=360:240 -o /root/output_temp_video1.flv
[code]....
View 2 Replies
View Related
Apr 13, 2011
I have a tar.gz file which I extracted and then installed the software it contained using a property file. now, I need to automate that 2 step process into one. I am new to shell scripting and will be much appreciated if someone can guide me on how to accomplish that. below is my final opjective on this excercise.
1. excecute software_install.sh file which finds install.properties file and invokes the actual shell script that installs the product (odcpkg.sh)
View 3 Replies
View Related
Aug 3, 2011
I've only recently started using Fedora a couple months ago. I used Ubuntu for a few years before. I'm posting because I have a strange graphical glitch in gnome shell. For some reason, this glitch did not appear when I was using Gnome 3 with ubuntu, and I didn't notice it on the F15 Live CD.
There appears to be an artifact (looks like a crack) in my shell. It only appears when the icons fade if I'm scrolled down in the applications menu. Similar artifacts appear in the gnome shell notifications, such as the messaging notifications. I have a ATI Radeon HD 3650 graphics card and am using the default drivers. NOT the proprietary fglrx/catalyst/whatever driver. I've attached a pic.
View 2 Replies
View Related
Apr 12, 2011
I've gone though the system purging/removing what I don't require on my Fedora install using the graphical tool in gnome 3. I then used package-cleanup --leaves to clean up some cruft left behind. yum list installed shows I still have 1031 packages installed, which is about 400 more than similar setups I used to have on Debian, and truthfully on Debian I have more stuff installed that I've still got to install here (gimp, nvidia drivers, etc).
I see a buch of stuff in yum list installed I don't need, so I can use yum remove foo to cleanup some more, but I'm wondering if there's another graphical interface or perhaps and advacned option in the add/remove software application I've been using thus far.
View 2 Replies
View Related
Aug 19, 2011
Requirements - 1) Should have options to show only graphical packages.2) Easy to use.Software-center is outdated and packagekit doesn't work well (search for 'winff' with graphical packages filter) with any backend.
View 14 Replies
View Related
Jan 17, 2009
I have updated the gdm file to be able to log in as root in Fedora 10.Nevertheless after I had selected package updates to be installed logged in as root I still get an error message that I do not have enough privileges.The terminal installation method is a bit of a problem since I do not think it will search for dependencies and therefore it can be excessively long to figure out what is missing for a package installation. In simple cases it works OK, but in more difficult cases it is a bear.
View 8 Replies
View Related
Jul 9, 2009
parsing xml file using shell script and generate report in a PDF file
Xml file input:
<report>
<student name="x" father name="x1" class="first" Address="xyz">
<property name="sports" value="yes"/>
<property name="drawing" value="no"/>
[code]....
View 12 Replies
View Related
May 9, 2010
I know how to manage them from a commandline but I was wondering if there are any graphical partition editors that understand and work with lvm2?
View 1 Replies
View Related
May 23, 2010
I have just started using the zsh shell to see what its like and so far I like it. However one anoyance is that if I type: Code: sudo apt-get install plymouth-* I get package not found. If I do the same in a bash shell I get the option to install the the packages matching the wildcard.
View 1 Replies
View Related
Jan 10, 2011
I want to run gallist pkge from iraf for several times.. The step for running that
is:>xgterm &
>ecl &
ecl>noao
noao>artdata
artdata>epar gallist (I set some parameter) then by writing gallist iraf terminal the pkge is run:
artdata>gallist
I want this pkge is run for 1000 time and all output result are collected in only one file.
View 1 Replies
View Related
Jul 29, 2010
I want to get a list of all packages that provide a certain virtual package. A way of doing this would be to write a shell script that parses all output of Code: apt-cache search -f .* And spits out all packages that have the virtual package in the provides section. The problem with this approach is that it takes an awful long amount of time to execute. I guess that there should be a simple command that does this in an efficient manner, but which I wasn't able to find.
View 1 Replies
View Related
Sep 7, 2010
I am configuring syslog-ng on my server.
I suspect something to be wrong.
Is there a tool I can use in the shell to generate a log? So I can check that the log appear in the syslog file.
View 3 Replies
View Related
Feb 20, 2011
I m not able to find anything under boot.log file. Here is the output of boot.log files.
As you can see nothing is getting written inside the boot.log files .
How can i make all the events to be logged under boot.log file?
Code:
# ls -ltr /var/log | grep boot
-rw------- 1 root root 0 Jan 25 15:59 boot.log.4
-rw------- 1 root root 0 Feb 1 18:38 boot.log.3
-rw------- 1 root root 0 Feb 9 00:00 boot.log.2
-rw------- 1 root root 0 Feb 16 17:57 boot.log.1
-rw------- 1 root root 0 Feb 20 04:02 boot.log
View 11 Replies
View Related
Jun 15, 2011
MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.
View 2 Replies
View Related
Jan 21, 2010
Not only that but I need tons and tons of them generated, and I need it to be totally random each time.
Code:
matthew@mvm:/h/misc> cat a
#!/bin/bash
for i in {1..5}; do
echo $RANDOM
[Code]....
There you can see that it is the same number. It does that every time!! Grrr. The strange thing is each time I manually type [or copy & paste] it into the terminal, it gives random [not static, like I am getting from my script] results.
The reason I want this is because I am making a script where this line will randomly go up or down [depending on if the random number is 1 or 0].
View 4 Replies
View Related
May 29, 2011
I have collected the sa* and sar* files for the past two weeks , i need to generate the report for these files how can i do so i am using centos 5.5. assist me with a tool or a command to do the same.
View 6 Replies
View Related
Mar 3, 2009
I'm not a Linux noob, but I am far from guru. I'm running a single board computer with a slightly customized Debian Etch (customized by the SBC vendor). No Gnome/KDE/X installed. My application is a control application which uses SDL (Simple DirectMedia Layer) to paint some basic graphics on the VGA. I need to run it as root because the application calls iopl() to access an IO port.If I run my application manually from the command line, life is sweet. From Googling around, I found http://www.debian-administration.org/articles/28, and hence I:1) Created a script in /etc/init.d2) Executed "update-rc.d scriptName defaults" to link the script into the boot sequenceAll very straightforward. My application starts at boot. But when I try to SSH/SFTP into the SBC, I get "Connection refused". So I can't manage the SBC anymore, and this is a big problem. I am not sure if it's relevant, but my application starts before the SSH daemon.My script looked like:
case "$1" in
start)
echo "Starting my application"
[code]...
View 1 Replies
View Related
Nov 5, 2010
How to generate a list of all available man pages on a system?
View 4 Replies
View Related
Nov 17, 2010
For using SSH, why does a host also need to have a public and private key? And how can I generate a public/private key pair for myself?
View 5 Replies
View Related
Jan 26, 2011
system debian php-4.x.x.src.deb. What actions should be performed that would build the binary deb with support memcache, mhash, and mcrypt? Assume that all the required packages of libraries installed on the system. system centos php-4.x.x.src.rpm. What actions should be performed that would build the binary rpm with support memcache, mhash, and mcrypt? Assume that all the required packages of libraries installed on the system. There is the software raid1 md0 Disc / dev / sda / dev / sdb. You must configure grub, that would have been able to boot from both drives. Assume that only one section ("/"). Generate for httpd ssl key and integrate into the system. to generate without a password or to provide a password script. Scan open ports and see what processes are installed network connections. What ports must be left open to normally closed firewall for full operation and setup http server (http, https)? Write a shell script that would produce an analysis of processes mysql and delete those that connection more than 5 minutes excluding system processes (eg replication), as well as sending mail warning in the log if an error occurs mysql string ABCDEFGH. Provide autostart at boot time (integration in init.d), protection against re-run, exception handling (when using lock files).
View 3 Replies
View Related
Mar 28, 2010
Recently a hav installed fedora and ns-2.34(after much effort).Now i want to generate VoIP traffic for wifi. give m url where i can find gud examples for generating VoIP traffic.
View 1 Replies
View Related
Apr 27, 2011
I would like know when it is necessary or advisable to write a shell script instead of shell function ?
View 3 Replies
View Related
Jul 22, 2010
does any one knows a linux based program/script that can generate html files based on directory structure?
View 1 Replies
View Related
Jan 4, 2011
I have seen how simple it is for Mac OS to generate pdf from a document without additional software to install. But I am looking for this functionality in Linux. One scenario, for example, if I have myDocument.txt that contain an article, how can I convert this into pdf? My next question is, assuming that myDocument.txt is a 3-paged document, will it generate a 3-page continuous pdf and not just 3 separate pdfs?
Any tools for linux that does this? (GUI is fine, but commandline is preferable)
View 6 Replies
View Related
Jan 24, 2011
I'm looking for a tool, command line or GUI, for Linux that generates memorable passwords An equivalent of what I am looking for would be passwords that the Mac Os X keychain can generate, something like apples12$/fourteen. Something strong, but easily memorized by a user.
View 2 Replies
View Related
Jul 20, 2011
List of 77 lines with the names of movies. For ease, let's say it's in a text file. What I want is a command line argument I can pass that'll read each line and pick one of those 77 lines at random, except I can't figure out how to do this. Is there a program I can just pipe the output of 'cat listofmovies.txt' to?
View 13 Replies
View Related
Jul 4, 2010
I'm trying to make sure that my laptop will suspend if I unplug it after the lid is already closed, and I believe that one way to accomplish this would be to simulate an ACPI lid event when the power adapter is plugged or unplugged. In order to do this, I need to find a command that will generate a fake ACPI lid event. Is there any such command?
View 1 Replies
View Related
Feb 11, 2011
My application is an integration of all the open source components with customized heavily including OS. I would need to know how to generate license keys for my application.
Does any one have any clue?
View 6 Replies
View Related