Debian On Mac Mini

A place to discuss software and code that isn't automotive related. Free and open source preferred but not compulsory.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Debian On Mac Mini

Post by Fred »

sudo chvt 1 && sudo chvt 7 = screen wakey wakey from CLI - useful for a screen shot while away from home, for example.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Debian On Mac Mini

Post by Fred »

NetworkManager to work without a UI open, you need a global connection and you do it like this:

Code: Select all

fred@cheetah:/etc/NetworkManager/system-connections$ sudo cat JAZZTEL_FRED 
[sudo] password for fred: 
[connection]
id=JAZZTEL_FRED
uuid=ae6b65f0-8d1f-4e99-8b09-5beb5b2d2e7b
type=802-11-wireless

[ipv4]
method=auto

[ipv6]
method=ignore

[802-11-wireless]
mode=infrastructure
security=802-11-wireless-security
ssid=74;65;90;90;84;69;76;95;57;67;56;68

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=90e586a3084de85d71db
Note permissions need to be:

Code: Select all

fred@cheetah:/etc/NetworkManager/system-connections$ l
total 4
-r-------- 1 root root 319 Dec  1 15:47 JAZZTEL_FRED
And you start it like this:

Code: Select all

root@cheetah:~# /etc/init.d/network-manager restart # Necessary for it to be picked up, it seems.

root@cheetah:~# nmcli con list # Shows you if it worked
NAME                      UUID                                   TYPE              SCOPE    TIMESTAMP-REAL                    
Auto eth0                 4d11bef3-df86-4e17-96f3-5954b0182100   802-3-ethernet    system   Thu 01 Dec 2011 15:50:42 CET      
JAZZTEL_FRED              ae6b65f0-8d1f-4e99-8b09-5beb5b2d2e7b   802-11-wireless   system   Mon 19 Dec 2011 15:00:42 CET      

root@cheetah:~# nmcli con up id JAZZTEL_FRED # Connects instantly, or as close to that as wifi ever does...
References:

http://projects.gnome.org/NetworkManage ... ec-08.html
http://live.gnome.org/NetworkManager/SystemSettings

I constructed the above file line for line from a user connection which is in a totally different format. I couldn't find an automatic way to translate them, either, but this was the source:

Code: Select all

fred@cheetah:~$ l .gconf/system/networking/connections/1/*/
.gconf/system/networking/connections/1/802-11-wireless/:
total 4
-rw------- 1 fred fred 812 Nov 30 15:56 %gconf.xml

.gconf/system/networking/connections/1/802-11-wireless-security/:
total 4
-rw------- 1 fred fred 262 Nov 30 15:56 %gconf.xml

.gconf/system/networking/connections/1/connection/:
total 4
-rw------- 1 fred fred 491 Nov 30 15:56 %gconf.xml

.gconf/system/networking/connections/1/ipv4/:
total 4
-rw------- 1 fred fred 465 Nov 30 15:56 %gconf.xml

.gconf/system/networking/connections/1/ipv6/:
total 4
-rw------- 1 fred fred 476 Nov 30 15:56 %gconf.xml
As you can see, each file corresponds to a section in the flat file. Some entries are somehow empty/null, you don't need to include those for it to work.

And yes, I'm fully aware that these are real security details, good luck to whoever finds the router that they belong to! :-p

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
ToxicGumbo
LQFP144 - On Top Of The Game
Posts: 474
Joined: Tue Jan 03, 2012 8:37 pm
Location: Manhattan, KS. USA

Re: Debian On Mac Mini

Post by ToxicGumbo »

Fred wrote:For the record, I'd been wondering how to partially configure X11 for quite a long time, and never bothered to research it.
If by "partially" you mean, as it looks, to add the minimum Nvidia support to a default xorg.conf file, you can run nvidia-xconfig (part of the nvidia-current package) on the command line as root or via sudo. Restart the greeter or computer and X will launch with the proprietary module and 3D support loaded.

If anyone uses an older Ubuntu, such as Lucid for its current LTS status, be warned that there's a race condition where the greeter may try to load before the nvidia kernel module and result in a series of "low graphics" prompts as it drops into failsafe. This has been especially temperamental on Macs at cold start for some reason. A number kludges exist which call for delaying the greeter (kdm, gdm, etc.) by a matter of seconds, though it appears they refused to correct the issue until later Ubuntu releases.

Bug report conclusion: https://bugs.launchpad.net/ubuntu/+sour ... mments/102.


-Jeff
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Debian On Mac Mini

Post by Fred »

No, I meant more generally, as in, just adjust one module for some reason, such as mouse or driver or whatever, without affecting the other auto stuff. Dropping a full config in place destroys the auto stuff, and isn't a nice approach. I just never looked for it until I got to this :-)
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Debian On Mac Mini

Post by Fred »

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586751

upowerd author you are a CUNT, you have wasted THREE days of my time now. I am now going to email you about this and abuse you. Not happy. Preston just suffered from this FUCKING BULLSHIT again tonight.

http://issues.freeems.org/view.php?id=521

Prestons time wasted. Wear and tear on vehicle. Logs worthless. Silently fucking everything up. You cock!

Recorded here for others to find, keywords:

ftdi usb serial corruption hogs hogging hog detect detected watts up pro udev rule rules ubuntu debian ARSEHOLE UNBELIEVABLE STUPIDITY

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Debian On Mac Mini

Post by Fred »

Closed, resolved, fixed. Send future complaints to Richard Hughes using this address: hughsient@gmail.com
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Debian On Mac Mini

Post by Fred »

Finally, I'd like to emphasize how this was listed on my Deb system with apt-cache show:

Code: Select all

Package: upower
Status: deinstall ok config-files
Priority: optional (and NOT recommended)
And in living colour:
Package: upower
Status: deinstall ok config-files
Priority: optional (and NOT recommended)
Preston was on skype with me while I was diagnosing and dealing with this for him and can vouch for the level of my rage and the quantity of lost time. Hung drawn and quartered is how that dude would be if he were here right now.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Debian On Mac Mini

Post by Fred »

Two things:

Removing it seems to break Gnome in Ubuntu 11.?

It didn't solve the issue, it was a driver issue in Ubuntu, though it could have been two issues.

Code: Select all

# unplug
sudo rmmod ftdi_sio usbserial
# plug back in
Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Debian On Mac Mini

Post by Fred »

Got a lot of these:

Code: Select all

: mail. file: 1331006941.12941
Apr 22 14:17:47 cheetah nullmailer[24376]: smtp: Failed: Connect failed
Apr 22 14:17:47 cheetah nullmailer[1953]: Sending failed:  Host not found
Apr 22 14:17:47 cheetah nullmailer[1953]: Starting delivery: protocol: smtp host: mail. file: 1334372941.24675
Apr 22 14:17:57 cheetah nullmailer[24377]: smtp: Failed: Connect failed
Apr 22 14:17:57 cheetah nullmailer[1953]: Sending failed:  Host not found
Apr 22 14:17:57 cheetah nullmailer[1953]: Starting delivery: protocol: smtp host
Every ten seconds! Did this:

Code: Select all

apt-get remove nullmailer
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re

Post by Fred »

I installed bootchart2, and found some huge obvious issues, but didn't fix anything yet. Some links, doing a browser clean up...

https://github.com/mmeeks/bootchart
http://lgallardo.com/en/2009/07/08/arra ... an-14-sec/
http://www.debian-administration.org/ar ... 14_seconds
http://maketecheasier.com/linux-startup ... 2011/03/03
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Post Reply