BigSmoke

Smokes your problems, coughs fresh air.

Page 30 of 52

Configuring Thunderbird to have newest mails at the top by default

Thunderbird sorts its mails in such a way that the newest mails are at the bottom of the list by default. You can change it, but you have to change it for each folder separately, which sucks.

The solution is to set the order option with the advanced config editor before you open the folders (before you let Thunderbird create the index):

mailnews.default_sort_order = 2

Migrating user accounts when upgrading from samba 3.2 to 3.3 or 3.4

Because I wanted to be able to give Windows 7 machines access to our domain controller, I needed to upgrade samba to 3.4 from lenny-backports. Because the database backend changed, a consequence of this was that the user database was empty; it didn’t migrate it.

pdbedit has an option to import the old smbpasswd file:

pdbedit -i smbpasswd:/etc/samba/smbpasswd

That should take care of it. I didn’t test it this way though, because I already fiddled with the user database by creating new users by hand. I imported one user with which I still had problems correctly this way, but I don’t know if importing this database from the start would have prevented all my errors.

Console commands for Unreal Tournament

This site has a comprehensive list of Unreal Tournament 99 console commands. Some necessary ones (for some you have to do adminlogin first, provided you’re playing on a dedicated server):

Restart mapadmin servertravel restart
Change mapadmin switchlevel (or servertravel) [map name]
Kick playeradmin kick [player]
Kick and ban playeradmin kickban [player name]
Remove all botsadmin killall Bot
Screenshotshot
Show player ip’sshowips
Show player id’sshowid
kick player with IDkickid [id]
kick and ban player with IDbanid [id]

Adding a quick launch in Windows 7

Windows 7 doesn”t have a quicklaunch by default. Luckily, there is a fix. To enable it, add toolbar, other toolbar and include this as location:

%userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch

That site also states you have to save your theme, so do that, to be safe. Just do desktop right mouse, adjust to preference, rightmouse on unsaved theme, etc.

Listing samba users

Newer samba versions no longer have a human readable password file. To see the passwords, use pdbedit. Do “pdbedit -w -L” to get a classic password file layout.

Fixing extremely slow domain logon windows 7

I just installed two Windows 7 machines and both of them take a very long time to logon to the (samba) domain controller. I’ve found several reports on the internet about people with the same issue. This was one of the pages I found. I tried it and it works. It says:

  • Run gpedit.msc.
  • Go to computer configuration.
  • Go to Administrative templates.
  • Go to System.
  • Go to User profiles.
  • Enable “Set maximum wait time for the network if a user has a roaming user profile or remote home directory” and set to 0 seconds

You’d think that this means it can’t logon, because it suggests the wait period was because of network connection problem. However, I tried adding files to the profile on the server and logged in, and the file was synced to the PC. So, it does seem to work.

While I was at it, I also changed the setting not to allow logons with temporary profiles. It’s in the same list as the option above. In Dutch, it’s “gebruikers niet aanmelden met tijdelijke profielen”.

I also found this about slow logons. It’s for Windows XP, but perhaps it’s useful. It sets “Always wait for the network at computer startup and logon” to true. For some reason, the asynchronous loading of the network caused slowdown for that person.

Finally, I also found people who fixed slow logons by setting the desktop to an image, as opposed to solid color. I tested it, and indeed seemed to influence it.

Installing Samba from lenny-backports

With our new Windows 7 machines, we need at least samba 3.3.7. However, our server with Debian stable doesn’t have that in its repository. So, I was forced to install samba with lenny-backports.

I included this line in my /etc/apt/sources.list:

deb http://www.backports.org/debian lenny-backports main contrib non-free 

Because backports are disabled by default, I needed to pin all the packages required for samba:

Package: samba
Pin: release a=lenny-backports
Pin-Priority: 999
 
Package: smbclient
Pin: release a=lenny-backports
Pin-Priority: 999
 
Package: smbfs
Pin: release a=lenny-backports
Pin-Priority: 999
 
Package: samba-common
Pin: release a=lenny-backports
Pin-Priority: 999
 
Package: samba-common-bin
Pin: release a=lenny-backports
Pin-Priority: 999
 
Package: libwbclient0
Pin: release a=lenny-backports
Pin-Priority: 999
 
Package: libtalloc2
Pin: release a=lenny-backports
Pin-Priority: 999

I haven’t actually installed it, but I will soon. So I don’t know if it will work or not. Aptitude -s suggests it does.

Creating new MySQL database and user

I often need to make a MySQL database and a user that can do anything in it:

create database bla character set utf8 collate = utf8_general_ci;
use bla
grant all on bla.* to 'jack'@'localhost' identified by 'password';

To drop a user:

drop user ‘jack'@'localhost’;

OpenDNS servers

I’ve had to deal with crappy DNS servers quite a lot; servers that don’t resolve certain sites, servers that take endlessly, etc. Therefore, using OpenDNS can be a good solution. The IP addresses for OpenDNS are (including /etc/resolv.conf directives):

nameserver 208.67.222.222
nameserver 208.67.220.220
« Older posts Newer posts »

© 2024 BigSmoke

Theme by Anders NorenUp ↑