Smokes your problems, coughs fresh air.

Category: Technology (Page 27 of 48)

Upgrading Samba from Lenny-backports

For some reason, after upgrading to the Samba version from Lenny-backports I needed to support Windows 7 profiles, the workstations suffered from severe problems. The entire profile seemed to be read-only, even though they weren’t on disk. I couldn’t change any setting and reverting profile configuration from backups didn’t help. In the end, the only thing that fixed it was recreating the user profile, both server and client side. This was an upgrade from 3.2.5 to 3.4.7.

Another issue I had is that the user database got a new backend and all the users were gone. You can import your existing smbpasswd file with pdbedit.

So, when doing this again, be sure to make workstation and server backups.

Adding a virtual network interface on Debian

When clustering machines, you make it possible for a failover node to be accessible on the same address as the primary node by having a virtual network interface. In Debian, you can add one like this:

iface eth0:0 inet static
    address 192.168.1.75
    network 192.168.1.0
    broadcast 192.168.1.255
    netmask 255.255.255.0
    gateway 192.168.1.251

By leaving out the auto eth0:0, I prevent the interface from becoming active automatically. I can do “ifup eth0:0” to enable it. This can also be left to clustering software, but clustering software can also get in the way, so often you just want to do it by hand.

Preventing the creation of $RECYCLE.BIN on Samba shares by Windows 7

Windows 7 kept creating a $RECYCLE.BIN dir on the network share. This in itself is merely annoying, but there were also errors resulting from it. Whenever a file would be deleted, this message would appear (translated from dutch): “The recycle bin is damaged, do you want to delete the contents?” Everything froze until that question was answered.

Samba has an option “veto files” which can be used to stop the creation of that directory. Put this in each share’s section in your smb.conf:

veto files = /*$RECYCLE.BIN/ 

The slashes are not directory separators in this case. Also, I don’t know if the preceeding * is necessary, but it does no harm.

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.

« Older posts Newer posts »

© 2025 BigSmoke

Theme by Anders NorenUp ↑