• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

The "Linux questions (and other stuff)" thread

OK let's see if I can make a post with Links.

Country of origin: China
Browser User Agent Atring is Links (2.7; Linux 3.8.0.26-generic i686; GNU C 4.7.1)
 
Linux often throws errors but most of them don't stop you from getting the job done. i get an entire scrolling bunch of console error jargon when launching Mutt plus a certificate authentication failure alert but it works anyway. sorta reminds me of Windows' 'Error: The operation completed successfully' error alert.
 
Linux often throws errors but most of them don't stop you from getting the job done. i get an entire scrolling bunch of console error jargon when launching Mutt plus a certificate authentication failure alert but it works anyway. sorta reminds me of Windows' 'Error: The operation completed successfully' error alert.

It wasn't a Linux error, it was an Android Forums error, probably because there's no javascript in Links. It actually said "The following error occured with your submission." but wouldn't say what the error was, it was just blank. Basically I was using an unsupported browser. The post didn't show until I viewed AF in Firefox. Probably an AF Moderator woudn't be able to moderate with Links, things like locking threads and editing or deleting wayward posts.

I never actually bothered about console errors. If you're running X applications you don't see them, not unless you started whatever app from the terminal. Most of the time they're not actually real errors, they're just warnings, like about how an app is using a system call or library function or something. Mutt might be set to ignore certificate errors, and just get on with it. Like when you find an SSL certificate error in a browser, usually click OK and don't bother me again about it. Think you're supposed to examine the site's certificate and determine what the problem is. I've seen it a couple of times saying the certificate authority isn't trusted, and then I looked and see it's Google or Verisign, then think shouldn't be any problem here.

Links would stop me "getting the job done", mainly because it can't read Chinese, just get a load of asterisks. I often use wenku.baidu.com to source lesson materials. Which is heavy on javascript, and uses Flash as well to preview PPT presentations, so I can decide which ones are worth downloading. Think it's just like trying to use early '90s Cello in the 21st century...LOL.
...for anyone who doesn't know what Cello is...
http://en.wikipedia.org/wiki/Cello_%28browser%29

I think if one does have an underperforming machine, like the school's elderly Pentium 4, that's only just able to run say Firefox 25, especially on complex javascript heavy, Flash banner ad laden websites. Install No-Script and Ad-Block, and that'll allow you to have more control and cool things down a bit, while still being able to accomplish what you need to see and do.

Windows XP was originally designed to run with just 128MB or 256MB RAM, which was typical of PCs at the time. But when you add all the Service Packs, modern browsers and Office 2010, etc, that's just not going to happen. But a machine like that I wouldn't expect it to run KDE 4 too well either, Vector Linux should be ok though, or XFCE.
 
I'm trying to figure out the easiest way of automating an offsite backup of things like configuration files and the easiest way I came up with was to write a script that would zip the files and email the zip to one of my email accounts as an attachment. I'm trying to work out the email part first to get it working by using a different file to test but it isn't running.

Any ideas?
 
I'm trying to figure out the easiest way of automating an offsite backup of things like configuration files and the easiest way I came up with was to write a script that would zip the files and email the zip to one of my email accounts as an attachment. I'm trying to work out the email part first to get it working by using a different file to test but it isn't running.

Any ideas?
We need some info, pt! :) Starting with, what are you using for e-mail?
 
I have a very minor, intermittent problem with my Chromebook. Sometimes, after rebooting, it loses its trackball.

I have a Logitech wireless trackball connected to it, and sometimes after a reboot I have to pull out its receiver and stick it back in for it to be recognized again.

I've had an identical trackball on my HP laptop for over a year, and this has never happened with it.

It's my Acer Chromebook running Kubuntu 13.04. Any ideas?
 
Hmmm.....the next time it happens, perhaps you should do a modprobe and determine if the kernel even bothered to load the module in the first place?

...At the very least it'll let you determine who gets to receive your official bug report. :p
 
Thanks, Joel. It's such a minor problem--and so quickly fixed by yanking out the receiver and sticking it back in--I hadn't even thought about that. Good idea, and I'll do it next time it loses the trackball.
 
I'm trying to figure out the easiest way of automating an offsite backup of things like configuration files and the easiest way I came up with was to write a script that would zip the files and email the zip to one of my email accounts as an attachment. I'm trying to work out the email part first to get it working by using a different file to test but it isn't running.

Any ideas?

http://tuxtweaks.com/2012/10/send-gmail-from-the-linux-command-line/

I actually stopped running my own mail server out of boredom but that's another alternative.
 
It took me forever to join the GUI mail client club for my majority use.

I used to know how to write a sendmail conf file by heart and would often build them from nothing.

Then came Postfix, the solution to everything not broken in sendmail.

Then again I started using email with bang routing.

Anyway enough nostalgia. This post cheerfully deleted upon request.

Hope the link helps out. :)
 
Very nice find. In the comments, it also discusses two-factor authentication, so this should fit the bill perfectly.

Yeah, I'm using an app specific password so that's not an issue

Figured out I needed to insert CTRL+d to actually send. Is there a way to simulate that in a shell script?

Pipes, pipes
 
So, any recommendations of what to back up? Honestly not completely sure what to backup and what not to
 
Figured out I needed to insert CTRL+d to actually send. Is there a way to simulate that in a shell script?

Write the input through a herefile.

Terminating the herefile ought to do the same thing.

If I'm wrong, have your script write a little script as a herefile with the ^d explicitly output and then execute the little script.

Sample herefile attached for those unfamiliar with the term.

1384050378875.jpg
 
So, any recommendations of what to back up? Honestly not completely sure what to backup and what not to
It really depends on what your needs/preferences are. That plus any file size limitations there may be when sending/receiving mail. Also, you can get as elaborate as you want with your script(s), for example, asking for input so you can decide at run-time which directories or files to back up. So you could back up X today, Y tomorrow, Z the next day, etc., as you choose. Or let them run completely automated with pre-determined files/directories.

I believe you mentioned in your OP that it's config files you're wanting to back up, correct? If so, you need to lay out which files you want to save: just personal stuff, in your home directory, or system files, too? What is it you want to accomplish? If you had a catastrophic disk failure, what do you want your backups to restore?
 
It really depends on what your needs/preferences are. That plus any file size limitations there may be when sending/receiving mail. Also, you can get as elaborate as you want with your script(s), for example, asking for input so you can decide at run-time which directories or files to back up. So you could back up X today, Y tomorrow, Z the next day, etc., as you choose. Or let them run completely automated with pre-determined files/directories.

I believe you mentioned in your OP that it's config files you're wanting to back up, correct? If so, you need to lay out which files you want to save: just personal stuff, in your home directory, or system files, too? What is it you want to accomplish? If you had a catastrophic disk failure, what do you want your backups to restore?

I'm thinking having everything needed to install the base system and any other packages, and have them be configured already how they are in the backup

I did find this: https://wiki.archlinux.org/index.php/System_Restore_from_Configurations
 
I'm thinking having everything needed to install the base system and any other packages, and have them be configured already how they are in the backup
I don't know that I can really be of much help with this. Personally, I like doing a fresh install when the situation arises. Like when a hard drive dies and I have to replace it, I prefer doing a fresh, clean install and then adding back select things from backups, such as mail, my browser's configuration files (which are highly tweaked), and so on. I don't restore the whole system because I kind of like getting rid of accumulated crud--even though it was forced--and starting fresh!

That looks helpful, and like a good starting place.
 
I don't know that I can really be of much help with this. Personally, I like doing a fresh install when the situation arises. Like when a hard drive dies and I have to replace it, I prefer doing a fresh, clean install and then adding back select things from backups, such as mail, my browser's configuration files (which are highly tweaked), and so on. I don't restore the whole system because I kind of like getting rid of accumulated crud--even though it was forced--and starting fresh!


That looks helpful, and like a good starting place.

You've made a fair point. Maybe I'll just backup a package list once a week or so
 
Let's see what is everyone's uptime, and no cheating! :p

[saptech@localhost ~]$ uptime
17:34:50 up 26 days, 5:50, 5 users, load average: 0.30, 0.33, 0.37
[saptech@localhost ~]$
 
Let's see what is everyone's uptime, and no cheating! :p

[saptech@localhost ~]$ uptime
17:34:50 up 26 days, 5:50, 5 users, load average: 0.30, 0.33, 0.37
[saptech@localhost ~]$
Great idea!

Here are two of mine, my HP laptop and one of my desktops:

$ uptime
17:38:14 up 3 days, 21:28, 3 users, load average: 0.45, 0.55, 0.57

$ uptime
17:36:57 up 25 days, 23:34, 2 users, load average: 1.70, 1.22, 1.13

None of my desktops had been rebooted in...months, until my power was out last month. :(
 
Let's see what is everyone's uptime, and no cheating! :p

[saptech@localhost ~]$ uptime
17:34:50 up 26 days, 5:50, 5 users, load average: 0.30, 0.33, 0.37
[saptech@localhost ~]$

Code:
$ uptime
 21:12:17 up  9:37,  2 users,  load average: 0.36, 0.88, 1.14
 
Back
Top Bottom