General :: Make Bash And It's Apps Automatically Resize?

May 29, 2011

I'm working in Debian, and I've noticed that when I resize my PuTTY window, the console inside isn't resizing to the new dimentions, so things like nano are running at 80xwhatever instead of the more useful 130xsomething that I've offered it.

View 2 Replies


ADVERTISEMENT

Ubuntu :: Make Conky Automatically Resize?

Apr 26, 2010

I have a conky setup for displaying mpd. this is the code:

Code:
# Use Xft?
imlib_cache_size 0 # so image is redrawn
use_xft yes
xftalpha 0

[Code]....

View 3 Replies View Related

General :: Make A Bash Script That Automatically Delete The Home Folders?

Feb 15, 2011

I am administrating a lab in a university and every semester we need to delete all the home folders of the accounts for the next semester. I would like to make a bash script that does this automatically and having trouble with it. Note that I am writing my very first bash script. What I need to do is make a script to delete the following:

Delete everything in /home/$exp$num/$dir
when "exp" could be either "rt", "ic" or "sp".
"num" could run from 1(single digit) to 45 and dir is "profile" and "work".

This is what I tried to write:

Code:

#!/bin/sh
cd /home
for exp in "rt ic sp"
do

[code]....

What seems to be the problem is the reading of "$exp$num" as a joint expression.

View 4 Replies View Related

Programming :: Bash - Automatically Build A Set Of Packages And Redirect Output Into Logs - Failed Make Should Return A Non-zero Value

Jun 27, 2011

I have a set of bash scripts that I'm running that automatically build a set of packages for me and redirect their output into logs. Basically, I have a bunch of lines that are something like this: ${CONFIGURE_DIR}/configure &> ${LOG_DIR}/log or cd ${CONFIGURE_DIR} && make &> ${LOG_DIR}/log, etc.

This is supposed to make the entire process silent. However, sometimes with some packages some output leaks to my console (either stdout or stderr). I'm thinking that maybe the configure scripts/make are executing commands within new shell instances that don't inherit my redirect, or something to that effect.

Another reason for thinking this is that in another part of my script I detect errors when running make by testing with "if [ $? -ne 0 ]", and if the redirect leaks to my console and also the leaked output indicates that the build failed ("make: Error" and so on), then my $? test fails (i.e., it thinks that $? == 0, whereas a failed make should return a non-zero value). It's as if my original script can't "see" the results from child commands executed from later scripts.

View 1 Replies View Related

General :: Open Apps At Boot Automatically?

Dec 3, 2010

Is there a way (in Ubuntu) to open applications automatically after login (and maybe after a couple of seconds) so that they are automatically placed (in sequence) on a particular portion of the screen and assigned to a particular desktop number?

View 4 Replies View Related

General :: Changing Shell From C To Bash - Apps Or Variables?

Jun 21, 2010

I have a user that has been used for long time now that runs o C Shell... now there is a need to change it to Bash Shell? Can I cause a problem changing his shell from C to bash? I mean apps or variables?

View 2 Replies View Related

General :: Can't Resize Konsole Windows Size In Fedora / Make It Possible?

Aug 1, 2011

This may seem to be a silly question, but I googled along
and found that most of relevant complaints was about
a bug in video card driver.

My problem is -
For some unknown reason, I can't resize the Konsole window horizontally while I can still resize vertically. This is bad as the corrent width of Konsole window fills the entire screen!

View 1 Replies View Related

General :: Run A Bash Command Automatically On Startup?

May 13, 2011

I was wondering how to run a bash command automatically on startup. on start-up have "alsamixer" or "start-network" executed from terminal.

View 3 Replies View Related

CentOS 5 Server :: How To Automatically Resize Logical Volume

Feb 17, 2010

I'm sure many of you here have worked with disk quotas and lvm2 and my problem involves both. Basically what I'm wanting to do is have it so whenever a logical volume gets below a certain constraint (10Gb's) ie. it only has that much left - I want to automatically resize it to add 20 GB's. Obviously this can be done rather easily manually, and with a bit of python hacking it can be done programmatically but since this is for production use I was wondering if there was something a bit more fluid. Since this server is I/O intensive ZFS implemented via FUSE is not an option and neither is the still unstable BtrFS.

View 3 Replies View Related

General :: Make A Bootable System With Auto Runable Java Apps?

Nov 14, 2010

I am new in Linux ,i don't know how to make a boot able Linux with a auto run able Java apps...

View 1 Replies View Related

General :: Make Slitaz USB Automatically Persistent?

Mar 24, 2010

I installed Slitaz on my USB. However I can't figure out how to make it persistent automatically. There are different sources telling me different ways to make it persistent.

One told me to add "slitaz home=usb" to the syslinux.cfg file like this:

append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin slitaz home=usb

but it didn't work for me.

http://www.slitaz.org/en/doc/handbook/liveusb.html gave an example of how to do it manually but I didn't try it and I also want it to happen automatically.

custompc.co.uk/features/602451/make-any-pc-your-own-with-linux-on-a-usb-key.html is an older article that also explains how to make the USB persistent but I don't want to try it cause it looks outdated (from 2008)

does anyone know the best way to make the USB automatically persistent?

View 1 Replies View Related

General :: Make A Script To Automatically Run Aircrack-ng?

May 13, 2011

I am trying to make a script to automatically run aircrack-ng.

1. One part of the program is an ongoing action. one that you have to press ctrl+c to cancel, but I need the script to keep running the tasks after it.

2. I need to leave one thing running while running another, so if I could like open a new Terminal tab and run things that would be perfect.

3. I need to keep it all as one script, because the variables need to stay.

View 3 Replies View Related

General :: Make GRUB Automatically Boot Ubuntu

Feb 17, 2011

I am running a dual-boot with Ubuntu (10.10) and Windows 7. Recently I edited my /boot/grub/grub.cfg file to only show one version of Ubuntu (as opposed to several kernel versions) and Windows, simply by commenting out all other menu entries. My question is if I can edit GRUB to just boot a specific entry automatically.

I tried removing all other menu entries, but GRUB still showed the menu with only one entry. I've also considered just setting the timeout to either 0 or 1 second, as this would basically achieve the same thing.

View 3 Replies View Related

General :: Make Openbox Automatically Start To Use A Specific Gtk Profile?

Jul 7, 2010

I have switched to openbox from Gnome and would now like to stop using Metacity altogether. When I was using metacity I had both a control theme (e.g. gtk theme) and fonts set up how I liked them in gnome-appearance-proporties. When Openbox starts, it gets my window borders up properly (ofc.) but fails to render my fonts properly and uses the wrong gtk theme. I can't find anywhere to specify which gtk theme to use or what method to render my text with. After Openbox is finished doing it's thing, and I run gnome-apperance-properties manually, it will automatically set everything to it's proper value, but I don't want to have to do this as it takes several seconds to preform and I'd rather not have it jury rigged like this.

View 2 Replies View Related

General :: Windows - Make GNU GRUB Automatically Boot Ubuntu?

Jul 14, 2011

How to make Windows Boot Manager automatically open GNU GRUB and then with GNU GRUB automatically boot Linux Ubuntu 11.04.

View 1 Replies View Related

Ubuntu :: Gnome Opens Apps Automatically - How To Stop It

Jan 29, 2010

For some reason, Gnome keeps opening some programs that I frequently use (Gedit, gnome-terminal, and a document viewer) at startup.I have disabled the"remember my open programs" option from the Preferences menu and it still happens!

View 3 Replies View Related

Ubuntu :: Automatically Start Apps In Terminal With Titles?

Sep 28, 2010

One of the first things I do when starting Ubuntu (Netbook Edition) is to open a Terminal (ctrl-alt-T) with three tabs in it (ctrl-shift-T, ctrl-shift-T), one with irssi, one with ipython and one extra with just the commandline. Then I set the titles (F2) of the first two respectively to "irssi" and "ipython".Is there some way to write a script that automatically does all this? Or maybe save this configuration in a profile setting or something?

View 3 Replies View Related

Ubuntu :: Launching Terminal Apps In URXVT Automatically

May 12, 2011

Problem with use of -hold|+hold on rxvt-unicode (urxvt) v9.09 on ubuntu server. On startup, I'm trying to launch terminal apps in urxvt automatically. E.g:
Code:
"urxvt -e /usr/bin/weechat-curses +hold"
or
Code:
"urxvt -hold -e mutt"

However, -|+hold does not seem to hold the terminal open. There is a flicker of a new window opening & then it's gone. I'm trying to invoke this from .xinitrc (startx-->.xinitrc) and also tried commands from inside awesome wm rc.lua (awful.util.spawn_with_shell("urxvt -hold -e mutt") seem to get same flicker result but closes immediately. I see this error in .xsession-errors, which might be relevant (do I perhaps need to specify the display??).

Code:
[1461:1634:41805904:ERROR:all_status.cc(117)]
Unrecognized Syncer Event: 7
E: awesome: a_xcb_io_cb:230: X server connection broke
urxvt: X connection to ':0' broken, unable to recover, exiting.

Code:
rxvt-unicode (urxvt) v9.09 - released: 2010-11-13
options: perl,xft,styles,combining,blink,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,afterimage,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
Usage: urxvt [-help] [--help]
...
[-n string] [-sl number] [-embed windowid] [-depth number]
[-/+override-redirect] [-pty-fd fileno] [-/+hold] [-w number] [-b number]
[-/+bl] [-lsp number] [-letsp number] [-/+sbg] [-mod modifier] [-/+ssc]
[-/+ssr] [-pe string] [-blt string] [-e command arg ...]

Code:
~$ awesome -k
✔ Configuration file syntax OK.
link to urxvt man: [URL]

View 7 Replies View Related

General :: Make Windows 7 Start Automatically With Dual Boot Fedora 14?

May 25, 2011

I have Windows 7 and Fedora 14 both on my laptop in dual boot configuration. When my computer starts up it shows a screen that says press any button to select another operating system to start, then I can make Windows 7 start. But after 2 seconds, if I DON'T press any button then Fedora starts automatically. How can I change this so Windows starts automatically when I don't press any button?

View 4 Replies View Related

Ubuntu :: Can't Open Terminal And Other Apps After Automatically Update And Reboot

Sep 24, 2010

I did an automatic update and rebooted this morning and I now have a bit of a nightmare situation where I can't open the majority of applications, including the terminal. When I rebooted, my desktop loaded as normal, but then when I try to open the terminal (from Applications -> Accessories or from my quick launch panel), nothing happens other than the quick launch panel disappears for a second then reappears. This is the case for most other apps, but not for Chrome (obviously).

EDIT: Used Alt+F2 to open the terminal, ran safe upgrade and then rebooted, but still having the same issue. As Ubuntu was booting, there was a "Broken pipe" message, which didn't stop the boot process but is still a bit worrying. I've run a file system check but this hasn't resolved the problem either.

View 9 Replies View Related

Ubuntu :: Want To Begin Some Apps Minmized To Tray Automatically At Startup

Jul 7, 2011

Kind of like Windows allows you to do. Specifically, I'd like to get Thunderbird to startup in the tray each time I log in.

View 3 Replies View Related

Software :: Fvwm Resize Throws Off Xterm (bash) Word Wrapping

Aug 27, 2010

when I resize an xterm in fvwm, bash word wrapping is messed up. I don't know if it's from running a program that uses curses or not.

View 1 Replies View Related

General :: Make CDs Mount Automatically And Create A Desktop Icon Under Gnome On SLED 11?

Apr 21, 2010

I want to insert a CD-ROM and have it automatically be mounted to someplace like /media/cdrom and create an icon on the Gnome desktop, while logged in as a non-root user under SLED 11.

How can I accomplish this?

View 1 Replies View Related

General :: Make A Bash Script Ask For A Specific Key?

Nov 21, 2010

I am attempting to learn how write bash scripts. I want one to ask for a specific key. For example, I want it to ask a question, then if it is like, y for yes, or n for no, it does a specific thing. I'm thinking it would be something like:

Code:

#!/bin/bash
echo "Are you a boy? y/n"
read -t3

View 14 Replies View Related

General :: Make A Bash Script Into A Daemon

Aug 7, 2011

i've written a script that will move some files from one directory to another, i dont know if this is the right place to ask but, this is on my ipod touch and i'm wondering how to make it run periodicaly

View 6 Replies View Related

General :: Make Ubuntu's Terminal Program Automatically Copy To Clipboard Selected Text / Paste

Jul 6, 2011

i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.

View 1 Replies View Related

Fedora Security :: Create An SELinux Policy To Automatically Grant Apps Execstack While They Use Glxinfo

Nov 20, 2009

I just upgraded from 11 to 12 and then installed the Nvidia proprietary drivers from RPMFusion. Initially glxinfo wouldn't work because SELinux was stopping it from using an executable stack. Since the Nvidia drivers are proprietary and a fix may not be provided, I allowed this access to glxinfo with chcon -t execmem_exec_t '/usr/bin/glxinfo'

However it looks like every program using glx-utils also needs these permissions - so far I allowed Xorg, compiz and the Firefox video plugin to execstack. Can anyone suggest a fix for this - preferably one that avoids execstack for all those apps since its a security risk. If not how do I create an SELinux policy to automatically grant apps execstack while they use glxinfo or other nVidia libraries but not at other times.

View 2 Replies View Related

General :: Make Simple Website In System Using Bash Scripting?

Apr 3, 2011

How to made a simple website in linux using bash scripting.

View 3 Replies View Related

Ubuntu :: Open Multiple Apps From Bash Script?

Nov 17, 2010

I'm trying to create a bash script that will open firefox, evolution, gedit (specific file), etc. For the most part it works, but after it opens evolution or gedit, it pauses execution, until I close that app down.

I don't want to have this done at login, i want to pick and choose when I open them all.

View 2 Replies View Related

Ubuntu :: Bash Commands' Auto-complete Not Working For Some Apps?

Jan 15, 2010

I've got an annoying problem that 'man' and some other commands do not auto-complete (via TAB). e.g. typing: man rsyn (TAB, TAB, TAB, etc) will not auto-complete to 'man rsync' however, if i 'sudo -s' & then try the above, 'man' auto-completes everytime. (Directories always auto-complete successfully) My ~/.bashrc contains:

Code:

# enable bash completion in interactive shells
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion

[code]....

View 8 Replies View Related







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