I inadvertently landed in the www-browser
application. This is a text based web browser.
How do I exit it?
I inadvertently landed in the www-browser
application. This is a text based web browser.
How do I exit it?
I've installed python3.4 from the deadsnakes repo, and I'd like to make it my default python3 (which is currently python3.2). Is it safe to simply change the python3 link?
sudo ln -s /usr/bin/python3.4m /usr/bin/python3
Are there system components that would die due to an inability to work with python3.4 instead of python3.2?
I have a (graphical) login session running on an office computer, and I'd like to log it out to save on a few computer resources.
I can ssh to the office box, but when I try gnome-session-quit
I get this:
$ gnome-session-quit --logout --no-prompt
** (gnome-session-quit:18500): WARNING **: Command line `dbus-launch --autolaunch=fca99a51622d1930b068883b00000005 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
** (gnome-session-quit:18500): WARNING **: Unable to start: Cannot open display:
Makes sense as my $DISPLAY
is empty (as it's a headless ssh session). When I run w
, I see that the gnome-session
is running on tty7
. Is there a way I can pretend to be tty7
and initiate a logout? Is there a better way to do this?
I've had an interesting terminal session in byobu, and I'd like to save the terminal output (commands and all) to a file - how can I do that?
According to the byobu man page:
Ctrl-a ~ - Save the current window's scrollback buffer
This may indeed be doing something, but I've found no indication of where and under what name it might be saved.
When I shutdown Ubuntu running mongodb (installed via apt), occasionally mongodb doesn't appear to finish shutting down completely - the log file matches a healthy shutdown, closing files, cleaning up the journal etc.. but the filnal [interruptThread] shutdown: removing fs lock...
isn't present, and (unsurprisingly) mongodb refuses to start at the next bootup, complaining of a stale lock file.
It appears to me that there is a timeout for services to quit by themselves that is expiring, and thus mongodb is killed forcibly.
The offending mongodb is part of a replica set that sync's over ssh tunnels. It may thus be possible that a socket is hanging and holding up the final cleanup (including removing the lock file)??
What can I do about this? Can I set a longer timeout for mongodb to shutdown? Can I insist that mongodb be allowed to die cleanly before ssh tunnels are killed? Is there another explanation that I'm missing??
My screensaver unlock screen got frozen, and fishing around I found that I could use CtrlAltF2 to switch tty's and get a (text only) terminal login.
The helpful pages that mentioned this, didn't however mention how to get back to my normal ubuntu GUI session. How do I do that??
Currently I am unable to start mongodb with the usual command sudo service mongodb start
. When I do that, I get something like:
mongodb start/running, process 23387
however no such process is subsequently running, and the mongodb log doesn't show anything new. mongodb DOES however start on reboot, and it can be stopped with sudo service mongodb stop
.
It's more of an inconvenience than a game stopper, but I'm intrigued - what's going on??
I am using 2 screens, and wish to invert the colors on both of them without using compiz (I'm using gnome shell).
I can use xcalib -invert -alter
as suggested in this question, but it only inverts one of the screens. Is there a way to specify both of them, or even which of them, using xcalib
? Is there another way?
With xcalib
, you can specify which screen to alter with the -d
(-display
) or -s
(-screen
) options, but alas, X
seems to be aware of just one screen: when I use the w
command I only see one (the usual ":0")
ps: this question was originally posted by k0pernikus as a comment here.
---edit---
This is the output of xrandr
:
Screen 0: minimum 320 x 200, current 3200 x 1200, maximum 8192 x 8192
VGA-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
1280x1024 60.0*+ 75.0
1280x960 60.0
1152x864 75.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
DVI-0 connected 1920x1200+1280+0 (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 60.0*+
1600x1200 60.0
1280x1024 75.0 60.0
1280x960 60.0
1152x864 75.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
I can use -s DVI-0
or -s VGA-0
, but they do the same as -s :0
How do I get a list of current X display names?
Apart from being a useful thing to know, I want this so that (hopefully!) I can use xcalib -invert -alter
as suggested in this question to invert the second of two screens on my computer.
There is a CUPS server beyond a firewall and I'd like to use it's printers. I have ssh access to computers that can access the CUPS server, and can get at the servers web interface by forwarding say port 1631. I cannot forward port 631 as I've not got root access to anything on the servers network.
In Ubuntu's 'Printing' control panel, I can enter the address of a server, but I've not been able to connect through the forwarded port (localhost:1631, which is forwarded to the remote CUPS server's 631 port).
Any ideas?
Ubuntu is complaining that my root file system is nearly full, but when I use baobab
(aka "Disk Usage Analyser") or du -h
it summarises the usage of all the other mounted file systems as well.
How can I exclude the other file systems which are mounted in assorted subdirectories?
On recently upgrading to 12.04, I find that the middle click with my logictec marble mouse doesn't work any more (formally achieved by clicking both buttons). Anoying since I can't do a middle-click paste.
Can anyone think of an easy solution? Or should I file a bug?
(theres's already a launchpad question on this, and here's the oldish ubuntu page for configuring a marble mouse.
The Alt key is used for many useful commands, but unfortunately it's caught by the terminal window to activate the window menus (File, Edit, ...).
I would like to either force the terminal window to pass Alt to the terminal or get nano to use some other key/combination (I'm using GNOME Terminal 2.32.1).
ps: There is a related, but different question here where it's pointed out that Ctrl + Right Arrow cannot be bound to "move forward a word".
When I attempt to copy a folder from a webdav server to a local disk using Nautilus, it copies what appeas to be a manifest file (xml with the directory listing etc..). With cadaver I get an empty file.
I would like to be able to recursively copy a whole directory tree. Does anyone know how I can do this?
ps: I'm using Ubuntu 11.04 with Nautilus 2.32.2.1 and Cadaver 0.23.3
I'm able to view an epub file in, say, okular, select all the text and copy-paste into a text editor. I'd like a command line method - anyone know of such a thing?
Sometimes man pages contain references to other information pages, for example Everyday Git[1] and gittutorial(7) are referred to in the man page for git. Those with round bracketed numbers refer to other man pages, so for the gittutorial man page I enter:
man 7 gittutorial
How do I access the info referred to in square brackets? (eg: Everyday Git[1])
I have some csv files with too many columns for LibreOffice Calc to open, but only a few rows. If I can transpose the csv file, it should be ok as Calc can deal with very many more rows than columns.
In Ubuntu 11.04, Ctrl-Alt-Del gives me a menu with shutdown, hibernate, suspend and restart, but no logout. Is there a key combination to logout of Ubuntu? Is there a way to provide one?
I have a problem with the 'synaptic' application (GUI version of apt), and was hoping to get some debug output from it. The man page however has just a couple of command line options and this very helpful statement:
"Synaptic accepts all of the standard Gtk+ toolkit command line options as well as the following:"
Unfortunately, there's no indication of how I might determine what those are, and my googlefu has so far been unhelpful..
By default, "Log File Viewer" is not launched from Unity as root in Ubuntu 11.04. This is pretty useless, as most of the log files are only readable by root.
How can I change this behavior so that it launches as root?