Reputation
758
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 16
Impact
~111k people reached

  • 0 posts edited
  • 1 helpful flag
  • 236 votes cast
Jul
30
comment Smart lock like on Android?
No idea, but it sounds like something you would use udev rules for - something I haven't explored yet. You could possibly write a small program and run it as a daemon as part of your startup. It could watch for the wifi connection to become active. The next problem would be what to do about your passwords. You don't want them stored in the clear anywhere and if they end up on the command line, they will be visible in history.
Jul
16
comment Adding a suffix at the end of each shell command
I wanted to play around with this, but so far I haven't found the syntax to unset it after I'm done. I was thinking there must be some placeholder like : which would get rid of the syntax error. Still, it begs the question as to why anyone would want to do this for every command. Something more focused/selective would probably be a lot more useful.
Jul
15
comment Rsync, how much risky to use it live?
That's what live CDs (or a simple version of Linux installed on another partition) are for. You reboot from the live CD/partition, run the backup (using any tool you prefer) on your main partition and then reboot as normal. This way, your source partition is static and everything is in sync. If you use separate partitions for things like /home and other data, then your backup of / will take very little time. You can do /home the same way although that may take a bit longer. I use an additional separate data partition to make /home easier to manage as well.
Jul
15
comment How to print the output of tree to pdf without losing the color?
If you don't need the color (as the OP does), you can still get usable tree output using tree -n -d --charset unicode > file. It's definitely not as pretty, but I use it with a monochrome laser printer when I'm herding my data files, etc..
Jul
15
comment “Shockwave Flash is known to be vulnerable” warning
An issue with installing/using chrome is that AFAIK, it may potentially introduce its own major security vulnerability via the new module which allegedly can turn the microphone on and record whenever it feels like it and then phone it home to Google. I assume chromium won't do this, but AFAIK, pepperflash won't work with it, so using it doesn't help.
Jul
8
comment What does the command name “dd” stand for?
Nice info, but probably not the right answer.
Jun
25
comment Google Chrome suddenly increased size (see picture)
When I first read the subject line, before reading the rest of your question, I thought you meant the size of the program - and that might have been caused by the code they have just about admitted they have added to chrome which can automatically turn on your microphone and record (for them) everything they hear, maybe even when chrome isn't even running! (That last part might be a Windows/Android thing.) Just wanted to say ... I see you got the answer to your actual question below.
Jun
18
comment Symlinks dont work after restarts— then restarting nautilus fixes it
It sounds like the files are on a partition which isn't mounted (at least until Nautilus or something else tries to access them). If that's the problem, then there are different solutions depending on when the partition "should" be mounted. If it's all the time, then you can add an entry to /etc/fstab to automount it. If it's sometimes, you can write a script to mount it. Then, you just have to figure out a mechanism to run that script when appropriate to your situation.
Jun
18
comment How do I prevent a folder inside of /tmp from being cleaned up?
This is the right idea. If /tmp doesn't do what you want, then store your info somewhere else - even on another drive if there's space available. Don't mess with things that Linux (and other programmers) expects to be a certain way unless it's the only way to get the result you need.
Jun
18
comment Should I alphabetically order the flags in a command as good practice?
I remember e2fsck -fvcckt because it spells the situation I may be in if it returns too many errors. ;)
Apr
10
comment Problem cloning root and home before doing an upgrade from Trusty to Utopic
That's what I thought, but I've double checked fstab on both partitions and they look good to me. I use gparted whenever I do stuff like this - even just to look at what's there. It's a great tool. Since sda5 isn't mounted when I boot normally from sda3, I can just mount sda5 from there without a live CD. I'll see if I can edit my question to include both fstabs.
Apr
9
comment How do I upgrade to a newer version of Ubuntu?
I'm trying to use this method and running into some issues. I could use some assistance. I started a new thread at askubuntu.com/questions/607008/…
Apr
3
comment no sound in system and alsamixer says :“The sound device does not have any control”
Since nobody more knowledgeable is commenting: I assume you are running alsamixer from a terminal and seeing the character graphics display it presents. If not, do so and see what happens - especially any messages which appear on the terminal and post the results here. the only other thing I can think of is that you may have turned alsa off somehow. Although it's the most common sound infrastructure, it's not the only one. Please edit your question adding your distro, version, sound card make and model, computer make and model, so people have some idea of your actual situation.
Mar
22
comment Shell scripting bash: How to detect Alt+N keystroke?
I see the command-line tag on this, but if you are using a gui or a terminal window inside a gui (now or some other time), check out AutoKey. It will allow you to easily define many hotkeys which can trigger anything from a simple text phrase substitution to the execution of an arbitrarily complex macro written in Python. It outputs keystrokes to the gui/terminal just as if you typed it. It also has a number of other features and is very powerful, yet easy to use. A fairly recent version is included in the Ubuntu repos. For info, see code.google.com/p/autokey . (migrating to GitHub)
Mar
22
comment Case sensitivity in shell scripting
For a similar issue, but dealing with sort, see askubuntu.com/questions/597924/…
Mar
22
comment Ubuntu will not accept new password even after recovery mode reset
Continued: I don't do live cds very often, so I'm not sure what a live cd calls its root partition. It's probably not /dev/sda1 - which should be your computer's boot drive's first partition where the log lives. If you installed Linux on another partition, substitute its device name for /dev/sda1.
Mar
22
comment Ubuntu will not accept new password even after recovery mode reset
If you can't login from a normal boot up, then boot from a live CD. Once that's running do something like sudo mkdir /media/work; sudo mount /dev/sda1 /media/work; cd /media/work; sudo cat var/log/auth.log --- do the commands one at a time. I can't format them nicely in a comment. That will let you see the log contents. Then the trick is getting them into a post here. If your live cd will let you get on the web with a browser, then you can just copy and paste the log into a post here. If not, save it to a flash drive and post from that on a computer that does work.
Mar
14
comment Is it safe to modify thunderbird mail box from python?
Cont'd: You could test in an IMAP environment if you set Thunderbird to offline mode or, better yet, disabled your Internet connection while testing with the alternate profile. It would be very easy to accidentally switch Thunderbird back into online mode and only a disabled connection will protect you from that. (If you're good, you could probably do that just with iptables/firewall without taking your whole connection down.)
Mar
14
comment Is it safe to modify thunderbird mail box from python?
It should be possible to copy your whole profile folder to another location and start Thunderbird using thunderbird -P profile . This way you can try anything you want to on the copy without touching the "live" data. NOTE: This assumes you're using POP. Don't try this using an IMAP account because any change you manage to make to an IMAP account will either be undone as soon as you connect to the server or any errors that survive that will probably affect the server. Not good!
Mar
6
comment Ubuntu grub not showing. Oprating System not found
I'm not sure these will help in your case, but there are three things I would try: supergrubdisk supergrubdisk.org . Once grub is back (and assuming it found your OS partitions), you can tweak things very nicely using grub customizer which has a very nice gui interface. You boot from an Ubuntu live cd and install it (in the live cd OS) from somewhere like grub-customizer.en.uptodown.com/ubuntu and then run it. It will find the "real" disk and let you modify the boot menu. Also see gparted live cd download.cnet.com/GParted-Live/3000-2094_4-10698802.html