Skip to content

u/rob79

In this archive from May 2011 to Dec 2014

24
posts
161
comments
2
media
779
score

Hello again :).

I realized after I read your post that I did pastebin the wrong file - my mistake. I'm a copywriter, not a coder or wordpress expert in any way...

That said, after talking to the guy that made the theme I'm using he suggested an very nice solution. I thought I'd double-reply you in case you might find the info (posted as an edit in my original post) helpful.

1 points

Hi there, thanks for much for your reply!

I ended up sending a support message to the theme's author, I thought I'd post here in the meantime hoping for a more timely response :).

I'll take another look at it and see if I can figure out why the pastebin looks so different from what you expected.

Thanks again!

1 points

Double reply:

Okay, so if I add this line:

 00 17 * * * rm /home/Downloads/*.jpg

to my crontab file will it just delete all the jpg files in my user downloads folder every day at 5PM? That's exactly what I'm looking for and read the comments in the crontab file and I feel like this should work...

EDIT:

This line in the crontab comments confuses me:

"Output of the crontab jobs (including errors) is sent through email to the user the crontab file belongs to (unless redirected)."

How does it know my email address? I feel like there must be additional setup required.

1 points

Nope, not log files. It's on my work computer. Also, I'm self employed so I'm actually my own IT department! Wow, writing that out just sent a chill down my spine, I've never really thought about that in such a manner before, I'm suddenly afraid by how incompetent my sysadmin (ie. me) actually is.

I download hundreds of photos/day for work purposes, then I'll realize after a week that I have a downloads folder full of jpg files... I just want to automatically remove all the jpg's from my downloads folder everyday half an hour before I shut down my work computer :).

1 points

Cool, I'll definitely keep this in mind. I've never heard of crontab. I really do need to learn the basics, I just wanted to make sure I wasn't wasting my time with cron if there was a much better option out there.

crontab -e tells me that there "is no crontab for rob79". I take that to mean that cron isn't used for anything by default on an ubuntu desktop.

Thanks so much for pointing me in the right direction (and for the little tips/tricks)!

EDIT: Okay, I get it now. CRON just does what's in the crontab file (cron table), cron runs automatically. I still have trouble remembering that "everything is a file" with linux and every time I'm reminded of that I remember why I switched. As per my other comment I'm still not sure if adding that line to the crontab file is all I need to do...

1 points

Cool.

I guess my biggest question comes down to: How do I make it persistant? Like, I don't understand cron well enough to even be able to figure that out. Script language aside (from what you said in your previous comment it's basically just the normal rm command in a text file) how do I get the script into CRON and make it stay there? Will I have to tell CRON to activate my script upon every reboot, etc?

I definitely appreciate your help, but it's kinda late here now so I won't be setting this up tonight. I get the use of wildcards, etc, but I'm just not sure about the actual basics of cron.

Another thing, when I try to access cron on desktop ubuntu 14.04 I get a permission issue, then if I try to sudo it I get a "resource unavailable" message... I'm going to have to sort that out before I even think about going any further.

Thanks again!

1 points

Excellent, thanks! So I was on the right path with CRON, that makes me feel good.

I still have no idea how to actually implement this, but now that I know I'm not wasting my time learning about CRON I'll (hopefully) be able to figure it out from here after spending some time with my good friend Google.

Thanks again!

1 points

Yeah, I've tried half a dozen different DE's since I made this post and I don't like any of them as much as I like Unity :).

That seems to go against the grain, but it does come down to personal opinion in the end. I always felt like I was missing out on something when I saw all the posts that said Unity sucks, insert DE here is so much better, but now I realize what it really is: personal preference.

I understand why some people might hate Unity the same as I understand why some people hated Windows 8 - it's just different and doesn't allow for as much control. I've never used W8 so I'm just going from what friends have said, but I think it's kinda the same thing. Maybe if W8 had been their first Windows OS they would love it, just as I love Unity because it's my first experience with Linux. I'm going to stick with it.

I think I'm going to start looking for a Nautilus alternative though - there have always been quirks with it that bug me (what can't I see free HDD space without right clicking and selecting properties?!).

Even though it's been a year I still have a hard time separating the components of a linux-based OS in my mind. I know the desktop environment isn't linked to the window file manager (is that what Nautalus is called? I can never remember) so it blows my mind that I can change one without the other.

My experiment today taught me that I like Unity, but I don't like Nautilus. The fact that I can change one without losing the other reminds me of why I wanted to switch to linux in the first place :).

1 points

Yeah, I keep hearing that but I honestly don't think I fall into that camp.

I actually love Unity, and I didn't switch to Linux because I wanted to micro-manage my environment. I switched to linux because it occured to me that there was literally nothing I did on Windows that I couldn't do on Linux and I had always been interested in the concept of "free (as in freedom) and open" software. I still like things to work straight out of the box, I'm not a tinkerer (although I do like having the option to do so if I'm so inclined).

Thanks for the comment either way, I totally get where you're coming from!

5 points

Excellent, thanks so much for the big reply! I tried out GNOME 3 after I made this post and it wasn't really to my liking - it was very basic. My understanding is that you need plugins to add functionality but I'm not there yet, I want to try some all-in-one's at the moment.

2 points

YES, thank you!

All of the guides I found online suggested using gconf-editor not dconf-editor... I was able to find the appropriate box to uncheck in dconf-editor, so thank you!

In case anyone else wants to know how to do this:

  • Install dconf-editor and open it
  • In the tree on the left expand: org > gnome > desktop and select "media handling"
  • Untick the box next to "automount-open" and external drives will still automount but they won't open windows to display the contents of the drive automatically

Also, if you wanted to prevent external drives from mounting automatically you could also untick the box "automount" here as well.

Thanks again pi2832v2 - that was driving me nuts all day :).

3 points

Cool. Thanks very much for that!

I'm basically already there. Before the reinstall (when I first started using Ubuntu months and months ago) I was running random things I manually downloaded from sources I wasn't familiar with (random fixes I found on the internet, things like that). I realized quickly that could get me into trouble so cut it out, but figured a full reinstall was still the best idea when 14.04 came out.

I don't share my passwords, and no one else uses my either of my PC's (home and work both using Ubuntu now).

I do have some backups on external HDD's, but honestly most of my backups are online at this point. The only thing on my PC that's irreplaceable would be photos which I burn to archival DVD's on a semi-annual basis (but are also uploaded to my online storage lockers as soon as they are transferred to my PC). My work data is all online, but at the same time I'm not required to keep that secured personally so I basically just do it because it's easy.

Regarding sudo/su: I don't login as root, ever. I just use my normal user accounts that I setup when installing. I very rarely find myself opening up a terminal window, but there are times where I'll find myself having to use sudo (ie. just a few minutes ago when I wanted to check if ufw was active: "sudo ufw status").

If you have a minute can you give me a quick explanation of when using sudo is appropriate and inappropriate and what additional risks I'm running when I do run something as root?

I have read up on this online but I need a real ELI5 at this point. I'm not an idiot, but I've never used anything *nix based until now and while I like it I'm definitely not a power user. Honestly I don't know why I even have to run things as root sometimes (why couldn't I check the status of my firewall without sudo for example?)...

Thanks again!

1 points

I just recently noticed that if I use the Softaculous 1-click wordpress install on my Namecheap shared hosting there is an option to do daily, weekly, or monthly automatic backups. You can set it to keep all backup or only a certain number (ie. after there are 5 backups delete the oldest when when a new one is created - you can choose any number).

1 points

Yeah, that's exactly how I'm following trunked radio on Windows right now :). I don't care about police, etc though, the one I'm following is owned by a telco and leased out to all local government agencies as well as private businesses.

I live near a huge refinery and have been having fun listening to them talk about day-to-day operations. Makes me feel nosy but every time I see that place I think to myself "I wonder what's going on there..." and now I know! Plus it was reassuring to hear their safety drill the other day, now I know that if there was an emergency there are actually people there who know what they're doing LOL.

1 points

Awesome! I've read through a couple of those already but some are new to me :).

I'm experimenting with linux at the moment. Building a new PC and I've wanted to make the switch to linux for a number of reasons for many years. I'm doing a little experiment by using Ubuntu 12.04 24/7 for a few weeks before my new build arrives before I decide whether to buy a windows licence or not.

To be honest, I love it. It's amazing and come a long way since the last time I did an extended trial like this. I consider myself tech-savvy and willing to learn but not a pro by any means so it does take a bit of trial-and-error to get stuff to work but it's really satisfying when it does.

The SDR stuff is really tripping me up. I also have a windows laptop and can accomplish a goal in 10 minutes on that while I've spent the last week trying to do the same thing on Ubuntu... My mind isn't made up yet but if I can't figure out this SDR stuff in the next couple of weeks I'll be another one of those people who wishes they could use linux but doesn't because they can't figure stuff out... Sad really.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.