Search found 22 matches

by mph426
Wed Apr 25, 2012 11:49 am
Forum: LMDE Archive
Topic: Passwords not being saved
Replies: 1
Views: 1601

Passwords not being saved

I'm still pretty new to the Mint distro, so forgive my ignorance. In looking for a distro that still supported Gnome2 I found Mint. I downloaded and installed LDME on my laptop about a month ago. The latest update replaced Gnome2 with 3. Thanks to the members here, I learned about the MATE project. ...
by mph426
Tue Apr 24, 2012 8:42 am
Forum: LMDE Archive
Topic: MATE, in all her gnome2 glory
Replies: 2
Views: 1426

Re: MATE, in all her gnome2 glory

hellfire695 I'll second, third, and fourth that!!! I'm a sysadmin in charge of half a dozen Linux boxes and 30 some odd Windows boxes, a few servers, mostly end users. Some days I'll have 20+ windows open. Terminals, browser, email, remote desktops, etc... I can search firewall logs, check network t...
by mph426
Tue Apr 24, 2012 8:01 am
Forum: LMDE Archive
Topic: Update removed Mint menu with gnome 3
Replies: 9
Views: 3163

Re: Update removed Mint menu with gnome 3

zerozero, I guess I need a big flashing red light :oops: When I went to do the update it didn't say it was an "Update Pack", per se. I don't remember exactly what it said, but it was just a single package. Similar to the RPM based distros that need to update the RPM package itself before continuing....
by mph426
Mon Apr 23, 2012 8:12 pm
Forum: LMDE Archive
Topic: Update removed Mint menu with gnome 3
Replies: 9
Views: 3163

Re: Update removed Mint menu with gnome 3

I too had the same issue. The whole reason I went with Mint is I find Gnome 3 utterly counter productive. I did a little research, in doing so, i found mate and installed it. But now I'm stuck reconfiguring all over again. It would have been nice to know how dramatic the change would be from what sh...
by mph426
Thu Mar 15, 2012 1:13 pm
Forum: Scripts & Bash
Topic: how to make a window occupy half the screen?
Replies: 4
Views: 1137

Re: how to make a window occupy half the screen?

Vincent, Excellent source of info. I installed wmctrl this morning. Very nice, I wish I'd of found this years ago. THANKS! ChickenPie4Tea, I threw this script together fairly hastily this morning, but it might suit your purposes. I does mine. ;) It's not quite right but close enough for now. Now all...
by mph426
Wed Mar 14, 2012 10:01 am
Forum: Scripts & Bash
Topic: how to make a window occupy half the screen?
Replies: 4
Views: 1137

Re: how to make a window occupy half the screen?

I don't know about going to 1/2 screen but, if you click on the System menu button then Preferences -> Keyboard Shortcuts . Scroll down to Window Management , there you can Toggle maximization state, vertical and horizontal maximization states from the keyboard. Since I do a lot of scripting, I use ...
by mph426
Sat Feb 18, 2012 1:31 pm
Forum: Scripts & Bash
Topic: Scripting 101
Replies: 8
Views: 1773

Re: Scripting 101

Hi all, Here's the final release. In this version we'll add the ability to only look in a given file set. It can be either a single file or a group of file signified by a wildcard. Here's the code: #! /bin/bash # # MPH (2010/11/19) # # find-string03.sh # #############################################...
by mph426
Sat Feb 18, 2012 1:20 pm
Forum: Scripts & Bash
Topic: PERL and BASH - Find packages with apt-cache and dpkg-query
Replies: 4
Views: 1651

Re: PERL and BASH - Find packages with apt-cache and dpkg-qu

This is a very cool idea. I too have been stymied by the lack of command line tools to see what is and what isn't installed. I just assumed that it was due to my lack of knowledge of the "debian" way. ;) And, maybe it is. One thing I might add that really doesn't add much to the run time but makes t...
by mph426
Tue Feb 14, 2012 11:57 pm
Forum: Scripts & Bash
Topic: Auto logout from a virtual terminal after execu... [SOLVED]
Replies: 11
Views: 2236

Re: Auto logout from a virtual terminal after execu... [SOLV

Sorry, I didn't see your response till now. I forget to check the notify me box. Are you using a virtual console or a virtual terminal? Here's another thing you might want to try is: pkill -u "$USER" That will kill all processes owned by a user. If they are logged in, locally it'll kill everything t...
by mph426
Mon Feb 13, 2012 1:09 am
Forum: Scripts & Bash
Topic: Scripting 101
Replies: 8
Views: 1773

Re: Scripting 101

Hi again, Like I said in the beginning, I don't get the time I'd like to do this. My work laptop crashed Friday morning while running updates. I've spent all me "free" time since rebuilding it. I'm getting close but have more to do. Since I've haven't had time to work on the next point release, I th...
by mph426
Sat Feb 11, 2012 1:25 am
Forum: Scripts & Bash
Topic: Backup issue.
Replies: 3
Views: 993

Re: Backup issue.

I think what you want is

Code: Select all

 rsync -av --delete
the -av is the most popular option, --delete keeps them identical.

If you want to do a dry run and see what it will do without making any changes use

Code: Select all

rsync -avn --delete
the -n is the dry run switch.

Code: Select all

man rsync
will give you much more info.
by mph426
Thu Feb 09, 2012 12:13 am
Forum: Scripts & Bash
Topic: Scripting 101
Replies: 8
Views: 1773

Re: Scripting 101

Hi all, Today we'll change up things a bit. We're going to add the getopts statement and change the way that $1 (the first argument) is looked at. Again, if $1 is not present, take an action, this time however, it won't be the usage statement itself, but rather a call to a function that shows the us...
by mph426
Tue Feb 07, 2012 10:47 pm
Forum: Scripts & Bash
Topic: Auto logout from a virtual terminal after execu... [SOLVED]
Replies: 11
Views: 2236

Re: Auto logout from a virtual terminal after executing a sc

Nevermind. Found a way while experimenting earlier. Putting pkill -SIGHUP `basename $SHELL` or pkill -SIGKILL `basename $SHELL` at key places ought to do it. Thanks for trying though. Marking this thread solved. I don't mean to beat a dead horse here but when pkill command as shown, it closed all t...
by mph426
Tue Feb 07, 2012 10:12 pm
Forum: Scripts & Bash
Topic: Scripting 101
Replies: 8
Views: 1773

Re: Scripting 101

ChickenPie4Tea, Copy the script into a directory by itself. Look at the code in gedit or whatever your favorite editor may be. Don't be too concerned with the command, back ticks, brackets etc... Just start to get used to the structure. Read the lines, refer to the comments. They'll start to make so...
by mph426
Mon Feb 06, 2012 9:04 pm
Forum: Scripts & Bash
Topic: Scripting 101
Replies: 8
Views: 1773

Re: Scripting 101

Hi all, It's time to add some more code. Here we're adding just a quick little command line check to see if any parameters have been supplied. If so, run the program, if not give a brief syntax and description, then exit. Now, the check that we're adding does no checking of what kind of parameters b...
by mph426
Sun Feb 05, 2012 7:44 pm
Forum: Scripts & Bash
Topic: Scripting 101
Replies: 8
Views: 1773

Scripting 101

Hi all, In the spirit of this thread, I thought it might be nice to take a simple script and build on it. This will allow us to learn as we go. For the first example I've taken a script that I wrote a few years ago that searches for a text string, inserted some comments on what's going on in the pro...
by mph426
Sun Jan 15, 2012 1:56 pm
Forum: Scripts & Bash
Topic: Help with if statement script
Replies: 3
Views: 1126

Re: Help with if statement script

I know that this may seem a little like overkill but, here's another way to look at it. It's written in a "C" style with the main program and a function. I try to code operations only once. That way if changes need to be made you only need to change one instance. Note that it uses fping instead of t...
by mph426
Sun Jan 15, 2012 12:17 pm
Forum: Other networking topics
Topic: [SOLVED] vpnc questoin
Replies: 1
Views: 940

Re: [SOLVED] vpnc questoin

Update, While doing some research in the Networkmanager applet's mailing list. I turned on the debugging for the vpnc client. In doing so somehow made the applet disappear. Since I'm new to the ways of Mint, I could not easily find the correct service to restart. So, when in doubt... Reboot. After t...
by mph426
Mon Jan 09, 2012 11:47 pm
Forum: Other networking topics
Topic: [SOLVED] vpnc questoin
Replies: 1
Views: 940

[SOLVED] vpnc questoin

Hi all, I installed vpnc to connect to my work. So far I've not had much luck connecting. I was able to setup the connection in the NetworkManager Applet. However when I try to connect it comes back with "The VPN connection 'Work' failed because there were no valid VPN secrets." I copied my config f...
by mph426
Mon Jan 09, 2012 9:23 pm
Forum: Scripts & Bash
Topic: How to automatically execute a command inside a certain file
Replies: 4
Views: 1592

Re: How to automatically execute a command inside a certain

If you do, or want to do a lot of command line stuff, you may want to consider a few more variables. Here's my .bash_profile. # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs LS_OPTIONS='--color' PATH=$PATH:$HOM...

Go to advanced search