Showing posts with label Debian. Show all posts
Showing posts with label Debian. Show all posts

Wednesday, October 19, 2022

Permanently set DNS in headless Debian or LXC/LXD container via CLI

 If you're like me and you've been through all those howto's that have you installing and using nmcli/resolvconf/network-manager and still don't have a permanent DNS, well you've come to the right place.

Again, I tried all that and then some. I even tried editing dhclient.conf and that didn't do anything either.

Forget installing whatever program that you don't need. 

All you need to do are three things.


1. Check if /etc/resolv.conf is a symlink to /run/systemd/resolve/stub-resolv.conf

    If it IS a symlink then ...

2. Delete the /etc/resolv.conf symlink and add a new /etc/resolv.conf

    rm /etc/resolv.conf; vi /etc/resolv.conf

    In the new /etc/resolv.conf add your nameserver

        nameserver 192.168.5.20

3. Restart your network or reboot.


The symlink is managed so anytime you edit the symlinked resolv.conf, the manager changes it back. But if you delete the symlink and create it again, the nameserver you add will be persistent.

Tuesday, March 15, 2011

Metacity doesn't start / load when logging in (Debian)

So for some strange reason, (could be b/c I was installing things for conky?), after a reboot (left the suspend|hibernate|reboot|shutdown popup over 60sec so it shutdown automatically >_<;) metacity didn't start and I had to do a manual startup. So if you're in this situation then you've come to the right place. I went thru hoops to find it but here is a link to the bug report and yes I know it's for Ubuntu but it did solve my issue. https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/550082

For some reason or another, something put in "Hidden = true" into my ~/.local/share/applications/metacity.desktop and that screwed up metacity's loading.

so instead of deleting the whole file, just delete that one line.
reboot and you should see your window borders again ;)

Thursday, March 10, 2011

How to change the login screen / background for gnome (GDM3) the easy way (Debian Squeeze)

Like you, I've messed with the alternatives directory the /etc/gdm directory etc etc.

But I stumbled on an easy way to change the login screen wallpaper.

1. cd into /usr/share/images/desktop-base

2. Rename login-background.svg to what it really should be or whatever you want... spacefun-login.svg or ugly.login-bkgrd.svg.

3. Make a new symlink to the wallpaper you want, to /usr/share/images/desktop-base/login-background.svg

e.g. ln -s /path/to/new/background /usr/share/images/desktop-base/login-background.svg

That should do it. I've checked with a few different pictures and every time I log out, it shows the new linked background.

cheers.

Monday, February 14, 2011

Woot! Debian 6.0.0(Wheeze) is out and installed on my netbook!

So I had Ubuntu 10.04 LTS "installed" using wubi from Windows7. That was a pain in the ass and it often froze. Boy did I have to use the alt+sysreq+f and all other combos a lot to stop it from freezing. Had to do the a+s+reisub combo plenty of times too! But it was still half a year till the new Debian would be out so I stuck with it. Not that Ubuntu is bad...it just wasn't my flavor. In the past I've used Slackware (something like 3.5-7), Red Hat (4 - don't remember) so Ubuntu wasn't as in depth of an OS as the others since it's geared for newer linux users (yes I know it's based off of Debian but it really isn't anything like Debian). I like tinkering so Slackware was great. But yeah I installed Wheeze on the netbook and it worked like a charm. Only had 2 issues.

1st was that Windows 7 was detected during the install but not listed in Grub2 but that was easily remedied by doing update-grub (as seen here towards the bottom in the Errata section). That will look at your partition tables and reinstall grub2 with windows included.

2nd was getting UIM (Universal Input Method) to work properly. I got everything installed and started but it wouldn't respond to my hot keys or input Japanese! So after hours of searching, I figured it out. You have to change which input method your system uses! So if you have im-config or im-switch, use that and click on the radio for your input method. Mine for example was UIM so I chose that...otherwise if you use SCIM choose that, etc. After setting that, my hot keys worked and the Japanese input worked like a charm!

I have to say that I like it a whole lot better and it is much more stable than Ubuntu. I didn't however like Iceweasel too much since Coolpreviews didn't work with it...So I installed Firefox 4 beta and wow, that thing is pretty fast! It still uses a lot of memory but cpu usage is really low! And I have my coolpreviews back, although a few other addons don't work now. ugh. Anywhoo....I need to update my main amd64 laptop to wheeze soon and that should be fun backing up my system and then restoring everything to working order. After that, I won't be looking at Ubuntu again and no more updating every other day either! sheesh that was a pain.
Debian ftw!