Direkt zum Hauptbereich

Posts

Es werden Posts vom 2013 angezeigt.

samba without authorization

cd $sudo vi /etc/samba/smb.conf and set interfaces to lo and your local network interface. In my case: eth1 . interfaces = lo eth1 bind interfaces only = true Now, it is time to smoothen samba default security by changing the security variable: security and make sure it is set to share instead of user and that guest account is enabled: security = share ... ... guest account = nobody Now, we can create a share to be accessible to guest users: [Guest Share] comment = Guest access share path = /path/to/dir/to/share browseable = yes read only = yes guest ok = yes You can now test that your configuration is good using testparm : $ testparm If everything is fine, it is time to reload samba service to have your new configuration taken into account: $sudo /etc/init.d/samba reload http://www.debuntu.org/samba-how-to-share-files-for-your-lan-without-userpassword/

Systembackup using dpkg and dselect

Systembackup by integr8e As a result of many reinstallations, I've begun developing a method that quickly allows me to restore my new installation to the setup of my old one. As such, I decided to share my knowledge: -> MAKE A LIST - To create an easily restoreable list of all installed software on your system (from the repos), open Konsole and enter the following command: dpkg --get-selections | grep [^de]install$ > installed-software.txt - That will create an entry in your "/home//" directory entitled "installed-software.txt" ( is your username). -> [u]BACKUP - Backup all your important files to an external storage device (hard drive / flash disk); you may wish to backup your "/etc/X11/xorg.conf" and "/etc/apt/sources.list" configs. If you have the Medibuntu/Wine repo(s), you'll need to additionally backup your "/etc/apt/sources.list.d" directory. For an excellent guide on backing up using the

"Trash has reached maximum size"

"Trash has reached maximum size" This message came up since a long time on my linux desktop when I tried to use the trash bin icon to delete stuff. Emptying the bin didn't help and didn't make sense, because there's still a lot of space available on my hardrive. I found the (simple) solution finally here: http://forum.kde.org/viewtopic.php?f=66&t=88418 hey! The solution to my problem is the following: Code:  Select all root@sega:/home/ilj % mv /home/ilj/.local/share/Trash ~/ The error message is bogus, though. The Trash folder did not contain any files: and there was a one string entry only in the metadata file. Moving Trash folder allowed me to start using it as expected instantly.

compiz 12.04 rotating cubes flash

solved in 12.10. most fixes in 12.04 available by sudo apt-add-repository ppa:vanvugt/compiz-preproposed sudo apt-get update sudo apt-get install compiz=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-core=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-gnome=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-plugins=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-plugins=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-plugins-default=1:0.9.7.8-0ubuntu1vvpreproposed2 libdecoration0=1:0.9.7.8-0ubuntu1vvpreproposed2   http://askubuntu.com/questions/181377/compiz-unity-very-unstable-crashing-very-often-on-12-04 hold compiz with: { echo compiz hold ; echo compiz-core hold ; echo compiz-plugins hold ; echo compiz-gnome hold ; echo compiz-plugins-default hold ; echo libdecoration0 hold ; } | sudo dpkg --set-selections

Keep console application open in MS Visual C++ 2010 Express

Usually the console window closes immediately after execution. To keep it open, one could change the program and add e.g. a cin.get(). But there is a way to keep it open without changing any line: Bitte Rechtsklick den Projektnamen, und gehen Sie auf der Seite Eigenschaften bitte erweitern Sie Konfigurationseigenschaften-> Linker-> System, wählen Sie bitte die Konsole (/ SUBSYSTEM: CONSOLE) im Dropdown-SubSystem. Da, in der Standardeinstellung das leere Projekt nicht angegeben ist. http://de.softuses.com/271941 in english: Please right click your project name and go to Properties page, please expand Configuration Properties -> Linker -> System, please select Console (/SUBSYSTEM:CONSOLE) in SubSystem dropdown. Because, by default, the Empty project does not specify it. http://social.msdn.microsoft.com/Forums/en/vsdebug/thread/868551df-9d87-43cb-b24b-d8665a2ae646

Matlab license w/o system variable

A network.lic-file has to be placed within the application folder \ licenses, in my case: C:\Program Files\MATLAB\R2012a\licenses http://www.mathworks.nl/support/solutions/en/data/1-63ZIR6/index.html This license-file has the following format SERVER server_name hostid port# USE_SERVER http://www.mathworks.nl/support/solutions/en/data/1-99R6CN/index.html?solution=1-99R6CN where servername and host id can be found on the Flexlm Licenses Detail Website (Server: @ ) The host id seems to be the  volume serial number of the C:\ drive  (in cmd:> "vol c:" Volumeseriennummer (without the dash ) http://www.mathworks.nl/support/solutions/en/data/1-171PI/

migrating from kmail to thunderbird

While I gave up local mails and subordinated entirely to google meanwhile, my partner still wants to be independant and prefers local mails. Since KMail seemst to be wrecked, I have to migrate her mails to the old mbox format of thunderbird. This one-command-recipe worked for me. I replaced Archive/ by e.g. .kde/share/apps/kmail/mail/inbox and sarchive by sMBOXinbox . To import  MBOXinbox they simply have to be copied to   ~/.thunderbird/.....default/Mail/Local\ Folders . Converting Maildir to mbox via mutt Ran into an issue today where I needed to convert a Maildir containing over 50k messages to mbox format and couldn’t really find any good tools. So I found  this blog post  about using mutt to do it. Unfortunately, it converted one Maildir to another. =( One crucial piece is missing, so here is the one-liner in all its glory: $ mutt -f Archive/ -e 'set mbox_type=mbox; set confirmcreate=no; \ set delete=no; push "T.* ;sarchive "' The above converts the Maild

prevent mythfrontend from restarting

Re: frontend restart script I think it's these lines in /usr/share/mythtv/mythfrontend.sh Code: until /usr/bin/mythfrontend.real --logfile "${MYTHFELOG}" ${MYTHFRONTEND_OPTS} RET=$? [ "$RET" = "0" -o "$RET" = "1" -o "$RET" = "254" ] do echo "Restarting mythfrontend.real..." >> "${MYTHFELOG}" notify-send -i info 'Restarting Frontend' "The front-end crashed unexpectedly (exit code $RET) and is restarting. Please wait..." 2>> "${MYTHFELOG}" done http://ubuntuforums.org/showthread.php?t=1799026