Ubuntu :: Curious: Make A .deb That Just Runs A Script?

Dec 13, 2010

I know, running a script is pretty easy itself, but some people (family, gf) just hate using the terminal and assisting them remotely, you have no idea what they are really doing on the other side of the screen. This way, they can essentially just double click and enter their password. I was curious. How can I easily create a .deb package for this script:

Code:
#!/bin/bash
sudo apt-get install -y libnotify-bin
sudo apt-get purge -y firefox
sudo apt-get purge -y flashplugin-*
sudo apt-get purge -y adobe-flashplugin
[Code].....

View 2 Replies


ADVERTISEMENT

Ubuntu :: Computer Runs Slower Than Windows / Make It Up?

Oct 1, 2010

I have a 2-year old DELL XPS M1330. I used to have Windows Vista on it, but over time, I believe it became clogged with too many programs and so I wiped the hard drive and installed ubuntu 10.04 LTS about 2 weeks ago. However, ubuntu many times seems to run slower than vista did. I have 4 GB of RAM, an Intel Core 2 Duo T8100 (2.1 GHz, 3MB Cache, 800MHz FSB), 320GB HDD, 128MB nVIDIA GeForce 8400M. Ubuntu recognizes me as having dual processors at 2.1 GHz and 3.4GB RAM, but when I'm watching a simple video, whether online or locally on the computer, my CPU usage invariably jumps to 100% and it lags. Sometimes, even simple word processing makes it slow significantly.

View 4 Replies View Related

Ubuntu :: Make A Keyboard Shortcut That Runs A Script

Apr 13, 2011

I've been searching for a while now but can't find what I'm looking for. I want to make a keyboard shortcut that runs a script that types keystrokes wherever the cursor is. For example, if I am in a text editor and press "ctrl+alt+q", I would like it to type some predetermined string to the page. On Windows, AutoHotKey does this. I can't seem to get it working in gnome, though.

I have installed lineakd, and I have a file ~/.scripts/type.sh that looks like:

#!/bin/sh
xsendkeys "blahblahblah"

I have the command sh ~/.scripts/type.sh set to the key combination I want in system->preferences->keyboard-shortcuts.

I'm sure I'm not using xsendkeys correctly, but couldn't find much documentation on it. Anybody know how xsendkeys works or how I might solve this problem another way?

View 2 Replies View Related

Ubuntu :: Osmos Videogame And A Curious Shortcut Behavior

Jan 7, 2011

I bought the Osmos game from the recent Humble Indie Bundle and I have placed the folder in /usr/games. I haven't installed it, the folder is executable as-is, but I have placed it in that address in order to be coherent with common game installations. I have created a shortcut of the executable file and placed it in the desktop.

If the game is executed through the shortcut it looks like the first screenshot, if it is executed through the original executable it looks like the second one (it works correctly). It also works correctly if the shortcut is in the same folder as the executable. This happens both with the 32 and 64 bits executables. I have a Radeon HD3870X2 and the open drivers in an Ubuntu 10.10 64 bits.

View 2 Replies View Related

Programming :: Make Script That Runs Program As Another User With Pass?

Jun 7, 2010

I'm trying to do a shell script which are suppose to run a program as a specific user at system boot up. The problem is that I don't know for sure how to make the script add the users password to the prompt when it's necessary.

Basically the program would be run like this:

sudo -u extrema program_name -r /srv/program_name -d

and in this example the password is, "hidden".

How would I make this script run this program as user extrema with the password "hidden" at boot-up? I know how to put the script in the rc.X directory and so on, its more the syntax of the code.

View 4 Replies View Related

Ubuntu :: Launcher For Quake That Essentially Runs A Shell Scripts That Runs Quakespasm With Certain Options?

Oct 13, 2010

I have a launcher for Quake that essentially runs a shell scripts that runs quakespasm with certain options. Is there a way to add it to AWN?

View 6 Replies View Related

OpenSUSE Multimedia :: Curious About Mounting Flash Device?

Apr 11, 2011

I'm trying to use the most-base install of opensuse 11.4 and so i'm using the text-only interface. I looked up some guides on using the 'mount' command but I'm encountering problems. I tried doing.

mkdir /tmp/flash
su
mount /dev/sdb /tmp/flash

but first off, I don't even know if sdb is my flash device, there's ~60 things in my /dev/ directory, and ~10 things that look like 'sdb' but I try anyway, and I generally get an error telling me that either /dev/sdb is busy, or /tmp/flash is busy but I wanted to check here and clarify first, how do I even know which /dev/ item is my flash drive? When I plug in my flash drive, no less than 3 new entries appear in /dev/ so, I'm a little confused. What do I do?

View 6 Replies View Related

Ubuntu :: Runs In Vm Fusion?

Jun 4, 2010

if anybody runs linux in vm fusion.

View 1 Replies View Related

General :: Ubuntu Runs At 50-60% CPU?

Jul 16, 2010

I installed Ubuntu Hardy Heron about six months ago, and it has gradually slowed down, and CPU utilization has crept up to the 50-60% range. The DEV folder contains a large number of similar files - TTY0 through TTYZF or PTYA0 through PTYZF. I suspect that something is not configured right, but, I don't know where to look.

I connect to the internet through a G4 Wireless Transceiver connected to my ethernet port on an IBM Think Center 8187.

View 6 Replies View Related

Ubuntu :: Web Browser Runs Very Slow

Jan 9, 2010

I've been having issues with my laptop. It's a Vostro 1700..My web browser runs very slow and every now and then the computer will become unresponsive. Sometimes it will not open application and will get: couldn't exe command GCACTOOL.I decided to go back to Windows XP to see if Ubuntu was the problem but it wasn't.I got error messages regarding the HD, soo I bought a new HD but the problem is still there.

View 6 Replies View Related

Ubuntu :: Flash Runs Root Only?

Apr 23, 2010

Installed Firefox, Installed flashplugin-nonfree using apt-get, run FF as root and flash plays ok. Run FF as user and no flash. It prompts to download plugins and then fails.

$sudo add-apt-repository ppa:mozillateam/firefox-stable
$sudo apt-get install firefox-3.6
$sudo apt-get install flashplugin-nonfree

View 5 Replies View Related

Ubuntu :: AMD CPU Runs At Less Than Half Speed?

Jun 9, 2010

I have a machine currently running Debian Lenny on which I would like to run Ubuntu for the driver support in its newer kernel. However, I did a test boot from the installation CD and it appears to be running at less than half its rated speed. This is the output from the Debian kernel:

brendand@kant:~$ uname -a
Linux kant 2.6.26-2-amd64 #1 SMP Wed May 12 18:03:14 UTC 2010 x86_64 GNU/Linux
brendand@kant:~$ cat /proc/cpuinfo
processor: 0

[Code].....

Maybe this is some sort of power save bug where the CPU speed is incorrectly scaled back. Has anyone else encountered this problem? Should I report it as a bug, and, if so, how do I do that?

View 6 Replies View Related

Ubuntu :: Xorg Uses 96% CPU When Rythmnbox Runs

Jun 23, 2010

When I start rythmnbox, Xorg goes up to 96-98% of CPU and stays there. It goes back down to below 10 when rbox is minimized or closed.

View 2 Replies View Related

Ubuntu :: Compiz No Longer Runs?

Jul 5, 2010

I have been running Lucid since it was in beta, and have never had any problems with Compiz. Now, all of a sudden it will not launch. If I try to run it from a terminal I get the following:

Code:
compiz (core) - Fatal: Software rendering detected.
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0

Launching fallback window manager I am running an Intel 82915G/GV/910GL built in graphics controller, and when I run the compiz-check script everything checks out fine.

View 4 Replies View Related

Ubuntu :: Laptop Fan Runs Continuously?

Nov 18, 2010

I have an IBM ThinkPad T43 on which I run Ubuntu 10.10. Everything works fairly smoothly except that I notice my laptop fan runs continuously. When I turn on the machine it revs up until boot-up is complete, then it shuts off for a few minutes, and then it comes back on and never turns off until I'm through working.Is this strictly a hardware problem, or is there something about Linux that causes the computer to run hot and so causes the fan to work hard? Is there a setting that I could check to see if the fan is working properly? I don't use any exotic programs or run video intensive games, so there's no reason why the computer should run especially hot

View 1 Replies View Related

Ubuntu :: 1.5 Ghz Processor And 512mb Ram Runs Well?

Jan 18, 2011

i am buying a cheap computer for my dad, it will be used for movies, web and maybe some 2d gaming. i wanted to know if a 1.5 ghz processor and 512mb ram runs ubuntu well. i know about xubuntu etc but was after installing full fat gnome ubuntu for him.

View 2 Replies View Related

Ubuntu :: Fsck Runs With Every Boot

Apr 20, 2011

i have the same issue but with a real install, not a vmware.every reboot fsck says that my main partition was not cleanly unmounted and check is forced.during shutdown the ubuntu does not show messages in a clear way but in random places. however, i am able to see the "/ is busy" message 1 second before reboot/off.my distribution is 10.10 upgraded from 9.10, 10.04

View 2 Replies View Related

Ubuntu :: Runs Slow After Update?

Jul 18, 2011

I installed ubuntu 10.04 and then updated my system with gui, now it's running slow like a second or two sometimes for apps to respond? wonder if anyone can tell me what's up?

View 8 Replies View Related

General :: Make Error - Make[2]: *** No Rule To Make Target

Oct 7, 2010

I am getting an error as below.

How do I resolve the error: make[2]: *** No rule to make target `', needed by `mpg123'.

How can I resolve this error.

View 4 Replies View Related

Ubuntu :: Compiz Only Runs If Start It Gradually ?

Feb 24, 2010

A botched ATI proprietary driver upgrade caused a cascade of problems. I've installed this driver many times before, but this time something just went wrong. I may have made a mistake. There don't seem to be many complaints about the ATI 10.2 driver so this seems likely. Anyway things were quite unstable for a while. I had problems with nautilus (lost the desktop) and segfaults from compiz. I had to reinstall a lot of stuff etc etc.

Anyway, this episode has left me with a strange lingering malaise. I can get the machine into a state where everything works perfectly - the cube is fine and quite snappy, the desktop is all there; it looks great; New driver seems to be working OK. But when I log out and log back in there are problems.

Step 1:If compiz is the window manager during login it dies killing the nautilus desktop and leaving me without a window manager running (no window decorations). This is a nasty state to be in because you can't easily get at a terminal (yeah ctl alt F1 - but how to fix the window manager from there). I've got a keyboard shortcut for metacity which lets me recover from this state. But afterwards I can't get the desktop back.

If metacity is the window manager during login - no problem. I've got a desktop. It starts up fine. Everything looks good. But I'm running metacity and I want to run compiz. So now we try to get compiz running.

Step 2: If I enter "compiz -- replace" in a terminal compiz segfaults and doesn't put metacity back leaving me without a window manager again. Just before it segfaults it complains about not finding some expected graphics files. This seems to have something to do with cube caps [Edit=Not - see later]- but I've restored defaults there so ... Fortunately ctrl C gets me out of that and back to metacity. Or I use my shortcut. But gee whiz no compiz.

OK - here is where it gets interesting. If I go to the compiz settings manager and disable the cube, then compiz --replace works just fine. So it looks like something specific to the cube. This lets me get compiz running but without the cube.

Now things get really interesting. Once compiz is running, if I open the compiz settings manager, then I can enable the cube and in fact ... it works!

To sum up, I now have to go through the following procedure every time I log in.

1. Login in with metacity as default window manager
2. Disable the cube in compiz settings manager
3. Start compiz with compiz --replace
4. Enable the cube in compiz settings manager.

After doing that everything works fine ... at least until I log out.

The fact that I can get everything to work indicates that I've got the driver installed OK and it is working. But why should I have to go through this bizarre procedure each time I log in?

Notes:
1. The problem afflicts all users - so it probably isn't a user config file issue.
2. I've reinstalled compiz and a whole lot of xwindows stuff. Didn't help.
3. I will try downgrading the video driver to the previous version as a last resort. But if the problem is something I broke while things were messed up, downgrading the driver may not fix it.
4. I'll post the crash message compiz generates in a followup (I'll have to log out and back in to generate the crash so I can copy the message)

View 9 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 :: Finding A Notepad That Runs In Terminal?

Apr 5, 2010

I,m looking for a notepad type that runs in terminal? i,e when I (ctlr alt f1) I have terminal can you run a notepad within that, or is there a way to type something then be able to save etc

View 9 Replies View Related

Ubuntu :: DC Power - Runs At Very Slow Speed

May 25, 2010

I have a HP nx7400 laptop. Now I have a docking station DC power adapter - Works Fine. Ordered another DC so i could travel with it, but when used ubuntu runs at a very slow speed.

View 3 Replies View Related

Ubuntu Multimedia :: Jack Runs But No Sound?

Sep 4, 2010

Jack runs, but I can't get sound to play through it. Another thing that happens is when I launch jack, all audio in the system, whether its connected to jack or not, goes off. There are no errors or anything in the messages window. And I checked to see if it was connected to the correct interface. I have a mac mini and I run ppc lucid lynx. The system does detect my hardware, and its not muted. All I want to do is use MusE. Is there maybe anyway to run MusE without jack?

View 3 Replies View Related

Ubuntu :: 10.04 - Does Trim Support Runs Automatically?

Nov 25, 2010

The situation with TRIM in Ubuntu has me utterly confused. I don't know whether I need to manually run it or not. Sources I've found are disparate and unclear. I have Ubuntu 10.04 with latest updates (including kernel 2.6.32-26). I have an Intel X-25M drive with latest firmware, and it is formatted as ext4. So, does TRIM support run automatically? If not, how do I check if I need to run it, and then how do I run it if necessary?

View 1 Replies View Related

Ubuntu :: Firefox Freezes And HDD Runs Constantly?

Nov 28, 2010

Today Firefox is freezing and the HDD is running constantly. I ran into this problem about a year ago on an earlier version of Ubuntu and was able to solve the problem but can't remember what the solution was

View 1 Replies View Related

Ubuntu :: Surpress Logging When Cron Job Runs?

Dec 24, 2010

I have a cron job that I'm running once per minute.don't want to have the /var/log/crond.log get updated 60 times per hour. How can I suppress the logging of the job?I've tried adding the following to the cron line but they just get logged right along with it!

Code:
*/1 * * * * /path/to/script > /dev/null
or

[code]....

View 1 Replies View Related

Ubuntu Installation :: 10.10 Runs In Low Graphics Mode

Feb 16, 2011

I just installed Ubuntu on a laptop that is running windows 7. I accidentally tried installing a piece of software from the software centre before setting up my network. When I boot Ubuntu it now runs in low graphics mode only.

View 9 Replies View Related

Ubuntu :: 11.04 Only Runs In FailsafeX Graphics Mode

May 3, 2011

I have a machine that will only run Ubuntu 11.04 utilising faisafeX mode from the Recovery Menu. the machine freezes up within 10 seconds of logging in using Unity or classic modes. I am using an ATI Radeon 96 series graphic card.

Rather than going through the Recovery Mode to start the machine from the menu = is their any commands I can use via the terminal to start the machine using Failsafex mode from the menu?

View 3 Replies View Related

Ubuntu :: Runs In Low Graphics Mode For Just One Session

May 5, 2011

The above subject was one of the options I was given on the boot up of Ubuntu 11.04 (natty) after the message 'Your screen graphics card and input device could not be detected correctly'

I OK'd the message to run in low graphics mode.

The question is: What's causing this? I've had a look through previous posts with (apparently) the same problem, but the methods used were inconclusive, even though in some cases the problem was resolved.

Nvidia was mentioned - about deleting all references to it in Packet manager. Would this work? And if so, why?

This was one of the lines of an LSPCI command in terminal...

01:05.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility U1

How can I get the graphics to run properly?

View 1 Replies View Related







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