Reputation
385
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 8
Newest
 Explainer
Impact
~7k people reached

Dec
2
comment How to check if running as root? Not asking for sudo
@DaboRoss nano may not be very commonly customised, but sudoedit will use whatever editor is your account's default (as manifest in the $EDITOR and/or $VISUAL environment variables), which happens to mean that I can use my preferred emacsclient while my colleague can use his vim and my other colleague can use her vim with a different config, and there need be no fighting over root's editor setup because it runs the editor as the user invoking sudo rather than the target user.
Nov
20
comment How can I change the default text editor from gedit to vim?
In general, it's better to set EDITOR and use sudoedit than to run the editor under sudo
Nov
20
comment Is there such thing as a guest session on a system without a GUI?
@Rinzwind in the latter case, the ftp server doesn't create a system account, and does some permission checking internally rather than relying on the filesystem code. Totally different situation to an interactive (graphical or terminal) login.
Nov
20
comment Is there such thing as a guest session on a system without a GUI?
true, but that makes guests coexisting with permanent users an awful lot trickier.
Nov
20
comment Aircrack-ng, using airmon-ng to change to monitor mode
It's conceivable that you have a wireless card that simply can't be put in monitor mode - at least with its Linux drivers. Such cards aren't all that common but they certainly exist. Unfortunately, if you have one, the only thing you can do about it is to replace it.
Nov
20
comment How to shut down when only at encryption password page?
If the FDE is on /home (just for reference), it's a mite trickier. I'd be inclined to use the Magic SysRq sequence REISUO in that case, with multi-second pauses between each. It's almost certainly not the best option for that situation, though - just the first thing to spring to mind.
Nov
20
comment How to shut down when only at encryption password page?
If the FDE is on the OS drive, as you say, you can still be sure nothing is being written, because the OS can't mount the /home drive (or even know that it would need to mount it) until said OS is decrypted!
Nov
20
comment Move OS to SSD without reinstalling
@Seb you'll need a live USB, if you don't have an optical drive (or won't, with the new drive connected), but if the two drives really are exactly the same size it should be safe to do a bit-for-bit copy: boot the live system and sudo dd bs=4M if=/dev/whicheverdeviceisthehdd of=/dev/sdddevice. Be aware that as @Rinzwind notes, this won't enable SSD optimisations. You'll need to look those up and do them manually. You should also disconnect the old drive before rebooting, to be sure you have the right copy of the system active, then hotplug it to reformat.
Nov
20
comment Move OS to SSD without reinstalling
@Rinzwind first of all, it's ae, not ea in my username. Tab-completion will help with that. Secondly, I was only talking about moving the system as-is. SSD-related changes, like enabling TRIM/discard, have to be done manually if not reinstalling, and I never claimed otherwise.
Nov
20
comment Ubuntu server 12.10 /dev/sda1 disk full
Better even than df -BM is df -h, which will choose an appropriate human-readable unit for each figure.
Nov
20
comment How to shut down when only at encryption password page?
If you're using full-disk encryption, then you can be sure nothing is being written (since you haven't decrypted the drive). As such a hardware power-off (eg hold the power button) should be entirely safe. If you are only encrypting (for example) /home (doesn't sound like it), it's a bit trickier
Nov
20
comment `zip` works in shell but not in Python script
The curly brackets are a bash feature. I'm guessing that python's os.system() either bypasses shells entirely or uses a shell (probably /bin/sh, which in Ubuntu is dash, which I think fits) that doesn't support the syntax. Whichever is the case, the solution is to expand in your python script to os.system("zip -r "+PATH+".zip "+PATH")
Nov
20
comment Move OS to SSD without reinstalling
Depending on the size of the SSD compared to the old HDD, and whether Ubuntu is the only OS installed, and whether you have a way to connect both drives to a single machine (eg USB drive caddy), you may be able to do a bit-for-bit copy and expand the partitions. Otherwise, make a list of installed packages, copy /home (and any relevant changes you made in /etc) somewhere, and reinstall. Restoring /home and installing the packages from the list should get a functionally identical system. Posted as a comment because an answer should really have more detail.
Nov
20
comment How to check if running as root? Not asking for sudo
@DaboRoss side note: sudo -e is a whole character shorter than sudoedit and does the exact same thing. Also you didn't mention what's arguably the biggest advantage of sudoedit/sudo - e: it runs the editor as you, not root, so you can have any config you like on your own account only (great in environments where other people might need to sudoedit but don't like your setup) .
Nov
20
comment How to create UEFI-only bootable USB live media?
@sup this method creates media that can be UEFI-booted. The problem is that it's not only UEFI-bootable, as requested in the question: it can also be booted in BIOS mode.
Nov
20
comment Synaptics touchpad tap-to-click is not working in Ubuntu 15.10(Gnome)
@kmario23 at a guess, you'll need to set synaptics driver module options. Unfortunately I'm on mobile and can't easily confirm that or look up how to do it, but hopefully that gives an idea where to start.
Nov
20
comment Is there such thing as a guest session on a system without a GUI?
Strictly, it should suffice to create a folder inside /home (this being the guest user's homedir) and mount a tmpfs there. Of course, unless you have a special setup procedure that mounts a new tmpfs and populates it from /etc/skel, guest account data will persist across logins, just not reboots. Regardless, the question seems more to have been about whether there's a need to disable guest console login. And to that, the answer is "no, unless an ambitious admin previously implemented it from scratch and then enabled it".
Nov
20
comment Is there an Ubuntu Solitaire that works like the Windows 7 game?
Don't forget, if you do this, to make sure Aisleriot is doing the right solitaire game. It supports a great many different games, each with their own spreads and rules,and at one point at least, the default was not Klondike, which is what the Windows game is.
Nov
15
comment Is there any text editor which supports Markdown (Ask Ubuntu's formatting style)?
The overkill option, as always, is emacs. markdown-mode works well, but I wouldn't be surprised if someone had built an entire asynchronous Stack Exchange client in emacs.
Nov
15
comment I can't access my Documents, Music, Pictures and Videos
Open a terminal, and give us the output of running the three commands pwd, echo $HOME, and ls. That should help us diagnose the problem.