Pressing the shortcut Ctrl+Alt+Del restart x server.
Using the shell, sudo killall lightdm
kills the x server but it's re-started. How to fordib automatic restart?
Olivier Pons's questions
I've done the classic sudo apt-get update && sudo apt-get upgrade
I've been asked to update to latest Nvidia drivers. After a lot of "update" lines, I reboot. Now, when I boot I get this: two black screens, only the top "on" with a mouse I can't even move. My keyboard works, but (I guess!) the video driver is so broken that when I try to get a console via Ctrl + Alt + F1-F6, nothing happens. If I press 7 times Ctrl + Alt + Del it works and reboot. Here are my two screens, blank and of no use:
When I boot, I try to edit the boot option by typing e
and I didn't find on the Web the option to add / remove to boot as command line and force installation of the old driver.
- Should I comment "
load_video
"? If so, how to comment? - Should I comment "
gfx_mode $linux_gfx_mode
"? If so, how to comment? - Should I add / remove an option after "
linux /boot/vmlinuz-...blabla quiet splash
"?
Here's what I'm doing: I'm echoing through Php colors like this:
php creates output containing ANSI escape sequences that color text when it is displayed through the shell on my terminal. You can find the php class and explanation here.
But if I send my output to a file, and try to read it with vim it's not "colored", I just can see the special characters. Is there a way to display the colors like they are displayed in the shell?
I, I've installed Ubuntu 11.10 on my dual screen PC and everything worked flawlessly.
Then they asked me about proprietary drivers: ATI.
I said "ok install them".
Now it doesn't work on my dual screen anymore, I've got only one "duplicated" screen.
So, my question is: how to re-install the original video driver?
I want to resize my partitions: I have 3 partitions:
- Ubuntu 10.04
- Windows Seven
- Ubuntu 11.10
It's booting with the boot installed by the Ubuntu 11.10 version.
I want to expand (only expand) all the 3 partitions.
My HD is 1,8 Tb so it's big and I have no possibility to save before expanding.
So my question is: if you tell me GParted work 99,99 % of the time, I'm willing to take the risk. If you tell me GParted work 90 % of the time, I won't take that risk.
I may be an alien around here, but here's my problem: the speed limit on old Ubuntu releases (= before 11) was very very fast. It was really great for me.
Now, on Ubuntu 11, they may have thought: "who will ever want that speed? Nobody! So let's put the maximum speed to a lower limit".
It's so stupid that they tried to narrow down the speed to some other famous OS. If Linux is more powerful, why remove some of its power? I don't get that.
So is there any way to override that speed limit and get my keyboard as fast as it is on other previous versions?
When I ping I have this display:
> ping -i 4 www.google.fr
64 bytes from wi-in-f94.1e100.net (173.194.67.94): icmp_seq=503 ttl=46 time=45.5 ms
.......
.......
64 bytes from wi-in-f94.1e100.net (173.194.67.94): icmp_seq=508 ttl=46 time=44.9 ms
64 bytes from wi-in-f94.1e100.net (173.194.67.94): icmp_seq=509 ttl=46 time=45.1 ms
I'd like to have the time of the ping before.
Something like:
> (right functions) + ping -i 7 www.google.fr
mardi 15 mai 2012, 10:29:06 (UTC+0200) - 64 bytes from wi-in-f94.1e100.net (173.194.67.94): icmp_seq=503 ttl=46 time=45.5 ms
.......
.......
mardi 15 mai 2012, 10:29:13 (UTC+0200) - 64 bytes from wi-in-f94.1e100.net (173.194.67.94): icmp_seq=508 ttl=46 time=44.9 ms
mardi 15 mai 2012, 10:29:20 (UTC+0200) - 64 bytes from wi-in-f94.1e100.net (173.194.67.94): icmp_seq=509 ttl=46 time=45.1 ms
How would you do this in a command line (if it's possible)?
I have sql files "separated" like this:
> tree sql
sql
├── adresse_trigger_update_before.sql
├── attribut_trigger_update_before.sql
├── categorie_trigger_update_before.sql
├── duplicate_records.sql
├── horaire_trigger_update_before.sql
├── partenaire_trigger_update_before.sql
├── personne_trigger_update_before.sql
└── produit_trigger_update_before.sql
0 directories, 8 files
>
Here are all my tries:
>mysql mydatabase -e "source sql/file1.sql"
>
>mysql mydatabase -e "source sql/*"
>ERROR at line 1: Failed to open file 'sql/*', error: 2
>cat sql/* > mysql mydatabase
>cat : option invalid -- 'p'
>mysql mydatabase -e "source sql/*"
>bash: sql/* : ambiguous redirect
How to load many files at once in MySQL?
Nota: there's only one problem I'm facing: load all the files in the "sql
" folder at once. No other problem (I've removed user and password to be more precise about the actual problem).
Any idea how to do this?
I've just used recently Debian and I'm using Windows 7, and one thing that really gets on my nerves is the alt-tab feature: to access the second program it's easy: alt-tab switches instantaneously from the current window to the next one. But if I want to access quickly to the third program I have to wait something like 1/2 second, and that's really annoying, because as a developper, I'm always switching between my shell, Firefox, and the third one, Firebug Window.
Is there something I could do to make alt-switching fast when accessing other windows than the next? I don't know, maybe remove an effect (I'm currently with the option "visual effects : normal").
The batch script to restart the httpd server is called apache2.
Apache is a group of volunteers who do far more than just an http server.
Calling the script apache2 (apachectl
is apache2ctl
and so on) is very, very restrictive.
How about keeping everything "homogeneous"? The configuration file is, on every distro httpd.conf
. Not in Ubuntu. And a lot of stuff like this concerning the Apache "httpd server" configuration / installation. What's the point?